Fmuaddib commited on
Commit
bd70d73
·
verified ·
1 Parent(s): cc524a7

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +37 -0
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gpl-3.0
3
+ datasets:
4
+ - Orion-zhen/meissa-unalignments
5
+ language:
6
+ - zh
7
+ - en
8
+ base_model: Orion-zhen/Qwen2.5-14B-Instruct-Uncensored
9
+ tags:
10
+ - mlx
11
+ ---
12
+
13
+ # Fmuaddib/Qwen2.5-14B-Instruct-Uncensored-mlx-8Bit
14
+
15
+ The Model [Fmuaddib/Qwen2.5-14B-Instruct-Uncensored-mlx-8Bit](https://huggingface.co/Fmuaddib/Qwen2.5-14B-Instruct-Uncensored-mlx-8Bit) was converted to MLX format from [Orion-zhen/Qwen2.5-14B-Instruct-Uncensored](https://huggingface.co/Orion-zhen/Qwen2.5-14B-Instruct-Uncensored) using mlx-lm version **0.22.1**.
16
+
17
+ ## Use with mlx
18
+
19
+ ```bash
20
+ pip install mlx-lm
21
+ ```
22
+
23
+ ```python
24
+ from mlx_lm import load, generate
25
+
26
+ model, tokenizer = load("Fmuaddib/Qwen2.5-14B-Instruct-Uncensored-mlx-8Bit")
27
+
28
+ prompt="hello"
29
+
30
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
31
+ messages = [{"role": "user", "content": prompt}]
32
+ prompt = tokenizer.apply_chat_template(
33
+ messages, tokenize=False, add_generation_prompt=True
34
+ )
35
+
36
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
37
+ ```