Run this model with HF Jobs

Run j-raghavan/s1-gemma3-1b-decision 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 to fine-tune https://huggingface.co/j-raghavan/s1-gemma3-1b-decision. 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/j-raghavan/s1-gemma3-1b-decision 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.

s1-gemma3-1b-decision

This is a LoRA adapter that turns google/gemma-3-1b-it into a fast typed-decision model. It reads a decision β€” a choice, a score, or a yes/no β€” straight from the option-letter logits in a single forward pass, with no text generated. It is the 1B on-device student in my s1-embedded project.

Where it comes from

I built the original s1 decision model as a LoRA fine-tune of a Gemma 26B-A4B teacher: calibrated and accurate, but far too big for a phone or a laptop. For this student I kept the teacher untouched and reused its soft targets β€” about 100k decision rows that the 26B model labelled with calibrated probability distributions over the answer options, published as j-raghavan/s1-decision-data β€” and distilled them into a 1B dense, text-only decoder roughly 26Γ— smaller than the teacher.

What it does

Given a question and a short list of options, it returns a probability distribution over those options, read from the logits of the option letters (A, B, C, …) in one forward pass for questions with up to 26 options. The scoring, per-task calibration and the /v1/decisions serving surface are carried over unchanged from the parent project; only the model behind them shrank.

How I trained it

  • Base: google/gemma-3-1b-it
  • Method: LoRA β€” rank 64, alpha 128, dropout 0.05 β€” on the q/k/v/o/gate/up/down projections
  • Objective: soft-target distillation against the 26B teacher's option distributions (decision_loss in the repo)
  • Data: j-raghavan/s1-decision-data, ~100k rows
  • Optimiser: AdamW, lr 1e-4, batch 16, grad-accum 2, gradient checkpointing on
  • This checkpoint: step 600, chosen on held-out dev sets by the same non-inferiority rule the parent project uses (best eligible snapshot: no custom-usefulness regression, JevBench coverage β‰₯ 0.98)

Results

Held-out test, scored with the same scorer and per-task calibration as the parent project β€” JevBench (1,700) and my custom structured-decision set (1,200):

JevBench custom decisions
untuned gemma-3-1b-it 0.375 0.428
this adapter 0.507 0.630

Distillation lifts structured-decision usefulness by +20 points and carries JevBench from 0.375 to 0.507, clearing the 0.492 baseline I set for this project. The 26B teacher still scores about 0.81 on JevBench, so this is a tiny student that beats the baseline β€” not one that matches the teacher. It reached this at roughly a third of an epoch of training.

How to use it

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base = "google/gemma-3-1b-it"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base)
model = PeftModel.from_pretrained(model, "j-raghavan/s1-gemma3-1b-decision")

The option-letter-logit readout (Readout, option_log_probs) and the /v1/decisions server live in the s1-embedded repo β€” load this adapter on the base model and point that machinery at it.

Relationship to s1

Licence

Apache 2.0, matching the base model and the parent project.

Downloads last month
20
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for j-raghavan/s1-gemma3-1b-decision

Adapter
(235)
this model

Dataset used to train j-raghavan/s1-gemma3-1b-decision