Skip to main content

Integrations

  1. Log in to Hugging Face, then navigate to Access Tokens.
  2. Create a new token. You can use a fine-grained token. In this case, make sure the token has view permission for the repository you’d like to use.
  3. Integrate the key in Friendli Suite > Personal Settings > Integrations.
If you revoke / invalidate the key, you will have to update the key to avoid disrupting ongoing deployments, or to launch a new inference deployment.

Using a 3rd-Party Model

HF artifact as a model
  • Use the repository id of the model. You can select the entry from the list of autocompleted model repositories.
  • You can select a specific branch, or manually enter a commit hash.

Format Requirements

  • A model should be in safetensors format.
  • The model should NOT be nested inside another directory.
  • Including other arbitrary files (that are not in the list) is totally fine. However, those files will not be downloaded nor used.
The dataset should satisfy the following conditions:
  1. The dataset must contain a column named “messages”.
  2. Each row in the “messages” column should be compatible with the chat template of the base model. For example, tokenizer_config.json of mistralai/Mistral-7B-Instruct-v0.2 is a template that repeats the messages of a user and an assistant. Concretely, each row in the “messages” field should follow a format like: [{"role": "user", "content": "The 1st user's message"}, {"role": "assistant", "content": "The 1st assistant's message"}]. In this case, HuggingFaceH4/ultrachat_200k is a dataset that is compatible with the chat template.

Troubleshooting

Inference Request Errors

Below is a table of common error codes you might encounter when making inference-related API requests.

Quick Checklist Before Retrying

  • Verify the endpoint URL, endpoint_id, and (if applicable) X-Friendli-Team header
  • Include the Authorization header with a valid key
  • Confirm the target deployment exists, is healthy, and is not deleted
  • Validate request JSON and required fields; reduce max_tokens if needed
  • Check rate limits; add retry with backoff when receiving 429

Model Selection Errors

Troubleshooting - no accessThe repository is gated. Please follow the steps and gain approval from the owner using Hugging Face Hub.
Troubleshooting - invalid repoTroubleshooting - invalid artifactThe model does not meet the requirements. Please check if the model follows a correct safetensors format. See the format requirements for details.
Troubleshooting - unsupportedThe model architecture is not supported. Please refer to the Supported Models page.

Endpoint Lifecycle

Endpoints that remain in a sleep state for 48 hours are automatically terminated.
  • When min_replicas = 0, the endpoint enters a sleep state after the cooldown period if no requests are received.
  • A notification is sent after 24 hours of sleep, and the endpoint is terminated after another 24 hours if not reactivated.
This page may not cover all cases. If your issue persists, contact support.
Last modified on July 21, 2026