Skip to content

Commit 1a56661

Browse files
committed
Shorten gpt-2 model output length
1 parent 026abbd commit 1a56661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/text-generator/gpt-2.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
" builder.save()\n",
242242
"\n",
243243
"\n",
244-
"export_for_serving(top_k=40, model_name=MODEL_SIZE)"
244+
"export_for_serving(top_k=40, length=256, model_name=MODEL_SIZE)"
245245
],
246246
"execution_count": 0,
247247
"outputs": []

0 commit comments

Comments
 (0)