(&self, gate: &Tensor, up: &Tensor)
| 85 | } |
| 86 | |
| 87 | fn silu_mul(&self, gate: &Tensor, up: &Tensor) -> Result<Tensor> { |
| 88 | candle_nn::ops::silu(&gate.contiguous()?)? * up.contiguous()? |
| 89 | } |
| 90 | |
| 91 | fn stable_softplus(&self, x: &Tensor) -> Result<Tensor> { |
| 92 | // ln(1 + exp(clamp(x, -inf, 88))) with max(x, result) |