MCPcopy Create free account
hub / github.com/cactus-compute/cactus / create_parser

Function create_parser

python/src/cli.py:1916–2206  ·  view source on GitHub ↗

Create the argument parser with all subcommands.

()

Source from the content-addressed store, hash-verified

1914
1915
1916def create_parser():
1917 """Create the argument parser with all subcommands."""
1918 parser = argparse.ArgumentParser(
1919 formatter_class=argparse.RawDescriptionHelpFormatter,
1920 usage=argparse.SUPPRESS,
1921 description="""
1922
1923 -----------------------------------------------------------------
1924
1925 How to use the Cactus Repo/CLI:
1926
1927 -----------------------------------------------------------------
1928
1929 cactus auth manage Cactus Cloud API key
1930 shows status and prompts to set key
1931
1932 Optional flags:
1933 --status show key status without prompting
1934 --clear remove the saved API key
1935
1936 -----------------------------------------------------------------
1937
1938 cactus run <model> opens playground for the model
1939 auto downloads and spins up
1940
1941 Optional flags:
1942 --precision INT4|INT8|FP16 default: INT4
1943 --token <token> HF token (for gated models)
1944 --reconvert force model weights reconversion from source
1945
1946 -----------------------------------------------------------------
1947
1948 cactus transcribe [model] live microphone transcription
1949 default model: parakeet-tdt-0.6b-v3
1950
1951 Optional flags:
1952 --file <audio.wav> transcribe audio file instead of mic
1953 --precision INT4|INT8|FP16 default: INT4
1954 --token <token> HF token (for gated models)
1955 --reconvert force model weights reconversion from source
1956
1957 Examples:
1958 cactus transcribe live microphone transcription
1959 cactus transcribe --file audio.wav transcribe single file
1960 cactus transcribe nvidia/parakeet-ctc-1.1b use different model
1961 cactus transcribe nvidia/parakeet-tdt-0.6b-v3 --file audio.wav
1962
1963 -----------------------------------------------------------------
1964
1965 cactus download <model> downloads model to ./weights
1966 see supported weights on ReadMe
1967
1968 Optional flags:
1969 --precision INT4|INT8|FP16 quantization (default: INT4)
1970 --token <token> HuggingFace API token
1971 --reconvert force model weights reconversion from source
1972
1973 -----------------------------------------------------------------

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected