Phi-4-mini-instruct-SFT-WebShop
A deliberately early supervised fine-tuning (SFT) checkpoint: the starting point for reinforcement learning (RL) in our study, not a fully trained SFT model.
microsoft/Phi-4-mini-instruct fine-tuned for WebShop on our SFT data ws_sft_div233 for 30 optimizer steps of a 300-step SFT schedule. Training was stopped early on purpose: our RL experiments start from a policy whose validation success rate lies in a band fixed in advance, 20-30%, instead of from a saturated one. This checkpoint's validation success rate is 28.87% (mean over sampling seeds 0, 1, 2).
At a glance
- Training length: 30 optimizer steps = 0.20 epoch of 9614 rows at batch 64; the schedule has 2 epochs = 300 steps.
- Starting success rate (validation): 28.87% = mean of 3 sampling seeds (seed 0: 27.40%, seed 1: 30.10%, seed 2: 29.10%) on WebShop development goals 500-1499 (1000 goals; the test goals 0-499 are never used), 1000 items per seed.
- Seeds sampled: seed 0 for every saved checkpoint of the scan (7 checkpoints); seeds 1 and 2 for this checkpoint only (3 seeds for this checkpoint).
- SFT training seed: 1.
How this checkpoint was trained
| base model | microsoft/Phi-4-mini-instruct, revision cfbefacb99257ffa30c83adab238a50856ac3083; local copy: skipped remote-code file configuration_phi3.py; skipped remote-code file modeling_phi3.py; skipped remote-code file sample_finetune.py; removed config.auto_map (native transformers classes) |
| method | full-parameter supervised fine-tuning (behaviour cloning) on (prompt, response) pairs, verl fsdp_sft_trainer (verl-agent commit 20bd331, fsdp2) |
| SFT data | ws_sft_div233: 9614 training rows (WebShop) |
| schedule | 2 epoch(s) x 150 steps per epoch = 300 optimizer steps; global batch 64 rows per step (1 GPU(s), micro-batch 4 per GPU); maximum sequence length 2432 tokens |
| optimizer | AdamW, peak learning rate 1e-05, betas [0.9, 0.95], weight decay 0.01, gradient clipping 1 |
| learning-rate schedule | cosine with linear warm-up over the whole 300-step schedule: warm-up ratio 0.1 = 30 steps |
| this checkpoint | the model after optimizer step 30 of 300 (the run saved every 5 steps and was stopped after step 50 with the trainer's own early exit; the learning-rate schedule was not shortened, so every update up to step 30 is that of the full run) |
| training seed | 1 |
| weights | F32: 195 tensors safetensors, exactly as saved by the trainer (no conversion) |
Validation success rate
Validation set: WebShop development goals 500-1499 (1000 goals; the test goals 0-499 are never used); every item once per seed. Success rate = successes / items. Multi-turn episodes of at most 15 actions, vllm sampling at temperature 0.4, top-p 1, no top-k.
| sampling seed | successes | success rate |
|---|---|---|
| 0 | 274/1000 | 27.40% |
| 1 | 301/1000 | 30.10% |
| 2 | 291/1000 | 29.10% |
| mean | 28.87% |
How the step was selected
The SFT run saved a checkpoint every 5 steps (denser between two checkpoints where needed), and each was evaluated on the validation set with sampling seed 0. Rule, fixed before any result: at the first checkpoint whose rate reached 25%, take that checkpoint or the one before it, whichever lies in 20-30% and is nearer to 25%; confirm it with sampling seeds 1, 2: it is the start when the mean over the three seeds lies in 20-30%. The seed-0 rate took part in the selection; the other seeds are the unbiased check. Evaluated checkpoints (seed 0):
| step | success rate (seed 0) | mean of seeds 0, 1, 2 |
|---|---|---|
| 5 | 0.20% | |
| 10 | 0.30% | |
| 15 | 8.60% | |
| 20 | 9.30% | |
| 25 | 7.80% | |
| 30 (this checkpoint) | 27.40% | 28.87% |
| 35 | 30.50% |
All SFT starting points of this study
One SFT checkpoint per (environment, model) is the RL start; validation success = mean of 3 sampling seeds (the same evaluation as above for each environment's validation set).
| environment | model | SFT steps | epochs | validation success (mean of 3 seeds) | Hugging Face repo |
|---|---|---|---|---|---|
| ALFWorld | Llama-3.2-3B-Instruct | 18 | 0.36 | 13.71% | wayne-SFT/Llama-3.2-3B-Instruct-SFT-ALFWorld |
| ALFWorld | Phi-4-mini-instruct | 20 | 0.40 | 18.51% | wayne-SFT/Phi-4-mini-instruct-SFT-ALFWorld |
| ALFWorld | Llama-3.1-8B-Instruct | 15 | 0.30 | 21.19% | wayne-SFT/Llama-3.1-8B-Instruct-SFT-ALFWorld |
| WebShop | Llama-3.2-3B-Instruct | 25 | 0.17 | 27.17% | wayne-SFT/Llama-3.2-3B-Instruct-SFT-WebShop |
| WebShop | Phi-4-mini-instruct | 30 | 0.20 | 28.87% | wayne-SFT/Phi-4-mini-instruct-SFT-WebShop (this repo) |
| WebShop | Llama-3.1-8B-Instruct | 23 | 0.15 | 24.07% | wayne-SFT/Llama-3.1-8B-Instruct-SFT-WebShop |
| ScienceWorld | Llama-3.2-3B-Instruct | not selected yet | |||
| ScienceWorld | Phi-4-mini-instruct | not selected yet | |||
| ScienceWorld | Llama-3.1-8B-Instruct | not selected yet |
Intended use
The starting checkpoint of the RL experiments of our study (multi-turn agentic RL in WebShop). It is an intermediate SFT checkpoint chosen for its moderate success rate, not a tuned agent.
License
MIT License; base model terms: LICENSE; copies in this repo: LICENSE.
Files (sha256)
| file | bytes | sha256 |
|---|---|---|
added_tokens.json | 249 | d4f2aceb0f20b71dd1f4bcc7e052e4412946bf281840b8f83d39f259571af486 |
chat_template.jinja | 423 | febf589225c9728ab791f52e8897d7607a823d45368f0a4c92fa68997b40cce9 |
config.json | 2286 | 09a1989b2f17090ca36067caaea819c165e467eeea853acfd858de4efd20c609 |
generation_config.json | 169 | 926d51ebbe2c1f9e80a29f9348638570b9837b0164de848fd8a35ded179f4956 |
merges.txt | 2418348 | 856ce61180bb689282eed6b3a6838bb1f438399be23aefe9d20eb379791fb4ad |
model-00001-of-00004.safetensors | 4975120816 | a4acc6712ecd73bf79473c56425c037fdd834b84eb0193a40a7a4f7f22422468 |
model-00002-of-00004.safetensors | 4832141488 | 52209d8fe57de3e9d40463d6093826143318912c75b3cd58ed91d9b1944f712c |
model-00003-of-00004.safetensors | 4832141512 | 39abdb263f190e069d0d1582689b6af60412f4ff203198b463e7bf1d05d9bbf6 |
model-00004-of-00004.safetensors | 3163092328 | fed8940051dd247a334d81bac529af3ae1ba587289362613cfec5a7026e89072 |
model.safetensors.index.json | 16368 | 287d7bb51eeb3a0997b63588f5f9ac3705a94cbc7537cb07fbb9f261ea0b8fcb |
special_tokens_map.json | 587 | aff38493227d813e29fcf8406e8e90062f1f031aa47d589325e9c31d89ac7cc3 |
tokenizer.json | 15524095 | 382cc235b56c725945e149cc25f191da667c836655efd0857b004320e90e91ea |
tokenizer_config.json | 2516 | 1a2748cd4f6c7c91e768db11d6538e8386863aee17bdce71be5370f6e7736753 |
vocab.json | 3910310 | 6cb65a857824fa6615bb1782d95d882617a8bbce1da0317118586b36f39e98bd |
The sha256 values were computed before the upload and checked against the Hub and against an independent download afterwards.