You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Trainer have no attribute 'use_cuda_amp' #795
Trainer.train() when finishing training return:
AttributeError: 'Trainer' object has no attribute 'use_cuda_amp'
During handling of the above exception, another exception occurred:
AttributeError: 'Trainer' object has no attribute 'use_amp'
Steps/Code to reproduce bug
Train a model with these configurations:
training_args = T4RecTrainingArguments(
output_dir=lb_out.as_posix(),
max_sequence_length=20,
data_loader_engine='nvtabular',
num_train_epochs=1,
dataloader_drop_last=False,
per_device_train_batch_size=256,
per_device_eval_batch_size=16,
gradient_accumulation_steps=1,
learning_rate=0.0005,
report_to=[],
save_strategy='no',
logging_steps=500
)
Hi @nghiant03 ! I’d like to take a look at this issue and investigate a fix for the use_cuda_amp / use_amp compatibility problem with newer versions of Hugging Face Transformers. I’ll first try to reproduce the issue and then work on a small compatibility fix and regression test if possible.
Activity
[-][BUG][/-][+][BUG] Trainer have no attribute 'use_cuda_amp'[/+]greekera1000 commentedon Sep 10, 2026
Hi @nghiant03 ! I’d like to take a look at this issue and investigate a fix for the
use_cuda_amp/use_ampcompatibility problem with newer versions of Hugging Face Transformers. I’ll first try to reproduce the issue and then work on a small compatibility fix and regression test if possible.