Update all references to canonical models (#29001)
* Script & Manual edition * Update
This commit is contained in:
@@ -75,7 +75,7 @@ Let's demonstrate this process with GPT-2.
|
||||
from transformers import GPT2LMHeadModel, GPT2TokenizerFast
|
||||
|
||||
device = "cuda"
|
||||
model_id = "gpt2-large"
|
||||
model_id = "openai-community/gpt2-large"
|
||||
model = GPT2LMHeadModel.from_pretrained(model_id).to(device)
|
||||
tokenizer = GPT2TokenizerFast.from_pretrained(model_id)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user