Text Generation
Transformers
Safetensors
gemma4
image-text-to-text
code
coding-assistant
qlora
unsloth
conversational
Eval Results (legacy)
Instructions to use Monibee-Fudgekins/gemma-coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Monibee-Fudgekins/gemma-coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Monibee-Fudgekins/gemma-coder") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Monibee-Fudgekins/gemma-coder") model = AutoModelForMultimodalLM.from_pretrained("Monibee-Fudgekins/gemma-coder", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Monibee-Fudgekins/gemma-coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Monibee-Fudgekins/gemma-coder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Monibee-Fudgekins/gemma-coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Monibee-Fudgekins/gemma-coder
- SGLang
How to use Monibee-Fudgekins/gemma-coder with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Monibee-Fudgekins/gemma-coder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Monibee-Fudgekins/gemma-coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Monibee-Fudgekins/gemma-coder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Monibee-Fudgekins/gemma-coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use Monibee-Fudgekins/gemma-coder with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Monibee-Fudgekins/gemma-coder to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Monibee-Fudgekins/gemma-coder to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Monibee-Fudgekins/gemma-coder to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Monibee-Fudgekins/gemma-coder", max_seq_length=2048, ) - Docker Model Runner
How to use Monibee-Fudgekins/gemma-coder with Docker Model Runner:
docker model run hf.co/Monibee-Fudgekins/gemma-coder
File size: 3,403 Bytes
63c627e 3c9a69f 63c627e 3c9a69f 63c627e 3c9a69f 63c627e 3c9a69f 63c627e 3c9a69f 63c627e 3c9a69f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | ---
license: gemma
base_model: google/gemma-4-26B-A4B-it
datasets:
- bigcode/self-oss-instruct-sc2-exec-filter-50k
library_name: transformers
pipeline_tag: text-generation
tags:
- code
- coding-assistant
- qlora
- unsloth
model-index:
- name: gemma-coder
results:
- task:
type: text-generation
name: Code generation
dataset:
type: code-eval
name: remote-agent-dev-platform coding_eval
metrics:
- type: pass@1
value: 1.0000
name: pass@1 (Python/JS/React/Go/Java/Swift)
---
# gemma-coder
Coding-focused fine-tune of [`google/gemma-4-26B-A4B-it`](https://huggingface.co/google/gemma-4-26B-A4B-it)
(**Gemma 4 26B A4B**, an MoE with ~4B active params), produced automatically by the
weekly retrain pipeline in [remote-agent-dev-platform](https://github.com/Monibee-Fudgekins/remote-agent-dev-platform).
**Last updated: 2026-08-05 15:14 UTC** · run mode: `full` · promoted: **True**.
## Model description
QLoRA fine-tune of google/gemma-4-26B-A4B-it specialized for coding assistance. It is the
default agent model for the remote-agent-dev-platform (served via vLLM on Modal).
## Intended uses & limitations
- **Intended:** code generation and assistance in Python, JavaScript/React, Go, Java,
and Swift, inside a sandboxed agent that runs/tests the output.
- **Not intended:** safety-critical use, or running generated code unreviewed.
- **Limitations:** a small, free-tier-trained model — it can produce incorrect or
insecure code. Always review and test. Quality tracks the training data, which is
still being built out.
## Training data
- Dataset: [`bigcode/self-oss-instruct-sc2-exec-filter-50k`](https://huggingface.co/datasets/bigcode/self-oss-instruct-sc2-exec-filter-50k)
## Training procedure
- Method: QLoRA (Unsloth), 4-bit base, LoRA r=8 / alpha=16 on
attention only, lr 2e-05,
max seq len 768, optimizer adamw_8bit.
- Progress: **cycle 1 — 2831 / 4000 steps** (trained
in weekly ~8h chunks on Kaggle's free 2×T4, resuming each week; training is
continuous — a finished cycle rolls into the next).
## Evaluation
Sandboxed multi-language **pass@1** harness (`finetune/evaluate.py`): the model
completes functions that are then compiled/run against unit tests. Languages whose
toolchain is unavailable are skipped.
**Overall pass@1: 100.00%** over 16 executed problems
(4 skipped). Promotion threshold: 80%.
| language | passed / run | pass@1 |
|---|---|---|
| go | 4/4 | 100.00% |
| java | 4/4 | 100.00% |
| javascript | 4/4 | 100.00% |
| python | 4/4 | 100.00% |
| swift | 0/0 | skipped (no toolchain) |
## How to use
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Monibee-Fudgekins/gemma-coder")
model = AutoModelForCausalLM.from_pretrained("Monibee-Fudgekins/gemma-coder", device_map="auto")
msgs = [{"role": "user", "content": "Write a Python function that reverses a string."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
print(tok.decode(model.generate(ids, max_new_tokens=256)[0]))
```
## Provenance
Generated by `finetune/kaggle/run.py` in [https://github.com/Monibee-Fudgekins/remote-agent-dev-platform](https://github.com/Monibee-Fudgekins/remote-agent-dev-platform); see that repo for
the full training + eval pipeline.
|