Skip to content

Commit

Permalink
modify ut
Browse files Browse the repository at this point in the history
Signed-off-by: n1ck-guo <[email protected]>
  • Loading branch information
n1ck-guo committed Jan 3, 2025
1 parent 2637332 commit ac8127a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_cuda/test_support_vlms.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def setUpClass(self):
self.python_path = sys.executable
self.device = 0

# @classmethod
# def tearDownClass(self):
# shutil.rmtree(self.save_dir, ignore_errors=True)
@classmethod
def tearDownClass(self):
shutil.rmtree(self.save_dir, ignore_errors=True)

def test_qwen2(self):
model_path = "/models/Qwen2-VL-2B-Instruct/"
Expand Down Expand Up @@ -339,7 +339,7 @@ def test_deepseek_vl2(self):
res = os.system(
f"cd .. && {self.python_path} -m auto_round --mllm "
f"--model {model_path} --iter 3 --nsamples 10 --bs 4 --output_dir {self.save_dir} --device auto --group_size 32 "
f"--fp_layers language.model.layer.4,language.model.layer.6"
f"--fp_layers language.model.layers.4,language.model.layers.6"
)
self.assertFalse(res > 0 or res == -1, msg="deepseek vl2 tuning fail")

Expand Down

0 comments on commit ac8127a

Please sign in to comment.