Skip to main content

Examples

Practical examples demonstrating how to use Galadriel for common ML/AI workloads.

Training a 70B LLM

Complete example of training a large language model from start to finish.

1. Purchase GPUs with Cost Optimization

2. Setup Training Environment

3. Deploy Training Job

Create llm-training.yaml:
Deploy:

4. Monitor Training

5. Finished Early? Resell!

Cost Breakdown:

Distributed Training with Multiple Nodes

Multi-Node PyTorch Training

Kubernetes Job for Multi-Node

High-Throughput Inference

vLLM Deployment

Test Inference

Fine-Tuning with LoRA

Efficient Fine-Tuning Setup

Deployment

Cost Optimization Strategies

Strategy 1: Off-Peak Scheduling

Strategy 2: Automatic Reselling

Strategy 3: Batch Processing with Limit Orders

Jupyter Notebook on GPUs

Launch JupyterLab

Deploy and access:

Ray Cluster for Distributed Computing

Deploy Ray Head

Deploy Ray Workers

Monitoring & Debugging

GPU Monitoring Dashboard

Debug GPU Issues

Next Steps

Quickstart

Get started in 5 minutes

API Reference

Complete API documentation

CLI Guide

Command-line interface reference

SDK Guide

Python and TypeScript SDKs