From d2de5b9d8c4150281bd204e50ded32019f543ad8 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 27 Sep 2019 07:08:36 -0300 Subject: [PATCH] Just some typos --- docs/source/quickstart.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/quickstart.md b/docs/source/quickstart.md index c7ad5c7930..c73d3a5429 100644 --- a/docs/source/quickstart.md +++ b/docs/source/quickstart.md @@ -93,8 +93,8 @@ Let's see how we can use `BertModel` to encode our inputs in hidden-states: # Load pre-trained model (weights) model = BertModel.from_pretrained('bert-base-uncased') -# Set the model in evaluation mode to desactivate the DropOut modules -# This is IMPORTANT to have reproductible results during evaluation! +# Set the model in evaluation mode to deactivate the DropOut modules +# This is IMPORTANT to have reproducible results during evaluation! model.eval() # If you have a GPU, put everything on cuda @@ -168,8 +168,8 @@ Let's see how to use `GPT2LMHeadModel` to generate the next token following our # Load pre-trained model (weights) model = GPT2LMHeadModel.from_pretrained('gpt2') -# Set the model in evaluation mode to desactivate the DropOut modules -# This is IMPORTANT to have reproductible results during evaluation! +# Set the model in evaluation mode to deactivate the DropOut modules +# This is IMPORTANT to have reproducible results during evaluation! model.eval() # If you have a GPU, put everything on cuda