Skip to main content
Train agents or fine-tune LLMs without installing the full PraisonAI wrapper. The praisonai-train PyPI package (import: praisonai_train) is Tier 2c — it sits on top of praisonaiagents and gives you the train CLI group and a standalone praisonai-train console script.

Quick Start

1

Agent Training

Improve an agent iteratively — no ML dependencies required.
2

LLM Fine-tuning

Add the [llm] extra to pull the Unsloth/torch stack.

When to Use praisonai-train vs praisonai train

Install the standalone package when you only need training; use the wrapper’s praisonai train when you already run the full stack. Both entry points expose the same commands: every praisonai train <sub> also runs as praisonai-train <sub>.

CLI Subcommands

Five subcommands cover fine-tuning and agent training.
SubcommandPurpose
praisonai-train llm DATASETFine-tune an LLM via Unsloth
praisonai-train agents [AGENT_FILE]Iteratively train an agent
praisonai-train listList training sessions
praisonai-train show SESSION_IDShow a session’s iterations and best score
praisonai-train apply SESSION_IDApply learned suggestions to an agent
See Train CLI for full flags.

Common Patterns

Train, review, apply

Run a training session, inspect the iterations, then bake the best one into your agent.

Apply in Python

Apply a session’s suggestions to an agent directly.

Best Practices

pip install praisonai-train pulls only praisonaiagents — enough for agents, list, show, and apply. Add [llm] only when you need Unsloth fine-tuning.
The praisonai-train console script exposes the full train group without installing praisonai. Ideal for lightweight training-only environments.
Existing praisonai.train.*, praisonai.train_vision, and praisonai.upload_vision imports still resolve to the same module objects in praisonai_train. Nothing to migrate.
Backward-compatible: if you already have the wrapper installed, praisonai.train.* imports and the setup-conda-env entry point continue to work unchanged.

Train

Training overview and fine-tuning setup.

Train CLI

Full flag reference for the five subcommands.

Installation Extras

The train install matrix.

Package Tiers

How the five packages stack.