Wwayu commited on
Commit
7ffa519
·
verified ·
1 Parent(s): 5464fd6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +50 -0
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: transformers
5
+ tags:
6
+ - glm
7
+ - MOE
8
+ - pruning
9
+ - compression
10
+ - mlx
11
+ - mlx-my-repo
12
+ license: mit
13
+ name: cerebras/GLM-4.6-REAP-218B-A32B-FP8
14
+ description: 'This model was obtained by uniformly pruning 40% of experts in GLM-4.6-FP8
15
+ using the REAP method.
16
+
17
+ '
18
+ readme: 'https://huggingface.co/cerebras/GLM-4.6-REAP-218B-A32B-FP8/main/README.md
19
+
20
+ '
21
+ license_link: https://huggingface.co/zai-org/GLM-4.6-FP8/blob/main/LICENSE
22
+ pipeline_tag: text-generation
23
+ base_model: cerebras/GLM-4.6-REAP-218B-A32B
24
+ ---
25
+
26
+ # Wwayu/GLM-4.6-REAP-218B-A32B-mlx-3Bit
27
+
28
+ The Model [Wwayu/GLM-4.6-REAP-218B-A32B-mlx-3Bit](https://huggingface.co/Wwayu/GLM-4.6-REAP-218B-A32B-mlx-3Bit) was converted to MLX format from [cerebras/GLM-4.6-REAP-218B-A32B](https://huggingface.co/cerebras/GLM-4.6-REAP-218B-A32B) using mlx-lm version **0.26.4**.
29
+
30
+ ## Use with mlx
31
+
32
+ ```bash
33
+ pip install mlx-lm
34
+ ```
35
+
36
+ ```python
37
+ from mlx_lm import load, generate
38
+
39
+ model, tokenizer = load("Wwayu/GLM-4.6-REAP-218B-A32B-mlx-3Bit")
40
+
41
+ prompt="hello"
42
+
43
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
44
+ messages = [{"role": "user", "content": prompt}]
45
+ prompt = tokenizer.apply_chat_template(
46
+ messages, tokenize=False, add_generation_prompt=True
47
+ )
48
+
49
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
50
+ ```