Views
No views yet
1from vllm import LLM, SamplingParams
2
3# Load the quantized model
4llm = LLM(
5 model="lsm0729/Qwen2.5-VL-3B-Instruct-quantized.w8a8",
6 trust_remote_code=True,
7 max_model_len=4096,
8)
9
10# Generate
11sampling_params = SamplingParams(temperature=0.7, top_p=0.9, max_tokens=512)
12outputs = llm.generate(prompts, sampling_params)1pip install vllm>=0.14.0
2pip install qwen-vl-utils1@article{qwen2.5-vl,
2 title={Qwen2.5-VL: Pushing the Limits of Visual Understanding},
3 author={Qwen Team},
4 year={2024}
5}