Abhinav Kulkarni
commited on
Commit
•
f8f5833
1
Parent(s):
d8b45fd
Updated README
Browse files
README.md
CHANGED
@@ -57,6 +57,7 @@ config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
|
57 |
|
58 |
# Tokenizer
|
59 |
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name)
|
|
|
60 |
|
61 |
# Model
|
62 |
w_bit = 4
|
@@ -87,7 +88,8 @@ output = model.generate(
|
|
87 |
top_p=0.15,
|
88 |
top_k=0,
|
89 |
repetition_penalty=1.1,
|
90 |
-
eos_token_id=tokenizer.eos_token_id
|
|
|
91 |
)
|
92 |
```
|
93 |
|
|
|
57 |
|
58 |
# Tokenizer
|
59 |
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name)
|
60 |
+
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
61 |
|
62 |
# Model
|
63 |
w_bit = 4
|
|
|
88 |
top_p=0.15,
|
89 |
top_k=0,
|
90 |
repetition_penalty=1.1,
|
91 |
+
eos_token_id=tokenizer.eos_token_id,
|
92 |
+
streamer=streamer
|
93 |
)
|
94 |
```
|
95 |
|