Llama-3.2-1B-gsm8k-sft-merged
Built with Llama. Educational COMS4705 Assignment 4 SFT checkpoint.
The original checkpoint is meta-llama/Llama-3.2-1B, obtained through
coms4705-hewitt/Llama-3.2-1B at revision d47e925cfb48d4b2642226d9202297be8bfe8316.
The SFT model was trained on the GSM8K main training split for 2 epochs with
LoRA rank 8, alpha 16, dropout 0.05 and learning rate 2e-4.
The RL model continues from the merged SFT model with REINFORCE for approximately
0.103 epoch, LoRA rank 16, alpha 32, dropout 0, learning rate 1e-6 and KL beta 0.1.
All training used local CUDA BF16 on an RTX 5080. No hosted training was used.
Files and dependencies
This is a complete merged SFT model and tokenizer, used as the base dependency of the RL adapter.
Base dependency: coms4705-hewitt/Llama-3.2-1B. Related checkpoints: SFT adapter, merged SFT, RL adapter.
Load
import torch
from transformers import AutoTokenizer
from transformers import AutoModelForCausalLM
repo_id = "ALmcEX/Llama-3.2-1B-gsm8k-sft-merged"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(
repo_id, dtype=torch.bfloat16, device_map="cuda:0"
)
For older Transformers versions, use torch_dtype=torch.bfloat16 in place of dtype.
The recorded environment used Transformers 5.24.1, PEFT 0.22.0 and PyTorch 2.11.0+cu128.
Evaluation and limitations
On the first 200 questions of the GSM8K main test split, the SFT model
scored 47/200 (23.5%) using greedy decoding and a 300-new-token cap.
The SFT and RL models respectively scored 47/200 and 48/200 under identical settings.
This one-question difference is not evidence of a reliable reasoning improvement;
the only newly correct RL answer still had an erroneous explanation.
This is an educational math checkpoint, not an instruction-tuned general assistant.
The base model remains a pretrained Llama language model.
The evaluation prefix was:
When you are ready to give your solution, format as follows.
#### <ANSWER>.
Now solve the following problem:
License and attribution
Llama 3.2 Community License. See LICENSE.txt, NOTICE and USE_POLICY.md.
Llama 3.2 is licensed under the Llama 3.2 Community License,
Copyright © Meta Platforms, Inc. All Rights Reserved.