You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Thank you for your code. I would like to know how to fix the seed during training of Phi3.5V model? I have used set_seed from transformers and also fixed a seed value in training args of Trainer but none of them actually gave me the same values for two runs.
The text was updated successfully, but these errors were encountered:
Ensuring reproducibility in training can be tricky, especially with complex models like Phi-3.5V. Here are some additional steps you can take to fix the seed and achieve consistent results:
Set Seed for All Libraries: Make sure to set the seed for all relevant libraries, including NumPy, PyTorch, and the random module.
Environment Variables: Sometimes, setting environment variables can help ensure reproducibility.
importosos.environ['PYTHONHASHSEED'] =str(seed)
Check for Non-Deterministic Operations: Some operations in deep learning frameworks can be non-deterministic. Ensure that your code does not include such operations or that they are controlled.
This issue is for a: (mark with an
x
)Thank you for your code. I would like to know how to fix the seed during training of Phi3.5V model? I have used set_seed from transformers and also fixed a seed value in training args of Trainer but none of them actually gave me the same values for two runs.
The text was updated successfully, but these errors were encountered: