melt-adzuki commited on
Commit
3b86e1d
·
verified ·
1 Parent(s): 94bd95b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +39 -0
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: text-generation
4
+ language:
5
+ - ja
6
+ tags:
7
+ - japanese
8
+ - qwen2
9
+ - mlx
10
+ - mlx-my-repo
11
+ inference: false
12
+ base_model: cyberagent/DeepSeek-R1-Distill-Qwen-14B-Japanese
13
+ ---
14
+
15
+ # melt-adzuki/DeepSeek-R1-Distill-Qwen-14B-Japanese-Q8-mlx
16
+
17
+ The Model [melt-adzuki/DeepSeek-R1-Distill-Qwen-14B-Japanese-Q8-mlx](https://huggingface.co/melt-adzuki/DeepSeek-R1-Distill-Qwen-14B-Japanese-Q8-mlx) was converted to MLX format from [cyberagent/DeepSeek-R1-Distill-Qwen-14B-Japanese](https://huggingface.co/cyberagent/DeepSeek-R1-Distill-Qwen-14B-Japanese) 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("melt-adzuki/DeepSeek-R1-Distill-Qwen-14B-Japanese-Q8-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
+ ```