pipenetwork/LongCat-2.0-4bit
0359
pipenetwork/LongCat-2.0-4bit
4-bit MLX quantization (group-size 64, router classifiers @8-bit, MTP dropped) of meituan-longcat/LongCat-2.0 — a 1.6T / ~48B-active MoE. Converted from the FP8 source with mlx-lm.
Requires mlx-lm PR #1464
pip install git+https://github.com/ml-explore/mlx-lm.git@refs/pull/1464/headfrom mlx_lm import load, generate
model, tok = load("pipenetwork/LongCat-2.0-4bit")
p = tok.apply_chat_template([{"role":"user","content":"Who is Albert Einstein?"}], add_generation_prompt=True)
print(generate(model, tok, prompt=p, max_tokens=512, verbose=True))