Text Generation
PEFT
Safetensors
Spanish
lora
qlora
sft
trl
unsloth
address-parsing
costa-rica
qwen3
conversational
Instructions to use CodeStrux-Tech/tac-1-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use CodeStrux-Tech/tac-1-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen3-4b-instruct-2507-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "CodeStrux-Tech/tac-1-lora") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- es
|
| 5 |
+
library_name: peft
|
| 6 |
+
base_model: unsloth/qwen3-4b-instruct-2507-unsloth-bnb-4bit
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
tags:
|
| 9 |
+
- lora
|
| 10 |
+
- qlora
|
| 11 |
+
- sft
|
| 12 |
+
- trl
|
| 13 |
+
- unsloth
|
| 14 |
+
- address-parsing
|
| 15 |
+
- costa-rica
|
| 16 |
+
- qwen3
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# tac-1-lora — QLoRA adapter for tac-1
|
| 20 |
+
|
| 21 |
+
## Overview
|
| 22 |
+
|
| 23 |
+
This is the QLoRA adapter that produced [`CodeStrux-Tech/tac-1`](https://huggingface.co/CodeStrux-Tech/tac-1). **Most users want the merged tac-1 repo**, not these adapter weights. Use this repo only if you need to inspect or extend the adapter directly.
|
| 24 |
+
|
| 25 |
+
## Loading with PEFT
|
| 26 |
+
|
| 27 |
+
PEFT loading requires the base model `unsloth/qwen3-4b-instruct-2507-unsloth-bnb-4bit`.
|
| 28 |
+
|
| 29 |
+
## Training configuration
|
| 30 |
+
|
| 31 |
+
- **Base model:** Qwen/Qwen3-4B-Instruct-2507
|
| 32 |
+
- **Method:** QLoRA (r=16, α=32)
|
| 33 |
+
- **Learning rate:** 2e-4
|
| 34 |
+
- **Epochs:** 2
|
| 35 |
+
- **Max sequence length:** 4096
|
| 36 |
+
- **Steps:** 692
|
| 37 |
+
- **Final train loss:** 0.043
|
| 38 |
+
- **Hardware:** ~2 h 50 m on an RTX 4080 16 GB
|
| 39 |
+
- **Stack:** unsloth 2025.11.1 / transformers 4.57.2 / trl 0.23.0
|
| 40 |
+
|
| 41 |
+
## Training data
|
| 42 |
+
|
| 43 |
+
The adapter was trained on the tac-1 corpus: 5,532 examples (seed 0), 805 heldout (seed 1); `--max-legs 4`; 22 districts ingested, 19,042 POIs, 11 griddable; holdout districts grecia, curridabat, go-guadalupe excluded from training. See [`CodeStrux-Tech/tac-1-corpus`](https://huggingface.co/CodeStrux-Tech/tac-1-corpus).
|
| 44 |
+
|
| 45 |
+
### Training data attribution
|
| 46 |
+
|
| 47 |
+
Contains information from OpenStreetMap (https://www.openstreetmap.org/copyright), which is made available under the Open Database License (ODbL) 1.0. © OpenStreetMap contributors.
|
| 48 |
+
|
| 49 |
+
For full architecture, evaluation, and limitations, see [`CodeStrux-Tech/tac-1`](https://huggingface.co/CodeStrux-Tech/tac-1).
|