Instructions to use kasohrab/gemma-spatial-bbox with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kasohrab/gemma-spatial-bbox with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="kasohrab/gemma-spatial-bbox")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMultimodalLM model = AutoModelForMultimodalLM.from_pretrained("kasohrab/gemma-spatial-bbox", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kasohrab/gemma-spatial-bbox with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kasohrab/gemma-spatial-bbox" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kasohrab/gemma-spatial-bbox", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kasohrab/gemma-spatial-bbox
- SGLang
How to use kasohrab/gemma-spatial-bbox 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 "kasohrab/gemma-spatial-bbox" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kasohrab/gemma-spatial-bbox", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "kasohrab/gemma-spatial-bbox" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kasohrab/gemma-spatial-bbox", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kasohrab/gemma-spatial-bbox with Docker Model Runner:
docker model run hf.co/kasohrab/gemma-spatial-bbox
Commit History
-
Training in progress, step 53000
Verified signatured93aa0f -
Training in progress, step 52000
Verified signature1d08b78 -
Training in progress, step 51000
Verified signaturec1609c8 -
Training in progress, step 50000
Verified signature495d788 -
Training in progress, step 49000
Verified signatureb2f01e0 -
Training in progress, step 48000
Verified signatureb8f2dd4 -
Training in progress, step 47000
Verified signatureaa5f97c -
Training in progress, step 46000
Verified signaturee276af2 -
Training in progress, step 45000
Verified signature1036e76 -
Training in progress, step 44000
Verified signatureec774db -
Training in progress, step 43000
Verified signature5223211 -
Training in progress, step 42000
Verified signature99f3b3c -
Training in progress, step 41000
Verified signature2f67aef -
Training in progress, step 40000
Verified signature9afcf9a -
Training in progress, step 39000
Verified signature78ce718 -
Training in progress, step 38000
Verified signature62267a5 -
Training in progress, step 37000
Verified signature0fc65fb -
Training in progress, step 36000
Verified signaturea941676 -
Training in progress, step 35000
Verified signature5461c01 -
Training in progress, step 34000
Verified signaturec46ee01 -
Training in progress, step 33000
Verified signature913bb9f -
Training in progress, step 32000
Verified signature00644be -
Training in progress, step 31000
Verified signature34047dd -
Training in progress, step 30000
Verified signature6ed63f0 -
Training in progress, step 29000
Verified signature16dd119 -
Training in progress, step 28000
Verified signatureed1b195 -
Training in progress, step 27000
Verified signatured5a67d8 -
Training in progress, step 26000
Verified signature1c88577 -
Training in progress, step 25000
Verified signature1217cb6 -
Training in progress, step 24000
Verified signature768c2f2 -
Training in progress, step 23000
Verified signature218b458 -
Training in progress, step 22000
Verified signature0f212eb -
Training in progress, step 21000
Verified signatureca11ae0 -
Training in progress, step 20000
Verified signaturec603bb5 -
Training in progress, step 19000
Verified signaturee7001b4 -
Training in progress, step 17000
Verified signature2e7192a -
Training in progress, step 16000
Verified signaturebfb127e -
Training in progress, step 15000
Verified signature7bf09d0 -
Training in progress, step 14000
Verified signatureab6383b -
Training in progress, step 13000
Verified signatureb06a6f7 -
Training in progress, step 12000
Verified signature3211893 -
Training in progress, step 11000
Verified signature4894cca -
Training in progress, step 10000
Verified signature6b58613 -
Training in progress, step 9000
Verified signature17eb71a -
Training in progress, step 8000
Verified signature21b1d5a -
Training in progress, step 7000
Verified signaturedb6565e
-
Training in progress, step 5000
Verified signature21a1dc1 -
Training in progress, step 4000
Verified signature74a14f6 -
Training in progress, step 3000
Verified signature6a3f524 -
Training in progress, step 2000
Verified signature252392b