Instructions to use Kushtrim/gemma4-e4b-sq-en-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kushtrim/gemma4-e4b-sq-en-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Kushtrim/gemma4-e4b-sq-en-v2") 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("Kushtrim/gemma4-e4b-sq-en-v2") model = AutoModelForMultimodalLM.from_pretrained("Kushtrim/gemma4-e4b-sq-en-v2", 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 Kushtrim/gemma4-e4b-sq-en-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kushtrim/gemma4-e4b-sq-en-v2" # 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-e4b-sq-en-v2", "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-e4b-sq-en-v2
- SGLang
How to use Kushtrim/gemma4-e4b-sq-en-v2 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-e4b-sq-en-v2" \ --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-e4b-sq-en-v2", "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-e4b-sq-en-v2" \ --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-e4b-sq-en-v2", "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-e4b-sq-en-v2 with Docker Model Runner:
docker model run hf.co/Kushtrim/gemma4-e4b-sq-en-v2
Gemma 4 E4B Albanian–English v2
Fine-tuned, released, and maintained by Kushtrim Visoka.
Kushtrim/gemma4-e4b-sq-en-v2 is a task- and language-adapted checkpoint from the
Gemma 4 E4B 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 (text, image, and audio) |
| Architecture | Gemma4ForConditionalGeneration |
| Intended language(s) | sq, en |
| Saved precision | FP32 |
| Context or generation limit | 131,072 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
- Albanian–English adaptation, fine-tuning, checkpoint packaging, release, and repository maintenance: Kushtrim Visoka
- Model card: Kushtrim Visoka
Acknowledgements
This work builds on Gemma 4 E4B 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_e4b_sq_en_v2_2026,
author = {Visoka, Kushtrim},
title = {Gemma 4 E4B Albanian–English v2},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/Kushtrim/gemma4-e4b-sq-en-v2},
note = {Fine-tuned derivative of the Gemma 4 E4B family}
}
- Downloads last month
- 3