Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vLLM-Ext: Full enabling of ALiBi #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tannervoas742
Copy link
Contributor

Changes:

  • Added back alibi biases to decode stage.
  • Optimized ALiBI memory usage.
    • Added environment variable "VLLM_PROMPT_ALIBI_MAX_SEQ_LEN" to allow large models to run with restricted prompt lengths.
    • Prompt biases instantiated once in init rather than each forward.
    • Prompt and decode biases are shared across encoder/decoder layers.
  • Added environment variable "VLLM_ALIBI_USE_FLOAT32_BIASES" to resolve accuracy issue on long sequences.
  • Updated jais, mpt, falcon, baichuan, and bloom to work with ALiBI.
    • Due to bloom's 176B parameter size I was unable to test this model. Its changes are the simplest though.
  • Works in lazy and eager mode.
  • ALiBI is restricted to "VLLM_PROMPT_USE_FUSEDSDPA=false", and "VLLM_CONTIGUOUS_PA=true".
  • Add position offsets to improve quality on BS > 1 with sequences of varying length.
  • BS > 1 may have accuracy issues if on FW < 1.19.0. This is due to limitation in softmax. Resolved on FW >= 1.19.0.
  • NTT patch for GQA

@tannervoas742 tannervoas742 force-pushed the restore_alibi_for_flat_pa_final branch from de937c2 to 22afba6 Compare December 18, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants