Skip to content

Ask AI

Powered by Blaze

Answers come from E2E Cloud documentation. AI can make mistakes.

Use a repository from a Model Endpoint

View as Markdown

Link a repository to a Model Endpoint, and the endpoint downloads the model when its container starts or restarts. A repository stores model files. The endpoint is the running service that answers requests. The same steps are in Deploy a model from Model Repository.

The endpoint uses a repository in its own project and region, with the model files already uploaded.

In Model Repository, find the repository and select Deploy Model. You can also start from Model Endpoints with Create Endpoint. Then follow the steps below.

  1. On Choose Framework, choose a framework that takes a repository: vLLM, SGLang, NVIDIA Dynamo, Custom Container, TensorRT, PyTorch, or NVIDIA Triton. See Choose a framework.
  2. In Download Type, choose Link with Model Repository. TIR downloads the model from the repository when the container starts or restarts. TensorRT, PyTorch, and NVIDIA Triton offer only this choice.
  3. In Model Repository, choose one of the project’s repositories in the current region. To check what it holds, follow the link next to it. If there is none yet, create one first.
  4. By default the endpoint looks for the model at the top of the repository’s bucket, s3://<bucket-name>/, so leave Model Path empty for that. If you uploaded the model to a folder such as v1 or production, type it in Model Path, for example /v1 for a version.
  5. (Optional) Select Validate to check that TIR finds model files at that path.

For a vLLM endpoint that loads from a repository, Model Type is required:

  • Full Model (for standard inference) serves the model in the repository as it is.
  • PEFT Model (for LoRA-based inference) serves a LoRA adapter on top of a base model. Type the Base Model Name. It must match the base model named in the repository’s adapter_config.json file. Choose an HF Token Integration so the endpoint can download the base model; to make one, see Create a Hugging Face integration.

A PEFT repository must hold adapter_config.json and a file ending in .safetensors. If the portal shows “adapter_config.json or .safetensors files not present in model repo, please check file path”, check the path. If it shows “Base model name does not match with the name given in config file”, correct the Base Model Name.

Finish the endpoint’s other settings and select Deploy Endpoint. See Create an endpoint.

The endpoint’s Overview gives the Model Name, Model Type, and Model Path of a repository model. In requests, the model name is /mnt/models for a model from a repository and peft-model for a LoRA adapter.

If the endpoint cannot find the model files, check three things. The files must be on the repository’s Model Files tab. Model Path must match the folder layout. The bucket name must be right. Then read the endpoint’s logs. See Troubleshooting Model Endpoints and Troubleshooting Model Repository.

To delete the repository later, delete its endpoint first. See Delete a repository.

Was this page helpful?