Skip to content

Commit

Permalink
mistral head conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt committed Dec 21, 2024
1 parent 897d197 commit 18f9053
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/adapters/head_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,14 @@
},
"layers": [None, "score"],
},
"MistralForQuestionAnswering": {
"config": {
"head_type": "question_answering",
"layers": 1,
"activation_function": None,
},
"layers": [None, "qa_outputs"],
},
# Electra
"ElectraForTokenClassification": {
"config": {
Expand Down

0 comments on commit 18f9053

Please sign in to comment.