fix the torch dtype check
This commit is contained in:
@@ -125,6 +125,6 @@ class TestLoraLlama(unittest.TestCase):
|
|||||||
config = f_handle.read()
|
config = f_handle.read()
|
||||||
config = json.loads(config)
|
config = json.loads(config)
|
||||||
if is_torch_bf16_gpu_available():
|
if is_torch_bf16_gpu_available():
|
||||||
assert config["torch_dtype"] == "torch.bfloat16"
|
assert config["torch_dtype"] == "bfloat16"
|
||||||
else:
|
else:
|
||||||
assert config["torch_dtype"] == "torch.float16"
|
assert config["torch_dtype"] == "float16"
|
||||||
|
|||||||
Reference in New Issue
Block a user