Skip to main content

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.5.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

arcee_align-0.0.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file arcee-align-0.0.5.tar.gz.

File metadata

  • Download URL: arcee-align-0.0.5.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

Hashes for arcee-align-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2086900337bedabee1ff8a63fb070f7191b86a9908169736884998586a91606b
MD5 b0378c3064d6110b9f33ea2e3ea42507
BLAKE2b-256 4f76f562029c4cf5d2dd65724a57f944581ba85585b85d6974af84ec2cdd4652

See more details on using hashes here.

File details

Details for the file arcee_align-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: arcee_align-0.0.5-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

Hashes for arcee_align-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 368a8504b2ec68f84253ac2e2aac0bf7397ce80693d026303b41cb6805c71d9d
MD5 cd9dd1cd5a512d41f758e645521bcaab
BLAKE2b-256 71664792740a772893f933e596c5cb3cdef8659996dd5139b0ec734b1986d84d

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