Run this model with HF Jobs

Run Siddharth466/tinyllama-gsm8k-math-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Siddharth466/tinyllama-gsm8k-math-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Siddharth466/tinyllama-gsm8k-math-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Siddharth466/tinyllama-gsm8k-math-lora. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Siddharth466/tinyllama-gsm8k-math-lora. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

TinyLlama GSM8K Math Fine-Tuned (QLoRA)

This model is a LoRA fine-tuned adapter built on top of:

Base Model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
Dataset: GSM8K (Grade School Math 8K)
Fine-tuning Method: QLoRA (4-bit quantization + LoRA)

It improves step-by-step mathematical reasoning and structured problem-solving.


Training Details

  • Base Model: TinyLlama-1.1B-Chat
  • Method: QLoRA (4-bit NF4 quantization)
  • LoRA Rank (r): 16
  • LoRA Alpha: 32
  • LoRA Dropout: 0.05
  • Epochs: 3
  • Learning Rate: 2e-4
  • Optimizer: paged_adamw_8bit
  • Scheduler: Cosine
  • Max Sequence Length: 512
  • Dataset: GSM8K (train split)

Comparision

Evaluating Base TinyLlama...

100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 165/165 [12:35<00:00, 4.58s/it] Base TinyLlama Accuracy: 1.29%

Evaluating Fine-Tuned (Merged)...

100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 165/165 [12:40<00:00, 4.61s/it] Fine-Tuned (Merged) Accuracy: 1.90%

Training was performed using:

  • Transformers
  • PEFT
  • TRL SFTTrainer
  • BitsAndBytes

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Siddharth466/tinyllama-gsm8k-math-lora

Adapter
(1,631)
this model