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 Cloud environment

⚡️ 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 environment

  • 🤖 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
    location: 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.
    • location: 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.1.tar.gz (26.3 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.1-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: constellaxion-0.4.1.tar.gz
  • Upload date:
  • Size: 26.3 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.1.tar.gz
Algorithm Hash digest
SHA256 e942cee2328494c04f5fbcbd7d5649e7cc0306d4007b0acb22ccf7dade1b2957
MD5 73907b05f900e39190e6519bcd5668c9
BLAKE2b-256 81c41a6c5e6e1c4d0c728744b6613c9882efe46f6bd9df489a528a1cbc63246d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: constellaxion-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 29.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc29e315e57a6899ae75ee246d163fb36804cbe1c2e788f23f0c4b8e966dfd2b
MD5 c3f0f77bc03b2cd0ff8e41a52ecdd3bd
BLAKE2b-256 0f96d7f028fc14b6c474757d99a91e8f1bc49e3fc754c05513203f6fe34bcf80

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