Skip to main content

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.
  • 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


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 hashes)

Uploaded Source

Built Distribution

thendisnever-0.10.0-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

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