From 1cb9c76ec5c3d2a1b103eea7666f6e20b77365fb Mon Sep 17 00:00:00 2001 From: sam-qordoba <47401552+sam-qordoba@users.noreply.github.com> Date: Mon, 18 Feb 2019 09:27:26 -0800 Subject: [PATCH] Fix typo in `GPT2Model` code sample Typo prevented code from running --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ba7ee84b2..6d3b2e5f07 100644 --- a/README.md +++ b/README.md @@ -428,7 +428,7 @@ with torch.no_grad(): hidden_states_1, past = model(tokens_tensor_1) # past can be used to reuse precomputed hidden state in a subsequent predictions # (see beam-search examples in the run_gpt2.py example - hidden_states-2, past = model(tokens_tensor_2, past=past) + hidden_states_2, past = model(tokens_tensor_2, past=past) ``` And how to use `GPT2LMHeadModel`