IlyaGusev/saiga_scored
Viewer • Updated • 41.6k • 675 • 23
How to use alexgusevski/saiga_gemma3_12b-mlx-2Bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir saiga_gemma3_12b-mlx-2Bit alexgusevski/saiga_gemma3_12b-mlx-2Bit
The Model alexgusevski/saiga_gemma3_12b-mlx-2Bit was converted to MLX format from IlyaGusev/saiga_gemma3_12b using mlx-lm version 0.29.1.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("alexgusevski/saiga_gemma3_12b-mlx-2Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
2-bit
Base model
google/gemma-3-12b-pt