Run this model with HF Jobs

Run Sompote/GeoTech-SLM-9B-TL-GRPO-LoRA 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/Sompote/GeoTech-SLM-9B-TL-GRPO-LoRA. 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/Sompote/GeoTech-SLM-9B-TL-GRPO-LoRA 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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Sompote/GeoTech-SLM-9B-TL-GRPO-LoRA. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Sompote/GeoTech-SLM-9B-TL-GRPO-LoRA. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

GeoTech-SLM-9B-TL-GRPO-LoRA

LoRA adapters for Qwen/Qwen3.5-9B, trained for geotechnical design calculations with a three-step pipeline: SD -> mixed-domain Dr.GRPO -> TL-GRPO (Truncation- and Length-aware GRPO). The repo is self-contained: it includes the step-1 SD adapter (sd-a30/) needed to build the base for steps 2 and 3.

The earlier adapters (sd-a30, and the older SD+Dr.GRPO adapter grpo-60) and their 32k-token results are in Sompote/GeoTech-SLM-9B-LoRA. This model is not a substitute for a licensed engineer's checks.

Three-step pipeline: SD -> mixed-domain Dr.GRPO -> TL-GRPO

The adapters in this repo come from a three-step pipeline on top of Qwen/Qwen3.5-9B:

  1. SD β€” the sd-a30/ adapter (r16), merged into Qwen/Qwen3.5-9B in bf16. This merged model is the base for steps 2 and 3.
  2. Mixed-domain Dr.GRPO β€” a new r32 LoRA trained on the merged SD model with Dr.GRPO for 120 steps, on prompts sampled 70% geotechnical / 23% math / 7% logic.
  3. TL-GRPO (Truncation- and Length-aware GRPO) β€” continues the step-2 (step-120) adapter with a fresh optimizer, on the same 70/23/7 mix, for 60 steps. Truncated completions are not masked out; they get a fixed penalty (βˆ’0.5) and no correctness credit. Correct answers also get a group-relative length term (Kimi k1.5 style). Completion cap during training: 12,288 tokens.
Subfolder What it is
sd-a30/ Step 1: SD adapter (r16) on Qwen/Qwen3.5-9B; merge it into the base to get the base for steps 2 and 3. Same weights as sd-a30/ in GeoTech-SLM-9B-LoRA
mix-drgrpo-120/ Step 2: mixed-domain Dr.GRPO, r32 LoRA on merged SD, checkpoint at step 120
tl-grpo-20/ Step 3: TL-GRPO, checkpoint at step 20 (continues mix-drgrpo-120)
tl-grpo-40/ Step 3: TL-GRPO, checkpoint at step 40
tl-grpo-60/ Step 3: TL-GRPO, checkpoint at step 60 (final)

sd-a30/ holds adapter_model.safetensors and adapter_config.json. The four step-2/3 subfolders hold adapter_model.safetensors, adapter_config.json and tokenizer/chat-template files; each is a complete adapter (not a delta on mix-drgrpo-120), so load exactly one of them on top of the merged SD base. base_model_name_or_path in the adapter configs is a local training path; the actual bases are Qwen/Qwen3.5-9B for sd-a30 and the merged SD model for the others.

14,336-token holdout, vote of 8 (N = 338)

GeoTechBench v0.4.1 holdout, thinking mode, 8 samples per item (T 0.8), 14,336-token cap. The step-2/3 adapters were evaluated as runtime (unmerged) LoRA on the merged SD model. Columns: majority vote / majority vote with budget forcing / pass@8 (items correct, out of 338).

Model Majority Majority + budget forcing pass@8
Base 9B 208 224 223
SD (sd-a30) 218 233 241
Old SD+Dr.GRPO (grpo-60) 231 244 252
Mixed Dr.GRPO (mix-drgrpo-120) 230 234 258
TL-GRPO-60 (tl-grpo-60) 237 241 266
TL-GRPO-40 (tl-grpo-40) 235 240 268
TL-GRPO-20 (tl-grpo-20) 248 247 270

Caveats:

  • Selection on test data. The checkpoints were compared on this holdout itself, so choosing one (for example TL-GRPO-20) by its holdout score is selection on test data, and its score is an optimistic estimate.
  • Rebuilt merged base. The merged SD base used for steps 2 and 3 was rebuilt on different hardware than the original SD merge. A fresh merge of sd-a30 into Qwen/Qwen3.5-9B may differ slightly from the base these adapters were trained and evaluated on.
  • No 32k-token results are reported for the step-2/3 adapters.

Usage

Merge sd-a30 into Qwen/Qwen3.5-9B, then load one step-2/3 adapter as a PEFT adapter on top of that merged SD base (Qwen/Qwen3.5-9B + sd-a30 merged):

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_id, repo = "Qwen/Qwen3.5-9B", "Sompote/GeoTech-SLM-9B-TL-GRPO-LoRA"
tok = AutoTokenizer.from_pretrained(base_id)
model = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, repo, subfolder="sd-a30").merge_and_unload()  # merged SD base
model = PeftModel.from_pretrained(model, repo, subfolder="tl-grpo-20")  # or tl-grpo-40, tl-grpo-60, mix-drgrpo-120; runtime LoRA

The step-2/3 adapters were evaluated unmerged. For vLLM, serve the merged sd-a30 model and attach the adapter with --enable-lora --max-lora-rank 32.

License

These adapters are released under Apache 2.0, following the base model Qwen/Qwen3.5-9B.

Citation

@article{youwai2026geotechslm,
  author  = {Youwai, Sompote},
  title   = {A local small language model with frontier-agent fallback for geotechnical design calculations},
  journal = {under review},
  year    = {2026},
  note    = {King Mongkut's University of Technology Thonburi (KMUTT)}
}
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Sompote/GeoTech-SLM-9B-TL-GRPO-LoRA

Finetuned
Qwen/Qwen3.5-9B
Adapter
(1,214)
this model