You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Call the embedding layer as a linear layer.
///
/// Use this for example when input embedding and output projection
/// weights are tied.
openfunc asLinear(_ x:MLXArray)->MLXArray{matmul(x, weight.T)}
e.g. Cohere, Starcoder2, OpenELM (this last is fixed recently).
out =matmul(out, model.embedTokens.weight.T)
should be:
out = model.embedTokens.asLinear(out)
The text was updated successfully, but these errors were encountered:
There are several Modules that use
directly instead of using:
e.g. Cohere, Starcoder2, OpenELM (this last is fixed recently).
should be:
The text was updated successfully, but these errors were encountered: