cnfusion commited on
Commit
5452571
·
verified ·
1 Parent(s): 29018fd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: deepseek-ai/DeepSeek-Prover-V2-7B
3
+ tags:
4
+ - mlx
5
+ ---
6
+
7
+ # cnfusion/DeepSeek-Prover-V2-7B-mlx-8Bit
8
+
9
+ The Model [cnfusion/DeepSeek-Prover-V2-7B-mlx-8Bit](https://huggingface.co/cnfusion/DeepSeek-Prover-V2-7B-mlx-8Bit) was converted to MLX format from [deepseek-ai/DeepSeek-Prover-V2-7B](https://huggingface.co/deepseek-ai/DeepSeek-Prover-V2-7B) using mlx-lm version **0.22.3**.
10
+
11
+ ## Use with mlx
12
+
13
+ ```bash
14
+ pip install mlx-lm
15
+ ```
16
+
17
+ ```python
18
+ from mlx_lm import load, generate
19
+
20
+ model, tokenizer = load("cnfusion/DeepSeek-Prover-V2-7B-mlx-8Bit")
21
+
22
+ prompt="hello"
23
+
24
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
25
+ messages = [{"role": "user", "content": prompt}]
26
+ prompt = tokenizer.apply_chat_template(
27
+ messages, tokenize=False, add_generation_prompt=True
28
+ )
29
+
30
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
31
+ ```