CLI Module

CLI entrypoint for frankenstein-transformer.

Provides the frankenstein-transformer command with subcommands for training, deployment, quantization, inference, SBERT training/inference, HuggingFace Transformers export, and a Streamlit web server for configuration building.

src.cli.build_parser() ArgumentParser[source]

Build the top-level argument parser with all subcommands.

Returns:

An argparse.ArgumentParser with subparsers for train, deploy, quantize, infer, sbert-train, sbert-infer, transformers-export, and web-server.

src.cli.main(argv=None) int[source]

Parse CLI arguments and dispatch to the selected subcommand.

Parameters:

argv – Optional list of command-line arguments (defaults to sys.argv[1:]).

Returns:

Exit code (0 for success, non-zero for failure).