Creative Coding
Collection
Two heads are better than one
•
3 items
•
Updated
This model Mistral-2x22B-MOE-Power-Codestral-Ultimate-39B-q6-mlx was converted to MLX format from DavidAU/Mistral-2x22B-MOE-Power-Codestral-Ultimate-39B using mlx-lm version 0.25.3.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("Mistral-2x22B-MOE-Power-Codestral-Ultimate-39B-q6-mlx")
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)