Downloads · 30 days
10
12% of all-time downloads
DGXAI/gemma-3n-e2b-driftcall-lora
gemma-3n-e2b-driftcall-lora is a text generation model from DGXAI. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter for unsloth/gemma-3n-E2B-it, GRPO-tuned on DriftCall — an OpenEnv-compliant voice-first Indic concierge environment where vendor APIs mutate mid-episode and the agent must keep its promise to the user acr…
Downloads · 30 days
10
12% of all-time downloads
All-time downloads
82
Public
Repo size
208 MB
Likes
1
Public
Click a slice to open those files.
.safetensors84.6 MB · 69%
From the Hugging Face model README
LoRA adapter for unsloth/gemma-3n-E2B-it, GRPO-tuned on
DriftCall — an OpenEnv-compliant
voice-first Indic concierge environment where vendor APIs mutate
mid-episode and the agent must keep its promise to the user across the
schema drift.
trained on: DriftCall (OpenEnv v1.0 — 5 reward components, 20 drift patterns)
hardware: 1× NVIDIA H100 80GB HBM3 (bf16, 16-bit LoRA)
trainer: native PyTorch GRPO (no TRL)
curriculum: 3 stages × 240 GRPO steps total · group size 2
reward: five deterministic components (no LLM judge), Brier-calibrated,
uncertain-floor at 0.50
The companion env, demo, REST API, and full project site all live at one HF Space: https://huggingface.co/spaces/saumilyajj/driftcall.
| Field | Value |
|---|---|
| Base model | unsloth/gemma-3n-E2B-it (Gemma-3n-E2B Instruction-tuned, Unsloth-quantised checkpoint) |
| Adapter type | PEFT / LoRA |
r | 16 |
lora_alpha | 32 |
lora_dropout | 0.0 (Unsloth fast path) |
| Precision | 16-bit LoRA on bf16 base |
| File | adapter_model.safetensors · 84.6 MB · plus tokenizer (33.4 MB) |
| Languages | Hindi · Tamil · Kannada · English · Hinglish |
| License | Apache-2.0 |
This is an adapter-only release. No merged-fp16 weights are published — naive 4-bit → 16-bit merging produces silently broken weights for this base (see DriftCall DESIGN.md §10.5). Always load on top of the base.
| Stage | Drift regime | Steps | Initial weights |
|---|---|---|---|
| 1 | no drift | 70 | base Gemma-3n-E2B-it |
| 2 | single-pattern drift | 100 | stage-1 adapter |
| 3 | compound drift | 70 | stage-2 adapter |
scripts/train_driftcall_grpo.py (1300 LOC, no TRL dependency).G): 2 rollouts per goal — small for GRPO; signal is
primarily compounded across the curriculum rather than per-step.cells/step_18..20).vasudeo118-lnmiit/driftcall project — three runs
(mypquww4, the s2 run, og9xqlwy).| ID | Component | Weight | Implementation |
|---|---|---|---|
| R1 | task_completion | 0.40 | cells.step_08_rewards:task_completion |
| R2 | drift_detection | 0.20 | cells.step_08_rewards:drift_detection |
| R3 | constraint_adherence | 0.20 | cells.step_08_rewards:constraint_adherence |
| R4 | format_compliance | 0.10 | cells.step_08_rewards:format_compliance |
| R5 | anti_hack_penalty | 0.10 | cells.step_08_rewards:anti_hack_penalty |
Calibration pipeline:
quality = combine_quality(R1..R5, weights)
brier = brier_penalty(confidence, R1)
reward_raw = quality * (1 - brier)
reward = apply_uncertain_floor(reward_raw, confidence, quality) # floor=0.50
final := clamp(reward, -1.0, 1.0)
Hard rule: every reward bit traces to a deterministic schema- and trace-grounded check. There is no LLM-as-a-judge anywhere in the pipeline.
from unsloth import FastModel
from peft import PeftModel
model, tokenizer = FastModel.from_pretrained(
"unsloth/gemma-3n-E2B-it",
max_seq_length=4096,
load_in_4bit=False, # 16-bit LoRA path; matches training
full_finetuning=False,
)
model = PeftModel.from_pretrained(model, "DGXAI/gemma-3n-e2b-driftcall-lora")
model.eval()
prompt = (
"BRIEF: 9 baje se pehle ek veg thali ₹500 ke andar Indiranagar mein.\n\n"
"Reply with EXACTLY one JSON object matching the DriftCallAction schema."
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(out[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
# Public bearer token for the hackathon Space.
curl -X POST https://saumilyajj-driftcall.hf.space/reset \
-H "Authorization: Bearer driftcall-demo" \
-H "X-Session-Id: smoke-001" \
-H "Content-Type: application/json" \
-d '{"seed": 42, "curriculum_stage": 2}'
The OpenEnv gym client lives at
deploy/inference/
and wraps /reset, /step, /state, /close in a gymnasium-style API.
[0.175, 0.300],
largely against the uncertain-floor at 0.50. Real lift comes after several
thousand steps with G=4–8.cab.book, payment.charge, …) are realised by
the env's mock vendor surface, not by real infrastructure.faster-whisper-small;
this model never sees raw audio. Code-switched Hinglish accuracy is bounded
by Whisper.anti_hack_penalty)
catches known patterns; novel exploits would need to be added to the probe
set in cells/step_20_probe.py.DriftCall is built on top of:
unsloth/gemma-3n-E2B-it — base modelhexgrad/Kokoro-82M — TTS in the env's audio pipelineSystran/faster-whisper-small — ASR in the env's audio pipelineSource: https://github.com/saumilyagupta/openenv-DGXAI · branch google/gemma-3n-E4B-it.
Hackathon: DGX Hackathon 2026 — Indic Voice + RL track.