Neural network training and inference framework
Project description
RainbowNeko Engine
Introduction
RainbowNeko Engine is a toolbox for pytorch based neural network training and inference. Multiple tasks and training strategies are built-in and highly expandable.
Install
-
Install pytorch
-
Install from source:
git clone https://github.com/IrisRainbowNeko/RainbowNekoEngine.git
cd RainbowNekoEngine
pip install -e .
# Modified based on this project or start a new project and make initialization
nekoinit
- To use xFormers to reduce VRAM usage and accelerate training:
# use conda
conda install xformers -c xformers
# use pip
pip install xformers>=0.0.17
User guidance
Training
Training scripts based on 🤗 Accelerate or Colossal-AI are provided.
- For 🤗 Accelerate, you may need to configure the environment before launching the scripts.
- For Colossal-AI, you can use torchrun to launch the scripts.
# with Accelerate
neko_train --cfg cfgs/train/cfg_file.yaml
# with Accelerate and only one GPU
neko_train_1gpu --cfg cfgs/train/cfg_file.yaml
Inference
TODO
Tutorials
TODO
Contributing
You are welcome to contribute more models and features to this toolbox!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rainbowneko-0.3.tar.gz
(59.0 kB
view details)
Built Distribution
rainbowneko-0.3-py3-none-any.whl
(87.3 kB
view details)
File details
Details for the file rainbowneko-0.3.tar.gz
.
File metadata
- Download URL: rainbowneko-0.3.tar.gz
- Upload date:
- Size: 59.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70fb78d19fea2a7f919d7d630703a07e8facdf665f029a916eb2f71ea828d166 |
|
MD5 | 0514deb1ddb017b0e4b683b4cfc5b5f7 |
|
BLAKE2b-256 | 3b318bb9d72d82a0ae3bbd2a72a10ecd5d38fb0a0d422ad05cf544f8bdc3d9e8 |
Provenance
File details
Details for the file rainbowneko-0.3-py3-none-any.whl
.
File metadata
- Download URL: rainbowneko-0.3-py3-none-any.whl
- Upload date:
- Size: 87.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 397a0211ffae978d9214ebf36eab22dd3349576561f4a5050d0aa908f602ef02 |
|
MD5 | 784c250ec620db511f2d2ccdb80b1098 |
|
BLAKE2b-256 | 2c71d8fd0ac33b79aa091b4a91fe1c2d2570588a1125a91ed277f0411691a05e |