loadModelWeights

fun loadModelWeights(model: Module<FP32, Float>, modelParamsSource: Any, modelType: String = "")(source)

Loads model weights into a neural network. This is currently a no-op placeholder to keep the module compiling in environments where GGUF loading is not available. It preserves API compatibility.

Parameters

model

The neural network to apply the weights to.

modelParamsSource

The source containing the model parameters (placeholder type Any).

modelType

The type of model, which determines the matching strategy.