-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update docstring and fair loader behaviour
- Loading branch information
Tuan Tran
committed
Dec 10, 2023
1 parent
f39a046
commit 21d0c9e
Showing
3 changed files
with
25 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
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 @@ | ||
fairseq2.asset | ||
============= | ||
.. body | ||
.. currentmodule:: fairseq2.asset | ||
|
||
``fairseq2.asset`` provides API to load the different model using the "model cards" from different "stores". | ||
|
||
A model card is a .YAML file that contains information about a model and instructs a | ||
:pc:class:`fairseq2.models.utils.generic_loaders.ModelLoader` on how to load the model into the memory. | ||
A store is a place where all the model cards are stored. By default, fairseq2 will look up the following stores: | ||
|
||
* System asset store: Cards that are shared by all users. By default, the system store is `/etc/fairseq2/assets`, | ||
but this can be changed via the environment variable `FAIRSEQ2_ASSET_DIR` | ||
* User asset store: Cards that are only available to the user. By default, the user store is | ||
`~/.config/fairseq2/assets`, but this can be changed via the environment variable `FAIRSEQ2_USER_ASSET_DIR` | ||
* (Internal only) Meta asset store: For Meta employees' convenience, we set up a central store that contains | ||
model cards with e.g intermediate checkpoints, extra internal information etc. This store is registered automatically | ||
when one logs into the Fair cluster. If you wish not to use this central store, set the environment variable | ||
`NO_FAIR_CARD=ON` |
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