Text Generation
Transformers
Safetensors
Indonesian
English
gemma3n
image-text-to-text
gemma
gemma-3n
unsloth
lora
fine-tuned
indonesian
english
conversational
Instructions to use OpenPathAI/Orbit-4-Gemma-E4B-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenPathAI/Orbit-4-Gemma-E4B-it with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OpenPathAI/Orbit-4-Gemma-E4B-it") 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("OpenPathAI/Orbit-4-Gemma-E4B-it") model = AutoModelForMultimodalLM.from_pretrained("OpenPathAI/Orbit-4-Gemma-E4B-it", 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 OpenPathAI/Orbit-4-Gemma-E4B-it with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenPathAI/Orbit-4-Gemma-E4B-it" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenPathAI/Orbit-4-Gemma-E4B-it", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OpenPathAI/Orbit-4-Gemma-E4B-it
- SGLang
How to use OpenPathAI/Orbit-4-Gemma-E4B-it 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 "OpenPathAI/Orbit-4-Gemma-E4B-it" \ --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": "OpenPathAI/Orbit-4-Gemma-E4B-it", "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 "OpenPathAI/Orbit-4-Gemma-E4B-it" \ --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": "OpenPathAI/Orbit-4-Gemma-E4B-it", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use OpenPathAI/Orbit-4-Gemma-E4B-it with Docker Model Runner:
docker model run hf.co/OpenPathAI/Orbit-4-Gemma-E4B-it
Commit History
19 days ago
-
Upload folder using huggingface_hub
Verified signature92b9b56 -
Upload folder using huggingface_hub
Verified signature1c185ea -
Upload folder using huggingface_hub
Verified signature123301b -
Upload folder using huggingface_hub
Verified signature2ec22e4 -
Upload folder using huggingface_hub
Verified signature5648159 -
Upload folder using huggingface_hub
Verified signaturec4fcc9d -
Upload folder using huggingface_hub
Verified signature50cb211
20 days ago
-
Upload folder using huggingface_hub
Verified signaturef4db3d8 -
Upload folder using huggingface_hub
Verified signaturef2f075b -
Upload folder using huggingface_hub
Verified signaturead3a705 -
Upload folder using huggingface_hub
Verified signature86192d9 -
Upload folder using huggingface_hub
Verified signature44ddd86 -
Upload folder using huggingface_hub
Verified signature6dd1212 -
Upload folder using huggingface_hub
Verified signaturece4493f -
Upload folder using huggingface_hub
Verified signaturea5e4a94 -
Upload folder using huggingface_hub
Verified signatureb7f42d3 -
Upload folder using huggingface_hub
Verified signatureb4d3178 -
Upload folder using huggingface_hub
Verified signaturea2a76ad -
Upload folder using huggingface_hub
Verified signaturef9c0c4d -
Upload folder using huggingface_hub
Verified signature747c628 -
Upload folder using huggingface_hub
Verified signatureaf7d8d1 -
Upload folder using huggingface_hub
Verified signature8fba8ca -
Upload folder using huggingface_hub
Verified signatured534fad -
Upload folder using huggingface_hub
Verified signature956de22 -
Upload folder using huggingface_hub
Verified signaturecfc1405
21 days ago
-
Upload folder using huggingface_hub
Verified signatureac6158b -
Upload folder using huggingface_hub
Verified signature6413931 -
Upload folder using huggingface_hub
Verified signatureb6439c6 -
Upload folder using huggingface_hub
Verified signature334f09b -
Upload folder using huggingface_hub
Verified signature4ebdb4d -
Upload folder using huggingface_hub
Verified signature8fc02cf -
Upload folder using huggingface_hub
Verified signature22e9479 -
Upload folder using huggingface_hub
Verified signature395efd6 -
Upload folder using huggingface_hub
Verified signature545d560 -
Upload folder using huggingface_hub
Verified signature87e9218 -
Upload folder using huggingface_hub
Verified signaturef2f7d21 -
Upload folder using huggingface_hub
Verified signature72c1008 -
Upload folder using huggingface_hub
Verified signaturedcb978d -
Upload folder using huggingface_hub
Verified signaturea9944e6 -
Upload folder using huggingface_hub
Verified signature9796a80 -
Upload folder using huggingface_hub
Verified signaturee3611d5 -
Upload folder using huggingface_hub
Verified signature68901cb -
Upload folder using huggingface_hub
Verified signatureb531b9f -
Upload folder using huggingface_hub
Verified signatureaac349f -
Upload folder using huggingface_hub
Verified signatured9c6cdb -
Upload folder using huggingface_hub
Verified signature62180c6 -
Upload folder using huggingface_hub
Verified signature2d18df9 -
Upload folder using huggingface_hub
Verified signature3e8a550 -
Upload folder using huggingface_hub
Verified signature1e4ef08 -
Upload folder using huggingface_hub
Verified signatured5d7baa