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

Support TFHE-rs tensors #1130

Merged
merged 4 commits into from
Nov 7, 2024
Merged

Support TFHE-rs tensors #1130

merged 4 commits into from
Nov 7, 2024

Conversation

youben11
Copy link
Member

@youben11 youben11 commented Nov 4, 2024

No description provided.

@cla-bot cla-bot bot added the cla-signed label Nov 4, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 89833b8 Previous: 40f575e Ratio
v0 PBS table generation 61195691 ns/iter (± 340500) 60987249 ns/iter (± 410510) 1.00
v0 PBS simulate dag table generation 39917079 ns/iter (± 1552216) 39462397 ns/iter (± 265023) 1.01
v0 WoP-PBS table generation 54057038 ns/iter (± 1808306) 53768465 ns/iter (± 2021554) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

@youben11 youben11 force-pushed the feat/tfhers-tensor branch 4 times, most recently from f519220 to c24d34d Compare November 4, 2024 13:48
Copy link
Member

@BourgerieQuentin BourgerieQuentin left a comment

Choose a reason for hiding this comment

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

Just minor comments

@@ -10,9 +10,7 @@ crate-type = ["lib", "staticlib"]


[dependencies]
concrete-csprng = { git = "https://github.com/zama-ai/tfhe-rs.git", rev = "483a4fe", optional = true, features = [
Copy link
Member

Choose a reason for hiding this comment

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

We will need to update to 0.10 before next release (https://github.com/zama-ai/concrete-internal/issues/902)

Copy link
Member Author

Choose a reason for hiding this comment

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

Is this to let me know, or you want me to update it?

backends/concrete-cpu/implementation/src/c_api/fheint.rs Outdated Show resolved Hide resolved

// FheUint[metadata, ciphertexts[ciphertext[metadata, lwe_buffer] * n_cts]] + headers
(meta_fheuint + (meta_ct + lwe_size * 8/*u64*/) * n_cts) + 201
// Vec[FheUint[metadata, ciphertexts[ciphertext[metadata, lwe_buffer] * n_cts]] + headers] * n_elem
Copy link
Member

Choose a reason for hiding this comment

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

not super safe but we can't do better I guess (wdyt @IceTDrinker @nsarlin-zama ?)

backends/concrete-cpu/implementation/src/c_api/fheint.rs Outdated Show resolved Hide resolved
also remove WrapperCpp as it's no longer needed
@youben11 youben11 merged commit 2b5bd80 into main Nov 7, 2024
38 of 47 checks passed
@youben11 youben11 deleted the feat/tfhers-tensor branch November 7, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants