Wwayu commited on
Commit
379a070
·
verified ·
1 Parent(s): c90854e

Upload README.md with huggingface_hub

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