saviochow commited on
Commit
cb3126b
·
verified ·
1 Parent(s): b5b0740

Upload README.md with huggingface_hub

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