Skip to content

Commit 0aef8db

Browse files
committed
Fix activation.forward in ModernBertMLP
1 parent 9f85bf3 commit 0aef8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/candle/src/models/modernbert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl ModernBertMLP {
120120
hidden_states.narrow(D::Minus1, self.intermediate_size, self.intermediate_size)?;
121121

122122
let input = if let Some(activation) = &self.activation {
123-
activation.forward(&input)?
123+
activation.forward(&input)
124124
} else {
125125
Ok(input)
126126
};

0 commit comments

Comments
 (0)