Instructions to use MicahDail/sqlbi-dax-gemma-4-31B-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MicahDail/sqlbi-dax-gemma-4-31B-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-4-31B-it-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "MicahDail/sqlbi-dax-gemma-4-31B-lora") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
sqlbi-dax-gemma-4-31B-lora
QLoRA adapter on Gemma 4 31B Instruct for writing, reviewing, and explaining DAX for Power BI / Fabric / Analysis Services Tabular.
Personal research adapter. Not affiliated with SQLBI. Check the DAX.
Intended use
Agent jobs:
Model: tables, columns, relationships, marked Date if present.
Request: business intent / contract.
Rewrite jobs include Existing DAX: plus a review request. For write/rewrite, the assistant should lead with a dax fence, then a short explanation. Thinking off (enable_thinking=False).
System prompt is generic (no vendor names). Explanations may still cite DAX Patterns / SQLBI practice.
Train (v2)
| Base | unsloth/gemma-4-31B-it-unsloth-bnb-4bit |
| Method | QLoRA, r=16, ฮฑ=32, 4-bit |
| Seq | 2048 |
| Data | 2474 train / 50 holdout |
| Epochs | 2 (620 steps, bs=1, ga=8, lr 2e-4) |
| Train loss | 0.57 |
| Holdout eval_loss | 0.62 (epoch 1) โ 0.59 (epoch 2) |
v2 vs v1: generic system prompt; := stripped; SQLBI branding removed from user prompts; a few UI/visual-shape rows dropped.
Load
from unsloth import FastModel
from unsloth.chat_templates import get_chat_template
model, tokenizer = FastModel.from_pretrained(
"MicahDail/sqlbi-dax-gemma-4-31B-lora",
max_seq_length=2048,
load_in_4bit=True,
)
tokenizer = get_chat_template(tokenizer, chat_template="gemma-4")
FastModel.for_inference(model)
License
Adapter follows Gemma 4 (Apache-2.0). This repo ships weights only.
- Downloads last month
- 2
Model tree for MicahDail/sqlbi-dax-gemma-4-31B-lora
Base model
google/gemma-4-31B