Fmuaddib commited on
Commit
66d05a3
·
verified ·
1 Parent(s): 8cfc05d

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
+ quantized_by: bartowski
3
+ pipeline_tag: text-generation
4
+ license: apache-2.0
5
+ base_model: lmstudio-community/Qwen2.5-14B-Instruct-MLX-8bit
6
+ license_link: https://huggingface.co/Qwen/Qwen2.5-14B-Instruct/blob/main/LICENSE
7
+ language:
8
+ - en
9
+ tags:
10
+ - chat
11
+ - mlx
12
+ - mlx-my-repo
13
+ library_name: mlx
14
+ ---
15
+
16
+ # Fmuaddib/Qwen2.5-14B-Instruct-MLX-8bit-mlx-8Bit
17
+
18
+ The Model [Fmuaddib/Qwen2.5-14B-Instruct-MLX-8bit-mlx-8Bit](https://huggingface.co/Fmuaddib/Qwen2.5-14B-Instruct-MLX-8bit-mlx-8Bit) was converted to MLX format from [lmstudio-community/Qwen2.5-14B-Instruct-MLX-8bit](https://huggingface.co/lmstudio-community/Qwen2.5-14B-Instruct-MLX-8bit) using mlx-lm version **0.22.1**.
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("Fmuaddib/Qwen2.5-14B-Instruct-MLX-8bit-mlx-8Bit")
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
+ ```