You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjustment when calculating hash | Adjustment of the hash calculation… (#1837)
… method
When trying to load the saved models after adaptation, alerts like these
were always triggered:
Loaded prompt hash does not match the saved hash.
Loaded prompt hash does not match the saved hash.
Furthermore, in Python, the default hash() function may yield different
results for the same string across different sessions. To achieve
consistent hash values, for tha i using the hashlib module to calculate
de hash of prompt, which provides stable hashing algorithms.
0 commit comments