Run this model with HF Jobs
Run tensorhydra/gemma-4-developer-agent-adapters on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/tensorhydra/gemma-4-developer-agent-adapters. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/tensorhydra/gemma-4-developer-agent-adapters on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/tensorhydra/gemma-4-developer-agent-adapters. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/tensorhydra/gemma-4-developer-agent-adapters. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use tensorhydra/gemma-4-developer-agent-adapters with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use tensorhydra/gemma-4-developer-agent-adapters with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Add v7 and v9 LoRA adapters, model card and checksums
Browse filesFiles changed (7)
- NOTICE.mdAdded+21
- README.mdAdded+87
- checksums.sha256Added+4
- v7-verra/adapter_config.jsonAdded+23
- v7-verra/adapter_model.safetensorsAdded+3
- v9-edit/adapter_config.jsonAdded+23
- v9-edit/adapter_model.safetensorsAdded+3
123456789101112131415161718192021# Notice
Copyright 2026 kelvinweijun and contributors.
The adapter weights in this repository are Model Derivatives of Gemma 4. They are distributed under the Gemma Terms of Use:
https://ai.google.dev/gemma/terms
The Gemma Prohibited Use Policy applies:
https://ai.google.dev/gemma/prohibited_use_policy
The base model `google/gemma-4-31b-it-qat-w4a16-ct` is gated on Hugging Face; users must accept the Gemma Terms there before downloading it.
The training code, prompts, configuration and documentation for these adapters are released under the Apache License 2.0 in:
https://github.com/kelvinweijun/gemma-4-developer-agent
No competition task text, repository snapshots, gold patches, hidden tests or per-task transcripts are included in this repository. The adapters were trained on public competition issues; the source archive documents the method and aggregate results.
The v7 adapter was trained with the verra recipe. The v9 adapter is a continuation of v7; 54 of 820 tensors differ. Neither adapter includes the base Gemma 4 weights.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687---license: gemmalibrary_name: peftbase_model: google/gemma-4-31b-it-qat-w4a16-ctpipeline_tag: text-generationtags: - gemma - gemma-4 - lora - peft - software-engineering - coding-agent---
# Gemma 4 Developer Agent — LoRA adapters
Two PEFT LoRA adapters for [`google/gemma-4-31b-it-qat-w4a16-ct`](https://huggingface.co/google/gemma-4-31b-it-qat-w4a16-ct), trained for the **Google – The Gemma 4 Developer Agent** Kaggle competition (2026). The competition is closed; these weights are published as a research archive.
These are the adapter weights excluded from the source repository [kelvinweijun/gemma-4-developer-agent](https://github.com/kelvinweijun/gemma-4-developer-agent) because of GitHub's file-size limit.
## Variants
| Folder | Kaggle ref | Public score | Description ||---|---|---:|---|| `v7-verra/` | `59099835` | **0.18** | Compaction-aware LoRA r16; best public result || `v9-edit/` | `59245737` | 0.13 | Continuation of v7 trained with changed-token NLL; 54/820 tensors changed |
v8 (`59193994`, 0.13) reused the v7 adapter and is not duplicated.
## Adapter details
- Format: PEFT LoRA- Rank: 16, alpha: 32, dropout: 0.0- Target modules: `q_proj`, `k_proj`, `v_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj`- Task type: causal language modelling- Base model: `google/gemma-4-31b-it-qat-w4a16-ct` (gated; accept the Gemma Terms on Hugging Face)
## Usage
```pythonimport torchfrom transformers import AutoModelForCausalLM, AutoTokenizerfrom peft import PeftModel
base_id = "google/gemma-4-31b-it-qat-w4a16-ct"repo_id = "tensorhydra/gemma-4-developer-agent-adapters"
model = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype="auto", device_map="auto")model = PeftModel.from_pretrained(model, repo_id, subfolder="v7-verra") # or "v9-edit"tokenizer = AutoTokenizer.from_pretrained(base_id)```
Download only one variant:
```bashhf download tensorhydra/gemma-4-developer-agent-adapters --include "v7-verra/*" --local-dir .```
## Results caveat
The competition's public leaderboard is a noisy draw. An unchanged 31B bundle scored 7–12 of 58 public tasks across 11 reruns, and byte-identical reruns disagreed on 8.7% of paired task comparisons. v7's 0.18 is the best public result; v9's 0.13 is one draw, not evidence that the new adapter is worse.
The v9 adapter reduced changed-token negative log-likelihood from 1.254 to 1.066 on eight held-out issues (7/8 improved), but the planned paired repair comparison was not completed before the GPU quota ran out. The repair effect is therefore unmeasured. See the [research findings](https://github.com/kelvinweijun/gemma-4-developer-agent/blob/main/docs/research-findings.md).
## Files and checksums
| File | Bytes | SHA-256 ||---|---:|---|| `v7-verra/adapter_model.safetensors` | 489,840,784 | `45a4cd7337099603f701c9f58e8c77dc190e741911f878249598f956d52cc744` || `v7-verra/adapter_config.json` | 423 | `3973549c06f885d38c0f63bd32f17fc34f4536b3d05841ffc08291cbaaaa8d4d` || `v9-edit/adapter_model.safetensors` | 489,840,816 | `f0f724ecb32a4fee93ed7af61a6378a810e66fb4dd7040c226e9e4ff6e1e7dfb` || `v9-edit/adapter_config.json` | 423 | `3973549c06f885d38c0f63bd32f17fc34f4536b3d05841ffc08291cbaaaa8d4d` |
The same hashes are in `checksums.sha256`.
## License and attribution
These adapters are Model Derivatives of Gemma 4 and are distributed under the [Gemma Terms of Use](https://ai.google.dev/gemma/terms); the [Gemma Prohibited Use Policy](https://ai.google.dev/gemma/prohibited_use_policy) applies. The base model is gated on Hugging Face. See [`NOTICE.md`](NOTICE.md).
The original training code, prompts, configuration and documentation are released under Apache-2.0 in the [source repository](https://github.com/kelvinweijun/gemma-4-developer-agent). No competition task text, repository snapshots, gold patches, hidden tests or per-task transcripts are included.
## Links
- Source archive: https://github.com/kelvinweijun/gemma-4-developer-agent- Research findings: https://github.com/kelvinweijun/gemma-4-developer-agent/blob/main/docs/research-findings.md- Submission history: https://github.com/kelvinweijun/gemma-4-developer-agent/blob/main/docs/submission-history.md- Reproducibility: https://github.com/kelvinweijun/gemma-4-developer-agent/blob/main/docs/reproducibility.md123445a4cd7337099603f701c9f58e8c77dc190e741911f878249598f956d52cc744 v7-verra/adapter_model.safetensors3973549c06f885d38c0f63bd32f17fc34f4536b3d05841ffc08291cbaaaa8d4d v7-verra/adapter_config.jsonf0f724ecb32a4fee93ed7af61a6378a810e66fb4dd7040c226e9e4ff6e1e7dfb v9-edit/adapter_model.safetensors3973549c06f885d38c0f63bd32f17fc34f4536b3d05841ffc08291cbaaaa8d4d v9-edit/adapter_config.json1234567891011121314151617181920212223{ "base_model_name_or_path": "google/gemma-4-31b-it-qat-w4a16-ct", "peft_type": "LORA", "task_type": "CAUSAL_LM", "r": 16, "lora_alpha": 32.0, "lora_dropout": 0.0, "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "use_rslora": false, "use_dora": false, "target_modules": [ "q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj" ]}123version https://git-lfs.github.com/spec/v1oid sha256:45a4cd7337099603f701c9f58e8c77dc190e741911f878249598f956d52cc744size 4898407841234567891011121314151617181920212223{ "base_model_name_or_path": "google/gemma-4-31b-it-qat-w4a16-ct", "peft_type": "LORA", "task_type": "CAUSAL_LM", "r": 16, "lora_alpha": 32.0, "lora_dropout": 0.0, "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "use_rslora": false, "use_dora": false, "target_modules": [ "q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj" ]}123version https://git-lfs.github.com/spec/v1oid sha256:f0f724ecb32a4fee93ed7af61a6378a810e66fb4dd7040c226e9e4ff6e1e7dfbsize 489840816NOTICE.mdAdded+21
README.mdAdded+87
checksums.sha256Added+4
v7-verra/adapter_config.jsonAdded+23
v7-verra/adapter_model.safetensorsAdded+3
v9-edit/adapter_config.jsonAdded+23
v9-edit/adapter_model.safetensorsAdded+3