Downloads · 30 days
52
23% of all-time downloads
weathermanj/Menda-3b-Optim-100
Menda-3b-Optim-100 is a text generation model from weathermanj. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Menda-3b-Optim-100 is a fine-tuned version of Qwen2.5-3B-Instruct, trained with an optimized GRPO (Guided Reinforcement from Preference Optimization) methodology for 100 steps. This model shows significantly improved…
Downloads · 30 days
52
23% of all-time downloads
All-time downloads
227
Public
Parameters
3.1B
6.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
Menda-3b-Optim-100 is a fine-tuned version of Qwen2.5-3B-Instruct, trained with an optimized GRPO (Guided Reinforcement from Preference Optimization) methodology for 100 steps. This model shows significantly improved performance on reasoning benchmarks and achieves the highest MMLU score among all Menda-3B checkpoints.
This model uses several key optimizations over the standard GRPO approach:
Menda-3b-Optim-100 has been evaluated on several standard benchmarks:
| Benchmark | Task Type | Accuracy |
|---|---|---|
| GSM8K | Mathematical Reasoning | 70.0% |
| OpenBookQA | Knowledge-based QA | 20.0% (40.0% normalized) |
| MMLU Category | Score |
|---|---|
| Overall | 70.35% |
| Humanities | 76.15% |
| Social Sciences | 76.67% |
| STEM | 61.58% |
| Other | 71.54% |
This model uses the standard Qwen2 chat template. For best results when using the model directly, format your prompts as follows:
<|im_start|>system
You are a helpful AI assistant.<|im_end|>
<|im_start|>user
Your question here<|im_end|>
<|im_start|>assistant
When using the model through the Hugging Face Transformers library, the chat template will be applied automatically when using the chat_template functionality.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "weathermanj/Menda-3b-Optim-100"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
prompt = "Explain the concept of machine learning in simple terms."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=300)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "weathermanj/Menda-3b-Optim-100"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
messages = [
{"role": "system", "content": "You are a helpful AI assistant."},
{"role": "user", "content": "Give me a short introduction to large language models."}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
The model was trained using the optimized GRPO methodology with the following configuration:
This model inherits the license of the base Qwen2.5-3B-Instruct model. Please refer to the Qwen2 license for details.