Skip to content

Commit

Permalink
phi3
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrilvallez committed Dec 20, 2024
1 parent c898d03 commit 2464914
Show file tree
Hide file tree
Showing 3 changed files with 520 additions and 633 deletions.
1 change: 0 additions & 1 deletion src/transformers/models/glm/modeling_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def __init__(self, config):
self.config = config
self.gate_up_proj = nn.Linear(config.hidden_size, 2 * config.intermediate_size, bias=False)
self.down_proj = nn.Linear(config.intermediate_size, config.hidden_size, bias=False)

self.activation_fn = ACT2FN[config.hidden_act]

def forward(self, hidden_states: torch.FloatTensor) -> torch.FloatTensor:
Expand Down
Loading

0 comments on commit 2464914

Please sign in to comment.