Skip to main content

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

Release files for nendo-plugin-textgen 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nendo-plugin-textgen 0.1.1
File Size Uploaded
nendo_plugin_textgen-0.1.1.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nendo-plugin-textgen 0.1.1
File Interpreter ABI Platform
nendo_plugin_textgen-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / nendo_plugin_textgen-0.1.1.tar.gz

Download URL nendo_plugin_textgen-0.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
644a56daa44df1956a53caf186431c81b18ae2aabee15d4322e43491516b241e
BLAKE2b-256 checksum
How to use checksums
b3df719906ec71a373fb53234d54fe3b95d2dc0de9208e03430cd1dd7653fc92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.16 Linux/6.6.20_1

Release files / nendo_plugin_textgen-0.1.1-py3-none-any.whl

Download URL nendo_plugin_textgen-0.1.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a6a0945a3b06fc09995caa89d25d7a90920bdc646a959ec05e5611391c5a7c1
BLAKE2b-256 checksum
How to use checksums
561aca80f02bb15dbcf2d33b06b03514d7d18cd8cf57edd562a2b1a6c0932a5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.16 Linux/6.6.20_1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page