Felladrin commited on
Commit
fa3b80c
·
verified ·
1 Parent(s): 3addcd5

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
+ license: apache-2.0
3
+ license_link: https://huggingface.co/huihui-ai/Qwen2.5-Coder-32B-Instruct-abliterate/blob/main/LICENSE
4
+ language:
5
+ - en
6
+ base_model: huihui-ai/Qwen2.5-Coder-32B-Instruct-abliterated
7
+ pipeline_tag: text-generation
8
+ library_name: transformers
9
+ tags:
10
+ - code
11
+ - codeqwen
12
+ - chat
13
+ - qwen
14
+ - qwen-coder
15
+ - abliterated
16
+ - uncensored
17
+ - mlx
18
+ - mlx-my-repo
19
+ ---
20
+
21
+ # Felladrin/Qwen2.5-Coder-32B-Instruct-abliterated-Q4-mlx
22
+
23
+ The Model [Felladrin/Qwen2.5-Coder-32B-Instruct-abliterated-Q4-mlx](https://huggingface.co/Felladrin/Qwen2.5-Coder-32B-Instruct-abliterated-Q4-mlx) was converted to MLX format from [huihui-ai/Qwen2.5-Coder-32B-Instruct-abliterated](https://huggingface.co/huihui-ai/Qwen2.5-Coder-32B-Instruct-abliterated) using mlx-lm version **0.20.5**.
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("Felladrin/Qwen2.5-Coder-32B-Instruct-abliterated-Q4-mlx")
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
+ ```