Skip to content

Commit

Permalink
Add comment about the Python 3.8 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeMe committed Sep 27, 2023
1 parent c2c0b18 commit 386321f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions curated_transformers/models/hf_hub/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ class CommonHFKeys:
ATTENTION_PROBS_DROPOUT_PROB = HFConfigKey(
"attention_probs_dropout_prob",
"attention_probs_dropout_prob",
# Workaround for Python 3.8 limitation that doesn't allow
# passing/calling static methods as without a class bound.
lambda c: CommonCuratedToHFConverters.attention_dropout(c),
)
EMBEDDING_SIZE = HFConfigKey(
Expand Down

0 comments on commit 386321f

Please sign in to comment.