- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.3k
 
          [Lint] Add python/sglang to ruff F401 checks and remove unused imports in files
          #11685
        
          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
Changes from all commits
ccf7308
              f234947
              1512391
              3c8f9c8
              9b06d38
              1f0fa29
              17b44c5
              0dfe6b8
              ad12515
              1193243
              ac05574
              4e57942
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| import math | ||
| import os | ||
| from dataclasses import dataclass | ||
| from typing import Dict, List, Optional, Tuple | ||
| 
     | 
||
| 
          
            
          
           | 
    ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| import logging | ||
| import os | ||
| from typing import List, Optional | ||
| from typing import List | ||
| 
     | 
||
| import torch | ||
| 
     | 
||
| 
          
            
          
           | 
    ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| import base64 | ||
| import os | ||
| import pickle | ||
| import time | ||
| from pathlib import Path | ||
| 
          
            
          
           | 
    ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| import json | ||
| import re | ||
| from typing import List | ||
| 
     | 
||
| from sglang.srt.entrypoints.openai.protocol import Tool | ||
| 
          
            
          
           | 
    ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| from typing import Optional, Union | ||
| from typing import Optional | ||
| 
     | 
||
| import torch | ||
| 
     | 
||
| 
          
            
          
           | 
    ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -13,7 +13,7 @@ def is_mla_preprocess_enabled() -> bool: | |
| 
     | 
||
| 
     | 
||
| if is_mla_preprocess_enabled(): | ||
| import sgl_kernel_npu | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure about this one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to keep this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added back in 17b44c5  | 
||
| import sgl_kernel_npu # noqa: F401 | ||
| import torch_npu | ||
| 
     | 
||
| torch.npu.config.allow_internal_format = True | ||
| 
          
            
          
           | 
    ||
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.
Not sure about this one.