LongCat-2.0-4bit / README.md
pipenetwork's picture
Add files using upload-large-folder tool
b4eb211 verified
|
Raw
History Blame Contribute Delete
816 Bytes
metadata
language: en
library_name: mlx
pipeline_tag: text-generation
tags:
  - mlx
  - longcat
license: mit
base_model: meituan-longcat/LongCat-2.0-FP8

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/head
from 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))