RL-MPQ LLaVA-1.5-13B VLM Evaluation
Collection
RL-MPQ fake-quantized LLaVA-1.5-13B vision-language models and their VLMEvalKit benchmark results (MMMU, MMBench, ScienceQA). • 7 items • Updated
How to use AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity")
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 AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity")
model = AutoModelForMultimodalLM.from_pretrained("AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity", device_map="auto")
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?"}
]
},
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity",
"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 run hf.co/AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity
How to use AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity" \
--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": "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity",
"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 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 "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity" \
--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": "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity",
"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"
}
}
]
}
]
}'How to use AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity with Docker Model Runner:
docker model run hf.co/AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity
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 "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity" \
--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": "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity",
"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"
}
}
]
}
]
}'RL-MPQ fake-quantized VLM evaluation artifacts.
| Repo | AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity |
| Scenario | High_Fidelity |
| Avg bits | 6.7 |
| Collection | RL-MPQ VLM — LLaVA-1.5-13B |
| Full results | dataset |
| Model | avg_bits | group | MMMU | MMBench | ScienceQA | Avg | ΔMMMU | ΔMMBench | ΔScienceQA | ΔAvg |
|---|---|---|---|---|---|---|---|---|---|---|
| FP16 (baseline) | 16.0 | llama13b_aggressive | 35.33 | 63.78 | 71.24 | 56.78 | 0.0 | 0.0 | 0.0 | 0.0 |
| INT4 (bnb NF4) | 4.0 | llama13b_aggressive | 35.56 | 61.76 | 71.15 | 56.16 | 0.23 | -2.02 | -0.09 | -0.62 |
| RL-MPQ Aggressive | 3.75 | llama13b_aggressive | 34.56 | 63.0 | 71.1 | 56.22 | -0.77 | -0.78 | -0.14 | -0.56 |
artifacts/figures/ — plots for the model groupartifacts/benchmark_table.csv — FP16 / INT4 / RL-MPQ accuracieseval_results.json — structured eval metadata (if present)Base model
llava-hf/llava-1.5-13b-hf
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity" \ --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": "AvoCahDoe/llava-1.5-13b-rlmpq-high-fidelity", "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" } } ] } ] }'