Skip to main content

The constellaXion CLI for managing your laboratory database

Project description

Logo

constellaXion CLI: Automated LLM Deployments for your private cloud

Project Page Check out the documentation

The fastest way to Train, Deploy and Serve Open Source Language Models to your Private Cloud

⚡️ Features

Configure and access the most popular open source LLMs with a few simple commands

  • 📄 YAML-based configuration

  • ⚙️ Fine-tune LLMs with your own data and cloud resources

  • 🚀 Deploy models to your private cloud

  • 🤖 Serve your models with ease

  • 💬 Prompt your models with ease

📚 The Stack

ConstellaXion leverages industry-leading technologies to provide a seamless LLM deployment experience. Deploy to AWS or GCP, serve models efficiently with vLLM, access the latest models from Hugging Face, and utilize DJL's powerful serving capabilities.

🔧 Quick Start

Installation

Install the package:

pip install constellaxion

For Windows users: this package may compile dependencies (e.g., numpy) from source. Please ensure you have the Microsoft C++ Build Tools installed: https://visualstudio.microsoft.com/visual-cpp-build-tools/

Alternatively, install with prebuilt binaries:

pip install --prefer-binary constellaxion

YAML Configuration Format

Create a model.yaml file to describe your project. Example:

model:
  id: my-llm
  base: tiiuae/falcon-7b-instruct

dataset:
  train: ./train.csv # Path to your training data.
  val: ./val.csv # Path to your validation data
  test: ./test.csv # Path to your test data

training:
  epochs: 1
  batch_size: 4

deploy:
  gcp:
    project_id: my-gcp-project
    region: europe-west2

model (required): The ID of the model you want to use.

base (required): The base model you want to use (HuggingFace path).

dataset (required for finetuning): The path to your training, validation, and test data.

  • All 3 datasets must be provided as CSV files with the following columns: prompt, response.

training (required for finetuning): The number of epochs and batch size for training.

deploy (required for deployment): The Deployment target. Currently only GCP is supported.

  • gcp:
    • project_id: The GCP project ID.
    • region: The GCP region to deploy the model to.

Usage

Initialize your project:

constellaXion init

View your current model configuration:

constallaXion model view

Deploy a foundation model without finetuning:

constellaXion model deploy

Run fine-tuninig job (Dataset and training configs required):

constallaXion model train

Serve a fine-tuned model:

constallaXion model serve

Prompt model:

constallaXion model prompt

Example Workflow

Create model.yaml file: to fit your use case

constellaXion init

Print the current training and serving configuration from your YAML file:

constellaXion model view

Run training job:

constellaXion model train
constellaXion model serve
constellaXion model prompt

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

constellaxion-0.4.3.tar.gz (790.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

constellaxion-0.4.3-py3-none-any.whl (804.3 kB view details)

Uploaded Python 3

File details

Details for the file constellaxion-0.4.3.tar.gz.

File metadata

  • Download URL: constellaxion-0.4.3.tar.gz
  • Upload date:
  • Size: 790.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.10

File hashes

Hashes for constellaxion-0.4.3.tar.gz
Algorithm Hash digest
SHA256 a987cfe4d92b13d5ad9f573d4c483ad522548f71e89c178611610aa32ccc9f47
MD5 609ed778c3ca4105ed145fe221ec00fb
BLAKE2b-256 cef47886a03264017f292136219c71dfa2d5c56c3c5680f37ecb6bcaa103a862

See more details on using hashes here.

File details

Details for the file constellaxion-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: constellaxion-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 804.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.10

File hashes

Hashes for constellaxion-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9286c0c937c5b288f7969a6704ff32d34e19518005753f383857e542420c40b2
MD5 95a99f8c1536acd8aa2196ecbdb9a1b2
BLAKE2b-256 0dc1dca619016855341ef3328c3a9e5913c2ee1592a4bdad6be915f15dcb9b61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page