AI-MO/NuminaMath-CoT
Viewer • Updated • 860k • 61.6k • 580
How to use huchukato/dolphin3.0-llama3.2-3B-4Bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir dolphin3.0-llama3.2-3B-4Bit huchukato/dolphin3.0-llama3.2-3B-4Bit
The Model mlx-community/dolphin3.0-llama3.2-3B-4Bit was converted to MLX format from cognitivecomputations/Dolphin3.0-Llama3.2-3B using mlx-lm version 0.21.1.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/dolphin3.0-llama3.2-3B-4Bit")
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)
4-bit