Skip to content
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

Fixed fineweb script to run on Windows. #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

koiker
Copy link

@koiker koiker commented Jan 7, 2025

Python mp runs differently on Windows, and it needs to know whether the code is running in the main process or not.
I have just added the if __name__ == "__main__": code to identity the main code.
This does not change anything for running this code in Linux/OSX. But solve the code for Windows to stop complaining about bootstrap errors.
And I also made a small change in the Jupyter notebook to assign CUDA or CPU device.

Python mp runs differently in Windows and it needs to know if the code is running in the main process or not. I just have added the `if __name__ == "__main__":` code to identity the main code.
This does not change anything for running this code in Linux/OSX. But solve the code for Windows to stop complaining about bootstrap errors.
@koiker koiker closed this Jan 7, 2025
@koiker koiker reopened this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant