Skip to content

Conversation

@stefanberger
Copy link
Member

This PR enables signing of all GGUF model types and their quantizations. Build switches enable/disable the signing and enable/disable a token exchange with sigstore.verify. With token exchange the resulting signature will show and IBM identity but may require me to set up a mapping for the github Id to the IBM Id.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Instrument the quantization code for all models to delete any existing
signature before uploading the new quanitized model.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Introduce TARGET_HF_REPO_SIGN_MODELS to enable or disable the signing
of models. Set it to true by default.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Introduce TARGET_HF_REPO_DO_TOKEN_EXCHANGE switch to enable a token
exchange of the GitHub token against and IBM sigstore signing token so
that the model signature appears to be from an IBM account rather than
the github identity that was used to run the build.

Note that not everyone can sign with the IBM sigstore signing token since
it requires per-user setup by 'me'.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger force-pushed the sign_models.v5-4-upstream branch from fbe1d1d to 513b6a7 Compare July 21, 2025 20:30
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger force-pushed the sign_models.v5-4-upstream branch from 513b6a7 to 17b0568 Compare July 22, 2025 13:12
@stefanberger
Copy link
Member Author

FYI: The changes to the model_signing tool to support the new option --ignore_unsigned_files has been approved for merging into the repository and I would expected it to be merge soon.

@stefanberger
Copy link
Member Author

It's merged now: sigstore/model-transparency#501

@stefanberger
Copy link
Member Author

The new version v1.1.1 of the model-signing library is now available on pypi: https://pypi.org/project/model-signing/

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