File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python_coreml_stable_diffusion Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ def _make_second_chunk_prog(prog, op_idx):
231
231
return prog
232
232
233
233
234
- def _legancy_model_chunking (args ):
234
+ def _legacy_model_chunking (args ):
235
235
# TODO: Remove this method after setting the coremltools dependency >= 8.0
236
236
os .makedirs (args .o , exist_ok = True )
237
237
@@ -344,13 +344,13 @@ def main(args):
344
344
345
345
if ct_version != "8.0b2" and ct_version < "8.0" :
346
346
# With coremltools version <= 8.0b1,
347
- # we use the lagancy implementation.
347
+ # we use the legacy implementation.
348
348
# TODO: Remove the logic after setting the coremltools dependency >= 8.0.
349
349
logger .info (
350
350
f"coremltools version { ct_version } detected. Recommended upgrading the package version to "
351
351
f"'8.0b2' when you running chunk_mlprogram.py script for the latest supports and bug fixes."
352
352
)
353
- _legancy_model_chunking (args )
353
+ _legacy_model_chunking (args )
354
354
else :
355
355
# Starting from coremltools==8.0b2, there is this `bisect_model` API that
356
356
# we can directly call into.
You can’t perform that action at this time.
0 commit comments