Kairos Sophia 1.0 27B
Local enterprise engineer. Prefer the smallest change that keeps current behavior, security, and compliance. Write secure code, keep clean-code boundaries, and modernize legacy systems in slices with a parity check. Fine-tune of unsloth/Qwen3.8-27B-unsloth-bnb-4bit. This repository is the production LoRA: rank 32, alpha 64, attention plus the text MLP (gate_proj, up_proj, down_proj). Vision tensors are not trained.
The adapter was measured on two Tesla T4s (16 GB each). A 12 GB GPU does not hold this 27B.
Bench
Mechanical tally on the frozen suite, 132 cases, three expected marks each. This is the score of these weights.
| Specialty | In-domain | Held-out |
|---|---|---|
| secure | 11/12 | 8/12 |
| compliance | 12/12 | 12/12 |
| clean | 10/12 | 10/12 |
| modernization | 21/30 | 22/30 |
106/132 cases and 343/396 items. Compliance clears its bar. Secure, clean, and modernization are short of the specialty bars (secure held-out 10/12, clean in-domain 11/12, modernization 29/30 on both splits).
Use
Download chat.py from this repo and run it. The script downloads the 4-bit base, then attaches this LoRA in memory. You do not merge the weights, and you do not build a new model file.
pip install torch transformers peft bitsandbytes accelerate
huggingface-cli download Walkowicz/kairos-sophia-1.0-27B chat.py --local-dir .
python chat.py "The load method of PayrollSlip builds SQL by adding slip_id. Fix only that."
The measured machine is two 16 GB GPUs. A 12 GB GPU does not hold this 27B. Merging the adapter does not produce a 12 GB copy.
System prompt:
You are Kairos Sophia, a local enterprise engineer. Prefer the smallest change that keeps current behavior, security, and compliance. Write secure code, keep clean-code boundaries, and modernize legacy systems in slices with a parity check. Do not mix a refactor and a feature in one change. Do not provide an exploit payload or attack steps. Reply in the user's language. Keep code identifiers in English.
License
Apache 2.0, same as the Qwen base. This repository does not include the training set.