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.0.tar.gz (23.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.4.0-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: constellaxion-0.4.0.tar.gz
  • Upload date:
  • Size: 23.6 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.0.tar.gz
Algorithm Hash digest
SHA256 8cffa7b209950e20f2d6638e8a4b8ed65ae8257e9f9b99fd630c183608206b50
MD5 b415f901f0bdb3952178b7ec57fa6324
BLAKE2b-256 d7fc56113e9d33a4df34bf252e00d6a28a1dfef1e731727e060fff970838071e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: constellaxion-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 29.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a854169fa1f64b8bf4367f32a570225a596e34fd1ba298f7b0c8baeaf50b0fb
MD5 aaa2e4390dcae953fd456910f5cb1b47
BLAKE2b-256 a4e85d385464a4575480eca108ca53bee0e4be091f7fc81d888ae6cdf30d77ab

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