Instructions to use BELLE-2/BELLE-VL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BELLE-2/BELLE-VL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BELLE-2/BELLE-VL", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BELLE-2/BELLE-VL", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BELLE-2/BELLE-VL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BELLE-2/BELLE-VL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BELLE-2/BELLE-VL", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BELLE-2/BELLE-VL
- SGLang
How to use BELLE-2/BELLE-VL 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 "BELLE-2/BELLE-VL" \ --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": "BELLE-2/BELLE-VL", "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 "BELLE-2/BELLE-VL" \ --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": "BELLE-2/BELLE-VL", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BELLE-2/BELLE-VL with Docker Model Runner:
docker model run hf.co/BELLE-2/BELLE-VL
Commit History
-
Update README.md
663b052
-
Delete pytorch_model-00003-of-00004.bin
18b6885 -
Delete pytorch_model-00004-of-00004.bin
0b734ab -
Delete pytorch_model-00002-of-00004.bin
59aeea3 -
Delete pytorch_model-00001-of-00004.bin
13ddb8f -
Update README.md
231b040 -
Upload pytorch_model-00002-of-00004.bin
635d795
-
Update README.md
3bff257 -
Upload pytorch_model-00003-of-00004.bin
88a40c6 -
Upload pytorch_model-00001-of-00004.bin
a7c0072 -
Upload pytorch_model-00004-of-00004.bin
e7cd42f -
Update README.md
84d3852
-
Update README.md
2ba12a5
-
Update README.md
862fc47 -
Delete pytorch_model-00004-of-00004.bin
144e9ca -
Delete pytorch_model-00003-of-00004.bin
651c886 -
Delete pytorch_model-00002-of-00004.bin
9325308 -
Delete pytorch_model-00001-of-00004.bin
4785767
-
Update README.md
7050155 -
Update README.md
5508c76
-
Update README.md
30a51e5
-
Update README.md (#1)
- Update README.md (457f20c7a46da2bfbaa382426c7cbe77977f877b)7c3b479 -
Upload train.png
50ee5f8 -
Update README.md
3b89774 -
Upload pytorch_model-00002-of-00004.bin
63963f0 -
Upload pytorch_model-00004-of-00004.bin
7be0890 -
Upload pytorch_model-00003-of-00004.bin
c9717a6 -
Upload pytorch_model-00001-of-00004.bin
0c3f2df
-
Upload 11 files
92d898b -
Upload train.png
bcd1310 -
Update README.md
4a06bca -
Update README.md
fe4fa7f -
Update README.md
cfca544 -
Update README.md
f9660a9 -
Upload train.png
81de61f -
Update README.md
106a9b1 -
initial commit
573ac83