The open source toolkit for finetuning and deploying LLMs
Project description
Arcee
:tulip: The open source toolkit for finetuning and deploying LLMs :tulip:
Finetune LLMS
from arcee.models import LM
from arcee.data import Instuctions
lm = LM("falcon30b")
instructions = Instructions("./datasets/stripe-api.json")
lm.train(instructions)
lm.predict("Place an order for the LLM-9000 product for 100 USD to the card 3007200039992000")
Deploy LLMS
Authenticate
import arcee
arcee.login()
Deploy to the Arcee cloud
project = arcee.create_project("stripe-api-operator")
#project = arcee.load_project(...)
#regulated under 7b params for free
#only PEFT uploadable for free
hosted_lm = project.deploy(llm)
hosted_lm.url
hosted_lm.predict("Place an order for the LLM-9000 product for 100 USD to the card 3007200039992000")
#view a streaming web app of the llm
project.demo()
LangChain Integration
from langchain import Arcee
#goes in llms/arcee.py
prompt_template = "Write a stripe API request for the following: {order}."
llm = Arcee(temperature=0)
llm_chain = LLMChain(
llm=llm,
prompt=PromptTemplate.from_template(prompt_template)
)
llm_chain("Place an order for the LLM-9000 product for 100 USD to the card 3007200039992000")
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
arcee-align-0.0.6.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file arcee-align-0.0.6.tar.gz
.
File metadata
- Download URL: arcee-align-0.0.6.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91678b89b3e448aa310e826d4d949ad97111df87e39f55c45641f6af171eec3b |
|
MD5 | 5dbf2b77ad26f37c60204547d06acfdd |
|
BLAKE2b-256 | 58f849c5c07a1fb4693bd3fde4f364d1e5b2bcac9da4a61c046df04d74a98790 |
File details
Details for the file arcee_align-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: arcee_align-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db22742a183d57412a6fe5c112e3982597ceffa3fa1c7963bd95f8439a3a5db6 |
|
MD5 | 59f9bce3dc0a766ae4a86a5780f82b48 |
|
BLAKE2b-256 | bff4b56c1a848a7b24ccadd33d6878ce27833df01e4522b8b6a5a6d93fcbacab |