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.5.0.tar.gz (831.6 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.5.0-py3-none-any.whl (901.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: constellaxion-0.5.0.tar.gz
  • Upload date:
  • Size: 831.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for constellaxion-0.5.0.tar.gz
Algorithm Hash digest
SHA256 51c35489e953a039b1665f8e38338f27b7a30f1726a497cbf2469ad8c577055f
MD5 f7047c6fae1635e10d4ddbc3d8829717
BLAKE2b-256 bb1e5bf4d6d470df1ec43fda00a4bd4d9a212caafab9a327e5ecfa9b8e69ff5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: constellaxion-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 901.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for constellaxion-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad5896e569c42583e2e41514678cee3817396c2b4ca1860e37741014664871cd
MD5 ec593c1475c51a2ff4cdf16ac5196082
BLAKE2b-256 f3fa70bab221982f9f77a3a155679ee06cddbd2f7ff0e2f19bd7e2ace8bccede

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