A streamlined pipeline for training Stable Diffusion LoRA adapters locally on Apple Silicon with automated LLM-based quality scoring.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install lora-finetune
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install lora-finetune using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides a robust, local pipeline designed to train Low-Rank Adaptation (LoRA) weights for Stable Diffusion 1.5 directly on Mac hardware. By leveraging Openclaw Skills, developers can bypass expensive cloud GPU costs and maintain full data privacy while fine-tuning models for specific artistic styles, unique characters, or domain-specific visual assets. The pipeline is specifically optimized for the Metal Performance Shaders (MPS) backend, ensuring stability and performance on M-series chips.
Beyond simple training, the skill integrates an evaluation framework that uses an LLM-as-judge approach. This allows for objective scoring of style consistency and prompt adherence by comparing local fine-tuned results against commercial benchmarks like Gemini or DALL-E. It is an essential tool for developers looking to push the boundaries of on-device generative AI using Openclaw Skills.
Ensure you have Python 3 installed and an M-series Mac with sufficient VRAM (24GB recommended for SD 1.5). You will also need a Hugging Face read token.
# Set your environment variable
export HF_TOKEN='your_huggingface_token'
# Prepare your dataset in a folder
# Ensure images and .txt captions are paired (e.g., img_1.png, img_1.txt)
# Run the training script
python3 scripts/train_lora.py \
--data_dir ./training_data \
--output_dir ./lora_weights \
--steps 500 \
--lr 1e-4 \
--rank 4
The skill organizes training data and results into a structured directory format to ensure compatibility with other Openclaw Skills.
| Path | Purpose | Format |
|---|---|---|
training_data/ |
Source images and captions | PNG + TXT pairs |
lora_weights/ |
Output directory for trained adapters | .safetensors / .bin |
scripts/train_lora.py |
Core training logic for MPS | Python Script |
scripts/compare_models.py |
LLM-as-judge evaluation logic | Python Script |
Loading
A secure automation tool for injecting 1Password secrets directly into macOS LaunchAgent environment variables.

A governance framework for multi-agent systems that enforces daily token budgets through automated auditing and privilege management.

A comprehensive toolset enabling AI agents to search the web, extract content from PDFs and YouTube, and perform semantic research.

An automated security tool that identifies and remediates hardcoded credentials, API keys, and sensitive tokens across your codebase.

A lightweight caching layer that uses SHA-256 hashing to eliminate redundant LLM and TTS API calls and reduce operational costs.

A multi-layered evaluation framework for scoring AI outputs using deterministic checks, heuristics, and sampled LLM judges.








































