Skip to content

Add shell of parameter selection pass for JaxiteWord#2933

Open
j2kun wants to merge 6 commits intogoogle:mainfrom
j2kun:cross-parameter-selection
Open

Add shell of parameter selection pass for JaxiteWord#2933
j2kun wants to merge 6 commits intogoogle:mainfrom
j2kun:cross-parameter-selection

Conversation

@j2kun
Copy link
Copy Markdown
Collaborator

@j2kun j2kun commented May 8, 2026

Part of #2932, this PR adds a shell parameter selection pass (really a parameter "refinement" pass) that converts the existing CKKS parameters into parameters that are compatible with jaxite_word. In this case, the TPU backend requires <= 30-bit primes, and has a handful of other parameters that should be set.

FIXME: this PR still includes some dummy values for parameters that, I believe, can be hard-coded in the pass for now.

@j2kun
Copy link
Copy Markdown
Collaborator Author

j2kun commented May 8, 2026

CC @Zohaib58 please review this PR and let me know what values to use for the other currently-dummy parameters.

def JaxiteWord_CkksParameters : JaxiteWord_Attribute<"CkksParameters", "ckks_parameters"> {
let summary = "Jaxite CKKS parameters";
let description = [{
Parameters for Jaxite CKKS backend.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@JianmingTONG Could you provide a quick description of the parameters that would be suitable to include in the description field here? Particularly, r, c, dnum, composite_degree, batch.

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

Successfully merging this pull request may close these issues.

1 participant