Downloads · 30 days
13
12% of all-time downloads
Bbson/gemma-3-4B-T1-it-MLX-4bit
gemma-3-4B-T1-it-MLX-4bit is a text generation model from Bbson. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as gemma.
本模型是 Twinkle AI gemma-3-4B-T1-it (以 google/gemma-3-4b-pt 為底、聚焦繁體中文與台灣人文社會脈絡的指令微調)的 MLX 4-bit 量化版,透過 mlx-lm 轉換,供 Apple Silicon 裝置(iPhone / iPad / Mac)端側推論使用。原模型支援繁體中文與英文,涵蓋法律、教育、對話等台灣情境應用。
Downloads · 30 days
13
12% of all-time downloads
All-time downloads
113
Public
Parameters
4.6B
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.6 GB · 98%
How the weights are stored.
U324.6B · 100%
From the Hugging Face model README
本模型是 Twinkle AI gemma-3-4B-T1-it
(以 google/gemma-3-4b-pt 為底、聚焦繁體中文與台灣人文社會脈絡的指令微調)的
MLX 4-bit 量化版,透過 mlx-lm 轉換,供 Apple Silicon
裝置(iPhone / iPad / Mac)端側推論使用。原模型支援繁體中文與英文,涵蓋法律、教育、對話等台灣情境應用。
from mlx_lm import load, generate
model, tokenizer = load("Bbson/gemma-3-4B-T1-it-MLX-4bit")
prompt = "請用三句話介紹台灣夜市文化,並推薦三樣必吃小吃。"
# system prompt 為選用(原模型無強制慣例)。建議台灣情境定調:
# 你是台灣的 AI 助理,請一律使用繁體中文與台灣用語回答。
# 官方建議 sampling:temperature 0.6, top_p 0.95
print(generate(model, tokenizer, prompt=prompt, max_tokens=256))
| 項目 | 值 |
|---|---|
| 來源 | twinkle-ai/gemma-3-4B-T1-it(官方權重) |
| 方法 | mlx_lm.convert -q --q-bits 4 --q-group-size 64 |
| 位元 | 4-bit |
| 約權重大小 | ~2.5 GB(待實測回填) |
用固定繁中 prompt 集(Little Star docs/benchmark/zh-tw-prompt-set.md)與 GGUF Q4_K_M 版對照,
繁體用字與台灣語境品質 [達標 / 待回填實測]。
| 裝置 | 載入時間 | TTFT | decode t/s | 峰值記憶體 |
|---|---|---|---|---|
| iPhone 17 Pro | 待回填 | 待回填 | 待回填 | 待回填 |
沿用 Gemma 授權條款,並遵循 Twinkle AI 原模型授權。使用前請閱讀 Gemma Terms of Use。
gemma-3-4B-T1-it)