unsloth/unsloth_cli/__init__.py

21 lines
736 B
Python
Raw Permalink Normal View History

2026-03-12 17:23:10 +00:00
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
import typer
from unsloth_cli.commands.train import train
from unsloth_cli.commands.inference import inference
from unsloth_cli.commands.export import export, list_checkpoints
from unsloth_cli.commands.studio import studio_app
app = typer.Typer(
2026-03-12 18:28:04 +00:00
help = "Command-line interface for Unsloth training, inference, and export.",
context_settings = {"help_option_names": ["-h", "--help"]},
)
app.command()(train)
app.command()(inference)
app.command()(export)
app.command("list-checkpoints")(list_checkpoints)
2026-03-12 18:28:04 +00:00
app.add_typer(studio_app, name = "studio", help = "Unsloth Studio commands.")