forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci][test] add correctness test for cpu offloading (vllm-project#6549)
Signed-off-by: Alvant <[email protected]>
- Loading branch information
1 parent
17ba77a
commit 1c9b557
Showing
4 changed files
with
105 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from ..utils import compare_two_settings | ||
|
||
|
||
def test_cpu_offload(): | ||
compare_two_settings("meta-llama/Llama-2-7b-hf", [], | ||
["--cpu-offload-gb", "4"]) | ||
compare_two_settings("nm-testing/llama7b-one-shot-2_4-w4a16-marlin24-t", | ||
[], ["--cpu-offload-gb", "1"]) |
This file contains 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 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