Text Generation
MLX
Safetensors
English
llama
medical
mlx-my-repo
conversational
4-bit precision
cnfusion commited on
Commit
97f1b7b
·
verified ·
1 Parent(s): 3b15f11

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - FreedomIntelligence/medical-o1-reasoning-SFT
5
+ - FreedomIntelligence/medical-o1-verifiable-problem
6
+ language:
7
+ - en
8
+ base_model: FreedomIntelligence/HuatuoGPT-o1-8B
9
+ pipeline_tag: text-generation
10
+ tags:
11
+ - medical
12
+ - mlx
13
+ - mlx-my-repo
14
+ ---
15
+
16
+ # cnfusion/HuatuoGPT-o1-8B-Q4-mlx
17
+
18
+ The Model [cnfusion/HuatuoGPT-o1-8B-Q4-mlx](https://huggingface.co/cnfusion/HuatuoGPT-o1-8B-Q4-mlx) was converted to MLX format from [FreedomIntelligence/HuatuoGPT-o1-8B](https://huggingface.co/FreedomIntelligence/HuatuoGPT-o1-8B) using mlx-lm version **0.20.5**.
19
+
20
+ ## Use with mlx
21
+
22
+ ```bash
23
+ pip install mlx-lm
24
+ ```
25
+
26
+ ```python
27
+ from mlx_lm import load, generate
28
+
29
+ model, tokenizer = load("cnfusion/HuatuoGPT-o1-8B-Q4-mlx")
30
+
31
+ prompt="hello"
32
+
33
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
34
+ messages = [{"role": "user", "content": prompt}]
35
+ prompt = tokenizer.apply_chat_template(
36
+ messages, tokenize=False, add_generation_prompt=True
37
+ )
38
+
39
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
40
+ ```