WellLogLLM-3.7B
WellLogLLM-3.7B is our post-trained K2-Horizon-3.7B for petrophysics well-log interpretation: the merged checkpoint from global step 320 of its GRPO training.
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.
Run it
-
With PetroHarness, the agentic harness this model was trained to work in:
pip install petroharness, thenpetroharness --launch-ui, and connect the model in the page's Model dialog (Install and set up). -
With vLLM 0.30 or later (Linux, NVIDIA GPU):
vllm serve sambal/WellLogLLM-3.7B --served-model-name welllogllm-3.7b --max-model-len 65536 --trust-remote-code \ --reasoning-parser k2_horizon --chat-template-content-format string -
On any computer, with or without a GPU (a Mac's GPU through Metal): the GGUF,
sambal/WellLogLLM-3.7B-GGUF, for Ollama and llama.cpp.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "sambal/WellLogLLM-3.7B"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, torch_dtype="bfloat16", device_map="auto")