Skip to content

Commit 658fbdc

Browse files
committed
Add JSDoc for PretrainedConfig class
1 parent 54b861a commit 658fbdc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/configs.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ async function loadConfig(pretrained_model_name_or_path, options) {
4747
return info;
4848
}
4949

50+
/**
51+
* Base class for all configuration classes. For more information, see the corresponding
52+
* [Python documentation](https://huggingface.co/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig).
53+
*/
5054
export class PretrainedConfig {
5155
// NOTE: Typo in original
5256

@@ -59,6 +63,7 @@ export class PretrainedConfig {
5963

6064
Object.assign(this, configJSON);
6165
}
66+
6267
/**
6368
* Loads a pre-trained config from the given `pretrained_model_name_or_path`.
6469
*

0 commit comments

Comments
 (0)