mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
fix typos
This commit is contained in:
parent
f836130bff
commit
592d1e3aae
@ -1,5 +1,5 @@
|
||||
from pytorch_pretrained_bert.tokenization_gpt2 import GPT2Tokenizer
|
||||
from pytorch_pretrained_bert.modeling_openai import (
|
||||
from pytorch_pretrained_bert.modeling_gpt2 import (
|
||||
GPT2Model,
|
||||
GPT2LMHeadModel,
|
||||
GPT2DoubleHeadsModel
|
||||
@ -152,7 +152,7 @@ def gpt2DoubleHeadsModel(*args, **kwargs):
|
||||
>>> tokens_tensor = torch.tensor([indexed_tokens])
|
||||
>>> mc_token_ids = torch.LongTensor([ [len(tokenized_text)] ])
|
||||
|
||||
# Load openAIGPTDoubleHeadsModel
|
||||
# Load gpt2DoubleHeadsModel
|
||||
>>> model = torch.hub.load('huggingface/pytorch-pretrained-BERT', 'gpt2DoubleHeadsModel', 'gpt2')
|
||||
>>> model.eval()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user