Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
847cdcca
Unverified
Commit
847cdcca
authored
Jun 13, 2024
by
SangBin Cho
Committed by
GitHub
Jun 12, 2024
Browse files
[CI] Upgrade codespell version. (#5381)
parent
e3c12bf6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
.github/workflows/ruff.yml
.github/workflows/ruff.yml
+1
-1
requirements-dev.txt
requirements-dev.txt
+1
-1
tests/core/test_chunked_prefill_scheduler.py
tests/core/test_chunked_prefill_scheduler.py
+1
-1
tests/test_sharded_state_loader.py
tests/test_sharded_state_loader.py
+1
-1
No files found.
.github/workflows/ruff.yml
View file @
847cdcca
...
...
@@ -25,7 +25,7 @@ jobs:
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install ruff==0.1.5 codespell==2.
2.6
tomli==2.0.1 isort==5.13.2
pip install ruff==0.1.5 codespell==2.
3.0
tomli==2.0.1 isort==5.13.2
-
name
:
Analysing the code with ruff
run
:
|
ruff .
...
...
requirements-dev.txt
View file @
847cdcca
...
...
@@ -3,7 +3,7 @@ yapf==0.32.0
toml==0.10.2
tomli==2.0.1
ruff==0.1.5
codespell==2.
2.6
codespell==2.
3.0
isort==5.13.2
clang-format==18.1.5
...
...
tests/core/test_chunked_prefill_scheduler.py
View file @
847cdcca
...
...
@@ -149,7 +149,7 @@ def test_complex():
# Only the first seq group has a new token appended.
append_new_token
(
running
[
0
],
1
)
# Add 2 more requ
s
ets.
# Add 2 more reque
s
ts.
for
i
in
range
(
2
,
4
):
_
,
seq_group
=
create_dummy_prompt
(
str
(
i
),
prompt_length
=
60
)
scheduler
.
add_seq_group
(
seq_group
)
...
...
tests/test_sharded_state_loader.py
View file @
847cdcca
...
...
@@ -39,7 +39,7 @@ def test_filter_subtensors():
filtered_state_dict
=
ShardedStateLoader
.
_filter_subtensors
(
state_dict
)
assert
tuple
(
filtered_state_dict
.
keys
())
==
(
"a"
,
"b"
,
"c"
)
for
key
,
tensor
in
filtered_state_dict
.
items
():
# NOTE: don't use `e
u
qal` here, as the tensor might contain NaNs
# NOTE: don't use `eq
u
al` here, as the tensor might contain NaNs
assert
tensor
is
state_dict
[
key
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment