scaryrawr commited on
Commit
7d52107
·
verified ·
1 Parent(s): a0e96ed

Upload README.md with huggingface_hub

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