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
|
2026-03-09 20:17:45 +00:00
|
|
|
|
2025-12-11 20:27:27 +00:00
|
|
|
import typer
|
|
|
|
|
|
2026-03-18 03:40:21 +00:00
|
|
|
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
|
2025-12-11 20:27:27 +00:00
|
|
|
|
|
|
|
|
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"]},
|
2025-12-11 20:27:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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.")
|