Nendo Plugin TextGen
A text generation plugin using local LLMs or other text generation methods.
Builds on top of transformers by Hugging Face.
Features
- Generate text from a prompt using a local LLM
- Access all LLMs from the Hugging Face Model Hub
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
- Install Nendo
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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nendo_plugin_textgen-0.1.1.tar.gz | 7.5 kB | Without provenance | Details for nendo_plugin_textgen-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nendo_plugin_textgen-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for nendo_plugin_textgen-0.1.1-py3-none-any.whl |
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
|
Security for nendo-plugin-textgen 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.