vllm-project / vllm

A high-throughput and memory-efficient inference and serving engine for LLMs
https://docs.vllm.ai
Apache License 2.0
30.31k stars 4.59k forks source link

[Feature]: support Classifier-Free Guidance Logits processor #5245

Open zhaoyinglia opened 5 months ago

zhaoyinglia commented 5 months ago

🚀 The feature, motivation and pitch

Implementation in transformers: https://github.com/huggingface/transformers/blob/6b22a8f2d8ded6b2a681e1c078b0e1abf27d045c/src/transformers/generation/logits_process.py#L2171

Hi, the Classifier-Free Guidance Logits processor need re-run the model forward process with unconditional_ids in comput_logits process, how to make this happen in vLLM?

Alternatives

No response

Additional context

No response

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!