-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): update documentation and fix preview-docs (#2000)
* docs: add missing configurations * docs: change HF embeddings by ollama * docs: add disclaimer about Gradio UI * docs: improve readability in concepts * docs: reorder `Fully Local Setups` * docs: improve setup instructions * docs: prevent have duplicate documentation and use table to show different options * docs: rename privateGpt to PrivateGPT * docs: update ui image * docs: remove useless header * docs: convert to alerts ingestion disclaimers * docs: add UI alternatives * docs: reference UI alternatives in disclaimers * docs: fix table * chore: update doc preview version * chore: add permissions * chore: remove useless line * docs: fixes ...
- Loading branch information
Showing
13 changed files
with
162 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,31 @@ | ||
# Downloading Gated and Private Models | ||
|
||
Many models are gated or private, requiring special access to use them. Follow these steps to gain access and set up your environment for using these models. | ||
|
||
## Accessing Gated Models | ||
|
||
1. **Request Access:** | ||
Follow the instructions provided [here](https://huggingface.co/docs/hub/en/models-gated) to request access to the gated model. | ||
|
||
2. **Generate a Token:** | ||
Once you have access, generate a token by following the instructions [here](https://huggingface.co/docs/hub/en/security-tokens). | ||
|
||
3. **Set the Token:** | ||
Add the generated token to your `settings.yaml` file: | ||
|
||
```yaml | ||
huggingface: | ||
access_token: <your-token> | ||
``` | ||
Alternatively, set the `HF_TOKEN` environment variable: | ||
|
||
```bash | ||
export HF_TOKEN=<your-token> | ||
``` | ||
|
||
# Tokenizer Setup | ||
|
||
PrivateGPT uses the `AutoTokenizer` library to tokenize input text accurately. It connects to HuggingFace's API to download the appropriate tokenizer for the specified model. | ||
|
||
## Configuring the Tokenizer | ||
|
||
1. **Specify the Model:** | ||
In your `settings.yaml` file, specify the model you want to use: | ||
|
||
```yaml | ||
llm: | ||
tokenizer: mistralai/Mistral-7B-Instruct-v0.2 | ||
``` | ||
|
||
2. **Set Access Token for Gated Models:** | ||
If you are using a gated model, ensure the `access_token` is set as mentioned in the previous section. | ||
|
||
This configuration ensures that PrivateGPT can download and use the correct tokenizer for the model you are working with. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.