Image-Text-to-Text
Transformers
Safetensors
gemma3
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use burtenshaw/GemmaCoder3-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use burtenshaw/GemmaCoder3-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="burtenshaw/GemmaCoder3-12B") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("burtenshaw/GemmaCoder3-12B") model = AutoModelForMultimodalLM.from_pretrained("burtenshaw/GemmaCoder3-12B", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use burtenshaw/GemmaCoder3-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "burtenshaw/GemmaCoder3-12B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "burtenshaw/GemmaCoder3-12B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/burtenshaw/GemmaCoder3-12B
- SGLang
How to use burtenshaw/GemmaCoder3-12B 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 "burtenshaw/GemmaCoder3-12B" \ --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": "burtenshaw/GemmaCoder3-12B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "burtenshaw/GemmaCoder3-12B" \ --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": "burtenshaw/GemmaCoder3-12B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use burtenshaw/GemmaCoder3-12B with Docker Model Runner:
docker model run hf.co/burtenshaw/GemmaCoder3-12B
Commit History
-
Update README.md
Verified signaturef97469e -
Update README.md
Verified signatureb490f7d -
Update README.md
Verified signaturea27e42d -
Update README.md
Verified signaturea858200 -
Update README.md
Verified signature3914489
-
Upload preprocessor_config.json with huggingface_hub
Verified signature824f1ae -
Upload processor_config.json with huggingface_hub
Verified signature3d77021 -
End of training
Verified signatureb743681
-
End of training
Verified signaturec1f688d -
Training in progress, step 2984
Verified signaturedcbaa9b -
Training in progress, step 2900
Verified signature51b9a56 -
Training in progress, step 2800
Verified signaturee97168b -
Training in progress, step 2700
Verified signature2d815b7 -
Training in progress, step 2600
Verified signature6f5903e -
Training in progress, step 2500
Verified signature9677def -
Training in progress, step 2400
Verified signature07783b2 -
Training in progress, step 2300
Verified signature95ad0c1 -
Training in progress, step 2200
Verified signature4b84048 -
Training in progress, step 2100
Verified signature1759e55 -
Training in progress, step 2000
Verified signatureef3ccef -
Training in progress, step 1900
Verified signature265ade3 -
Training in progress, step 1800
Verified signature87c6c4a -
Training in progress, step 1700
Verified signaturef4ee8f9 -
Training in progress, step 1600
Verified signature8240687 -
Training in progress, step 1500
Verified signature4f91b8c -
Training in progress, step 1400
Verified signature461126a -
Training in progress, step 1300
Verified signature6c58bd7
-
Training in progress, step 1200
Verified signatureea9b3d9 -
Training in progress, step 1100
Verified signature14b9a16 -
Training in progress, step 900
Verified signature803f615 -
Training in progress, step 800
Verified signature58c9806 -
Training in progress, step 700
Verified signature9554e0f -
Training in progress, step 600
Verified signature81ed870 -
Training in progress, step 500
Verified signatureb4259f4 -
Training in progress, step 400
Verified signatured89fb4d -
Training in progress, step 300
Verified signaturea3d8e1d -
Training in progress, step 200
Verified signatureab2026f -
Training in progress, step 100
Verified signature6691de6
-
End of training
Verified signaturedf9d1f5 -
initial commit
Verified signature2de3383