Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Add OPT Model
Browse files Browse the repository at this point in the history
  • Loading branch information
dongs0104 authored Jul 26, 2022
1 parent 43f1ed6 commit 3743a89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions oslo/transformers/mapping_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ class _TensorParallelMappingForHuggingFace(_ParallelMappingForHuggingFace):
Update("embed_dim", "num_attention_heads"),
Head("lm_head", "score"),
],
OPT=[
Column("q_proj", "k_proj", "v_proj", "fc1"),
Row("out_proj", "fc2"),
Update("embed_dim", "num_heads"),
Head("lm_head", "score"),
],
"Electra": [
Column("query", "key", "value", "intermediate.dense"),
Column(
Expand Down

0 comments on commit 3743a89

Please sign in to comment.