-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Hugging Face | ||
|
||
- [Hugging Face](https://huggingface.co/docs/transformers/index) | ||
- [Sophia] | ||
|
||
## Quick Start Guide | ||
|
||
_Note: AI_MODEL should stay `default` unless there is a folder in `prompts` specific to the model that you're using. You can also create one and add your own prompts._ | ||
|
||
### Update your agent settings | ||
|
||
1. Set `AI_PROVIDER` to `huggingface`. | ||
2. Set `HUGGINGFACE_API_KEY` to your Hugging Face API key. | ||
3. Set `HUGGINGFACE_STABLE_DIFFUSION_MODEL` to the name of the model you want to use. Default is `runwayml/stable-diffusion-v1-5`. | ||
4. Set `HUGGINGFACE_STABLE_DIFFUSION_API_URL` to the API URL of the model you want to use. Default is `https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5`. | ||
5. Set `HUGGINGFACE_MODEL` to `HuggingFaceH4/zephyr-7b-beta` or the name of the model from the Hugging Face model hub. | ||
6. Set `HUGGINGFACE_STOP_TOKEN` to the token that you want to use to stop the model from generating more text. Default is ` | ||
7. Set `HUGGINGFACE_TEMPERATURE` to a value between 0 and 1. The higher the value, the more creative the output. | ||
8. Set `HUGGINGFACE_MAX_TOKENS` to the maximum number of input tokens. | ||
9. Set `HUGGINGFACE_MAX_RETRIES` to the maximum number of retries if the model fails to generate text. |