File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1287,7 +1287,11 @@ def _download_model_from_hf(
1287
1287
os_path (str): The OS path where the model files are located.
1288
1288
local_dir (str): The local temp dir to store the huggingface model.
1289
1289
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
1290
1292
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
1291
1295
1292
1296
Returns
1293
1297
-------
@@ -1329,6 +1333,12 @@ def register(
1329
1333
os_path (str): Object storage destination URI to store the downloaded model. Format: oci://bucket-name@namespace/prefix
1330
1334
inference_container (str): selects service defaults
1331
1335
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
1332
1342
1333
1343
Returns:
1334
1344
AquaModel:
You can’t perform that action at this time.
0 commit comments