Downloads · 30 days
20
8% of all-time downloads
GusLovesMath/LlaMATH-3-8B-Instruct-4bit
LlaMATH-3-8B-Instruct-4bit is a text generation model from GusLovesMath. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as other.
This model was converted to MLX format from mlx-community/Meta-Llama-3-8B-Instruct-4bit using mlx-lm version 0.12.1. Refer to the original model card for more details on the model.
Downloads · 30 days
20
8% of all-time downloads
All-time downloads
253
Public
Parameters
8B
15.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.3 GB · 100%
How the weights are stored.
U327.5B · 93%
From the Hugging Face model README
This model was converted to MLX format from mlx-community/Meta-Llama-3-8B-Instruct-4bit using mlx-lm version 0.12.1.
Refer to the original model card for more details on the model.
Note: This model was trained locally on an M2 Pro chip with 16GB of RAM, 16 GPUs, and CPUs.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("GusLovesMath/LlaMATH-3-8B-Instruct-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Try the following prompt.
# Our Prompt
prompt = """
Q A new program had 60 downloads in the first month.
The number of downloads in the second month was three
times as many as the downloads in the first month,
but then reduced by 30% in the third month. How many
downloads did the program have total over the three months?
"""
print(f"Our Test Prompt")
print(f"Q {prompt}")
# Testing model with prompt
response = generate(
model,
tokenizer,
prompt=prompt,
max_tokens=132,
temp=0.0,
verbose=False
)
# Printing models repsonse
print(f'LlaMATH Response')
print(response)
A: The number of downloads in the first month was 60.
The number of downloads in the second month was three times as many as the downloads in the first month, so it was 60 * 3 = <<60*3=180>>180.
The number of downloads in the third month was 30% less than the number of downloads in the second month, so it was 180 * 0.7 = <<180*0.7=126>>126.
The total number of downloads over the three months was 60 + 180 + 126 = <<60+180+126=366>>366.
#### 366