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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for thendisnever-0.10.0.tar.gz
Algorithm Hash digest
SHA256 f5fe3bf1f15510228c4086cec38ad220d5a3290a6dc80199d59493e212c627b1
MD5 01ac258dc8312b88fc3955e0f3d7bb38
BLAKE2b-256 9b32afaece3523d8bb7da5a77ebd39ecc990bc485a8669fb6179395d767c4476

See more details on using hashes here.

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

Hashes for thendisnever-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4cbe03fc0458d8d66c2db7ff6c041c5c860f64dd60160744a14d66dae764a7b
MD5 d91fa0f522c2001b873eca27f2aecd58
BLAKE2b-256 e6ab4c1799c47bc61362b64e645ecb2d39c760b22447f12efdc9d0778f98cb0d

See more details on using hashes here.

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