This repository contains pipeline templates for training machine learning models on the Clarifai platform.
pip install clarifai
export CLARIFAI_PAT=<your_personal_access_token>clarifai pipeline init --template=classifier-pipeline-resnet-quick-start
cd classifier-pipeline-resnet-quick-startclarifai pipeline upload
clarifai pipeline run --nodepool_id=<your_nodepool_id> --compute_cluster_id=<your_compute_cluster_id>Go to https://clarifai.com/YOUR_USER_ID/YOUR_APP_ID, check the Pipelines tab to monitor your pipeline and check the Models tab to find your model once training is done.
| Template | Description | Use Case |
|---|---|---|
classifier-pipeline-resnet-quick-start |
Quick start ResNet-based image classifier | Image classification with sample dataset |
detector-pipeline-yolof-quick-start |
Quick start YOLOF-based object detector | Object detection with sample dataset |
classifier-pipeline-resnet |
ResNet-based image classifier | Image classification tasks |
detector-pipeline-yolof |
YOLOF-based object detector | Object detection tasks |
lora-pipeline-unsloth |
LoRA fine-tuning with Unsloth | LLM fine-tuning tasks |
benchmark-gpu-memory-pipeline |
GPU memory benchmark pipeline | GPU memory testing and benchmarking |
Before getting started, ensure you have:
-
Clarifai CLI installed
pip install clarifai
-
A Clarifai account with access to:
- An App
- A Compute Cluster with GPU support
- A Nodepool configured with GPU instances (e.g.,
g6exlarge)
-
Your Personal Access Token (PAT) from Clarifai Settings