shawon commited on
Commit
9d45927
·
verified ·
1 Parent(s): e8289b7

Upload README.md with huggingface_hub

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