Skip to main content

CLI (pbase)

Predibase CLI commands

Usage:

$ pbase [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • delete: Delete Predibase resources
  • deploy: Deploy Predibase resources
  • init: Initialize default model repository and...
  • prompt: Prompt Predibase models
  • settings: Configure Predibase settings

pbase delete

Delete Predibase resources

Usage:

$ pbase delete [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • llm: Delete Large Langage Model (LLM) deployments

pbase delete llm

Delete Large Langage Model (LLM) deployments

Usage:

$ pbase delete llm [OPTIONS]

Options:

  • -d, --deployment-name TEXT: Name of the deployment
  • --help: Show this message and exit.

pbase deploy

Deploy Predibase resources

Usage:

$ pbase deploy [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • llm: Create a Large Language Model (LLM)...

pbase deploy llm

Create a Large Language Model (LLM) deployment

Usage:

$ pbase deploy llm [OPTIONS]

Options:

  • -d, --deployment-name TEXT: Name of the deployment
  • -m, --model-name TEXT: Name of the model
  • -e, --engine-template TEXT: Optional engine template to provision for hosting the model [default: llm-gpu-small]
  • --help: Show this message and exit.

pbase init

Initialize default model repository and engine

Usage:

$ pbase init [OPTIONS]

Options:

  • -r, --repository-name TEXT: The optional model repository name
  • -e, --engine-name TEXT: The optional engine name
  • --help: Show this message and exit.

pbase prompt

Prompt Predibase models

Usage:

$ pbase prompt [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • llm: Query a Large Language Model (LLM)

pbase prompt llm

Query a Large Language Model (LLM)

Usage:

$ pbase prompt llm <DATA> [OPTIONS]

Where <DATA> is one of:

  • A single text string, if the model's prompt template has a single interpolation slot, or
  • A space-delimited list of key=value pairs, one for each interpolation parameter.

Options:

  • -m, --deployment-name TEXT: The name of the deployment to prompt
  • -a, --adapter-name TEXT: Reference to a fine-tuned adapter model with the same base model type
  • -i, --index-name TEXT: Optional dataset to index
  • -d, --dataset-name TEXT: Optional dataset for batch inference
  • -l, --limit INTEGER: Optional results limit
  • --help: Show this message and exit.

pbase settings

Configure Predibase settings

Usage:

$ pbase settings [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • set-api-token: Set api token
  • set-endpoint: Set default endpoint url
  • set-engine: Set default engine name
  • set-repo: Set default repository name
  • show-all: Show local and global settings
  • show-global: Show global settings
  • show-local: Show local settings

pbase settings set-api-token

Set api token

Usage:

$ pbase settings set-api-token [OPTIONS] TOKEN

Arguments:

  • TOKEN: The api token [required]

Options:

  • --help: Show this message and exit.

pbase settings set-endpoint

Set default endpoint url

Usage:

$ pbase settings set-endpoint [OPTIONS] ENDPOINT

Arguments:

  • ENDPOINT: The endpoint url [required]

Options:

  • --help: Show this message and exit.

pbase settings set-engine

Set default engine name

Usage:

$ pbase settings set-engine [OPTIONS] ENGINE_NAME

Arguments:

  • ENGINE_NAME: The engine name [required]

Options:

  • --help: Show this message and exit.

pbase settings set-repo

Set default repository name

Usage:

$ pbase settings set-repo [OPTIONS] REPOSITORY_NAME

Arguments:

  • REPOSITORY_NAME: The model repository name [required]

Options:

  • --help: Show this message and exit.

pbase settings show-all

Show local and global settings

Usage:

$ pbase settings show-all [OPTIONS]

Options:

  • --help: Show this message and exit.

pbase settings show-global

Show global settings

Usage:

$ pbase settings show-global [OPTIONS]

Options:

  • --help: Show this message and exit.

pbase settings show-local

Show local settings

Usage:

$ pbase settings show-local [OPTIONS]

Options:

  • --help: Show this message and exit.