automatically enable tf32 if supported (#3473) [skip ci]

* automatically enable tf32 if supported

* update fixtures

* handle only when True

* Address CR comments

* address readability from pr comment

* simplify
This commit is contained in:
Wing Lian
2026-03-16 23:47:00 -04:00
committed by GitHub
parent d230cbbde3
commit 830e9f7eaf
8 changed files with 29 additions and 8 deletions

View File

@@ -8,7 +8,13 @@ from axolotl.utils.dict import DictDefault
@pytest.fixture()
def gpu_caps():
return {"compute_capability": "sm_89", "bf16": True, "n_gpu": 1, "n_node": 1}
return {
"compute_capability": "sm_89",
"bf16": True,
"tf32": False,
"n_gpu": 1,
"n_node": 1,
}
@pytest.fixture()