Update README.md
Browse files
README.md
CHANGED
|
@@ -35,17 +35,17 @@ Llama3-ViettelSolution-8B is a variant of the Meta Llama-3-8B model, continued p
|
|
| 35 |
|
| 36 |
Example snippet for usage with Transformers:
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
|
| 50 |
|
| 51 |
## Training Details
|
|
|
|
| 35 |
|
| 36 |
Example snippet for usage with Transformers:
|
| 37 |
|
| 38 |
+
```
|
| 39 |
+
import transformers
|
| 40 |
+
import torch
|
| 41 |
+
|
| 42 |
+
model_id = "VTSNLP/Llama3-ViettelSolution-8B"
|
| 43 |
+
|
| 44 |
+
pipeline = transformers.pipeline(
|
| 45 |
+
"text-generation", model=model_id, model_kwargs={"torch_dtype": torch.bfloat16}, device_map="auto"
|
| 46 |
+
)
|
| 47 |
+
pipeline("Xin chào!")
|
| 48 |
+
```
|
| 49 |
|
| 50 |
|
| 51 |
## Training Details
|