Qwen3.6-35B-A3B-dbt-bench-LoRA
a fine-tuned LoRA adapter for data engineering tasks
2 min readupdated
This LoRA (small add-on layer for a base model) adapter was trained using rejection-sampling fine-tuning (training on the model's own successful generations) based on the Qwen/Qwen3.6-35B-A3B model. The model acts as an agent for working with dbt (data build tool) projects, solving tasks from the ADE-bench, Spider2-DBT, and data-eng-bench datasets. The adapter is designed to improve SQL and dbt codebase generation skills and automate analytical tasks. It will be useful for developers and data engineers who use agents to write transformations and work with databases.
Key features
- Agent-based training: The base model solved tasks in Harbor containers, and the adapter was fine-tuned on its successful runs.
- Efficiency: Utilizes 38.3 million parameters (0.11% of the model's total volume) with a LoRA rank of 32.
- Environment support: Configurations have been prepared for running via vLLM and the transformers library with peft.
- Accuracy boost: On tests from Spider2 and data-eng-bench, the adapter showed an increase in successful runs from 17/56 to 28/56.
What you can do
- Run in vLLM: Deploy a local server with adapter support for integration into working pipelines.
- Code generation: Use via transformers and peft to write and debug dbt models.
- Data analysis: Apply the model as an agent to automate tasks in the dbt ecosystem and databases.
Example
pip install -r requirements-peft.txt
python scripts/load_peft.py --generate "Write a dbt model that counts orders per customer."Read more
DetailsBenchmarks: on 7 test tasks, success rate increased from 17/56 to 28/56 (p = 0.025 using Fisher's exact test).
Hardware: requires a single GPU with approximately 80 GB of VRAM to run the base model in bf16 format.
Training: 3 epochs (42 steps) on 4 NVIDIA GB200 GPUs in 30 minutes, using 218 successful samples.










Comments