update code
Browse files
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
-
|
5 |
from transformers import TextStreamer
|
6 |
from unsloth import FastLanguageModel
|
7 |
import torch
|
@@ -32,3 +32,5 @@ inputs = tokenizer(
|
|
32 |
|
33 |
text_streamer = TextStreamer(tokenizer)
|
34 |
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 2048)
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
```bash
|
5 |
from transformers import TextStreamer
|
6 |
from unsloth import FastLanguageModel
|
7 |
import torch
|
|
|
32 |
|
33 |
text_streamer = TextStreamer(tokenizer)
|
34 |
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 2048)
|
35 |
+
|
36 |
+
```
|