Instructions to use Mantis-VL/mfuyu_llava_diff_8192_480p with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mantis-VL/mfuyu_llava_diff_8192_480p with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mantis-VL/mfuyu_llava_diff_8192_480p")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("Mantis-VL/mfuyu_llava_diff_8192_480p") model = AutoModelForCausalLM.from_pretrained("Mantis-VL/mfuyu_llava_diff_8192_480p", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mantis-VL/mfuyu_llava_diff_8192_480p with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mantis-VL/mfuyu_llava_diff_8192_480p" # 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/mfuyu_llava_diff_8192_480p", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Mantis-VL/mfuyu_llava_diff_8192_480p
- SGLang
How to use Mantis-VL/mfuyu_llava_diff_8192_480p 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/mfuyu_llava_diff_8192_480p" \ --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/mfuyu_llava_diff_8192_480p", "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/mfuyu_llava_diff_8192_480p" \ --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/mfuyu_llava_diff_8192_480p", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Mantis-VL/mfuyu_llava_diff_8192_480p with Docker Model Runner:
docker model run hf.co/Mantis-VL/mfuyu_llava_diff_8192_480p
Download training_args.bin from Mantis-VL/mfuyu_llava_diff_8192_480p: direct link, hf CLI and curl.
- Browser
- Download file 6.01 kB
-
https://huggingface.co/Mantis-VL/mfuyu_llava_diff_8192_480p/resolve/main/training_args.bin
- Command line
-
hf download hf://Mantis-VL/mfuyu_llava_diff_8192_480p/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/Mantis-VL/mfuyu_llava_diff_8192_480p/resolve/main/training_args.bin
6.01 kB
- Xet hash:
- dc5a51f4260f7659158d5bff2b205da8ed7965762934da7aa9836694c95024f0
- Size of remote file:
- 6.01 kB
- SHA256:
- a0ed5a644a74853cc839d9675fd3b5c4d0cce202db83767435cf644533184950
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.