mlx-community/Magistral-Small-2506-bf16

This model mlx-community/Magistral-Small-2506-bf16 was converted to MLX format from mistralai/Magistral-Small-2506 using mlx-lm version 0.25.2.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Magistral-Small-2506-bf16")

prompt = "hello"

if tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)
Downloads last month
366
Safetensors
Model size
23.6B params
Tensor type
BF16
·
Inference Providers NEW
Input a message to start chatting with mlx-community/Magistral-Small-2506-bf16.

Model tree for mlx-community/Magistral-Small-2506-bf16