AttributeError: 'MMBTConfig' object has no attribute 'use_return_dict' in MultiModalClassificationModel
See original GitHub issueDescribe the bug
I receive the exception: AttributeError: ‘MMBTConfig’ object has no attribute ‘use_return_dict’ while training the following model:
model = MultiModalClassificationModel(
"bert", "bert-base-multilingual-cased", num_labels = 47, args=({'fp16': False,
'reprocess_input_data': True,
'overwrite_output_dir' : True,
'num_train_epochs': 5,
'max_seq_length':128,
'batch_size':2
#'evaluate_during_training': True,
#'logging_steps': 50,
})
)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @usmanmalik57 !
I fix this problem by adding
model.config.use_return_dict = False
I find this in the issue #774I’m now facing to another issue:
I launch like this:
@ThilinaRajapakse Do you have some clue ?
Thanks in advance
Hello I am facing the same issue. Do you have a solution for this?