Improve language tag
Browse filesHi! As the model is multilingual, this is a PR to add other languages than English to the language tag to improve the referencing. Note that 29 languages are announced in the README, but only 13 are explicitly listed. I was therefore only able to add these 13 languages.
README.md
CHANGED
@@ -1,40 +1,52 @@
|
|
1 |
-
---
|
2 |
-
base_model: Qwen/Qwen2.5-0.5B-Instruct
|
3 |
-
language:
|
4 |
-
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
-
|
11 |
-
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: Qwen/Qwen2.5-0.5B-Instruct
|
3 |
+
language:
|
4 |
+
- zho
|
5 |
+
- eng
|
6 |
+
- fra
|
7 |
+
- spa
|
8 |
+
- por
|
9 |
+
- deu
|
10 |
+
- ita
|
11 |
+
- rus
|
12 |
+
- jpn
|
13 |
+
- kor
|
14 |
+
- vie
|
15 |
+
- tha
|
16 |
+
- ara
|
17 |
+
library_name: transformers
|
18 |
+
license: apache-2.0
|
19 |
+
license_link: https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct/blob/main/LICENSE
|
20 |
+
pipeline_tag: text-generation
|
21 |
+
tags:
|
22 |
+
- chat
|
23 |
+
- mlx
|
24 |
+
---
|
25 |
+
|
26 |
+
# TheBlueObserver/Qwen2.5-0.5B-Instruct-MLX-196c8
|
27 |
+
|
28 |
+
The Model [TheBlueObserver/Qwen2.5-0.5B-Instruct-MLX-196c8](https://huggingface.co/TheBlueObserver/Qwen2.5-0.5B-Instruct-MLX-196c8) was
|
29 |
+
converted to MLX format from [Qwen/Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct)
|
30 |
+
using mlx-lm version **0.20.2**.
|
31 |
+
|
32 |
+
## Use with mlx
|
33 |
+
|
34 |
+
```bash
|
35 |
+
pip install mlx-lm
|
36 |
+
```
|
37 |
+
|
38 |
+
```python
|
39 |
+
from mlx_lm import load, generate
|
40 |
+
|
41 |
+
model, tokenizer = load("TheBlueObserver/Qwen2.5-0.5B-Instruct-MLX-196c8")
|
42 |
+
|
43 |
+
prompt="hello"
|
44 |
+
|
45 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
46 |
+
messages = [{"role": "user", "content": prompt}]
|
47 |
+
prompt = tokenizer.apply_chat_template(
|
48 |
+
messages, tokenize=False, add_generation_prompt=True
|
49 |
+
)
|
50 |
+
|
51 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
52 |
+
```
|