Downloads · 30 days
14
11% of all-time downloads
soichisumi/harrier-27b-mlx-4bit
harrier-27b-mlx-4bit is a machine learning model from soichisumi. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
microsoft/harrier-oss-v1-27b の MLX 変換 + affine 4bit 量子化 (groupsize=64)。gemma3text アーキ、last-token pool + L2 normalize (dense head なし)。14 GB。
Downloads · 30 days
14
11% of all-time downloads
All-time downloads
133
Public
Repo size
15.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
microsoft/harrier-oss-v1-27b の MLX 変換 + affine 4bit 量子化 (group_size=64)。gemma3_text アーキ、last-token pool + L2 normalize (dense head なし)。14 GB。
transformers.AutoModel + 手動 last-token pool + L2 normalize で HF bf16 reference と比較した結果:
| Sample | cosine vs HF bf16 |
|---|---|
| English short text | 0.17 ← broken |
| Japanese sentence | 0.57 ← poor |
| Code snippet | 0.96 ← border |
27B モデルは 4bit で量子化崖に当たり、weights は読み込めて数値的には valid な出力を出すが、embedding 方向が大半の入力で崩壊している。production embedding 用途では使用不可。
soichisumi/harrier-0.6b-mlx-mxfp8 (600 MB, qwen3, cosine 0.992)--q-mode affine --q-bits 8 --q-group-size 64 で自前変換 (~28 GB) — 未アップロードpython -m mlx_embeddings.convert \
--hf-path microsoft/harrier-oss-v1-27b \
--mlx-path . \
--quantize --q-mode affine --q-bits 4 --q-group-size 64
mlx-embeddings 0.1.0 は gemma3_text の last-token pool + dense なし構成を直接サポートしないため、ロード時に Model class の差し替え (MODEL_REMAPPING) が必要。