-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Trainer' object has no attribute 'is_world_master' while fine tuning BioBERT-PyTorch on my custom data set #7
Comments
Have you resolved this? |
@ankan94 yeah , I did the same thing replace "is_world_master" by "is_world_process_zero" in the code and it is working as expected for me |
found a work around as mention above |
Please fix this in the run_ner code @dmis-lab |
This issue is still present in the current GitHub version. I followed the directions on the main web page (https://github.com/dmis-lab/biobert-pytorch) and got the same error: Traceback (most recent call last): Replacing "is_world_master" by "is_world_process_zero", as suggested above, makes the error go away but it should be fixed at the source in Git. In case it matters, this is on an MacBook Air (M2, 2022) with macOS 12.6 (Monterey). |
Environment info:
transformers version: 4.0.0
Platform: Linux-4.15.0-96-generic-x86_64-with-debian-buster-sid
Python version: 3.7.8
PyTorch version (GPU?): 1.7.0 (True)
while running run_ner.py , getting above error at below line:
if trainer.is_world_master():
tokenizer.save_pretrained(training_args.output_dir)
The text was updated successfully, but these errors were encountered: