How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="finding1/LongCat-Flash-Chat-MLX-5.5bpw", trust_remote_code=True)
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("finding1/LongCat-Flash-Chat-MLX-5.5bpw", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("finding1/LongCat-Flash-Chat-MLX-5.5bpw", trust_remote_code=True, device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

This model finding1/LongCat-Flash-Chat-MLX-5.5bpw was converted to MLX format from meituan-longcat/LongCat-Flash-Chat using mlx-lm version 0.27.1 by running mlx_lm.convert --quantize --q-bits 5 --mlx-path MLX-5.5bpw --hf-path meituan-longcat/LongCat-Flash-Chat until it crashed with a KeyError; adding "model_type": "longcat_flash", to the downloaded config.json, then running the command again.

Downloads last month
27
Safetensors
Model size
561B params
Tensor type
U32
BF16
F32
MLX
Hardware compatibility
Log In to add your hardware

5-bit

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

Model tree for finding1/LongCat-Flash-Chat-MLX-5.5bpw

Quantized
(3)
this model