Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nnlib-hifi4 is too big during setting up ExecuTorch from source #7081

Open
mergennachin opened this issue Nov 26, 2024 · 1 comment
Open
Assignees
Labels
actionable Items in the backlog waiting for an appropriate impl/fix module: build Related to buck2 and cmake build

Comments

@mergennachin
Copy link
Contributor

🚀 The feature, motivation and pitch

During slow internet connection, it takes a long time to set up ExecuTorch. This is due to download all gitsubmodules. Here's the root level filesizes (after git submodule sync; git submodule update --init)

708M	backends/
172K	build/
128K	codegen/
 12K	configurations/
540K	devtools/
 31M	docs/
 59M	examples/
2.3M	exir/
 74M	extension/
 24M	kernels/
 40K	profiler/
1.4M	runtime/
 60K	schema/
 32K	scripts/
176K	shim/
168K	test/
 42M	third-party/
 24K	util/

Within backends/ folder, here's the breakdown:

1.6M	apple/
4.2M	arm/
485M	cadence/
960K	example/
228K	mediatek/
1.3M	qualcomm/
 96K	transforms/
 23M	vulkan/
192M	xnnpack/

The main culprit is this library: https://github.com/pytorch/executorch/tree/main/backends/cadence/hifi/third-party/nnlib

Is it possible move cadence related to installation into its own set up script, like we do for other backends like coreml? For example: https://github.com/pytorch/executorch/blob/main/backends/apple/coreml/scripts/install_requirements.sh

Alternatives

No response

Additional context

No response

RFC (Optional)

No response

@mergennachin mergennachin added the module: build Related to buck2 and cmake build label Nov 26, 2024
@mcremon-meta
Copy link
Contributor

That should be possible. We can take a look as soon as some current urgent work is wrapped up, most likely next week!

@mergennachin mergennachin added the actionable Items in the backlog waiting for an appropriate impl/fix label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Items in the backlog waiting for an appropriate impl/fix module: build Related to buck2 and cmake build
Projects
Status: Ready
Development

No branches or pull requests

3 participants