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

How to get the underlying TFHE bootstrapping and keyswitch keys information #996

Open
Checiii opened this issue Jan 16, 2025 · 0 comments
Open

Comments

@Checiii
Copy link

Checiii commented Jan 16, 2025

Help Needed: Accessing LWE Ciphertext and Bootstrap Key Components in Concrete-ML
Running use_case_examples/cifar/cifar_brevitas_training/evaluate_one_example_fhe.py.
Current access:

circuit.keys.evaluation for evaluation keys
circuit.keys.serialize() → 103,343,257 bytes
circuit.size_of_bootstrap_keys → 663,322,624 bytes

Need to:

Access LWE ciphertext's b component in KeySwitch keys
Access Bootstrap key components
Understand size discrepancy between serialized (103M) vs theoretical (663M) data

Code analysis shows standard interfaces (serialization, cpp objects) but no direct component access. Any guidance on accessing these key components would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant