MaziyarPanahi
commited on
Commit
•
191cf06
1
Parent(s):
50be237
Update README.md (#3)
Browse files- Update README.md (3540dbefc03570a2553b2d5bdb64ffc8c9a5ffc4)
README.md
CHANGED
@@ -19,19 +19,26 @@ pipeline_tag: text-generation
|
|
19 |
|
20 |
# models/Qwen1.5-MoE-A2.7B-Wikihow
|
21 |
|
22 |
-
This model is a fine-tuned version of [Qwen/Qwen1.5-MoE-A2.7B](https://huggingface.co/Qwen/Qwen1.5-MoE-A2.7B) on the
|
23 |
|
24 |
-
## Model description
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
|
|
|
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
-
|
|
|
|
|
33 |
|
34 |
-
More information needed
|
35 |
|
36 |
## Training procedure
|
37 |
|
|
|
19 |
|
20 |
# models/Qwen1.5-MoE-A2.7B-Wikihow
|
21 |
|
22 |
+
This model is a fine-tuned version of [Qwen/Qwen1.5-MoE-A2.7B](https://huggingface.co/Qwen/Qwen1.5-MoE-A2.7B) on the [HuggingFaceTB/cosmopedia](https://huggingface.co/datasets/HuggingFaceTB/cosmopedia) dataset.
|
23 |
|
|
|
24 |
|
25 |
+
## How to use it
|
26 |
|
27 |
+
```python
|
28 |
+
# Use a pipeline as a high-level helper
|
29 |
+
from transformers import pipeline
|
30 |
|
31 |
+
pipe = pipeline("text-generation", model="MaziyarPanahi/Qwen1.5-MoE-A2.7B-Wikihow")
|
32 |
+
```
|
33 |
+
|
34 |
+
```python
|
35 |
+
# Load model directly
|
36 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
37 |
|
38 |
+
tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Qwen1.5-MoE-A2.7B-Wikihow")
|
39 |
+
model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Qwen1.5-MoE-A2.7B-Wikihow")
|
40 |
+
```
|
41 |
|
|
|
42 |
|
43 |
## Training procedure
|
44 |
|