Open valaofficial opened 11 months ago
Since you are using Windows, maybe moving the map
call inside if __name__ == "__main__"
can fix the issue:
if __name__ == "__main__":
common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)
Otherwise, the only solution is to set num_proc=1
.
Since you are using Windows, maybe moving the
map
call insideif __name__ == "__main__"
can fix the issue:if __name__ == "__main__": common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)
Otherwise, the only solution is to set
num_proc=1
.
Thank you very much for the response, i eventually tried setting num_proc=1
and now the jupyter notebook kernel keers dying after running the command, what do you think the issue could be, could it be that my system is not capable of running the command "i'm using a Lenovo Thinkpad T440 with no GPU"
Firstly, you didn't define feature_extractor variable. Secondly, it is large nlp model. Hence you should use proper gpu, otherwise your machine's cpu will be overclock and you can do nothing.
Describe the bug
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post
https://huggingface.co/blog/fine-tune-whisper
I tried google collab and it works but because I'm on the free version the training doesn't complete
the error comes in jupyter notebook when i run this line
common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)
here is the error message
Steps to reproduce the bug
follow the steps in this blog post https://huggingface.co/blog/fine-tune-whisper
run this line of code
common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)
I'm using jupyter notebook from anaconda
Expected behavior
No error message
Environment info
datasets version: 2.8.0 Python version: 3.11 Windows 10