Skip to content

Commit

Permalink
Update NAIP_LLaMA.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ssocean committed Nov 28, 2024
1 parent 411d60a commit 84a942e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llama_for_naip/NAIP_LLaMA.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def forward(
)
hidden_states = transformer_outputs[0]
logits = self.score(hidden_states)
# modify here
logits = self.sigmoid(logits)


if input_ids is not None:
batch_size = input_ids.shape[0]
Expand Down

0 comments on commit 84a942e

Please sign in to comment.