Abhinav Kulkarni
commited on
Commit
•
98fc77e
1
Parent(s):
1da2438
Updated README
Browse files
README.md
CHANGED
@@ -49,6 +49,7 @@ config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
|
49 |
|
50 |
# Tokenizer
|
51 |
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name)
|
|
|
52 |
|
53 |
# Model
|
54 |
w_bit = 4
|
@@ -79,7 +80,8 @@ output = model.generate(
|
|
79 |
top_p=0.15,
|
80 |
top_k=0,
|
81 |
repetition_penalty=1.1,
|
82 |
-
eos_token_id=tokenizer.eos_token_id
|
|
|
83 |
)
|
84 |
```
|
85 |
|
|
|
49 |
|
50 |
# Tokenizer
|
51 |
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name)
|
52 |
+
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
53 |
|
54 |
# Model
|
55 |
w_bit = 4
|
|
|
80 |
top_p=0.15,
|
81 |
top_k=0,
|
82 |
repetition_penalty=1.1,
|
83 |
+
eos_token_id=tokenizer.eos_token_id,
|
84 |
+
streamer=streamer
|
85 |
)
|
86 |
```
|
87 |
|