This repository was archived by the owner on Sep 10, 2025. It is now read-only.
  
  
  - 
                Notifications
    You must be signed in to change notification settings 
- Fork 248
Add XPU support for AOT inductor #1503
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            25 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      778efd6
              
                add xpu
              
              
                jenniew 7c4e42b
              
                add xpu device
              
              
                jenniew 6ed3cda
              
                update
              
              
                jenniew 6e73400
              
                Merge branch 'main' of https://github.com/pytorch/torchchat into xpu_…
              
              
                jenniew 4735bff
              
                Merge branch 'main' into xpu_device
              
              
                Jack-Khuu 6ef7cd5
              
                merge
              
              
                jenniew 4d16351
              
                Merge branch 'xpu_device' of https://github.com/jenniew/torchchat int…
              
              
                jenniew 11222dd
              
                update
              
              
                songhappy 20e3eae
              
                profile
              
              
                songhappy 5e0b073
              
                merge
              
              
                songhappy 069d393
              
                merge
              
              
                songhappy c0530d0
              
                Merge branch 'main' of https://github.com/pytorch/torchchat into xpu_…
              
              
                songhappy ab61f0f
              
                update install
              
              
                songhappy 9f4cde3
              
                update
              
              
                songhappy 5c3306e
              
                update
              
              
                songhappy 30a38ec
              
                update
              
              
                jenniew b784239
              
                Merge branch 'main' of https://github.com/pytorch/torchchat into xpu_…
              
              
                jenniew 8edfeb2
              
                Merge branch 'main' into xpu_device
              
              
                Jack-Khuu 760ea47
              
                update
              
              
                jenniew 2b9fa68
              
                fix aot xpu
              
              
                jenniew 9ccca2b
              
                Merge branch 'xpu_device' of https://github.com/jenniew/torchchat int…
              
              
                jenniew 08b0598
              
                update
              
              
                jenniew ce5774d
              
                update
              
              
                jenniew 28a36e2
              
                Merge branch 'main' of https://github.com/pytorch/torchchat into xpu_…
              
              
                jenniew 6bece4f
              
                Merge branch 'main' of https://github.com/pytorch/torchchat into xpu_…
              
              
                jenniew File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  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.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we reuse the conditional on line 84?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because line 84 is to install using pytorch xpu link: https://download.pytorch.org/whl/nightly/xpu. Since we don't have torchtune nightly for xpu now, we temporarily to install torchtune cpu nightly from cpu link: https://download.pytorch.org/whl/nightly/cpu. After xpu nightly is ready, we'll update line 84 to install from pytorch xpu link.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I meant reuse the
if [[ -x "$(command -v xpu-smi)" ]];checkThis PR is fine to merge as-is though since after we get torchtune nightly this is going to be removed anyways 😃