Update README.md
Browse files
README.md
CHANGED
@@ -7,7 +7,7 @@ metrics:
|
|
7 |
|
8 |
# code
|
9 |
|
10 |
-
|
11 |
from unsloth import FastLanguageModel
|
12 |
import torch
|
13 |
max_seq_length = 2048 # Choose any! We auto support RoPE Scaling internally!
|
@@ -59,4 +59,4 @@ inputs = tokenizer(
|
|
59 |
from transformers import TextStreamer
|
60 |
text_streamer = TextStreamer(tokenizer)
|
61 |
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 128)
|
62 |
-
|
|
|
7 |
|
8 |
# code
|
9 |
|
10 |
+
```bash
|
11 |
from unsloth import FastLanguageModel
|
12 |
import torch
|
13 |
max_seq_length = 2048 # Choose any! We auto support RoPE Scaling internally!
|
|
|
59 |
from transformers import TextStreamer
|
60 |
text_streamer = TextStreamer(tokenizer)
|
61 |
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 128)
|
62 |
+
```
|