vLLM Hook v0: A Plugin for Programming Model Internal States on vLLMvLLM Hook v0: A Plug-in for Programming Model Internals on vLLM
AI summary
Researchers released vLLM Hook v0 on arXiv, an open-source plugin designed for the vLLM inference engine to program the internal states of deployed models, supporting test-time model alignment and enhancement methods. Users specify the internal states to capture via a configuration file; the plugin provides two functions: passive programming probes selected internal states for subsequent analysis without altering model generation, and active programming intervenes in model generation by modifying internal states. The v0 version demonstrates three use cases: prompt injection detection, enhanced RAG and activation steering. Code is open-sourced at https://github.com/ibm/vllm-hook,作者欢迎社区贡献改进。