Instructions to use kasohrab/gemma-spatial-bbox-fixed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kasohrab/gemma-spatial-bbox-fixed 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-fixed")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMultimodalLM model = AutoModelForMultimodalLM.from_pretrained("kasohrab/gemma-spatial-bbox-fixed", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kasohrab/gemma-spatial-bbox-fixed 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-fixed" # 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-fixed", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kasohrab/gemma-spatial-bbox-fixed
- SGLang
How to use kasohrab/gemma-spatial-bbox-fixed 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-fixed" \ --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-fixed", "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-fixed" \ --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-fixed", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kasohrab/gemma-spatial-bbox-fixed with Docker Model Runner:
docker model run hf.co/kasohrab/gemma-spatial-bbox-fixed
Commit History
-
Model save
Verified signatureae4ad5d -
Training in progress, step 99000
Verified signature40ff6aa -
Training in progress, step 98000
Verified signatureb28e772 -
Training in progress, step 97000
Verified signature411e7c5 -
Training in progress, step 96000
Verified signature245a41b -
Training in progress, step 95000
Verified signature8d5637b -
Training in progress, step 94000
Verified signature0eb232c -
Training in progress, step 93000
Verified signature3caf1d4 -
Training in progress, step 92000
Verified signature2930a3b -
Training in progress, step 91000
Verified signature05cc677 -
Training in progress, step 90000
Verified signature8e5b874 -
Training in progress, step 89000
Verified signature481d132 -
Training in progress, step 88000
Verified signatureb23bf67 -
Training in progress, step 87000
Verified signature274573b -
Training in progress, step 86000
Verified signaturec6fe505 -
Training in progress, step 85000
Verified signatured92aa60 -
Training in progress, step 84000
Verified signature2903659 -
Training in progress, step 83000
Verified signatureafc14d3 -
Training in progress, step 82000
Verified signaturecbe2160 -
Training in progress, step 81000
Verified signaturec76059e -
Training in progress, step 80000
Verified signaturecf5b10e
-
Training in progress, step 79000
Verified signaturef0ce29e -
Training in progress, step 78000
Verified signature73ddd66 -
Training in progress, step 77000
Verified signature5aa20a0 -
Training in progress, step 74000
Verified signature91a1052 -
Training in progress, step 73000
Verified signatured36fe51 -
Training in progress, step 72000
Verified signature0119109 -
Training in progress, step 71000
Verified signature9b926b2 -
Training in progress, step 70000
Verified signaturef1baa0a -
Training in progress, step 69000
Verified signaturec2af827 -
Training in progress, step 68000
Verified signature1e302b6 -
Training in progress, step 67000
Verified signaturec3ff5b0 -
Training in progress, step 66000
Verified signature28b41f9 -
Training in progress, step 65000
Verified signature16f3d4a -
Training in progress, step 64000
Verified signature25be114 -
Training in progress, step 63000
Verified signatured3d6a47 -
Training in progress, step 62000
Verified signature6f4be6f -
Training in progress, step 61000
Verified signature9a485d1 -
Training in progress, step 60000
Verified signature3ce8ee3 -
Training in progress, step 59000
Verified signatureafc1ece -
Training in progress, step 58000
Verified signature2618c44 -
Training in progress, step 57000
Verified signature6f39de4 -
Training in progress, step 56000
Verified signatured332a48 -
Training in progress, step 55000
Verified signature5dffc69 -
Training in progress, step 54000
Verified signature996eb38 -
Training in progress, step 53000
Verified signature564e0c8 -
Training in progress, step 52000
Verified signatured8ce971 -
Training in progress, step 50000
Verified signatureb3c2fb5 -
Training in progress, step 49000
Verified signature3df908d -
Training in progress, step 48000
Verified signature2299149