forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fp32->fp16 cast for scalars (fixes llama2 fp16 for MPS) (pytorch#…
…1752) Summary: Summary of changes: - Fix FP32 -> FP16 scalar conversion - Disable MPS partitioner by default in mps_example script ```bash # AOT: python3 -m examples.apple.mps.scripts.mps_example --model_name="llama2" --bundled # Runtime: ./cmake-out/examples/apple/mps/mps_executor_runner --model_path llama2_mps_bundled_fp16.pte --bundled_program ``` cc cccclai Pull Request resolved: pytorch#1752 Reviewed By: cccclai Differential Revision: D53236633 Pulled By: shoumikhin fbshipit-source-id: ab04587bfd1493b81fa03a3145c0df6911749fec
- Loading branch information
1 parent
7b5419a
commit c99e5a5
Showing
2 changed files
with
22 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters