Running training locally and on remote GPUs

Note: Requires a local CUDA GPU, Apple Silicon Mac, or configured remote GPU host.

Launch local training on Apple Silicon or CUDA

praisonai-train auto-detects Apple Silicon (MLX) or NVIDIA CUDA locally and saves periodic checkpoints to output_dir so interrupted runs resume without losing progress.

Example

# Run supervised fine-tuning locally from train.yaml
praisonai train --config train.yaml

Example explained

  • praisonai train –config train.yaml — Starts SFT/LoRA training with checkpointing and validation logging.

Scale to a remote GPU when models exceed local RAM

For 8B–70B models or large datasets, use the remote subcommand to verify credentials, launch the job, tail live loss logs, and fetch the trained adapter back to your machine.

Example

# 1. Check remote GPU readiness
praisonai train remote preflight --config train.yaml

# 2. Launch, watch live logs, and download artifacts
praisonai train remote start --config train.yaml
praisonai train remote tail
praisonai train remote fetch

Example explained

  • remote preflight — Validates SSH/GPU/dataset staging before paying for GPU minutes.
  • remote tail / fetch — Streams training metrics live and pulls finished checkpoints back locally.

Common pitfall: forgetting checkpoint retention

Always keep eval_steps and save_steps enabled. The final epoch is often slightly overfit compared to an earlier validation-best checkpoint.

Reference: documentation