Skip to main content

The open source toolkit for finetuning and deploying LLMs

Project description

Arcee

The open source toolkit for finetuning and deploying LLMs

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: arcee-align-0.0.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for arcee-align-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e0222597599ce101e2abdda682e01726144b5db35ce302a89735ff1c91978f18
MD5 ac58bab77a7d47966c1b2958f522fb2c
BLAKE2b-256 9a483c5aa0e5e11e56b9f613d9dbd8f53758b506c7c3c7359a1b0f7ab389a05a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arcee_align-0.0.2-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.8.10

File hashes

Hashes for arcee_align-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9dab0a14c8e4b3a67cb3826fef1e33dcda1b17c26c5ef374785755c76d5944f6
MD5 370712942ff3dffe8993fa0436a7243d
BLAKE2b-256 6d8e154e56f703b42f22ab0de2aca3d03d51916c6095ba88c4db3313de394c9c

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