Skip to content

Commit c8c1e52

Browse files
yao-matrixSunMarc
andauthored
from 1.11.0, torchao.prototype.low_bit_optim is promoted to torchao.optim (#38689)
* since 1.11.0, torchao.prototype.low_bit_optim is promoted to torchao.optim Signed-off-by: YAO Matrix <[email protected]> * fix review comments Signed-off-by: YAO Matrix <[email protected]> --------- Signed-off-by: YAO Matrix <[email protected]> Co-authored-by: Marc Sun <[email protected]>
1 parent 56a7cf5 commit c8c1e52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/trainer/test_trainer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5368,19 +5368,19 @@ def hp_name(trial):
53685368
)
53695369
)
53705370
if is_torchao_available():
5371-
import torchao
5371+
from torchao.optim import AdamW4bit, AdamW8bit
53725372

53735373
optim_test_params.append(
53745374
(
53755375
OptimizerNames.ADAMW_TORCH_4BIT,
5376-
torchao.prototype.low_bit_optim.AdamW4bit,
5376+
AdamW4bit,
53775377
default_adam_kwargs,
53785378
)
53795379
)
53805380
optim_test_params.append(
53815381
(
53825382
TrainingArguments(optim=OptimizerNames.ADAMW_TORCH_8BIT, output_dir="None"),
5383-
torchao.prototype.low_bit_optim.AdamW8bit,
5383+
AdamW8bit,
53845384
default_adam_kwargs,
53855385
)
53865386
)

0 commit comments

Comments
 (0)