Closed nkaenzig closed 2 years ago
transformers changed the name of the Trainer property use_amp to use_cuda_amp in this PR: https://github.com/huggingface/transformers/pull/17138
transformers
As for now, calling the function finetune() with e.g. with transformers==4.21.1 yields the following error:
finetune()
transformers==4.21.1
AttributeError: 'CTCTrainer' object has no attribute 'use_amp'
This PR aims to support both naming conventions and thus support both older and more recent versions of the transformers library
Closes #45
Thanks, @nkaenzig, for your contribution :) And sorry for the delayed response
transformers
changed the name of the Trainer property use_amp to use_cuda_amp in this PR: https://github.com/huggingface/transformers/pull/17138As for now, calling the function
finetune()
with e.g. withtransformers==4.21.1
yields the following error:This PR aims to support both naming conventions and thus support both older and more recent versions of the
transformers
libraryCloses #45