Improve language tag

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