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
-
Model save
Verified signature854d208 -
Training in progress, step 100000
Verified signatureb63d463 -
Training in progress, step 99000
Verified signatured5b9a70 -
Training in progress, step 98000
Verified signature369044d -
Training in progress, step 97000
Verified signature807e54e -
Training in progress, step 96000
Verified signaturec1f7eec -
Training in progress, step 95000
Verified signaturec5b842e -
Training in progress, step 94000
Verified signature603224c -
Training in progress, step 93000
Verified signature6f2389c -
Training in progress, step 92000
Verified signature6bed0fd -
Training in progress, step 91000
Verified signature293503d -
Training in progress, step 90000
Verified signature4c25c3b -
Training in progress, step 89000
Verified signatured20d33b
-
Training in progress, step 88000
Verified signaturec9ab69d -
Training in progress, step 87000
Verified signature985ef6a -
Training in progress, step 86000
Verified signature3d9f670 -
Training in progress, step 85000
Verified signaturef36a59b -
Training in progress, step 84000
Verified signatured5ebb19 -
Training in progress, step 83000
Verified signature033d72f -
Training in progress, step 82000
Verified signaturee1029cb -
Training in progress, step 81000
Verified signaturee1e5180 -
Training in progress, step 80000
Verified signature94c9eb3 -
Training in progress, step 79000
Verified signature3df580f -
Training in progress, step 78000
Verified signature98a07f1 -
Training in progress, step 77000
Verified signature8c275bf -
Training in progress, step 76000
Verified signatureb52c4c2 -
Training in progress, step 75000
Verified signaturea021d1a -
Training in progress, step 74000
Verified signaturea182062 -
Training in progress, step 73000
Verified signature8ffafd3 -
Training in progress, step 72000
Verified signaturea3171db -
Training in progress, step 71000
Verified signature21faa54 -
Training in progress, step 70000
Verified signature7395f84 -
Training in progress, step 69000
Verified signature2cdd4b2 -
Training in progress, step 68000
Verified signature43e7ce0 -
Training in progress, step 67000
Verified signature7fefdb9 -
Training in progress, step 66000
Verified signature5842e96 -
Training in progress, step 65000
Verified signature788b26c -
Training in progress, step 64000
Verified signatureb0fc888 -
Training in progress, step 63000
Verified signatureedf54d3 -
Training in progress, step 62000
Verified signatured2dc6a0 -
Training in progress, step 61000
Verified signaturead2a4c4 -
Training in progress, step 60000
Verified signature0426e89 -
Training in progress, step 59000
Verified signature3063372 -
Training in progress, step 58000
Verified signature20a8786 -
Training in progress, step 57000
Verified signature27daabc -
Training in progress, step 56000
Verified signature10877df -
Training in progress, step 55000
Verified signaturef0420c5 -
Training in progress, step 54000
Verified signature1549422 -
Training in progress, step 53000
Verified signatured93aa0f -
Training in progress, step 52000
Verified signature1d08b78