Instructions to use Mantis-VL/mllava_v1_4096 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mantis-VL/mllava_v1_4096 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Mantis-VL/mllava_v1_4096")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Mantis-VL/mllava_v1_4096") model = AutoModelForMultimodalLM.from_pretrained("Mantis-VL/mllava_v1_4096", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mantis-VL/mllava_v1_4096 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mantis-VL/mllava_v1_4096" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mantis-VL/mllava_v1_4096", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Mantis-VL/mllava_v1_4096
- SGLang
How to use Mantis-VL/mllava_v1_4096 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 "Mantis-VL/mllava_v1_4096" \ --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": "Mantis-VL/mllava_v1_4096", "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 "Mantis-VL/mllava_v1_4096" \ --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": "Mantis-VL/mllava_v1_4096", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Mantis-VL/mllava_v1_4096 with Docker Model Runner:
docker model run hf.co/Mantis-VL/mllava_v1_4096
Commit History
-
Model save
Dongfu JiangVerified signature331209a -
Training in progress, step 8000
Dongfu JiangVerified signature2588360 -
Training in progress, step 7500
Dongfu JiangVerified signature8cdd61e
-
Training in progress, step 7000
Dongfu JiangVerified signature932801d -
Training in progress, step 6500
Dongfu JiangVerified signature887e77a -
Training in progress, step 6000
Dongfu JiangVerified signatureebcba44 -
Training in progress, step 5500
Dongfu JiangVerified signature07bab9f -
Training in progress, step 5000
Dongfu JiangVerified signature20690b4 -
Training in progress, step 4500
Dongfu JiangVerified signaturec5de0ba -
Training in progress, step 4000
Dongfu JiangVerified signature8e246f6 -
Training in progress, step 3500
Dongfu JiangVerified signatureabdfd53 -
Training in progress, step 3000
Dongfu JiangVerified signature5ee2e35 -
Training in progress, step 2500
Dongfu JiangVerified signaturedaa73f4 -
Training in progress, step 2000
Dongfu JiangVerified signature4aca155 -
Training in progress, step 1500
Dongfu JiangVerified signature481c0af -
Training in progress, step 1000
Dongfu JiangVerified signature1633e5b -
Training in progress, step 500
Dongfu JiangVerified signature6a39a77
-
initial commit
Dongfu JiangVerified signaturec65581b