Skip to main content

//clika-runtime/io.clika.modelverse/Modelverse/check

check

[common]
fun check(source: String, options: CheckOptions = CheckOptions()): FitReport

Does the model source loads as (a hub repo id, a hub URL, a local directory or a .gguf file) fit a device, judged from its metadata alone: the command line's check verb in process. Nothing is fetched beyond the model's small documents and its file listing, and nothing runs. One FitVerdict per device options names (this machine's inventory, one device by its spelling, or the caller's own FitDevices: a phone's memory, the budget left for one step), each with the law's terms, the grade, the admitted context and the reason; the report's table is the verb's. A source that cannot be read or a device spelling no device matches throws ModelverseException.