- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 10.9k
[V1] Scatter and gather placeholders in the model runner #16076
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
          
     Merged
      
      
    
                
     Merged
            
            
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: mgoin <mgoin64@gmail.com>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: Roger Wang <ywang@roblox.com>
Signed-off-by: Roger Wang <ywang@roblox.com>
Signed-off-by: Roger Wang <ywang@roblox.com>
Signed-off-by: Roger Wang <ywang@roblox.com>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
  This was referenced Apr 5, 2025 
      
    
  DarkLight1337 
      added a commit
        to houseroad/vllm
      that referenced
      this pull request
    
      Apr 7, 2025 
    
    
      
  
    
      
    
  
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
| Verifying  | 
| This pull request has merge conflicts that must be resolved before it can be | 
              
                    DarkLight1337
  
              
              approved these changes
              
                  
                    Apr 8, 2025 
                  
              
              
            
            
    
  yangw-dev 
      pushed a commit
        to yangw-dev/vllm
      that referenced
      this pull request
    
      Apr 21, 2025 
    
    
      
  
    
      
    
  
…t#16076) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: Roger Wang <ywang@roblox.com> Co-authored-by: DarkLight1337 <tlleungac@connect.ust.hk> Co-authored-by: mgoin <mgoin64@gmail.com> Co-authored-by: Jennifer Zhao <ai.jenniferzhao@gmail.com> Signed-off-by: Yang Wang <elainewy@meta.com>
    
  jikunshang 
      pushed a commit
        to jikunshang/vllm
      that referenced
      this pull request
    
      Apr 29, 2025 
    
    
      
  
    
      
    
  
…t#16076) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: Roger Wang <ywang@roblox.com> Co-authored-by: DarkLight1337 <tlleungac@connect.ust.hk> Co-authored-by: mgoin <mgoin64@gmail.com> Co-authored-by: Jennifer Zhao <ai.jenniferzhao@gmail.com>
    
  lk-chen 
      pushed a commit
        to lk-chen/vllm
      that referenced
      this pull request
    
      Apr 29, 2025 
    
    
      
  
    
      
    
  
…t#16076) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: Roger Wang <ywang@roblox.com> Co-authored-by: DarkLight1337 <tlleungac@connect.ust.hk> Co-authored-by: mgoin <mgoin64@gmail.com> Co-authored-by: Jennifer Zhao <ai.jenniferzhao@gmail.com>
    
  RichardoMrMu 
      pushed a commit
        to RichardoMrMu/vllm
      that referenced
      this pull request
    
      May 12, 2025 
    
    
      
  
    
      
    
  
…t#16076) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: Roger Wang <ywang@roblox.com> Co-authored-by: DarkLight1337 <tlleungac@connect.ust.hk> Co-authored-by: mgoin <mgoin64@gmail.com> Co-authored-by: Jennifer Zhao <ai.jenniferzhao@gmail.com> Signed-off-by: Mu Huai <tianbowen.tbw@antgroup.com>
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      Labels
      
    documentation
  Improvements or additions to documentation 
  
    multi-modality
  Related to multi-modality (#4194) 
  
    ready
  ONLY add when PR is ready to merge/full CI is needed 
  
    tpu
  Related to Google TPUs 
  
    v1
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Reopened from accidentally merged #15712
This PR is an attempt to move
scatter_patch_featuresandgather_patch_featureinto the model runner (outside of the model) to avoid interfering with TPU graph compilation.Breaking change for model developers:
PromptUpdateDetails.featureshas been replaced withPromptUpdateDetails.is_embed. You can use the newly added factoriesPromptUpdateDetails.select_textandPromptUpdateDetails.select_token_idto generateis_embedbased on the target text/token ID.BaseProcessingInfo.get_num_image_tokensshould now return the equivalent ofPromptUpdateDetails.is_embed.sum()instead of the number of tokens inPromptUpdateDetails.features.Originally authored by @DarkLight1337; co-authored by @mgoin