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

Issue: Compiling Large Scarb Project Never Completes #1136

Open
raphaelDkhn opened this issue Feb 8, 2024 · 0 comments
Open

Issue: Compiling Large Scarb Project Never Completes #1136

raphaelDkhn opened this issue Feb 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@raphaelDkhn
Copy link

Problem

When attempting to compile a large Scarb project, the process never completes and causes excessive system resource usage.

Steps

  1. Access the minimal repository I made here.
  2. Navigate to the inference directory.
  3. Execute the command scarb build to try compiling the project.

Possible Solution(s)

The interminable compilation time is probably due to the large size of the node_fc1_weight file available here.

This issue is a significant blocker we faced at Giza, affecting numerous builders using our products. We represent neural network weights as Cairo code, leading to immense file sizes.

To address this, we seek a more efficient and scalable approach to represent these weights. Considering that all weights in Giza share a common structure (with only the number of elements varying), a solution I thought involves representing weights directly in Sierra. However, the challenge lies in importing these Sierra weights into Cairo code when we want invoke it (e.g; here). I'm not sure it's even conceivable to import Sierra code into a Cairo file..

I'd like to know what you think and what you suggest for building large Cairo projects. Thank you!

Notes

No response

Version

Scarb v2.5.3
@raphaelDkhn raphaelDkhn added the bug Something isn't working label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triage
Development

No branches or pull requests

1 participant