Skip to main content

transformer-based rl agents for nlp tasks

Project description

alectors

alectors is a library providing transformer-based rl agents for nlp tasks, that is extremely customizable, but also comes with sane defaults.

source code: erga.apotheke.earth/aethrvmn/alectors
license: Don't Be Evil License 1.1 (DBEL 1.1)
read the full license here

Why "alectors"?

The word lector has deep etymological roots in language. Derived from the Latin legere ("to read"), it originally referred to someone who read aloud, to an audience, students, or even in religious ceremonies.
The term nowdays survives mostly in an academic setting, where a lecturer is typically tied to teaching, or discussing ideas with an audience. Typical modern uses of the word are "lecturer" in English, "λέκτορας" in Greek, and "lektor" in Polish.
However, adding the prefix α- changes the word's meaning entirely. An alector (ἀλέκτωρ) means "cock" (rooster) in Greek. This juxtaposition s very funny, hence the name.

Reasoning

Modern NLP solutions like GPTs and BERTs have made great strides in language processing and generation, however they fall short of actual decision making. As an example, consider an LLM trying to play a game of chess.
While it may be able to make valid moves, and even provide a justification, it still lacks any true capacity to calculate the optimal position; it is a word generator, and so the best thing it can do is convince itself that it makes sense. It lacks a reward incentive during training, and even worse, rather LLMs rely on static token distributions without real-time feedback.

alectors tries to address this gap by shifting the focus to active learning through reinforcement. An alector doesn’t just learn to generate language; it learns to generate actions based on natural language, using reinforcement learning solutions.

Supported Architectures

The currently supported architecture is PPO. Plans exist to include SAC, GRPO, and maybe DDQN.

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

alectors-2.0.1a0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alectors-2.0.1a0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file alectors-2.0.1a0.tar.gz.

File metadata

  • Download URL: alectors-2.0.1a0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Linux/6.12.21

File hashes

Hashes for alectors-2.0.1a0.tar.gz
Algorithm Hash digest
SHA256 00cf575ad7d1b17a0aaa0f70642d71f94dd11b9eef391a54ead175611efcf09d
MD5 75d0b37d0e918b0c7997f80e5b9ce205
BLAKE2b-256 10b0a4aff4e9ac264f419a2efc50b4ada09ef23e2c31b3580b384b999033a776

See more details on using hashes here.

File details

Details for the file alectors-2.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: alectors-2.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Linux/6.12.21

File hashes

Hashes for alectors-2.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 f58c6ebedda53ae17f99e846490c2b7570d4febb1e80f9441b02f8594905e9ad
MD5 0f354d109bf1332b9e9b8ee744d9cdf0
BLAKE2b-256 42cf6b75e1c42ce019ea4935d7d6ffda9ea5abc4e4288b1dc956e1f179236bc9

See more details on using hashes here.

Supported by

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