MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / LanguageModel

Method LanguageModel

plugins/wasi_nn/MLX/model/gemma3/language.cpp:292–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292LanguageModel::LanguageModel(const TextConfig &Config) : Config(Config) {
293 registerModule("model", std::make_shared<Gemma3Model>(Config));
294 registerModule("lm_head", std::make_shared<nn::Linear>(
295 Config.HiddenSize, Config.VocabSize, false));
296}
297
298std::tuple<mx::array, std::optional<mx::array>> LanguageModel::forward(
299 const mx::array &Inputs, const std::optional<mx::array> &InputsEmbeds,

Callers

nothing calls this directly

Calls 1

registerModuleFunction · 0.85

Tested by

no test coverage detected