A vLLM plugin to register the MERaLiON-2-10B model architecture with vLLM’s plugin system.
Project description
MERaLiON2 vLLM Plugin
Licence
Set up Environment
This vLLM plugin for MERaLiON2 requires transformers version 4.50.1. It supports vLLM version 0.6.5 ~ 0.7.3 (V0 engine), and 0.8.5 ~ 0.8.5.post1 (V1 engine).
pip install transformers==4.50.1
pip install vllm==0.6.5
Install the MERaLiON2 vLLM plugin.
python install vllm-plugin-meralion2
It's strongly recommended to install flash-attn for better memory and gpu utilization.
pip install flash-attn --no-build-isolation
Offline Inference
Refer to offline_example.py for offline inference example.
OpenAI-compatible Serving
Refer to openai_serve_example.sh for openAI-compatible serving example.
To call the server, you can refer to openai_client_example.py.
Alternatively, you can try calling the server with curl, refer to openai_client_curl.sh.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vllm_plugin_meralion2-0.1.2.post2.tar.gz.
File metadata
- Download URL: vllm_plugin_meralion2-0.1.2.post2.tar.gz
- Upload date:
- Size: 424.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fef65207508502b908b282d7ac3c864960a9fbb4c84c4513b264ff707d131cf
|
|
| MD5 |
6dce64ea04ff16876b798c376db21527
|
|
| BLAKE2b-256 |
12a4f23e3c3b910ace461c5fb81cf57a214ebe1ac2bd420c8ea63b3e5bb10c5e
|
File details
Details for the file vllm_plugin_meralion2-0.1.2.post2-py3-none-any.whl.
File metadata
- Download URL: vllm_plugin_meralion2-0.1.2.post2-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58f3933a2441ce82e938f89babe617b53ce4392446cda6a10804962698c83de9
|
|
| MD5 |
82768e5a3438601ced2c70c03b083aeb
|
|
| BLAKE2b-256 |
ca33fdbcc6aafc470e9570b97988b3837a480d58487f072f7da68a6541b2baf1
|