garrison commited on
Commit
34d79d3
·
verified ·
1 Parent(s): 9560aa4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ thumbnail: https://cdn-uploads.huggingface.co/production/uploads/6625f4a8a8d1362ebcc3851a/iyzgR89q50pp1T8HeeP15.png
4
+ base_model: ArliAI/GLM-4.5-Air-Derestricted
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - abliterated
8
+ - derestricted
9
+ - glm-4.5-air
10
+ - unlimited
11
+ - uncensored
12
+ - mlx
13
+ - mlx-my-repo
14
+ ---
15
+
16
+ # garrison/GLM-4.5-Air-Derestricted-mlx-2Bit
17
+
18
+ The Model [garrison/GLM-4.5-Air-Derestricted-mlx-2Bit](https://huggingface.co/garrison/GLM-4.5-Air-Derestricted-mlx-2Bit) was converted to MLX format from [ArliAI/GLM-4.5-Air-Derestricted](https://huggingface.co/ArliAI/GLM-4.5-Air-Derestricted) using mlx-lm version **0.28.3**.
19
+
20
+ ## Use with mlx
21
+
22
+ ```bash
23
+ pip install mlx-lm
24
+ ```
25
+
26
+ ```python
27
+ from mlx_lm import load, generate
28
+
29
+ model, tokenizer = load("garrison/GLM-4.5-Air-Derestricted-mlx-2Bit")
30
+
31
+ prompt="hello"
32
+
33
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
34
+ messages = [{"role": "user", "content": prompt}]
35
+ prompt = tokenizer.apply_chat_template(
36
+ messages, tokenize=False, add_generation_prompt=True
37
+ )
38
+
39
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
40
+ ```