Image-Text-to-Text
Transformers
Safetensors
English
spatialvla
feature-extraction
VLA
Foundation Vision-language-action Model
Generalist Robot Policy
robotics
custom_code
Instructions to use IPEC-COMMUNITY/spatialvla-4b-224-pt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IPEC-COMMUNITY/spatialvla-4b-224-pt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="IPEC-COMMUNITY/spatialvla-4b-224-pt", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("IPEC-COMMUNITY/spatialvla-4b-224-pt", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IPEC-COMMUNITY/spatialvla-4b-224-pt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IPEC-COMMUNITY/spatialvla-4b-224-pt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IPEC-COMMUNITY/spatialvla-4b-224-pt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/IPEC-COMMUNITY/spatialvla-4b-224-pt
- SGLang
How to use IPEC-COMMUNITY/spatialvla-4b-224-pt 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 "IPEC-COMMUNITY/spatialvla-4b-224-pt" \ --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": "IPEC-COMMUNITY/spatialvla-4b-224-pt", "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 "IPEC-COMMUNITY/spatialvla-4b-224-pt" \ --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": "IPEC-COMMUNITY/spatialvla-4b-224-pt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use IPEC-COMMUNITY/spatialvla-4b-224-pt with Docker Model Runner:
docker model run hf.co/IPEC-COMMUNITY/spatialvla-4b-224-pt
Commit History
-
Upload folder using huggingface_hub
Verified signature886c455 -
Delete files modeling_ego3d.py with huggingface_hub
Verified signatureca972dc -
Upload folder using huggingface_hub
Verified signature365b6d8
-
Update README.md
Verified signature170bdc5 -
Update README.md
Verified signature2eae0b7
-
Update README.md
Verified signaturecf960b5 -
Update README.md
Verified signature01f5ea2
-
Update README.md
Verified signature01b609f -
Delete files gaussian_statistic.json with huggingface_hub
Verified signature312a36c -
Delete files dataset_statistics.json with huggingface_hub
Verified signaturea0902ec -
Upload folder using huggingface_hub
Verified signature8cbc8de
-
initial commit
Verified signature985151c