alt.freeweights.text / Xing4.0-29B-A4B-OptiQ-4bit
From: mlx-community <huggingface.co/mlx-community>Newsgroups: alt.freeweights.textSubject:

Xing4.0-29B-A4B-OptiQ-4bit

Date: 2026-11-15Commit: dfa7e26Signed: 2DC28CC7B26A283B ✓

Text generation model with 29.5B parameters. Safetensors weights, 20.6 GB in all. Published by mlx-community under Apache-2.0.

29.5B params20.6GBXing4.0-29B-A4B-OptiQ-4bitsafetensorspermissive
FactsParams29.5BSize20.6 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get mlx-community/Xing4.0-29B-A4B-OptiQ-4bit
# manifest sha256 9e0e7ddd1790… · 20.6 GB · 17 files
$ fw verify ./Xing4.0-29B-A4B-OptiQ-4bit mlx-community/Xing4.0-29B-A4B-OptiQ-4bit
From sourceHosted (signed)mlx-community/Xing4.0-29B-A4B-OptiQ-4bitLast check: 2026-11-15 05:17 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of Xing4.0-29B-A4B.

Works with

Overview

Size
20.6 GB
Weights
20.6 GB (safetensors)
Parameters
29.5B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
17, each with a sha256
Publisher
mlx-community
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Base model: XingChen-AGI/Xing4.0-29B-A4B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:17 UTCpassed

Model card

From the publisher at commit dfa7e26. Shown as plain text with links; images open at the publisher.

mlx-community/Xing4.0-29B-A4B-OptiQ-4bit#

Built with mlx-optiq, the MLX-native toolkit to quantize, fine-tune, and serve LLMs locally on Apple Silicon, no PyTorch and no cloud. Family guide · All OptiQ quants · Docs

A mixed-precision MLX quant of XingChen-AGI/Xing4.0-29B-A4B. Sensitive layers are kept at 8-bit and robust ones at 4-bit, rather than crushing everything to a uniform width.

Requires mlx-optiq#

Stock mlx-lm has no xing4_0 class — support is an unmerged pull request, so a plain install answers ValueError: Model type xing4_0 not supported. OptiQ ships a vendored, mlx-native port that registers with mlx-lm on import optiq.

pip install "mlx-optiq>=0.5.13"

Use it#

optiq serve --model mlx-community/Xing4.0-29B-A4B-OptiQ-4bit

Or with mlx-lm directly:

import optiq  # registers the xing4_0 arch with mlx-lm
from mlx_lm import load, generate

model, tok = load("mlx-community/Xing4.0-29B-A4B-OptiQ-4bit")
prompt = tok.apply_chat_template(
    [{"role": "user", "content": "Explain write-ahead logging in two sentences."}],
    add_generation_prompt=True, tokenize=False)
print(generate(model, tok, prompt=prompt, max_tokens=256))

Quantization details#

PropertyValue
Predominant precision4-bit
Layers at 8-bit303
Bits per weight5.00
Size on disk19.6 GB (from ~58 GB bf16)
Group size64

The per-layer allocation was measured on this model: a KL-divergence sensitivity pass over all 395 quantizable tensors — the 64 routed experts included — against a six-domain calibration mix, then a knapsack over the bit budget. The per-layer bit map is in optiq/metadata.json and in the quantization block of config.json.

Capability Score#

Measured on this quant, not inherited from the parent. Xing4.0 is a new family with no scored sibling, so the full six-metric suite was run.

MetricScore
MMLU (5-shot, 1000 samples)71.7%
GSM8K (1000 samples)90.1%
IFEval (strict, prompt-level)61.2%
BFCL-V3 simple74.5%
HumanEval pass@184.8%
HashHop (~8.9k context)18.0%
Capability Score66.71

Read the HashHop row in context. 18% on long-context hash retrieval sits far below the rest, and it is the architecture rather than the quantization: multi-head latent attention compresses the KV cache into a low-rank latent (kv_lora_rank: 512), which is what needle-in-a-haystack recall over thousands of random keys pays for. The model answers immediately with a well-formed but wrong hash — it is not running out of tokens and it is not being mis-scored. Reasoning, instruction-following, tool use and coding are unaffected.

The architecture#

DeepSeek-V3's attention — multi-head latent attention, 64 routed experts and one shared expert, about 4B parameters active per token — plus one thing of its own: the hyper-connection. Instead of a single residual stream running through the network, it carries four in parallel, and every block reads from and writes back to a mix of them decided per layer by a Sinkhorn-normalised routing matrix.

Notes#

  • A bf16 reference comparison was not possible on the machine that built this (the parent is 58 GB against 36 GB of RAM), so the port was verified by a line-by-line reading against the reference implementation plus generation against the quant, not by a bit-exact check.

Files

17 files · 20.6 GBWeights 20.6 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 17 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.89 KBab7e79008fe484fc7a56059247c9a05c5c18a3c59653dd59f071c51d32784feb
chat_template.jinja3.75 KB9dfe2d6edfcf86d379d5763582b52e7d618f6035c2d197b29384274653fe2a22
config.json111 KB0f5f2aeee64aabb17db279a3bde6c5d1c7b648c06482b6aeb41a745f5ead642d
configuration_xing4_0.py5.30 KB6542bbf57128e6709fa30d9cc165be4337bba7d1efc04ec707c3899d938ded4d
generation_config.json201 B0c5eb5129e80ecf2eec82930b3c47a8001c8973cb4eaa24ea111319075a9d839
model-00001-of-00004.safetensors5.21 GB2b855090ebd701eafb4bab1a8bba97000c47334665c9f67d9db1dbad43b9a592
model-00002-of-00004.safetensors5.31 GBe66a29aba807d088b797609d070f2e232ba4650eff43c2ce678a72a0c656950f
model-00003-of-00004.safetensors5.28 GB890e21d1d3ee7b8cef08c587021dfc03b66dc23e1517f63d9b80e081ed5a7bae
model-00004-of-00004.safetensors4.78 GBcb6f36fd4a6449c34e4df1182b41da666ff5b09b8d2efd6c1395b076bb68a468
model.safetensors.index.json173 KBf38d6ca567c855c686d1ab33416c7442da9b89263d1292c299a74e1e3e66dbee
modeling_xing4_0.py32.0 KB51341dbd177ebd0181d338924356f2de72848c409580c0e3080d87ee70935cef
optiq/metadata.json38.0 KB4a736393c87707c868eec6453679c5bb293c6696d7217f04638aeec495104257
optiq/sensitivity.json84.5 KB7b5a7f86e004903d5fe332c0f2f82cd5046a64b2e84d2b854795e7bd4783ee3c
tokenization_xing4_0.py8.45 KB4c18df574fad90ee3cadb25586d47b8b32c62c7239e76f246a1bfaedf177799f
tokenizer.model2.20 MBfdcbbfdf8655a2e8b8a9fe478de0e9347e857c9b043f9752d04ed660286c3ac5
tokenizer_config.json2.79 KBac3756050321398238c9490d2365e2f23ac2c6727581d30e609a6ee5cf04b2e5
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
dfa7e26282 pinned now2026-11-15 05:17 UTC17 files · 20.6 GB

Use it

$ fw get mlx-community/Xing4.0-29B-A4B-OptiQ-4bit
# manifest sha256 9e0e7ddd1790… · 20.6 GB · 17 files
$ fw verify ./Xing4.0-29B-A4B-OptiQ-4bit mlx-community/Xing4.0-29B-A4B-OptiQ-4bit
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/mlx-community/Xing4.0-29B-A4B-OptiQ-4bit.json --dir ./Xing4.0-29B-A4B-OptiQ-4bit $ python3 fw.py verify ./Xing4.0-29B-A4B-OptiQ-4bit ./mlx-community__Xing4.0-29B-A4B-OptiQ-4bit.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mlx-community/Xing4.0-29B-A4B-OptiQ-4bit --revision dfa7e26282151aa7805e08fb2d4cf52bb1dc9312 --local-dir ./Xing4.0-29B-A4B-OptiQ-4bit
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("mlx-community/Xing4.0-29B-A4B-OptiQ-4bit", revision="dfa7e26282151aa7805e08fb2d4cf52bb1dc9312") model = AutoModelForCausalLM.from_pretrained("mlx-community/Xing4.0-29B-A4B-OptiQ-4bit", revision="dfa7e26282151aa7805e08fb2d4cf52bb1dc9312", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve mlx-community/Xing4.0-29B-A4B-OptiQ-4bit --revision dfa7e26282151aa7805e08fb2d4cf52bb1dc9312

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
ab7e79008fe484fc7a56059247c9a05c5c18a3c59653dd59f071c51d32784feb
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: mlx-community <huggingface.co/mlx-community>Newsgroups: alt.freeweights.textSubject: Xing4.0-29B-A4B-OptiQ-4bitDate: 2026-11-15Commit: dfa7e26Signed: 2DC28CC7B26A283B ✓
Upstream
mlx-community/Xing4.0-29B-A4B-OptiQ-4bit
Pinned commit
dfa7e26282151aa7805e08fb2d4cf52bb1dc9312
Manifest
Xing4.0-29B-A4B-OptiQ-4bit.json · .minisig
Manifest sha256
9e0e7ddd1790caec5a56dc44433d670e346644d36b579880002e5d68a6d85fa9
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:17 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/mlx-community/Xing4.0-29B-A4B-OptiQ-4bit.json $ curl -O https://freeweights.allternit.com/manifests/mlx-community/Xing4.0-29B-A4B-OptiQ-4bit.json.minisig $ minisign -Vm Xing4.0-29B-A4B-OptiQ-4bit.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

XingChen-AGI/Xing4.0-29B-A4B · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mlx-community/Xing4.0-29B-A4B-OptiQ-4bit
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Xing4.0-29B-A4B-OptiQ-4bit.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B