chaddy81 commited on
Commit
1bd73a9
·
verified ·
1 Parent(s): 976f856

Add model card

Browse files
Files changed (1) hide show
  1. README.md +65 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: mlx
5
+ tags:
6
+ - mlx
7
+ - qwen3_5
8
+ - vision-language
9
+ - quantized
10
+ - coder
11
+ base_model: chaddy81/Qwen3.6-27b-coder
12
+ pipeline_tag: image-text-to-text
13
+ ---
14
+
15
+ # chaddy81/Qwen3.6-27b-coder-4bit-mlx
16
+
17
+ This is a **4-bit** quantized [MLX](https://github.com/ml-explore/mlx) conversion of
18
+ [chaddy81/Qwen3.6-27b-coder](https://huggingface.co/chaddy81/Qwen3.6-27b-coder), for fast local inference on Apple Silicon.
19
+
20
+ ## Details
21
+
22
+ - **Base model:** [chaddy81/Qwen3.6-27b-coder](https://huggingface.co/chaddy81/Qwen3.6-27b-coder)
23
+ - **Architecture:** `Qwen3_5ForConditionalGeneration` (`qwen3_5`) — vision-language model (text + image + video)
24
+ - **Text backbone:** 64 layers, hidden 5120, 24 attention heads / 4 KV heads (GQA), vocab 248320, context length 262144 (256K)
25
+ - **Vision tower:** 27 layers, hidden 1152
26
+ - **Quantization:** 4-bit, 4.501 bits-per-weight (MLX affine), group size 64
27
+ - **Files:** 3 safetensors shards, ~14 GB
28
+ - **Converted with:** `mlx_lm` 0.31.1, source dtype bfloat16
29
+
30
+ ## Usage
31
+
32
+ ```bash
33
+ pip install mlx-lm
34
+ ```
35
+
36
+ ```python
37
+ from mlx_lm import load, generate
38
+
39
+ model, tokenizer = load("chaddy81/Qwen3.6-27b-coder-4bit-mlx")
40
+ prompt = "Write a Python function that returns the nth Fibonacci number."
41
+ messages = [{"role": "user", "content": prompt}]
42
+ text = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
43
+ print(generate(model, tokenizer, prompt=text, max_tokens=512, verbose=True))
44
+ ```
45
+
46
+ Or from the CLI:
47
+
48
+ ```bash
49
+ mlx_lm.generate --model chaddy81/Qwen3.6-27b-coder-4bit-mlx --prompt "Explain async/await in Python."
50
+ ```
51
+
52
+ ## Quantization variants
53
+
54
+ | Variant | bits-per-weight | Size | Repo |
55
+ |---|---|---|---|
56
+ | 8-bit | 8.5 | ~27 GB | [chaddy81/Qwen3.6-27b-coder-8bit-mlx](https://huggingface.co/chaddy81/Qwen3.6-27b-coder-8bit-mlx) |
57
+ | 6-bit | 6.5 | ~20 GB | [chaddy81/Qwen3.6-27b-coder-6bit-mlx](https://huggingface.co/chaddy81/Qwen3.6-27b-coder-6bit-mlx) |
58
+ | 4-bit | 4.5 | ~14 GB | [chaddy81/Qwen3.6-27b-coder-4bit-mlx](https://huggingface.co/chaddy81/Qwen3.6-27b-coder-4bit-mlx) |
59
+
60
+ ## Notes
61
+
62
+ - Conversion emitted a tokenizer regex warning referencing a Mistral discussion; this is a generic
63
+ `tokenizers` notice and does not affect the Qwen3.5 architecture or quantized weights. If you observe
64
+ unexpected tokenization, load the tokenizer with `fix_mistral_regex=True`.
65
+ - License inherited from the base model; refer to [chaddy81/Qwen3.6-27b-coder](https://huggingface.co/chaddy81/Qwen3.6-27b-coder).