Skip to main content

Neural network training and inference framework

Project description

RainbowNeko Engine

PyPI GitHub stars GitHub license codecov open issues

📘English document 📘中文文档

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

  1. Install pytorch

  2. Install with pip:

pip install rainbowneko

or Install from source:

git clone https://github.com/IrisRainbowNeko/RainbowNekoEngine.git
cd RainbowNekoEngine
pip install -e .
  1. 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

Start a new project

mkdir my_project
cd my_project
# Modified based on this project or start a new project and make initialization
nekoinit

Training

Training scripts based on 🤗 Accelerate or Colossal-AI are provided.

# with Accelerate
neko_train --cfg cfgs/train/cfg_file.py
# with Accelerate and only one GPU
neko_train_1gpu --cfg cfgs/train/cfg_file.py

Inference

RainbowNeko Engine inference with workflow configuration file.

neko_run --cfg cfgs/infer/cfg_file.py

Tutorials

📘English document 📘中文文档

Contributing

You are welcome to contribute more models and features to this toolbox!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rainbowneko-1.3.1.tar.gz (79.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rainbowneko-1.3.1-py3-none-any.whl (121.4 kB view details)

Uploaded Python 3

File details

Details for the file rainbowneko-1.3.1.tar.gz.

File metadata

  • Download URL: rainbowneko-1.3.1.tar.gz
  • Upload date:
  • Size: 79.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for rainbowneko-1.3.1.tar.gz
Algorithm Hash digest
SHA256 d087d3e5f4344de7fcc801f4e80803beb5af681b1e03cc4cc10dd965b3f0cb13
MD5 d0f1f597a0da8bf7cc133bbe14e24ff7
BLAKE2b-256 a7f99b5a2c28066ef58a5047087ea92e4c8e7e2fb0bb0839313b3eb32827302e

See more details on using hashes here.

File details

Details for the file rainbowneko-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: rainbowneko-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 121.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for rainbowneko-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 054cc0e319318ed51e4d4ab6f8e354096b8f3639e7f0a0c44877b54e7b10d9ff
MD5 5b4c781618e559a16ba41bbeb25c043b
BLAKE2b-256 41575d99fbd139162412dcb407e9535a23d6498d2f2dca0a618c3c155cfa6462

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page