[ci][test] add correctness test for cpu offloading (#6549)
This commit is contained in:
8
tests/basic_correctness/test_cpu_offload.py
Normal file
8
tests/basic_correctness/test_cpu_offload.py
Normal file
@@ -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"])
|
||||
Reference in New Issue
Block a user