Skip to content

Commit

Permalink
Fix unit tests and type annotations (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Oct 12, 2024
1 parent 5d638c9 commit 69aa937
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
timeout-minutes: 20
run: |
cd test/srt
python3 run_suite.py --suite minimal --range-begin 5 --range-end 16
python3 run_suite.py --suite minimal --range-begin 5 --range-end 15
unit-test-backend-part-3:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
Expand All @@ -96,7 +96,7 @@ jobs:
timeout-minutes: 20
run: |
cd test/srt
python3 run_suite.py --suite minimal --range-begin 16
python3 run_suite.py --suite minimal --range-begin 15
performance-test-1-gpu-part-1:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
Expand Down
6 changes: 3 additions & 3 deletions python/sglang/srt/managers/schedule_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ class ScheduleBatch:
sampling_info: SamplingBatchInfo = None

# Batched arguments to model runner
input_ids: List[int] = None
req_pool_indices: List[int] = None
seq_lens: List[int] = None
input_ids: torch.Tensor = None
req_pool_indices: torch.Tensor = None
seq_lens: torch.Tensor = None
out_cache_loc: torch.Tensor = None

# For processing logprobs
Expand Down
1 change: 0 additions & 1 deletion python/sglang/srt/managers/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import json
import logging
import multiprocessing
import os
import time
import warnings
Expand Down

0 comments on commit 69aa937

Please sign in to comment.