verbiate commited on
Commit
dd0be56
·
verified ·
1 Parent(s): e2c3aaf

Upload README.md with huggingface_hub

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