K2-Horizon-3.7B GRPO — checkpoint 320
Merged Hugging Face checkpoint from global step 320 of GRPO training of K2-Horizon-3.7B on petrophysics well-log interpretation.
Lineage: IFM/K2-Horizon-3.7B → length-normalized DPO + RPO (sambal/k2-horizon-3.7b-lndpo-rpo-full-checkpoint-400) → GRPO (this model).
- Architecture:
K2HorizonForCausalLM(custom modeling code included; load withtrust_remote_code=True) - Weight precision: BF16 (
bfloat16), cast from the FP32-master merged checkpoint - Format: full model weights, split across 5 safetensors shards (not a LoRA adapter)
- Includes the checkpoint's configuration, modeling code, tokenizer, and chat template
The checkpoint is uploaded without quantization or changes to its weights or tokenizer.
Training
| Setting | Value |
|---|---|
| Initialization | DPO checkpoint 400 (sambal/k2-horizon-3.7b-lndpo-rpo-full-checkpoint-400) |
| Algorithm | GRPO, FP32 master weights |
| Rollouts | 16 prompts × 8 rollouts per step, temperature 1.0, top-p 1.0, max response 10,240 tokens |
| Learning rate | 2.4e-6 |
| Reward | LLM-judge reward scoring each rollout against a reference answer |
| Data | 2,815 petrophysics well-log interpretation prompts (single-formation, multi-well and cross-formation questions) |
| Schedule | 2 epochs (350 steps); this checkpoint is step 320, selected on a held-out evaluation |
Evaluation
Well-log interpretation benchmark (1,075 questions: 347 single-formation, 424 multi-well, 304 cross-formation), scored by an LLM judge against expert reference answers (0–100; W = 0.4·RA + 0.2·Trust + 0.2·Style + 0.2·RQ).
| Model | RA | Trust | Style | RQ | W |
|---|---|---|---|---|---|
| K2-Horizon-3.7B (base) | 49.1 | 58.8 | 52.4 | 61.1 | 54.1 |
| + DPO (checkpoint 400) | 52.4 | 59.8 | 62.9 | 67.1 | 58.9 |
| + GRPO (this model, checkpoint 320) | 63.8 | 65.0 | 55.6 | 71.3 | 63.9 |
By question type (W): single-formation 61.6, multi-well 66.0, cross-formation 63.7.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "sambal/k2-horizon-3.7b-grpo-checkpoint-320"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, torch_dtype="bfloat16", device_map="auto")