Instructions to use jordanpainter/diallm-gemma-gspo-aus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jordanpainter/diallm-gemma-gspo-aus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jordanpainter/diallm-gemma-gspo-aus") 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("jordanpainter/diallm-gemma-gspo-aus") model = AutoModelForMultimodalLM.from_pretrained("jordanpainter/diallm-gemma-gspo-aus", 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 jordanpainter/diallm-gemma-gspo-aus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jordanpainter/diallm-gemma-gspo-aus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jordanpainter/diallm-gemma-gspo-aus", "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/jordanpainter/diallm-gemma-gspo-aus
- SGLang
How to use jordanpainter/diallm-gemma-gspo-aus 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 "jordanpainter/diallm-gemma-gspo-aus" \ --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": "jordanpainter/diallm-gemma-gspo-aus", "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 "jordanpainter/diallm-gemma-gspo-aus" \ --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": "jordanpainter/diallm-gemma-gspo-aus", "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 jordanpainter/diallm-gemma-gspo-aus with Docker Model Runner:
docker model run hf.co/jordanpainter/diallm-gemma-gspo-aus
DiaLLM — Gemma 3-4B-it — en-AU — GSPO
Built with Gemma.
Part of DiaLLM: An Investigation into the Robustness-Generation Gap in English Dialect Adaptation (EMNLP 2026 Main).
- Base model: Gemma 3-4B-it
- Target variety: en-AU (Australian English)
- Adaptation thread: explicit (variety-targeted)
- Alignment method: GSPO
Fine-tuned from jordanpainter/diallm-gemma-sft-aus via GSPO with the target-variety preference pairs.
Code, checkpoints, preference datasets, linguistic-analysis toolkit: https://github.com/surrey-nlp/diallm
Paper: https://arxiv.org/abs/2607.07669
This model is a fine-tuned version of jordanpainter/diallm-gemma-sft-aus, trained using TRL.
Training procedure
This model was trained with GSPO.
Framework versions
- TRL: 0.28.0
- Transformers: 4.57.6
- Pytorch: 2.5.1+cu121
- Datasets: 4.5.0
- Tokenizers: 0.22.2
Citation
@article{painter2026diallm,
title = {DiaLLM: An Investigation into the Robustness-Generation Gap in English Dialect Adaptation},
author = {Painter, Jordan and Srirag, Dipankar and Kappiyath, Adarsh and Kanojia, Diptesh and Joshi, Aditya and Yin, Lu},
year = {2026},
eprint = {2607.07669},
archivePrefix = {arXiv}
}
@article{zheng2025groupsequencepolicyoptimization,
title = {{Group Sequence Policy Optimization}},
author = {Chujie Zheng and Shixuan Liu and Mingze Li and Xiong-Hui Chen and Bowen Yu and Chang Gao and Kai Dang and Yuqiong Liu and Rui Men and An Yang and Jingren Zhou and Junyang Lin},
year = 2025,
eprint = {arXiv:2507.18071}
}
@software{vonwerra2020trl,
title = {{TRL: Transformers Reinforcement Learning}},
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
license = {Apache-2.0},
url = {https://github.com/huggingface/trl},
year = {2020}
}
- Downloads last month
- 11
Model tree for jordanpainter/diallm-gemma-gspo-aus
Base model
jordanpainter/diallm-gemma-sft-aus