Instructions to use yaosijiaaaaa/LLM-QE-DPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yaosijiaaaaa/LLM-QE-DPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yaosijiaaaaa/LLM-QE-DPO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("yaosijiaaaaa/LLM-QE-DPO", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yaosijiaaaaa/LLM-QE-DPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yaosijiaaaaa/LLM-QE-DPO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yaosijiaaaaa/LLM-QE-DPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yaosijiaaaaa/LLM-QE-DPO
- SGLang
How to use yaosijiaaaaa/LLM-QE-DPO 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 "yaosijiaaaaa/LLM-QE-DPO" \ --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": "yaosijiaaaaa/LLM-QE-DPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "yaosijiaaaaa/LLM-QE-DPO" \ --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": "yaosijiaaaaa/LLM-QE-DPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use yaosijiaaaaa/LLM-QE-DPO with Docker Model Runner:
docker model run hf.co/yaosijiaaaaa/LLM-QE-DPO
π§ LLM-QE: Improving Query Expansion by Aligning Large Language Models with Ranking Preferences
This is the official model for LLM-QE: Improving Query Expansion by Aligning Large Language Models with Ranking Preferences.
The LLM-QE model is designed to enhance query expansion in information retrieval tasks by leveraging Large Language Models (LLMs), improving the alignment between LLMs and ranking preferences during query expansion.
π Paper
For a detailed explanation of the methodology and experiments, please refer to our paper:
LLM-QE: Improving Query Expansion by Aligning Large Language Models with Ranking Preferences
π Reproduce the Results
To reproduce the experiments and benchmarks from the paper, follow the instructions provided in the official GitHub repository: π GitHub: NEUIR/LLM-QE.
π Model Details
- Model Name: LLM-QE-DPO
- Architecture: LLaMA3-8B-Instruct with query expansion alignment using ranking preferences
π Usage:
You can use this model for query expansion tasks, particularly in information retrieval systems that benefit from alignment with ranking preferences.
π Citation
If you use LLM-QE in your work, please consider citing our paper:
@misc{yao2025llmqeimprovingqueryexpansion,
title={LLM-QE: Improving Query Expansion by Aligning Large Language Models with Ranking Preferences},
author={Sijia Yao and Pengcheng Huang and Zhenghao Liu and Yu Gu and Yukun Yan and Shi Yu and Ge Yu},
year={2025},
eprint={2502.17057},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2502.17057},
}
Model tree for yaosijiaaaaa/LLM-QE-DPO
Base model
meta-llama/Meta-Llama-3-8B-Instruct