Thank you for your interest in contributing to the LLM Fine-Tuning Lab! This document provides guidelines and instructions for contributing.
-
Fork the repository
-
Clone your fork
git clone https://github.com/YOUR_USERNAME/LLM-Finetuning-Lab.git cd LLM-Finetuning-Lab -
Set up development environment
make dev-install
-
Create a feature branch
git checkout -b feature/your-feature-name
We follow PEP 8 style guidelines with some modifications:
- Maximum line length: 120 characters
- Use type hints for function signatures
- Write docstrings for all public functions and classes
Format your code before committing:
make formatAll new features must include tests:
# Run tests
make test
# Run specific test file
pytest tests/test_training.pyFollow conventional commit format:
<type>(<scope>): <subject>
<body>
<footer>
Types:
feat: New featurefix: Bug fixdocs: Documentation changesstyle: Code style changesrefactor: Code refactoringtest: Adding testschore: Maintenance tasks
Example:
feat(training): add LoRA fine-tuning support
Implemented LoRA-based fine-tuning for efficient parameter
adaptation. Includes configuration options and example scripts.
Closes #123
- Update documentation if you're adding new features
- Add tests for new functionality
- Run linters and ensure all tests pass
make lint make test - Update CHANGELOG.md with your changes
- Submit PR with a clear description
- Code follows style guidelines
- Tests added and passing
- Documentation updated
- CHANGELOG.md updated
- Commit messages follow convention
- Implement RLHF training pipeline
- Add support for multimodal models
- Optimize distributed training
- Improve documentation
- Add more evaluation metrics
- Create tutorial notebooks
- Implement model distillation
- Add CI/CD improvements
Look for issues labeled good-first-issue in the issue tracker.
- At least one maintainer review required
- All CI checks must pass
- Documentation must be updated
- Changes must be tested
Feel free to:
- Open an issue for bugs or feature requests
- Join our Discord community
- Email: hoangson091104@gmail.com
Thank you for contributing to SynthoraAI!