> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trieve.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Custom Models

> How to use gated or private models hosted on Hugging Face

## Custom or fine tuned models in Trieve Vector Inference

The [open source text models](https://huggingface.co/spaces/mteb/leaderboard) on Hugging Face may not be what you always want,

<Steps>
  <Step title="Update embedding_models.yaml">
    To use a private or custom model with Trieve Vector Inference, you will need to update your `embedding_models.yaml` file.

    If the model is a private or gated Hugging Face model, you will need to include your Hugging Face API token.

    ```yaml embedding_models.yaml theme={null}
    ...
    models:
      ...
      my-custom-model:
        replicas: 1
        revision: main
        modelName: trieve/private-model-example
    	hfToken: "hf_**********************************"
    ...
    ```
  </Step>

  <Step title="Update your TVI cluster">
    Update TVI to include your models

    ```bash theme={null}
    helm upgrade -i vector-inference \
        oci://709825985650.dkr.ecr.us-east-1.amazonaws.com/trieve/trieve-embeddings  \
        -f embedding_models.yaml
    ```
  </Step>

  <Step title="Get embeddings endpoint">
    ```sh theme={null}
    kubectl get ing
    ```
  </Step>
</Steps>
