Instructions to use prithivMLmods/SpatialBlock-3B-direct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/SpatialBlock-3B-direct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/SpatialBlock-3B-direct-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/SpatialBlock-3B-direct-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/SpatialBlock-3B-direct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/SpatialBlock-3B-direct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/SpatialBlock-3B-direct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/SpatialBlock-3B-direct-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/SpatialBlock-3B-direct-GGUF 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 "prithivMLmods/SpatialBlock-3B-direct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/SpatialBlock-3B-direct-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "prithivMLmods/SpatialBlock-3B-direct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/SpatialBlock-3B-direct-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use prithivMLmods/SpatialBlock-3B-direct-GGUF with Ollama:
ollama run hf.co/prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use prithivMLmods/SpatialBlock-3B-direct-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/SpatialBlock-3B-direct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/SpatialBlock-3B-direct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.SpatialBlock-3B-direct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Add files using upload-large-folder tool
Browse files
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
SpatialBlock-3B-direct.mmproj-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
SpatialBlock-3B-direct.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
SpatialBlock-3B-direct.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
SpatialBlock-3B-direct.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
SpatialBlock-3B-direct.BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31613819b83bb6c302e90bdf4c4bcb82c230cdd69c21dbe683b91d740834b281
|
| 3 |
+
size 6178315968
|
SpatialBlock-3B-direct.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a214a4a041be9788918e821c233278bdb90122dd9e006f21c20f877d96cfb48
|
| 3 |
+
size 1929901760
|
SpatialBlock-3B-direct.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15e2c77cb6495323bda6cd1e2251d286e4d64031298cc22037d372a27511ee9e
|
| 3 |
+
size 2224813760
|
SpatialBlock-3B-direct.mmproj-bf16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:634fadd8ef6959165feb344f0281b2132a14198eb6d1982bd2a6f2ce7101af1c
|
| 3 |
+
size 1341439392
|