mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
add stop token to speed up
This commit is contained in:
@@ -116,6 +116,7 @@ class GPT2Generator:
|
||||
self.batch_size = 1
|
||||
self.stop_token = None
|
||||
self.max_history_tokens = 256
|
||||
self.stop_token = '<|endoftext|>'
|
||||
|
||||
self.model_name = "pytorch-gpt2-xl-aid2-v5"
|
||||
self.model_dir = "models"
|
||||
|
||||
Reference in New Issue
Block a user