> For the complete documentation index, see [llms.txt](https://docs.parasail.io/parasail-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parasail.io/parasail-docs/products/overview-1/private-hf-models.md).

# Private HuggingFace Models

How to create a dedicated deployment for a private HuggingFace model

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="https://3807676826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLSXNQZeD4w30hUaiugTx%2Fuploads%2Fgit-blob-e1c095781399162e56880bf20c4270927ac7251d%2Fprivate-hf-model-01.png?alt=media" alt="alt text" data-size="original">
  * After the model becomes private, you should see the following: ![alt text](https://3807676826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLSXNQZeD4w30hUaiugTx%2Fuploads%2Fgit-blob-7ae76233a2976de9408e65e595716dfe87b0ba34%2Fprivate-hf-model-02.png?alt=media)
* 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](https://3807676826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLSXNQZeD4w30hUaiugTx%2Fuploads%2Fgit-blob-b6ec640ba40a9c2dee813a423168674cd32e4ca4%2Fprivate-hf-model-03.png?alt=media)
  * Scroll down to the section `Repositories permissions`. ![alt text](https://3807676826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLSXNQZeD4w30hUaiugTx%2Fuploads%2Fgit-blob-32bfbca7da0d797e8186f041f6244ad6ae1373ec%2Fprivate-hf-model-04.png?alt=media)
  * 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](https://3807676826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLSXNQZeD4w30hUaiugTx%2Fuploads%2Fgit-blob-702674d24ce206644afbb5dfe0eb30a596cef22b%2Fprivate-hf-model-05.png?alt=media)
  * Click on the button `Create token` at the bottom of the page.
  * Copy the access token that is generated.

  ![alt text](https://3807676826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLSXNQZeD4w30hUaiugTx%2Fuploads%2Fgit-blob-5c3f0daae39880643484056f32ca673cb96e16f8%2Fprivate-hf-model-06.png?alt=media)
* 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](https://3807676826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLSXNQZeD4w30hUaiugTx%2Fuploads%2Fgit-blob-f6fdcb5b1574783ebd1de1ddf587be2d12713f0b%2Fprivate-hf-model-07.png?alt=media)
  * Click on the button `Deploy`.
