Skip to main content

A library for working with LLMs and behavior trees.

Project description

🌳 Dendron

Installation

To install Dendron, run

pip install dendron

This will automatically install torch, transformers, bitsandbytes, accelerate, and sentencepiece, and protobuf. You should consider installing and using Flash Attention, which is just a pip install, but has prerequisites that you should manually check. It's worth it though - maybe doubling your inference speeds.

Behavior Trees for Structured Programming of LLMs

Here is an example behavior tree that implements a chat agent:

image

You can build this agent by following the tutorial here.

Examples

For examples of basic language model node usage, see the example notebooks in this repository. For larger and more interesting examples, see the examples repo.

Documentation

You can find the main documentation for Dendron here. This includes a full tutorial building a chat agent that has text-to-speech and automatic speech recognition capabilities, and an API reference.

Acknowledgements

This work was supported in part by the Federal Transit Administration and the Regional Transportation Commission of Washoe County.

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

dendron-0.1.2.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

dendron-0.1.2-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file dendron-0.1.2.tar.gz.

File metadata

  • Download URL: dendron-0.1.2.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for dendron-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fc743a3a406bc52b289eb896b92b2be1355088434b1a262d54495e66d6f000f3
MD5 4022ef94892afd63f4cdc23be9bd1de9
BLAKE2b-256 0f665f27df2807a1ae40bbae94588a90b553e6e19dc7064259bcd9ef473869cb

See more details on using hashes here.

File details

Details for the file dendron-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dendron-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 44.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for dendron-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff5aa70c0e1e2b956cd533d0b65cf9e116d15fd7abaffefb3a19f0ce77fec53
MD5 26a4f7b9edf8677173bae773a9909394
BLAKE2b-256 3b1d0e8a901f984b39a61af13010efc3b66aff0f70a4aaed0638a178d9b992e5

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