How to use from
MLX LM
Generate or start a chat session
# Install MLX LM
uv tool install mlx-lm
# Interactive chat REPL
mlx_lm.chat --model "pipenetwork/LongCat-2.0-4bit"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "pipenetwork/LongCat-2.0-4bit"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "pipenetwork/LongCat-2.0-4bit",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
Quick Links

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))
Downloads last month
345
Safetensors
Model size
1.6T params
Tensor type
U32
·
BF16
·
F32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for pipenetwork/LongCat-2.0-4bit

Quantized
(3)
this model