Instructions to use kasohrab/theworld-spatial-gemma-vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kasohrab/theworld-spatial-gemma-vision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="kasohrab/theworld-spatial-gemma-vision")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMultimodalLM model = AutoModelForMultimodalLM.from_pretrained("kasohrab/theworld-spatial-gemma-vision", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kasohrab/theworld-spatial-gemma-vision with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kasohrab/theworld-spatial-gemma-vision" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kasohrab/theworld-spatial-gemma-vision", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kasohrab/theworld-spatial-gemma-vision
- SGLang
How to use kasohrab/theworld-spatial-gemma-vision 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/theworld-spatial-gemma-vision" \ --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/theworld-spatial-gemma-vision", "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/theworld-spatial-gemma-vision" \ --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/theworld-spatial-gemma-vision", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kasohrab/theworld-spatial-gemma-vision with Docker Model Runner:
docker model run hf.co/kasohrab/theworld-spatial-gemma-vision
Commit History
-
Model save
Verified signature44ad81a -
Training in progress, step 100000
Verified signaturee1ac90d -
Training in progress, step 99000
Verified signature66dbbc5 -
Training in progress, step 98000
Verified signatureaf3012d -
Training in progress, step 97000
Verified signature61786ca -
Training in progress, step 96000
Verified signature5b3747c -
Training in progress, step 95000
Verified signature562cd10 -
Training in progress, step 94000
Verified signature3b64a36 -
Training in progress, step 93000
Verified signature60dfb49 -
Training in progress, step 92000
Verified signature9d031c3 -
Training in progress, step 91000
Verified signatured838896 -
Training in progress, step 90000
Verified signature902d420 -
Training in progress, step 89000
Verified signature0868b46 -
Training in progress, step 88000
Verified signature952242a -
Training in progress, step 87000
Verified signatureae27bc5 -
Training in progress, step 86000
Verified signaturebcde0af -
Training in progress, step 85000
Verified signaturee19edb1 -
Training in progress, step 84000
Verified signature65d0f97 -
Training in progress, step 83000
Verified signatureeb2eb27 -
Training in progress, step 82000
Verified signature41103e8 -
Training in progress, step 81000
Verified signaturee1bc5d9 -
Training in progress, step 80000
Verified signatureab20c51 -
Training in progress, step 79000
Verified signature99a64e0 -
Training in progress, step 78000
Verified signature8939879 -
Training in progress, step 76000
Verified signature54118d8 -
Training in progress, step 75000
Verified signature98ca65a -
Training in progress, step 74000
Verified signature6f647cc -
Training in progress, step 73000
Verified signatureab3e3b5 -
Training in progress, step 72000
Verified signature32df982 -
Training in progress, step 71000
Verified signaturef668269 -
Training in progress, step 70000
Verified signature8b2e174 -
Training in progress, step 69000
Verified signature3ab22ce -
Training in progress, step 68000
Verified signature46d7d53 -
Training in progress, step 67000
Verified signature348919d -
Training in progress, step 66000
Verified signature9247d94 -
Training in progress, step 65000
Verified signature5cf60ff -
Training in progress, step 64000
Verified signature5d0cd0e -
Training in progress, step 63000
Verified signatureb2554cf -
Training in progress, step 62000
Verified signature66a443a -
Training in progress, step 61000
Verified signaturea9a4a66 -
Training in progress, step 60000
Verified signature5506495 -
Training in progress, step 59000
Verified signaturea3dfa28 -
Training in progress, step 58000
Verified signature35df1a7 -
Training in progress, step 57000
Verified signature9b8a0dd -
Training in progress, step 56000
Verified signature18450be -
Training in progress, step 55000
Verified signature0cf958e -
Training in progress, step 54000
Verified signaturee034b6b -
Training in progress, step 53000
Verified signature29e79af -
Training in progress, step 52000
Verified signature0e9cda0 -
Training in progress, step 51000
Verified signatureda0afb1