Update all references to canonical models (#29001)
* Script & Manual edition * Update
This commit is contained in:
@@ -165,7 +165,7 @@ def data():
|
||||
yield f"My example {i}"
|
||||
|
||||
|
||||
pipe = pipeline(model="gpt2", device=0)
|
||||
pipe = pipeline(model="openai-community/gpt2", device=0)
|
||||
generated_characters = 0
|
||||
for out in pipe(data()):
|
||||
generated_characters += len(out[0]["generated_text"])
|
||||
|
||||
Reference in New Issue
Block a user