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:
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
Built Distribution
File details
Details for the file dendron-0.1.1.tar.gz
.
File metadata
- Download URL: dendron-0.1.1.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b992237085c5c8336ffdc9f784f31c861c8d2e9d731d7235bd5a2e459f36ea9 |
|
MD5 | 6b0db505d5096d3aae9a6c787745ba67 |
|
BLAKE2b-256 | 839fb26efbdc3b6b73ca4564f9ce515ddb2e49e0c5d86f612d43b3ef7d468d65 |
File details
Details for the file dendron-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: dendron-0.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb3974b40e68aee20c409e476fdc92585d1bab18ac946d685d99f1d7cd9a620b |
|
MD5 | ebd9ff8cc15e8c327eeac0d1c6ee5ad6 |
|
BLAKE2b-256 | cded28e9b6d0be2da88f12f3fd8b60d06a08e1da7224d085a3e52085d40363c8 |