Skip to content

Commit ff7610d

Browse files
authored
remove the bias in the ffn module (#68)
1 parent e5ea144 commit ff7610d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/LLM/OpenELM.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ private class FeedForwardNetwork: Module, UnaryLayer {
106106
let intermediateDim = Int(
107107
makeDivisible(Float(ffnMultiplier) * Float(dim), divisor: args.ffnDimDivisor))
108108

109-
self.proj_1 = Linear(dim, 2 * intermediateDim)
110-
self.proj_2 = Linear(intermediateDim, dim)
109+
self.proj_1 = Linear(dim, 2 * intermediateDim, bias: false)
110+
self.proj_2 = Linear(intermediateDim, dim, bias: false)
111111
}
112112

113113
public func callAsFunction(_ x: MLXArray) -> MLXArray {

0 commit comments

Comments
 (0)