Skip to content

Commit

Permalink
added docs for Gated Models
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
  • Loading branch information
bigcat88 committed Jun 14, 2024
1 parent 388f6a0 commit b763d63
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ This repository is intended only for Workflows - if you want to add a flow, make
The Visionatrix documentation is also stored here to not overload the main repository.

For any problems with Visionatrix or suggestions for improvement, go to the [main repository](https://github.com/Visionatrix/Visionatrix).

- [Documentation](https://visionatrix.github.io/VixFlowsDocs/)
- [Available Flows](https://visionatrix.github.io/VixFlowsDocs/Flows/index.html)
- [Manual Installation](https://visionatrix.github.io/VixFlowsDocs/Installation.html)
- [Command Line Options](https://visionatrix.github.io/VixFlowsDocs/CommandLineOptions.html)
- [Working modes](https://visionatrix.github.io/VixFlowsDocs/WorkingModes.html)
- [Vix Workflows](https://visionatrix.github.io/VixFlowsDocs/VixWorkflows.html)
- [Technical information](https://visionatrix.github.io/VixFlowsDocs/TechnicalInformation.html)
29 changes: 29 additions & 0 deletions docs/GatedModels.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Gated Models
============

It often happens that the model you are using is not available for download without authentication. These are referred to as `Gated Models <https://huggingface.co/docs/hub/models-gated>`_.

Flows with such models have a separate mark in the Visionatrix UI.

To be able to install such a flow, you need to specify an ``Access Token``

.. note::
Currently, only HuggingFace Access Tokens are supported.

Steps to Access Gated Models:

1. Register on `HuggingFace <https://huggingface.co>`_ if you are not already registered
2. Gain access to the model on your account by going to its page (you can click on the model from Visionatrix UI) and filling out the form
3. Generate an access token in the settings of HuggingFace (click on your icon -> settings -> access tokens)
4. Click on ``Set Permissions`` of the token after generation and select ``Read access to contents of all public gated repos you can access``
5. Go to the Visionatrix settings and enter this access token

Alternatively, you can set an environment variable named ``HF_AUTH_TOKEN`` with the token value, but this requires setting up the environment variable for each worker if you have many of them.

I'm a user and want to connect my own worker to process flows with closed models.
---------------------------------------------------------------------------------

As user's workers cannot receive global access tokens from the server to avoid leaks, you have two options:

1. Download the model yourself and place it in the folder specified in ``models_catalog.json`` under the ``save_path`` key.
2. Set the ``HF_AUTH_TOKEN`` environment variable with your own public access token, and the worker will be able to install flows with gated models.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Here will leave all docs that is not suitable for Readme file.
Installation.rst
CommandLineOptions.rst
WorkingModes.rst
GatedModels.rst
VixWorkflows.rst
TechnicalInformation.rst

Expand Down

0 comments on commit b763d63

Please sign in to comment.