How to Upload Model Directly

Last updated: May 22, 2026

Upload a model to Friendli using the CLI

You can upload your model files directly to use with Friendli Dedicated Endpoints. Follow the steps below:

1. Install the CLI

First, install the Friendli CLI. Be sure to specify the exact version:

pip install friendli-client==2.0.0a16

2. Prepare Your API Token

The CLI requires authentication. Get your API token from the Personal Settings and set it as an environment variable:

Example:

export FRIENDLI_TOKEN=<YOUR_API_TOKEN>

3. Confirm Your Project ID

Identify the Project ID where you want to upload your model. Set it as an environment variable:

Example:

export PROJECT_ID=<YOUR_PROJECT_ID>

4. Run the Upload Command

Upload the local model directory to Friendli:

friendli --token $FRIENDLI_TOKEN model push --project $PROJECT_ID --name new-model /path/to/model
  • --name : The name you want to assign to the model on Friendli

  • /path/to/model : The local path to your model files

Notes

  • Identical files are deduplicated automatically and won’t be re-uploaded.

  • Not all files may be uploaded. Some files may be skipped if they are unnecessary or unsupported.