Unverified Commit 506f39af authored by Yao Matrix's avatar Yao Matrix Committed by GitHub
Browse files

enable 1 case on XPU (#11219)



enable case on XPU: 1. tests/quantization/bnb/test_mixed_int8.py::BnB8bitTrainingTests::test_training
Signed-off-by: default avatarYAO Matrix <matrix.yao@intel.com>
parent 8ad68c13
......@@ -379,7 +379,7 @@ class BnB8bitTrainingTests(Base8bitTests):
model_inputs.update({k: v for k, v in input_dict_for_transformer.items() if k not in model_inputs})
# Step 4: Check if the gradient is not None
with torch.amp.autocast("cuda", dtype=torch.float16):
with torch.amp.autocast(torch_device, dtype=torch.float16):
out = self.model_8bit(**model_inputs)[0]
out.norm().backward()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment