--- 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](https://huggingface.co/meituan-longcat/LongCat-2.0-FP8) — a 1.6T / ~48B-active MoE. Converted from the FP8 source with mlx-lm. ## Requires mlx-lm PR #1464 ```bash pip install git+https://github.com/ml-explore/mlx-lm.git@refs/pull/1464/head ``` ```python 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)) ```