File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
onnx_diagnostic/torch_models/hghub Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ Change Logs
440.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
Original file line number Diff line number Diff 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" ):
You can’t perform that action at this time.
0 commit comments