Skip to content

fix: stripping logic in Update check_fingerprints.py #14

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

moshderte
Copy link

This PR fixes a bug where bos_token was intended to be stripped from the signature_tokenized sequences, but the processed list was not reassigned back — effectively leaving the original tokens unchanged.

The code correctly creates new_signature_tokenized without the bos_token, but then mistakenly keeps using the original signature_tokenized.

This fix ensures that the model's output is compared against the expected signature without the BOS token, as originally intended.

It should improve the accuracy of the backdoor detection evaluation, especially in cases where BOS token presence causes mismatch.

This PR fixes a bug where bos_token was intended to be stripped from the signature_tokenized sequences, but the processed list was not reassigned back — effectively leaving the original tokens unchanged.

The code correctly creates new_signature_tokenized without the bos_token, but then mistakenly keeps using the original signature_tokenized.

This fix ensures that the model's output is compared against the expected signature without the BOS token, as originally intended. 

It should improve the accuracy of the backdoor detection evaluation, especially in cases where BOS token presence causes mismatch.
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