Einstein Summation in Cairo (ZKML Operator)
We implemented the EinSum, Logical OR and Logical XOR on the Orion repository to increase the amount of possible tensor operations for Zero-Knowledge Machine Learning on Starknet.
Screenshots



Problem Statement
This hackathon project is a contribution to the open source Orion Zero-Knowledge Machine Learning project on Starknet. We implemented the EinSum, logical OR and logical XOR operators with Numpy-style broadcasting support to add to the amount of possible tensor operations for Zero-Knowledge Machine Learning on Starknet. This contribution consists of several Pull Requests to the Orion open-source repository.
Solution
The operators are built specifically for Zero-Knowledge Machine Learning on Starknet, written in Cairo, which is Starknet's own ZK-Provable programming language. The operators are implemented for i8 integers, i32 integers, u32 integers and FixedPoint data types (fp8x23 and fp16x16). Extensive testing suites have been added as well.
Hackathon
ETHGlobal Paris
2024
Prizes
- 🏆
🥇 Starknet — Best Use
Contributors
- raphaelDkhn
229 contributions
- credence0x
47 contributions
- franalgaba
39 contributions
- Roee-87
17 contributions
- allcontributors[bot]
12 contributions
- raphkhan
9 contributions
- hakymulla
4 contributions
- Falco90
2 contributions
- 0xd3bs
1 contributions
- moodysalem
1 contributions
- omahs
1 contributions