MaziyarPanahi
commited on
Commit
•
2883125
1
Parent(s):
7920348
Update README.md (#2)
Browse files- Update README.md (4077d3256a20cba45dcf6189aaa37f479911f6c4)
README.md
CHANGED
@@ -7,8 +7,24 @@ tags:
|
|
7 |
- moe
|
8 |
- biology
|
9 |
- medical
|
|
|
10 |
---
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
## Quantized mode
|
14 |
|
|
|
7 |
- moe
|
8 |
- biology
|
9 |
- medical
|
10 |
+
- MoE
|
11 |
---
|
12 |
|
13 |
+
## How to use it
|
14 |
+
|
15 |
+
```python
|
16 |
+
# Use a pipeline as a high-level helper
|
17 |
+
from transformers import pipeline
|
18 |
+
|
19 |
+
pipe = pipeline("text-generation", model="MaziyarPanahi/Bioxtral-4x7B-v0.1")
|
20 |
+
|
21 |
+
# Load model directly
|
22 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
23 |
+
|
24 |
+
tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Bioxtral-4x7B-v0.1")
|
25 |
+
model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Bioxtral-4x7B-v0.1")
|
26 |
+
```
|
27 |
+
|
28 |
|
29 |
## Quantized mode
|
30 |
|