AiFlow is a lightweight Python package that provides a simple and easy-to-use interface for building, evaluating, and training machine learning models. It is designed to quickly build and train models without adding the overhead of complex frameworks. With integrated support for LoRA enhancements, audio transcription, web scraping, and various text generation techniques, AiFlow offers a versatile toolkit for both research and production environments.
-
Model Training & Inference:
Train state-of-the-art language models with support for LoRA. TheYunaLLMTrainer
class provides methods for creating, training, and merging models. -
Audio Data Processing:
Easily combine, split, and process audio files using theAudioDataWorker
class. Perform transcription with integrated ASR pipelines. -
Text Data Processing:
Process and split large text files, count tokens, and convert between different formats using theTextDataWorker
class. -
Web & HTML scraping:
Retrieve and clear web data for quick processing using helper functions fromhelper.py
. -
Conditional Import Management:
Depending on configuration settings, AiFlow loads the necessary modules for tasks such as image model loading, voice synthesis, or text generation using advanced tokenization and LoRA techniques. -
Extensible & Configurable:
Customize your project with the provided configuration system. Use theget_config
function to load and manage settings.
To install AiFlow, follow the steps below:
- Build the package:
python setup.py sdist bdist_wheel
- Install the package from the generated wheel:
pip install dist/aiflow-2.0.0-py3-none-any.whl --force-reinstall
You can train an LLM model using Colab Notebook provided in the repository.
Each module in AiFlow is fully documented with inline comments. Refer to file documentation for detailed usage:
- Trainer Module
- Helper Utilities
- AGI Module
- Data Processing
Contributions are welcome! For feature requests, bug reports, or other issues, please open an issue in the repository. If you would like to contribute code, please fork the repository and submit a pull request.
AiFlow is distributed under the OSI Approved Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
For questions or support, please open an issue in the repository or contact the author at [email protected].