You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/utils/hub.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -19,17 +19,17 @@ if (!globalThis.ReadableStream) {
19
19
20
20
/**
21
21
* @typedef {Object} PretrainedOptions Options for loading a pretrained model.
22
-
* @property {boolean?} [options.quantized=true] Whether to load the 8-bit quantized version of the model (only applicable when loading model files).
23
-
* @property {function} [options.progress_callback=null] If specified, this function will be called during model construction, to provide the user with progress updates.
24
-
* @property {Object} [options.config=null] Configuration for the model to use instead of an automatically loaded configuration. Configuration can be automatically loaded when:
22
+
* @property {boolean?} [quantized=true] Whether to load the 8-bit quantized version of the model (only applicable when loading model files).
23
+
* @property {function} [progress_callback=null] If specified, this function will be called during model construction, to provide the user with progress updates.
24
+
* @property {Object} [config=null] Configuration for the model to use instead of an automatically loaded configuration. Configuration can be automatically loaded when:
25
25
* - The model is a model provided by the library (loaded with the *model id* string of a pretrained model).
26
26
* - The model is loaded by supplying a local directory as `pretrained_model_name_or_path` and a configuration JSON file named *config.json* is found in the directory.
27
-
* @property {string} [options.cache_dir=null] Path to a directory in which a downloaded pretrained model configuration should be cached if the standard cache should not be used.
28
-
* @property {boolean} [options.local_files_only=false] Whether or not to only look at local files (e.g., not try downloading the model).
29
-
* @property {string} [options.revision='main'] The specific model version to use. It can be a branch name, a tag name, or a commit id,
27
+
* @property {string} [cache_dir=null] Path to a directory in which a downloaded pretrained model configuration should be cached if the standard cache should not be used.
28
+
* @property {boolean} [local_files_only=false] Whether or not to only look at local files (e.g., not try downloading the model).
29
+
* @property {string} [revision='main'] The specific model version to use. It can be a branch name, a tag name, or a commit id,
30
30
* since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any identifier allowed by git.
31
31
* NOTE: This setting is ignored for local requests.
32
-
* @property {string} [options.model_file_name=null] If specified, load the model with this name (excluding the .onnx suffix). Currently only valid for encoder- or decoder-only models.
32
+
* @property {string} [model_file_name=null] If specified, load the model with this name (excluding the .onnx suffix). Currently only valid for encoder- or decoder-only models.
0 commit comments