//clika-runtime/io.clika.runtime/FunctionModel/Companion
Companion
[common]
object Companion
Functions
| Name | Summary |
|---|---|
| fromGraph | [common] fun fromGraph(graph: ModelGraph, kv: KVSpecOptions = KVSpecOptions()): FunctionModel A serving model over a finalized graph: its inputs and outputs are the graph's (a graph with a KV cache keeps per-session cache planes sized by kv, and its past inputs leave the contract). The graph is taken: it moves into the model and the given ModelGraph is emptied, whether the model is built or the call fails (an empty graph, or a KV graph without a positive past length). |