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.2.tar.gz (26.0 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.2-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: constellaxion-0.4.2.tar.gz
  • Upload date:
  • Size: 26.0 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.2.tar.gz
Algorithm Hash digest
SHA256 9c0c4daf733ec679f618c46ab283a32f6ba9d4800998a1d3267a0be099f4c793
MD5 4677561e5751c2e64b99a8604f22e1e7
BLAKE2b-256 1a44851bf1ca563a72d748bba9894fd82e4e3397e91ed727f32a5859ba28e28f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: constellaxion-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 29.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79a31459bdccb6ce0305c24a57266f43b2ea1dc0b13facd3072c5a5acd4d43d8
MD5 9588d3c7ba2078206e255241334850bf
BLAKE2b-256 1560f9b9f68498a04877e66e397b4d62b347e791aa173f3a369233e65fb73e32

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