Add resnet20#25
Open
stamcenter wants to merge 10 commits into
Open
Conversation
code-perspective
self-requested a review
June 15, 2026 05:32
code-perspective
requested changes
Jun 22, 2026
code-perspective
left a comment
Contributor
There was a problem hiding this comment.
Nice! I was able to run this.
Can you rebase against main? Please only keep the cifar-10 and resnet20 models in this PR.
For reference, I got the measurement files (roughly takes 2 hours to run with the cifar-10 dataset load time).
{
"model_name": "resnet20",
"dataset_name": "cifar10",
"Timing": {
"Test dataset generation": "28.5534s",
"Key Generation": "167.453s",
"Encrypted model preprocessing": "0.0102s",
"Input generation": "6.0968s",
"Input preprocessing": "0.0073s",
"Input encryption": "1.4808s",
"Encrypted computation": "5256.1713s",
"Result decryption": "1.0469s",
"Result postprocessing": "0.0072s",
"Total": "5460.8268s"
},
"Bandwidth": {
"Public and evaluation keys": "50.4G",
"Encrypted input": "28.0M",
"Encrypted results": "8.0M"
},
"Server Reported": {}
}
code-perspective
requested changes
Jun 22, 2026
code-perspective
requested changes
Jul 6, 2026
code-perspective
approved these changes
Jul 15, 2026
code-perspective
left a comment
Contributor
There was a problem hiding this comment.
Some more comments
Contributor
There was a problem hiding this comment.
can you add this file to .gitignore so its no longer tracked.
| endif() | ||
|
|
||
| # -------------------------------------------------------------------- | ||
| # 4. Create mlp library |
Comment on lines
+85
to
+87
| # Use pre-built mlp_openfhe library | ||
| add_library( mlp_openfhe STATIC IMPORTED ) | ||
| set_target_properties( mlp_openfhe PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../pre-built-library/libmlp_openfhe.a ) |
| parser.add_argument('--remote', action='store_true', | ||
| help='Run example submission in remote backend mode') | ||
| parser.add_argument('--model', default='mlp', type=str, | ||
| parser.add_argument('--model', default=None, type=str, |
Contributor
There was a problem hiding this comment.
Its ok for the default model to be mlp (since the default dataset=mnist)
|
|
||
| # 4. Client-side: Generate a new random input using harness/generate_input.py | ||
| cmd_args = [str(size),] | ||
| cmd_args = [str(size), "--dataset", dataset_name] |
code-perspective
requested changes
Jul 17, 2026
code-perspective
left a comment
Contributor
There was a problem hiding this comment.
Changing to request changes for a last few comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding the second pull request which contains the resnet-20 model as the reference for cifar10. It also include a modification to the harness that allow it to set mlp as default model for mnist and resnet20 as default model for cifar10.