MannLabs / alphapeptdeep

Deep learning framework for proteomics
Apache License 2.0
101 stars 19 forks source link

Error in the latest version of huggingface `transformers` due to `no _attn_implementation attribute`. #168

Closed jalew188 closed 1 month ago

jalew188 commented 1 month ago

See https://github.com/MannLabs/alphapeptdeep/actions/runs/9146422692/job/25146596929#step:7:480

Failed: transformers-4.41.0

worked: transformers-4.40.2

jalew188 commented 1 month ago

See https://github.com/huggingface/transformers/blob/main/src/transformers/models/bert/modeling_bert.py#L467, and https://github.com/huggingface/transformers/blob/main/src/transformers/models/bert/modeling_bert.py#L476 about how to set config._attn_implementation.

jalew188 commented 1 month ago

FIX #172