Skip to content

Commit 8d18002

Browse files
committed
Updated pr.
1 parent 212ec33 commit 8d18002

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ads/aqua/model/model.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,11 @@ def _download_model_from_hf(
12871287
os_path (str): The OS path where the model files are located.
12881288
local_dir (str): The local temp dir to store the huggingface model.
12891289
allow_patterns (list): Model files matching at least one pattern are downloaded.
1290+
Example: ["*.json"] will download all .json files. ["folder/*"] will download all files under `folder`.
1291+
Patterns are Standard Wildcards (globbing patterns) and rules can be found here: https://docs.python.org/3/library/fnmatch.html
12901292
ignore_patterns (list): Model files matching any of the patterns are not downloaded.
1293+
Example: ["*.json"] will ignore all .json files. ["folder/*"] will ignore all files under `folder`.
1294+
Patterns are Standard Wildcards (globbing patterns) and rules can be found here: https://docs.python.org/3/library/fnmatch.html
12911295
12921296
Returns
12931297
-------
@@ -1329,6 +1333,12 @@ def register(
13291333
os_path (str): Object storage destination URI to store the downloaded model. Format: oci://bucket-name@namespace/prefix
13301334
inference_container (str): selects service defaults
13311335
finetuning_container (str): selects service defaults
1336+
allow_patterns (list): Model files matching at least one pattern are downloaded.
1337+
Example: ["*.json"] will download all .json files. ["folder/*"] will download all files under `folder`.
1338+
Patterns are Standard Wildcards (globbing patterns) and rules can be found here: https://docs.python.org/3/library/fnmatch.html
1339+
ignore_patterns (list): Model files matching any of the patterns are not downloaded.
1340+
Example: ["*.json"] will ignore all .json files. ["folder/*"] will ignore all files under `folder`.
1341+
Patterns are Standard Wildcards (globbing patterns) and rules can be found here: https://docs.python.org/3/library/fnmatch.html
13321342
13331343
Returns:
13341344
AquaModel:

0 commit comments

Comments
 (0)