lbourdois commited on
Commit
438f064
·
verified ·
1 Parent(s): ee5e720

Improve language tag

Browse files

Hi! 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.

Files changed (1) hide show
  1. README.md +52 -40
README.md CHANGED
@@ -1,40 +1,52 @@
1
- ---
2
- base_model: Qwen/Qwen2.5-0.5B-Instruct
3
- language:
4
- - en
5
- library_name: transformers
6
- license: apache-2.0
7
- license_link: https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct/blob/main/LICENSE
8
- pipeline_tag: text-generation
9
- tags:
10
- - chat
11
- - mlx
12
- ---
13
-
14
- # TheBlueObserver/Qwen2.5-0.5B-Instruct-MLX-196c8
15
-
16
- The Model [TheBlueObserver/Qwen2.5-0.5B-Instruct-MLX-196c8](https://huggingface.co/TheBlueObserver/Qwen2.5-0.5B-Instruct-MLX-196c8) was
17
- converted to MLX format from [Qwen/Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct)
18
- using mlx-lm version **0.20.2**.
19
-
20
- ## Use with mlx
21
-
22
- ```bash
23
- pip install mlx-lm
24
- ```
25
-
26
- ```python
27
- from mlx_lm import load, generate
28
-
29
- model, tokenizer = load("TheBlueObserver/Qwen2.5-0.5B-Instruct-MLX-196c8")
30
-
31
- prompt="hello"
32
-
33
- if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
34
- messages = [{"role": "user", "content": prompt}]
35
- prompt = tokenizer.apply_chat_template(
36
- messages, tokenize=False, add_generation_prompt=True
37
- )
38
-
39
- response = generate(model, tokenizer, prompt=prompt, verbose=True)
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
+ ```