model-transparency icon indicating copy to clipboard operation
model-transparency copied to clipboard

Add Jupyter Notebook example for signing and verifying a model

Open font opened this issue 1 year ago • 2 comments

Closes #169

Summary

Help make it easier to incorporate signing and verifying models into notebooks. To test, install Jupyter Notebook and run it locally inside the model_signing directory containing the notebook:

cd ./model-transparency/model_signing
jupyter notebook

Then open the sign_and_verify_model.ipynb notebook and execute it. Note that certain steps are interactive and the execution will halt at various cells waiting for input from the user.

Release Note

Documentation

font avatar May 11 '24 00:05 font

Thank you for the PR and the issue.

I'll take a closer look, but overall, this looks like it extracts parts of the CLI code into notebook cells and makes the notebook be the driver for signing. Please correct me if I was wrong, I only skimmed through this right now.

Yes, that's correct!

We are working on making a library for signing so people don't need to copy code, just call an API.

Where is this work happening? Happy to help in any way I can.

font avatar May 28 '24 17:05 font

We are working on making a library for signing so people don't need to copy code, just call an API.

Where is this work happening? Happy to help in any way I can.

See https://github.com/sigstore/model-transparency/issues/172 https://github.com/sigstore/model-transparency/pull/188 and https://github.com/sigstore/model-transparency/pull/190

laurentsimon avatar May 28 '24 23:05 laurentsimon

Sorry for the long delay with this. We are now finally ready to launch and added a notebook in #432

mihaimaruseac avatar Apr 04 '25 16:04 mihaimaruseac