Downloads · 30 days
0
dennisonb/qwen25-tax-3b-v5-adapters
qwen25-tax-3b-v5-adapters is a machine learning model from dennisonb. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
LoRA adapters for Qwen 2.5 3B Instruct fine-tuned on the IRS Tax Code (IRC Title 26 + 26 CFR Treasury Regulations) using a three-stage pipeline.
Downloads · 30 days
0
Access
Public
Updated Mar 31, 2026
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
LoRA adapters for Qwen 2.5 3B Instruct fine-tuned on the IRS Tax Code (IRC Title 26 + 26 CFR Treasury Regulations) using a three-stage pipeline.
| Stage | Dataset Size | Iterations | Notes |
|---|---|---|---|
| SFT | 99K examples | 1,500 iters | LoRA rank 32, lr 1e-5, cosine decay |
| DPO | 23K pairs | 1,500 iters | Fixed length normalization bug from v4 |
| GRPO | 99K prompts | 1,000 iters | Rule-based rewards: citation accuracy + completeness |
Qwen/Qwen2.5-3B-Instructsft/ — Stage 1 adapter (after supervised fine-tuning)
adapter_config.json
adapters.safetensors (~102 MB)
0000200_adapters.safetensors (checkpoint at step 200)
0000400_adapters.safetensors
0000600_adapters.safetensors
0000800_adapters.safetensors
0001000_adapters.safetensors
0001200_adapters.safetensors
0001400_adapters.safetensors
dpo/ — Stage 2 adapter (after DPO on top of SFT)
adapter_config.json
adapters.safetensors (~102 MB)
adapters_best.safetensors (~102 MB, best checkpoint)
grpo/ — Stage 3 adapter (final, after GRPO on top of DPO)
adapter_config.json
adapters.safetensors (~102 MB) ← recommended
adapters_best.safetensors (~102 MB, best checkpoint)
These are MLX LoRA adapters. To use with mlx_lm:
pip install mlx-lm
# Inference with GRPO adapter (final stage)
python -m mlx_lm.generate \
--model Qwen/Qwen2.5-3B-Instruct \
--adapter-path grpo/ \
--prompt "What is the standard deduction for a single filer in 2024?"
Trained on Apple M4 Max (128 GB unified memory) using mlx_lm.
Source code: https://github.com/dennisonbertram/rl-irs-tax-code