A Python Wrapper for Dalai
Project description
dalaipy
A Python Wrapper for Dalai!
Dalai is a simple, and easy way to run LLaMa and Alpaca locally.
Installation
pip install dalaipy
Instructions
- Go to Dalai, and set up your model of choice on your system (either Mac, Windows, or Linux). The readme provides clear explanations!
- Once you can run
npx dalai serve
, run the server and test out your model of choice. - Install dalaipy per the instructions above, and make your first request:
from dalaipy.src import Dalai
model = Dalai()
# your_model can be one of the following, "alpaca.7B", "alpaca.13B", "llama.7B", "llama.13B", "llama.30B", or "llama.65B", and is dictated by which model you installed
request = model.generate_request("What is the capital of the United States?", your_model)
print(model.generate(request))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dalaipy-2.0.1.tar.gz
(3.5 kB
view hashes)