Update README.md
Browse files
README.md
CHANGED
@@ -19,3 +19,25 @@ Results will be updated soon.
|
|
19 |
|--------------------------------------|-------|-----------|---------|------------|------------|--------|
|
20 |
| **luxia-21.4b-alignment-v1.2** | 77.73 | 90.86 | 67.86 | 79.16 | 86.27 | 66.94 |
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|--------------------------------------|-------|-----------|---------|------------|------------|--------|
|
20 |
| **luxia-21.4b-alignment-v1.2** | 77.73 | 90.86 | 67.86 | 79.16 | 86.27 | 66.94 |
|
21 |
|
22 |
+
# **Usage Instructions**
|
23 |
+
|
24 |
+
### **How to use**
|
25 |
+
```python
|
26 |
+
# pip install transformers==4.35.2
|
27 |
+
import torch
|
28 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
29 |
+
|
30 |
+
tokenizer = AutoTokenizer.from_pretrained("saltlux/luxia-21.4b-alignment-v1.2")
|
31 |
+
model = AutoModelForCausalLM.from_pretrained(
|
32 |
+
"saltlux/luxia-21.4b-alignment-v1.2",
|
33 |
+
device_map="auto",
|
34 |
+
torch_dtype=torch.bfloat16,
|
35 |
+
)
|
36 |
+
```
|
37 |
+
|
38 |
+
### **License**
|
39 |
+
- [saltlux/luxia-21.4b-alignment-v1.2](https://huggingface.co/saltlux/luxia-21.4b-alignment-v1.2): apache-2.0
|
40 |
+
|
41 |
+
|
42 |
+
### **Contact Us** ###
|
43 |
+
Any questions and suggestions are welcomed at the discussion tab.
|