awni commited on
Commit
98188a6
·
verified ·
1 Parent(s): 2756fb6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -1
README.md CHANGED
@@ -3,7 +3,35 @@ license: mit
3
  library_name: mlx
4
  base_model: deepseek-ai/DeepSeek-V3.2
5
  base_model_relation: finetune
 
6
  tags:
7
  - mlx
8
- pipeline_tag: text-generation
9
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  library_name: mlx
4
  base_model: deepseek-ai/DeepSeek-V3.2
5
  base_model_relation: finetune
6
+ pipeline_tag: text-generation
7
  tags:
8
  - mlx
 
9
  ---
10
+
11
+ # mlx-community/DeepSeek-V3.2-8bit
12
+
13
+ This model [mlx-community/DeepSeek-V3.2-4bit](https://huggingface.co/mlx-community/DeepSeek-V3.2-4bit) was
14
+ converted to MLX format from [deepseek-ai/DeepSeek-V3.2](https://huggingface.co/deepseek-ai/DeepSeek-V3.2)
15
+ using mlx-lm version **0.28.4**.
16
+
17
+ ## Use with mlx
18
+
19
+ ```bash
20
+ pip install mlx-lm
21
+ ```
22
+
23
+ ```python
24
+ from mlx_lm import load, generate
25
+
26
+ model, tokenizer = load("mlx-community/DeepSeek-V3.2-4bit")
27
+
28
+ prompt = "hello"
29
+
30
+ if tokenizer.chat_template is not None:
31
+ messages = [{"role": "user", "content": prompt}]
32
+ prompt = tokenizer.apply_chat_template(
33
+ messages, add_generation_prompt=True
34
+ )
35
+
36
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
37
+ ```