You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

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
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for MicahDail/sqlbi-dax-gemma-4-31B-lora

Adapter
(28)
this model