---
title: "check"
sidebar_label: "check"
description: "Kotlin binding reference: check."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[Modelverse](index.md)/[check](check.md)

# check

[common]\
fun [check](check.md)(source: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [CheckOptions](../CheckOptions/index.md) = CheckOptions()): [FitReport](../FitReport/index.md)

Does the model [source](check.md) 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](../FitVerdict/index.md) per device [options](check.md) names (this machine's inventory, one device by its spelling, or the caller's own [FitDevice](../FitDevice/index.md)s: 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](../ModelverseException/index.md).