Skip to content

Commit 2e77f3a

Browse files
committed
doc
1 parent ce11d89 commit 2e77f3a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOGS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Change Logs
44
0.7.1
55
+++++
66

7+
* :pr:`159`: supports for models with custom code in huggingface
8+
* :pr:`158`: fix uses of pretrained version
79
* :pr:`156`, :pr:`157`: add plots and other options to deal with the unpredictable
810
* :pr:`155`: better aggregation of historical data
911
* :pr:`151`, :pr:`153`: adds command line ``agg``, class CubeLogsPerformance to produce timeseries

onnx_diagnostic/torch_models/hghub/hub_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,16 +348,16 @@ def download_code_modelid(
348348
if verbose:
349349
print(f"[download_code_modelid] python files {pyfiles}")
350350
absfiles = []
351-
pathes = set()
351+
paths = set()
352352
for i, name in enumerate(pyfiles):
353353
if verbose:
354354
print(f"[download_code_modelid] download file {i+1}/{len(pyfiles)}: {name!r}")
355355
r = hf_hub_download(repo_id=model_id, filename=name)
356356
p = os.path.split(r)[0]
357-
pathes.add(p)
357+
paths.add(p)
358358
absfiles.append(r)
359359
if add_path_to_sys_path:
360-
for p in pathes:
360+
for p in paths:
361361
init = os.path.join(p, "__init__.py")
362362
if not os.path.exists(init):
363363
with open(init, "w"):

0 commit comments

Comments
 (0)