Skip to main content

Upload

Upload a model from Hugging Face or S3 to for inference on a dedicated endpoint.
tg models upload \
    --model-name [TEXT] \
    --model-source [URI]

Parameters

FlagTypeDescription
--model-namestringThe name to give to your uploaded model [required]
--model-sourcestringThe source URI of the model [required]
--model-typemodel or adapterWhether the model is a full model or an adapter
--hf-tokenstringHugging Face token (if uploading from Hugging Face)
--descriptionstringA description of your model
--base-modelstringThe base model to use for an adapter if setting it to run against a serverless pool. Only used with --model_type adapter.
--lora-modelstringThe LoRA pool to use for an adapter if setting it to run against, say, a dedicated pool. Only used with --model-type adapter.

List all models

# List Models
tg models list

Options

FlagTypeDescription
--typededicatedFilter models by type. dedicated is the only available option
--afterstringThe cursor to start from for pagination.