Instructions to use Kushtrim/gemma4-31b-unsloth-full-finetune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kushtrim/gemma4-31b-unsloth-full-finetune with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Kushtrim/gemma4-31b-unsloth-full-finetune") 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("Kushtrim/gemma4-31b-unsloth-full-finetune") model = AutoModelForMultimodalLM.from_pretrained("Kushtrim/gemma4-31b-unsloth-full-finetune", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kushtrim/gemma4-31b-unsloth-full-finetune with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kushtrim/gemma4-31b-unsloth-full-finetune" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kushtrim/gemma4-31b-unsloth-full-finetune", "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/Kushtrim/gemma4-31b-unsloth-full-finetune
- SGLang
How to use Kushtrim/gemma4-31b-unsloth-full-finetune 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 "Kushtrim/gemma4-31b-unsloth-full-finetune" \ --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": "Kushtrim/gemma4-31b-unsloth-full-finetune", "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 "Kushtrim/gemma4-31b-unsloth-full-finetune" \ --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": "Kushtrim/gemma4-31b-unsloth-full-finetune", "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 Kushtrim/gemma4-31b-unsloth-full-finetune with Docker Model Runner:
docker model run hf.co/Kushtrim/gemma4-31b-unsloth-full-finetune
Gemma 4 31B Full Fine-tune
Fine-tuned, released, and maintained by Kushtrim Visoka.
Kushtrim/gemma4-31b-unsloth-full-finetune is a task- and language-adapted checkpoint from the
Gemma 4 family. The repository name describes the intended variant;
the technical properties below are taken from its saved configuration.
Model details
| Property | Value |
|---|---|
| Model type | Multimodal conditional generation |
| Architecture | Gemma4ForConditionalGeneration |
| Intended language(s) | en |
| Saved precision | BF16 |
| Context or generation limit | 262,144 tokens (configuration maximum) |
Intended use
- Research and evaluation in the languages and task indicated by the repository name.
- Comparison with the upstream model family.
- Further task- or domain-specific adaptation where the applicable license permits.
Evaluation and limitations
- A standardized benchmark suite is not documented in this model card yet.
- Evaluate the checkpoint on representative held-out data before deployment.
- Fine-tuning can preserve or amplify limitations and biases from the upstream model and training data.
- Generated text or transcripts may be inaccurate. Human review is required for consequential use.
- The configured maximum context does not guarantee reliable quality at every sequence length.
Development and attribution
- Original architecture and base-model family: Google DeepMind Gemma Team
- Full fine-tuning, checkpoint packaging, release, and repository maintenance: Kushtrim Visoka
- Model card: Kushtrim Visoka
Acknowledgements
This work builds on Gemma 4 and the work of its original authors. The upstream architecture and base weights remain the work of their respective creators. This repository documents the derivative fine-tuning, packaging, and release work carried out by Kushtrim Visoka and does not claim authorship of the original model. Users should also follow the upstream model's license and citation requirements.
Citation
If you use this checkpoint, please cite this repository and the original upstream model.
@misc{visoka_gemma4_31b_full_finetune_2026,
author = {Visoka, Kushtrim},
title = {Gemma 4 31B Full Fine-tune},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/Kushtrim/gemma4-31b-unsloth-full-finetune},
note = {Fine-tuned derivative of the Gemma 4 family}
}
- Downloads last month
- -