Skip to content

Commit

Permalink
add note about fine grained token requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrreed committed Jun 11, 2024
1 parent 4619599 commit 97edf7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notebooks/en/enterprise_hub_serverless_inference_api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
"\n",
"To begin using the Serverless Inference API, you'll need a Hugging Face Hub profile: you can [register](https://huggingface.co/join) if you don't have one or [login here](https://huggingface.co/login) if you do. \n",
"\n",
"Next, you'll need to create a [User Access Token](https://huggingface.co/docs/hub/security-tokens). A token with `read` or `write` permissions will work. However, we highly encourage the use of fine-grained tokens. For this notebook, you'll need a fine-grained token with `Inference > Make calls to the serverless Inference API` user permissions.\n",
"Next, you'll need to create a [User Access Token](https://huggingface.co/docs/hub/security-tokens). A token with `read` or `write` permissions will work. However, we highly encourage the use of fine-grained tokens. \n",
"\n",
"> [!TIP]\n",
"> For this notebook, you'll need a fine-grained token with `Inference > Make calls to the serverless Inference API` user permissions, along with read access to `meta-llama/Meta-Llama-3-8B-Instruct` and `HuggingFaceM4/idefics2-8b-chatty` repos as we must download their tokenizers to run this notebook. \n",
"\n",
"With those steps out of the way, we can install our required packages and authenticate to the Hub with our User Access Token."
]
Expand Down

0 comments on commit 97edf7c

Please sign in to comment.