/ml-training:example-projectsfrom ml-training
Delivers three complete ML training examples (sentiment classification, text generation, RedAI trade classifier) with training scripts, deployment configs, and datasets for reference or starter templates.
Ships in ml-training. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Purpose: Provide complete, runnable example projects demonstrating ML training workflows from data preparation through deployment.
Activation Triggers:
Key Resources:
scripts/setup-example.sh - Initialize and setup any example projectscripts/run-training.sh - Execute training for any examplescripts/test-inference.sh - Test trained modelsexamples/sentiment-classification/ - Binary sentiment classification (IMDB-style)examples/text-generation/ - GPT-style text generation with LoRAexamples/redai-trade-classifier/ - Financial trade classification with Modal deploymenttemplates/ - Scaffolding for new projectsUse Case: Binary sentiment analysis (positive/negative reviews)
Features:
Files:
train.py - Complete training scriptdata.json - Sample training data (50 examples)inference.py - Inference serverREADME.md - Setup and usage guideDataset Format:
{"text": "This movie was amazing!", "label": 1}
{"text": "Terrible waste of time", "label": 0}
Use Case: Fine-tune GPT-2 for custom text generation
Features:
Files:
train.py - LoRA training scriptconfig.yaml - Hyperparameters and model configgenerate.py - Text generation scriptmodal_deploy.py - Modal deploymentREADME.md - Complete guideConfig Structure:
model:
name: gpt2
max_length: 512
training:
epochs: 3
batch_size: 4
learning_rate: 2e-4
lora:
r: 8
alpha: 16
dropout: 0.1
Use Case: Financial trade classification (buy/sell/hold)
Features:
Files:
train.py - Training with class weightingmodal_deploy.py - Complete Modal deploymentdata_preprocessing.py - Feature engineeringREADME.md - Trading strategy guideModel Input:
# Initialize example project
./scripts/setup-example.sh <project-name>
# Options: sentiment-classification, text-generation, redai-trade-classifier
./scripts/setup-example.sh sentiment-classification
What it does:
# Train model for any example
./scripts/run-training.sh <project-name>
# Examples:
./scripts/run-training.sh sentiment-classification
./scripts/run-training.sh text-generation
./scripts/run-training.sh redai-trade-classifier
Monitors:
# Test trained model
./scripts/test-inference.sh <project-name> <input>
# Examples:
./scripts/test-inference.sh sentiment-classification "This product is great!"
./scripts/test-inference.sh text-generation "Once upon a time"
./scripts/test-inference.sh redai-trade-classifier market_data.json
Choose example based on use case:
Setup project:
./scripts/setup-example.sh <example-name>
Customize for your data:
train.pyRun training:
./scripts/run-training.sh <example-name>
Deploy:
inference.pymodal_deploy.pyAll examples include Modal deployment:
# Deploy to Modal
cd examples/<project-name>
modal deploy modal_deploy.py
# Get endpoint URL
modal app show <app-name>
| Feature | Sentiment | Text Gen | Trade Classifier |
|---|---|---|---|
| Task Type | Binary Classification | Generation | Multi-class |
| Model | DistilBERT | GPT-2 + LoRA | Custom Transformer |
| Training Time | 5-10 min | 15-30 min | 10-20 min |
| GPU Required | Optional | Recommended | Required |
| Modal Deploy | ✅ | ✅ | ✅ |
| Custom Data | Easy | Moderate | Advanced |
Change dataset:
# In train.py, update load_data()
def load_data(path):
# Your custom loading logic
return texts, labels
Change model:
# Replace DistilBERT with other models
model_name = "bert-base-uncased" # or roberta-base, etc.
Change generation style:
# In config.yaml
generation:
temperature: 0.8 # Higher = more creative
top_p: 0.9 # Nucleus sampling
max_length: 200 # Output length
Add custom prompts:
# In generate.py
prompts = [
"Your custom prompt here",
"Another prompt"
]
Add features:
# In data_preprocessing.py
def engineer_features(df):
df['rsi'] = calculate_rsi(df['close'])
df['macd'] = calculate_macd(df['close'])
# Add your custom indicators
return df
Change strategy:
# Update labels in train.py
# 0 = sell, 1 = hold, 2 = buy
labels = your_strategy(prices, indicators)
Each example includes its own requirements.txt:
Sentiment Classification:
Text Generation:
Trade Classifier:
Issue: Out of memory Fix: Reduce batch size in config
Issue: CUDA not available Fix: Use CPU or install CUDA toolkit
Issue: Model not found Fix: Check checkpoint path in inference script
Issue: Wrong input format Fix: Validate input matches training data format
Issue: Modal authentication
Fix: Run modal token new to authenticate
Issue: Dependency conflicts Fix: Use exact versions from requirements.txt
Scripts: All scripts are in scripts/ with execution permissions
Examples: Complete projects in examples/ directory
Templates: Scaffolding in templates/ for creating new projects
Documentation: Each example has detailed README.md
Supported Frameworks: PyTorch, Transformers, PEFT Deployment Platforms: Modal, Local, FastAPI Version: 1.0.0
README.md (opens in a new tab)examples/redai-trade-classifier/README.md (opens in a new tab)examples/redai-trade-classifier/inference.py (opens in a new tab)examples/redai-trade-classifier/modal_deploy.py (opens in a new tab)examples/redai-trade-classifier/requirements.txt (opens in a new tab)examples/redai-trade-classifier/sample_data.csv (opens in a new tab)examples/redai-trade-classifier/train.py (opens in a new tab)examples/sentiment-classification/README.md (opens in a new tab)examples/sentiment-classification/data.json (opens in a new tab)examples/sentiment-classification/inference.py (opens in a new tab)examples/sentiment-classification/requirements.txt (opens in a new tab)examples/sentiment-classification/train.py (opens in a new tab)examples/text-generation/README.md (opens in a new tab)examples/text-generation/config.yaml (opens in a new tab)examples/text-generation/generate.py (opens in a new tab)examples/text-generation/requirements.txt (opens in a new tab)examples/text-generation/train.py (opens in a new tab)examples/text-generation/training_data.txt (opens in a new tab)scripts/run-training.sh (opens in a new tab)scripts/setup-example.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/cloud-gpu-configsCloud GPU Configurations SkillPlatform-specific configuration templates and GPU selection guidance for Modal, Lambda Labs, and RunPod cloud platforms./cost-calculatorCost estimation scripts and tools for calculating GPU hours, training costs, and inference pricing across Modal, Lambda Labs, and RunPod platforms. Use when estimating ML training costs, comparing platform pricing, calculating GPU hours, budgeting for ML projects, or when user mentions cost estimation, pricing comparison, GPU budgeting, training cost analysis, or inference cost optimization./google-cloud-configsGoogle Cloud Platform configuration templates for BigQuery ML and Vertex AI training with authentication setup, GPU/TPU configs, and cost estimation tools. Use when setting up GCP ML training, configuring BigQuery ML models, deploying Vertex AI training jobs, estimating GCP costs, configuring cloud authentication, selecting GPUs/TPUs for training, or when user mentions BigQuery ML, Vertex AI, GCP training, cloud ML setup, TPU training, or Google Cloud costs./integration-helpersIntegration templates for FastAPI endpoints, Next.js UI components, and Supabase schemas for ML model deployment. Use when deploying ML models, creating inference APIs, building ML prediction UIs, designing ML database schemas, integrating trained models with applications, or when user mentions FastAPI ML endpoints, prediction forms, model serving, ML API deployment, inference integration, or production ML deployment./monitoring-dashboardTraining monitoring dashboard setup with TensorBoard and Weights & Biases (WandB) including real-time metrics tracking, experiment comparison, hyperparameter visualization, and integration patterns. Use when setting up training monitoring, tracking experiments, visualizing metrics, comparing model runs, or when user mentions TensorBoard, WandB, training metrics, experiment tracking, or monitoring dashboard./training-patternsTemplates and patterns for common ML training scenarios including text classification, text generation, fine-tuning, and PEFT/LoRA. Provides ready-to-use training configurations, dataset preparation scripts, and complete training pipelines. Use when building ML training pipelines, fine-tuning models, implementing classification or generation tasks, setting up PEFT/LoRA training, or when user mentions model training, fine-tuning, classification, generation, or parameter-efficient tuning.npx claudepluginhub vanman2024/ai-dev-marketplace --plugin ml-trainingOther plugins' skills for the same job