lucataco/ai-toolkit - AI Training Tools Tool
Overview
lucataco/ai-toolkit is a Cog-packaged implementation of ostris/ai-toolkit published on Replicate and intended for training LoRA adapters for the FLUX.1-dev model family. It is designed to run training workflows from a reproducible Cog container, accepting a custom image dataset to produce LoRA checkpoints that can be attached to FLUX.1-dev-style models. The implementation focuses on dataset-driven fine-tuning (image-to-LoRA) rather than end-to-end model re-training. The repository is explicitly marked as deprecated in favor of ostris/flux-dev-lora-trainer on its Replicate listing, so users should treat lucataco/ai-toolkit as a legacy packaging of the original toolkit. According to the Replicate model page, lucataco/ai-toolkit implements the ostris/ai-toolkit training flow via Cog but will not be the recommended path for new training runs; the upstream ostris/flux-dev-lora-trainer is cited as the preferred replacement (see model page). Because this package is primarily a Cog wrapper, it is most useful when you need a containerized, reproducible training command for LoRA adapters and have an existing FLUX.1-dev-compatible dataset and downstream workflow.
Key Features
- Cog-packaged implementation of ostris/ai-toolkit for reproducible, containerized training
- Specifically targeted at creating LoRA adapters for the FLUX.1-dev model family
- Accepts a custom image dataset to produce LoRA checkpoints for downstream use
- Provides a reproducible training entrypoint suitable for Replicate-hosted execution
- Marked deprecated; upstream ostris/flux-dev-lora-trainer is recommended for new runs
Example Usage
Example (python):
import replicate
# Example pattern for invoking a Replicate-hosted model. Replace inputs with names/values
# shown on the model page (https://replicate.com/lucataco/ai-toolkit).
client = replicate.Client()
model = client.models.get("lucataco/ai-toolkit")
# The actual input names and parameters depend on the model's API shown on Replicate.
# Use the model page to see required fields such as dataset path, output directory,
# training steps, and hyperparameters.
prediction = model.predict(
dataset_path="/path/to/your/images.zip", # placeholder: use the model's expected input
train_steps=1000,
learning_rate=1e-4,
output_dir="/output/lora-checkpoint"
)
print(prediction)
# Note: lucataco/ai-toolkit is deprecated in favor of ostris/flux-dev-lora-trainer; check
# the replicate model page for the authoritative input schema and recommended trainer. Key Information
- Category: Training Tools
- Type: AI Training Tools Tool