Skip to main content

Command Line

Build

ScalarLM includes a top level script to help building components of the platform. Clone the repo and run ./scalarlm --help to get started.

./scalarlm --help

scalarlm - ScalarLM Build CLI

Usage:
  scalarlm COMMAND
  scalarlm [COMMAND] --help | -h
  scalarlm --version | -v

Commands:
  build-image   Build image from dockerfile
  depot-build   Build image from dockerfile and push to depot
  up            Start the container
  test          Run tests in the container
  deploy        Deploy the cray platform to modal
  serve         Serve the cray platform using modal
  llm           Invoke the LLM tool
  pypi          Publish the cray package to pypi
  benchmark     Run the benchmark tests

Options:
  --help, -h
    Show this help

  --version, -v
    Show version number

Build Image

./scalarlm build-image builds the Dockerfile locally. You can specify the build target to create containers for different accelerators, e.g. ./scalarlm build-image nvidia or ./scalarlm build-image amd

Up

./scalarlm up runs docker-compose to build a container locally and start it in single server development mode.