A package to easily make an LLM talk with itself forever.
Project description
The End is Never
A package to make an LLM talk with itself forever.
from thendisnever.thend import isnever
isnever()
Parameters
model_name
: The model to generate text with.- This is the default model.
- This must be a model compatible with AutoModelForCausalLM.
prompt
: The initial prompt for the model.- This is the inspiration for the default prompt.
max_memory_ratio
: The % of past tokens to remember.- This must be a real number between or equal to 0 and 1.
Notes
- When running
isnever()
for the first time, it will download the model and tokenizer from HuggingFace. This will take a while, but it only needs to be done once. - If you want to use the CPU (not recommended because it's slow, but it works), make sure you have PyTorch for CPU installed before installing this package.
Contributing
Check out this guide that describes how to create a package with Typer.
Before testing, make sure to update the version:
pyproject.toml
->tool.poetry
src/thendisnever/__init__.py
->__version__
And the dependencies:
pyproject.toml
->tool.poetry.dependencies
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
thendisnever-0.10.0.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file thendisnever-0.10.0.tar.gz
.
File metadata
- Download URL: thendisnever-0.10.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-37-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5fe3bf1f15510228c4086cec38ad220d5a3290a6dc80199d59493e212c627b1 |
|
MD5 | 01ac258dc8312b88fc3955e0f3d7bb38 |
|
BLAKE2b-256 | 9b32afaece3523d8bb7da5a77ebd39ecc990bc485a8669fb6179395d767c4476 |
File details
Details for the file thendisnever-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: thendisnever-0.10.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-37-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4cbe03fc0458d8d66c2db7ff6c041c5c860f64dd60160744a14d66dae764a7b |
|
MD5 | d91fa0f522c2001b873eca27f2aecd58 |
|
BLAKE2b-256 | e6ab4c1799c47bc61362b64e645ecb2d39c760b22447f12efdc9d0778f98cb0d |