nendo-plugin-textgen

A text generation plugin using local LLMs or other text generation methods. Builds on top of `transformers` by Hugging Face.


Keywords
AI, generative, music, okio, nendo, text, generation, LLM, transformers, analysis, song
License
MIT
Install
pip install nendo-plugin-textgen==0.1.1

Documentation

Nendo Plugin TextGen


nendo core


Website Twitter Discord


A text generation plugin using local LLMs or other text generation methods. Builds on top of transformers by Hugging Face.

Features

Requirements

Since we depend on transformers, please make sure that you fulfill their requirements. You also need Pytorch installed on your system, please refer to the pytorch installation instructions.

Installation

  1. Install Nendo
  2. pip install nendo-plugin-textgen

If you have a CUDA GPU you can install the following library for an additional speedup:

pip install flash-attn --no-build-isolation

Then set ATTN_IMPLEMENTATION=flash_attention_2 in your environment variables.

Usage

Take a look at a basic usage example below. For more detailed information, please refer to the documentation.

>>> from nendo import Nendo
>>> nd = Nendo(plugins=["nendo_plugin_textgen"])

>>> nd.plugins.textgen(prompt=["Tell me about your favorite song."])[0]

Contributing

Visit our docs to learn all about how to contribute to Nendo: Contributing

License

Nendo: MIT License