Update README.md
Browse files
README.md
CHANGED
@@ -128,6 +128,9 @@ We release DiscoLeo-8B in the following configurations:
|
|
128 |
Here's how to use the model with transformers:
|
129 |
```python
|
130 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
|
|
|
131 |
|
132 |
model = AutoModelForCausalLM.from_pretrained(
|
133 |
"DiscoResearch/Llama3-DiscoLeo-Instruct-8B-v0.1",
|
|
|
128 |
Here's how to use the model with transformers:
|
129 |
```python
|
130 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
131 |
+
import torch
|
132 |
+
|
133 |
+
device="cuda"
|
134 |
|
135 |
model = AutoModelForCausalLM.from_pretrained(
|
136 |
"DiscoResearch/Llama3-DiscoLeo-Instruct-8B-v0.1",
|