Dedicated Endpoints

Run this model inference on single tenant GPU with unmatched speed and reliability at scale.

Learn more
Container

Run this model inference with full control and performance in your environment.

Learn more

Get help setting up a custom Dedicated Endpoints.

Talk with our engineer to get a quote for reserved GPU instances with discounts.

README

License: apache-2.0

Model Description

This model is preference-tuned using IPO on pairwise chosen/rejected completions for Countdown problems. Given a target number and a set of allowed numbers, the model produces chain-of-thought reasoning inside <think> tags and a final answer inside <answer> tags.

Training Details

HyperparameterValue
Base modelba144220/cs224r-default-project-sft (SFT-tuned Qwen2.5-0.5B)
Datasetasingh15/countdown_tasks_3to4-dpo
Loss typeIPO
Beta0.1
Epochs1
Learning rate5e-6
LR scheduleCosine with 5% warmup
Batch size64 (gradient accumulation = 16)
Weight decay0.01
Precisionbfloat16
Gradient checkpointingEnabled
Hardware1x NVIDIA H100 (Modal)
Max prompt length512
Max response length1024

Evaluation

Evaluated on asingh15/countdown_tasks_3to4 test split (40 prompts) using vLLM with temperature 0.6, top-k 20, top-p 0.95, sampling K=16 responses per prompt.

MetricSFT BaselineIPO (this model)
Average Score0.36600.4080
Pass@10.300.375
Pass@160.75 (30/40)0.75 (30/40)
Correct (score=1.0)244/800287/800

Usage

python

from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ba144220/cs224r-default-project-ipo")
tokenizer = AutoTokenizer.from_pretrained("ba144220/cs224r-default-project-ipo")
messages = [{"role": "user", "content": "Using the numbers [3, 4, 6, 8], create an equation that equals 24."}]
input_text = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024, temperature=0.6, top_k=20, top_p=0.95, do_sample=True)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Limitations

  • Trained and evaluated only on the Countdown arithmetic task; not intended for general-purpose use.
  • Performance degrades on harder problems with more numbers or larger targets.
  • The 0.5B parameter size limits reasoning capacity compared to larger models.

Authors

Yuchi Hsu (yuchihsu@stanford.edu) and Ryan He (ryanhe@stanford.edu), Stanford CS224R Spring 2026.

Model provider

ba144220

Model tree

Base

ba144220/cs224r-default-project-sft

Fine-tuned

this model

Modalities

Input

Text

Output

Text

Pricing

Dedicated Endpoints

View details

Supported Functionality

Model APIs

Dedicated Endpoints

Container

More information

Explore FriendliAI today