lbourdois commited on
Commit
8f94d64
·
verified ·
1 Parent(s): 9c032bf

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 +51 -39
README.md CHANGED
@@ -1,39 +1,51 @@
1
- ---
2
- license: apache-2.0
3
- license_link: https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct/blob/main/LICENSE
4
- language:
5
- - en
6
- pipeline_tag: text-generation
7
- base_model: Qwen/Qwen2.5-0.5B-Instruct
8
- tags:
9
- - chat
10
- - mlx
11
- - mlx-my-repo
12
- library_name: transformers
13
- ---
14
-
15
- # ubaitur5/Qwen2.5-0.5B-Instruct-Q3-mlx
16
-
17
- The Model [ubaitur5/Qwen2.5-0.5B-Instruct-Q3-mlx](https://huggingface.co/ubaitur5/Qwen2.5-0.5B-Instruct-Q3-mlx) was converted to MLX format from [Qwen/Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct) using mlx-lm version **0.20.5**.
18
-
19
- ## Use with mlx
20
-
21
- ```bash
22
- pip install mlx-lm
23
- ```
24
-
25
- ```python
26
- from mlx_lm import load, generate
27
-
28
- model, tokenizer = load("ubaitur5/Qwen2.5-0.5B-Instruct-Q3-mlx")
29
-
30
- prompt="hello"
31
-
32
- if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
33
- messages = [{"role": "user", "content": prompt}]
34
- prompt = tokenizer.apply_chat_template(
35
- messages, tokenize=False, add_generation_prompt=True
36
- )
37
-
38
- response = generate(model, tokenizer, prompt=prompt, verbose=True)
39
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ license_link: https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct/blob/main/LICENSE
4
+ language:
5
+ - zho
6
+ - eng
7
+ - fra
8
+ - spa
9
+ - por
10
+ - deu
11
+ - ita
12
+ - rus
13
+ - jpn
14
+ - kor
15
+ - vie
16
+ - tha
17
+ - ara
18
+ pipeline_tag: text-generation
19
+ base_model: Qwen/Qwen2.5-0.5B-Instruct
20
+ tags:
21
+ - chat
22
+ - mlx
23
+ - mlx-my-repo
24
+ library_name: transformers
25
+ ---
26
+
27
+ # ubaitur5/Qwen2.5-0.5B-Instruct-Q3-mlx
28
+
29
+ The Model [ubaitur5/Qwen2.5-0.5B-Instruct-Q3-mlx](https://huggingface.co/ubaitur5/Qwen2.5-0.5B-Instruct-Q3-mlx) was converted to MLX format from [Qwen/Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct) using mlx-lm version **0.20.5**.
30
+
31
+ ## Use with mlx
32
+
33
+ ```bash
34
+ pip install mlx-lm
35
+ ```
36
+
37
+ ```python
38
+ from mlx_lm import load, generate
39
+
40
+ model, tokenizer = load("ubaitur5/Qwen2.5-0.5B-Instruct-Q3-mlx")
41
+
42
+ prompt="hello"
43
+
44
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
45
+ messages = [{"role": "user", "content": prompt}]
46
+ prompt = tokenizer.apply_chat_template(
47
+ messages, tokenize=False, add_generation_prompt=True
48
+ )
49
+
50
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
51
+ ```