# Deploying private models through HuggingFace Repos

In order to deploy a Parasail dedicated endpoint for a private model from HuggingFace, you need to follow these steps:

* Make your model private in HuggingFace.
  * Go to the settings page of your model.
  * At the top of the page, click on the button `Make private`. <img src="/files/M8iMOtSWvcFqnTnASqbw" alt="alt text" data-size="original">
  * After the model becomes private, you should see the following: ![alt text](/files/z39YGf7S7fRbG9YcDARF)
* Create a HuggingFace access token with finegrained permissions that only allows access to your private model.

  * On the `Access Tokens` page, click on the button `Create new token`.
  * Leave token type as `Fine-grained` and write a name for your access token. ![alt text](/files/e4j2VlFe78uT6IXVEL48)
  * Scroll down to the section `Repositories permissions`. ![alt text](/files/EHL1CojuqMB6yHgkz57S)
  * In the textbox `Search for repos`, type the name of your model (for example `meta-llama/Llama-3.2-1 B`).
  * Leave the permission to be `Read access to contents of selected repos`. ![alt text](/files/3teiqdPiUQVQ3fkqag1G)
  * Click on the button `Create token` at the bottom of the page.
  * Copy the access token that is generated.

  ![alt text](/files/qED1i9giQR4kXx8gvAww)
* Create a dedicated deployment in Parasail.
  * Click on the button `Create Dedicated Model` on the Parasail dashboard.
  * Copy your model name (for example `meta-llama/Llama-3.2-1 B`) into the textbox `HuggingFace ID / URL`
  * Copy your access token to the textbox `HuggingFace Token`. ![alt text](/files/dQwvmnVea0RAtwPxUn4Q)
  * Click on the button `Deploy`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parasail.io/parasail-docs/dedicated-instance/private-hf-models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
