Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Conversation

@metascroy
Copy link
Contributor

No description provided.

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 24, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/1182

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5ab3f26 with merge base e4b36f9 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 24, 2024
runner/et.cmake Outdated
endif()

if(LINK_TORCHAO_OPS)
target_link_libraries(et_run PRIVATE "$<LINK_LIBRARY:WHOLE_ARCHIVE,${TORCHCHAT_ROOT}/torchao-build/cmake-out/lib/libtorchao_ops_executorch.a>")
Copy link
Contributor Author

@metascroy metascroy Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For dynamic library test, change

target_link_libraries(et_run PRIVATE "$<LINK_LIBRARY:WHOLE_ARCHIVE,${TORCHCHAT_ROOT}/torchao-build/cmake-out/lib/liblinear_a8wxdq_EXECUTORCH.a>")

to

target_link_libraries(et_run PRIVATE "${TORCHCHAT_ROOT}/torchao-build/cmake-out/lib/liblinear_a8wxdq_EXECUTORCH${CMAKE_SHARED_LIBRARY_SUFFIX}

and remove the following unnecessary libraries:

target_link_libraries(et_run PRIVATE
      "${TORCHCHAT_ROOT}/torchao-build/cmake-out/lib/libtorchao_kernels_aarch64.a"
       "${TORCHCHAT_ROOT}/torchao-build/cmake-out/lib/libtorchao_ops_linear_EXECUTORCH.a"
    )

python torchchat.py remove stories15m
test-mps:
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is very flaky because it fails whenever a machine with python 3.9 is allocated. Change to always setup python 3.10.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this test- it's been a thorn on our side for a while

echo "Tests complete."
test-mps-dtype:
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is very flaky because it fails whenever a machine with python 3.9 is allocated. Change to always setup python 3.10.

find_cmake_prefix_path
clone_executorch
install_executorch_libs $ENABLE_ET_PYBIND
install_executorch_python_libs $ENABLE_ET_PYBIND
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to install_exeuctorch_python_libs because on the non-cache path in the CI, having it here doesn't work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove this line: install_executorch_python_libs $ENABLE_ET_PYBIND

Where is this being called?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is called inside install_executorch_libs (which installs both c++ and python), so it was redundant

python torchchat.py remove stories15m
test-mps:
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this test- it's been a thorn on our side for a while

python3 torchchat.py generate llama3 --pte-path llama3.pte --prompt "Hello my name is"
```

## Experimental TorchAO lowbit kernels
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take pass at adding rich elements to this in a separate PR; Content looks good here

find_cmake_prefix_path
clone_executorch
install_executorch_libs $ENABLE_ET_PYBIND
install_executorch_python_libs $ENABLE_ET_PYBIND
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove this line: install_executorch_python_libs $ENABLE_ET_PYBIND

Where is this being called?

@Jack-Khuu
Copy link
Contributor

Can you also update the title and description?

@metascroy metascroy merged commit 1980a69 into main Sep 27, 2024
52 checks passed
metascroy added a commit that referenced this pull request Sep 30, 2024
* init

* update install utils

* update

* update libs

* update torchao pin

* fix ci test

* add python et install to ci

* fix ci errors

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants