Image-Text-to-Text
PEFT
Safetensors
GGUF
Transformers
computer-use
gui-agent
multimodal
action-model
lora
sft
trl
mantis
conversational
Instructions to use cabal-ai/mantis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cabal-ai/mantis with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Hcompany/Holo3-35B-A3B") model = PeftModel.from_pretrained(base_model, "cabal-ai/mantis") - Transformers
How to use cabal-ai/mantis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="cabal-ai/mantis") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cabal-ai/mantis", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cabal-ai/mantis with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cabal-ai/mantis" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cabal-ai/mantis", "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/cabal-ai/mantis
- SGLang
How to use cabal-ai/mantis 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 "cabal-ai/mantis" \ --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": "cabal-ai/mantis", "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 "cabal-ai/mantis" \ --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": "cabal-ai/mantis", "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" } } ] } ] }' - Docker Model Runner
How to use cabal-ai/mantis with Docker Model Runner:
docker model run hf.co/cabal-ai/mantis
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -10,10 +10,13 @@ tags:
|
|
| 10 |
- multimodal
|
| 11 |
- action-model
|
| 12 |
- lora
|
|
|
|
| 13 |
- gguf
|
| 14 |
- sft
|
| 15 |
- trl
|
|
|
|
| 16 |
- mantis
|
|
|
|
| 17 |
model_name: Mantis
|
| 18 |
---
|
| 19 |
|
|
|
|
| 10 |
- multimodal
|
| 11 |
- action-model
|
| 12 |
- lora
|
| 13 |
+
- peft
|
| 14 |
- gguf
|
| 15 |
- sft
|
| 16 |
- trl
|
| 17 |
+
- transformers
|
| 18 |
- mantis
|
| 19 |
+
- base_model:adapter:Hcompany/Holo3-35B-A3B
|
| 20 |
model_name: Mantis
|
| 21 |
---
|
| 22 |
|