You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exporting model using ExecuTorch to /Users/runner/work/torchchat/torchchat/stories15M.pte
The methods are: {'forward'}
Traceback (most recent call last):
Warning: checkpoint path ignored because an exported DSO or PTE path specified
File "/Users/runner/work/torchchat/torchchat/build/builder.py", line 424, in _initialize_model
exec_lib._load_for_executorch(builder_args.pte_path),
TypeError: _load_for_executorch(): incompatible function arguments. The following argument types are supported:
1. (path: str, enable_etdump: bool = False) -> torch::executor::(anonymous namespace)::PyModule
Invoked with: PosixPath('/Users/runner/work/torchchat/torchchat/stories15M.pte')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/runner/work/torchchat/torchchat/torchchat.py", line 107, in <module>
Warning: checkpoint path ignored because an exported DSO or PTE path specified
Using device=cpu Apple M1 (Virtual)
Loading model...
Time to load model: 0.03 seconds
generate_main(args)
File "/Users/runner/work/torchchat/torchchat/generate.py", line 791, in main
_main(
File "/Users/runner/work/torchchat/torchchat/generate.py", line 533, in _main
model = _initialize_model(builder_args, quantize, tokenizer)
File "/Users/runner/work/torchchat/torchchat/build/builder.py", line 437, in _initialize_model
raise RuntimeError(f"Failed to load ET compiled {builder_args.pte_path}")
RuntimeError: Failed to load ET compiled /Users/runner/work/torchchat/torchchat/stories15M.pte
Error: Process completed with exit code 1.
This discussion was converted from issue #3682 on February 03, 2025 23:53.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
x-ref:
https://github.com/pytorch/torchchat/actions/runs/9162567537/job/25189812777?pr=809
Easy mitigation:
but should users have to mitigate?
Beta Was this translation helpful? Give feedback.
All reactions