SKaiNET
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
SKaiNET
skainet-io-gguf
/
sk.ainet.io.gguf.llama
/
LlamaWeightLoader
/
load
load
suspend
fun
<
T
:
DType
,
V
>
load
(
ctx
:
ExecutionContext
,
dtype
:
KClass
<
T
>
,
onTensorLoaded
:
(
String
,
Tensor
<
T
,
V
>
)
->
Unit
)
:
LlamaModelMetadata
(
source
)
Load weights and invoke
onTensorLoaded
for each required tensor. Returns parsed metadata.
inline suspend
fun
<
T
:
DType
,
V
>
load
(
ctx
:
ExecutionContext
,
noinline
onTensorLoaded
:
(
String
,
Tensor
<
T
,
V
>
)
->
Unit
)
:
LlamaModelMetadata
(
source
)