Text Generation
PEFT
Safetensors
English
lora
qwen
qwen3.5
geotechnical-engineering
civil-engineering
Instructions to use Sompote/GeoTech-SLM-9B-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Sompote/GeoTech-SLM-9B-LoRA with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Update model card with holdout comparison table
Browse files
README.md
CHANGED
|
@@ -16,21 +16,25 @@ pipeline_tag: text-generation
|
|
| 16 |
|
| 17 |
# GeoTech-SLM-9B-LoRA
|
| 18 |
|
| 19 |
-
LoRA adapters (`sd-a30/` and `grpo-60/`) for [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), trained for geotechnical design calculations.
|
| 20 |
|
| 21 |
**Do not merge the `grpo-60` adapter into bf16**; apply it as a runtime LoRA on the merged `sd-a30` model, or most of the GRPO update is lost. This model is not a substitute for a licensed engineer's checks.
|
| 22 |
|
| 23 |
-
## Performance (GeoTechBench v0.4.1 holdout, N = 338)
|
| 24 |
|
| 25 |
-
|
|
| 26 |
-
| --- | --- | ---: |
|
| 27 |
-
|
|
| 28 |
-
|
|
| 29 |
-
|
|
| 30 |
-
|
|
| 31 |
-
|
|
| 32 |
-
|
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
## Usage
|
| 36 |
|
|
@@ -48,6 +52,10 @@ model = PeftModel.from_pretrained(model, repo, subfolder="grpo-60") # runtime L
|
|
| 48 |
|
| 49 |
For the vote-of-8 result, draw 8 samples with `enable_thinking=True`, `max_new_tokens=32768`, temperature 0.8, top-p 0.95 and top-k 20, then majority-vote the answers. For vLLM, serve the merged `sd-a30` model and attach `grpo-60` with `--enable-lora --max-lora-rank 32`.
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
## Citation
|
| 52 |
|
| 53 |
```bibtex
|
|
|
|
| 16 |
|
| 17 |
# GeoTech-SLM-9B-LoRA
|
| 18 |
|
| 19 |
+
LoRA adapters (`sd-a30/` and `grpo-60/`) for [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), trained for geotechnical design calculations. Details are in the paper *A local small language model with frontier-agent fallback for geotechnical design calculations* (Youwai, KMUTT, 2026).
|
| 20 |
|
| 21 |
**Do not merge the `grpo-60` adapter into bf16**; apply it as a runtime LoRA on the merged `sd-a30` model, or most of the GRPO update is lost. This model is not a substitute for a licensed engineer's checks.
|
| 22 |
|
| 23 |
+
## Performance (GeoTechBench v0.4.1 holdout, N = 338, thinking mode, 32k budget)
|
| 24 |
|
| 25 |
+
| | Base 9B | SD (sdA-30) | SD+GRPO-60 |
|
| 26 |
+
| --- | ---: | ---: | ---: |
|
| 27 |
+
| Single reply at 32k (T 0.6) | 208 | 210 | 208 |
|
| 28 |
+
| Same replies cut at 14k | 154 | 163 | 179 |
|
| 29 |
+
| Median reply length (tokens) | 13,820 | 12,847 | 12,031 |
|
| 30 |
+
| Truncated at 14k | 46.4% | 38.5% | 32.8% |
|
| 31 |
+
| Truncated at 32k | 7.1% | 7.7% | 5.6% |
|
| 32 |
+
| Accuracy of finished replies at 32k | 66.2% | 67.3% | 65.2% |
|
| 33 |
+
| Vote of 8 (T 0.8), majority | pending (running) | 245 | 256 |
|
| 34 |
+
| Vote of 8, mean single sample | pending (running) | 213.4 | 216.5 |
|
| 35 |
+
| Vote of 8, pass@8 | pending (running) | 283 | 287 |
|
| 36 |
+
|
| 37 |
+
At 14k, SD+GRPO vs base is +42/−17 (exact McNemar p = 0.0015). At 32k the single-reply differences are not significant (p = 0.905 for SD vs base, p = 1.0 for GRPO vs base).
|
| 38 |
|
| 39 |
## Usage
|
| 40 |
|
|
|
|
| 52 |
|
| 53 |
For the vote-of-8 result, draw 8 samples with `enable_thinking=True`, `max_new_tokens=32768`, temperature 0.8, top-p 0.95 and top-k 20, then majority-vote the answers. For vLLM, serve the merged `sd-a30` model and attach `grpo-60` with `--enable-lora --max-lora-rank 32`.
|
| 54 |
|
| 55 |
+
## License
|
| 56 |
+
|
| 57 |
+
These adapters are released under [Apache 2.0](https://huggingface.co/Qwen/Qwen3.5-9B/blob/main/LICENSE), following the base model [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B).
|
| 58 |
+
|
| 59 |
## Citation
|
| 60 |
|
| 61 |
```bibtex
|