Troubleshooting
Common Issues and Solutions
Installation Issues
Problem: “ModuleNotFoundError” when importing humancompatible-train
- Solution:
Verify installation:
pip list | grep humancompatible-trainReinstall the package:
pip install --upgrade humancompatible-trainCheck your Python version:
python --version(requires Python 3.8+)
Problem: “Permission denied” during installation
- Solution:
Use a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install humancompatible-train
Training Issues
Problem: Constraints are not being satisfied
- Solutions:
Verify constraint definitions are correct
Check that constraints are compatible with your data
Increase training time or adjust hyperparameters
Review constraint priorities and weights
Problem: Out of memory during training
- Solutions:
Reduce batch size
Use a smaller dataset for testing
Enable gradient checkpointing if available
Consider distributed training
Performance Issues
Problem: Training is very slow
- Solutions:
Profile your code to identify bottlenecks
Use fewer constraints if possible
Optimize your data loading pipeline
Consider using GPU acceleration
Try reducing dataset size for experimentation
Getting More Help
If you can’t find a solution here:
Check the Support page for contact information
Review the API Reference for function signatures
Open an issue on the GitHub repository
Consult the project’s issue tracker for similar problems
FAQ
Q: Which Python versions are supported?
A: Python 3.8 and higher. We recommend using Python 3.9 or later.
Q: How do I report a bug?
A: Please open an issue on GitHub with:
Description of the problem
Steps to reproduce
Python version and environment information
Relevant code snippets or error messages