Downloads · 30 days
151
4% of all-time downloads
lemuralabs/DeepSeek-V4-Flash-TQ-Q4.5-MLX
DeepSeek-V4-Flash-TQ-Q4.5-MLX is a text generation model from lemuralabs. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as mit.
<p align="center" <img src="logo.png" alt="Lemura Labs" width="110"/ </p
Downloads · 30 days
151
4% of all-time downloads
All-time downloads
4K
Public
Parameters
46.3B
164 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors164 GB · 100%
How the weights are stored.
U3246.1B · 100%
From the Hugging Face model README
lemuralabs/DeepSeek-V4-Flash-TQ-Q4.5-MLX is an Apple-Silicon MLX TurboQuant/JANGTQ quantization of deepseek-ai/DeepSeek-V4-Flash.
No fine-tuning, distillation, or retraining was applied. The official mixed FP4/FP8 source weights were converted locally, the MTP head was dropped because it is not used for normal decode, and router/mHC/control tensors were preserved rather than aggressively quantized.
| Property | Value |
|---|---|
| Base model | deepseek-ai/DeepSeek-V4-Flash |
| Architecture | DeepSeek-V4 Flash MoE, 284B total / 13B active, 1M context |
| Local profile | JANGTQ-Q4.5 |
| Bundle size | 164.25 GB |
| Layout | Pre-stacked MLX switch_mlp layout |
| MTP head | Dropped |
| Validation | Safetensors header/index validation, metadata validation |
This is a JANGTQ/TurboQuant bundle and requires jangtq_runtime.safetensors from this repository. The sidecar stores the deterministic codebooks and Hadamard rotation signs used to decode the .tq_packed expert weights. If it is missing, re-download the full repository or fetch that file explicitly:
hf download lemuralabs/DeepSeek-V4-Flash-TQ-Q4.5-MLX jangtq_runtime.safetensors --local-dir <your-model-dir>
| Tensor class | Codec | Bits / handling |
|---|---|---|
| Routed experts | TurboQuant MXTQ | 113 routed layer/projection groups at 4-bit MXTQ and 16 at 8-bit MXTQ |
| Routed effective bits | MXTQ | 4.4961 bits |
| Attention, shared experts, compressor, indexer, embed, lm head | MLX affine | 8-bit, group size 32 |
| Norms, router, mHC, sinks, integer routing tables | passthrough | source precision preserved |
The fractional target is implemented as a power-of-two lane mix because the current JANGTQ vectorized packer is stable on 2/4/8-bit lanes for DeepSeek-V4 expert dimensions.
Install the JANG loader/runtime and MLX LM:
pip install mlx-lm jang-tools
Example:
from jang_tools.load_jangtq import load_jangtq_model
from mlx_lm import generate
model, tokenizer = load_jangtq_model("lemuralabs/DeepSeek-V4-Flash-TQ-Q4.5-MLX")
prompt = "Write a short note about MLX quantization."
text = generate(model, tokenizer, prompt=prompt, verbose=True)
print(text)
model-*.safetensors: pre-stacked JANGTQ/MLX shardsmodel.safetensors.index.json: shard indexjangtq_runtime.safetensors: required TurboQuant runtime sidecarconfig.json, jang_config.json: MLX/JANGTQ metadataencoding/: upstream DeepSeek-V4 prompt encoding referenceThis upload follows the same broad model-card shape as the public OsaurusAI/JANGQ DeepSeek-V4-Flash JANGTQ uploads: a sidecar warning, an explicit recipe table, and minimal reproducible loading instructions.
MIT, following the upstream DeepSeek-V4-Flash release.