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

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

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

# CheckOptions

[common]\
data class [CheckOptions](index.md)(val device: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, val maxSeq: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null, val imageWidth: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0, val imageHeight: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0, val devices: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[FitDevice](../FitDevice/index.md)&gt; = emptyList(), val revision: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) = &quot;main&quot;, val cacheDir: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, val token: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, val offline: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, val weights: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, val dtype: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null) : [SourceOptions](../SourceOptions/index.md)

The knobs of [Modelverse.check](../Modelverse/check.md), the command line's `check` verb's and the Python `modelverse.check`'s. [device](device.md) is the device judged: a label the `devices` listing prints (`CPU:0`), the runtime's spelling (`cpu`, `vulkan:1`), an api name alone (`cuda`, every device of that api), or a label of [devices](devices.md); null judges every device. [maxSeq](maxSeq.md) is the sequence length judged, null the model's own context length. [imageWidth](imageWidth.md) and [imageHeight](imageHeight.md) are the image an image generation pipeline is judged at (0 = its weights alone, with the largest square image that fits reported). [devices](devices.md) names devices to judge instead of this machine's (a phone's memory, a step's remaining budget); empty takes this machine's inventory. The hub knobs ([revision](revision.md), [cacheDir](cacheDir.md), [token](token.md), [offline](offline.md), [weights](weights.md)) are the ones every load reads; nothing is fetched beyond the model's small documents and its file listing, and nothing runs.

## Constructors

| | |
|---|---|
| [CheckOptions](CheckOptions.md) | [common]<br>constructor(device: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, maxSeq: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null, imageWidth: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0, imageHeight: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0, devices: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[FitDevice](../FitDevice/index.md)&gt; = emptyList(), revision: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) = &quot;main&quot;, cacheDir: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, token: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, offline: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, weights: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null, dtype: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null) |

## Properties

| Name | Summary |
|---|---|
| [cacheDir](cacheDir.md) | [common]<br>open override val [cacheDir](cacheDir.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null |
| [device](device.md) | [common]<br>open override val [device](device.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null |
| [devices](devices.md) | [common]<br>val [devices](devices.md): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[FitDevice](../FitDevice/index.md)&gt; |
| [dtype](dtype.md) | [common]<br>open override val [dtype](dtype.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null<br>The precision the weights load at: `"float16"` or `"bfloat16"` casts a dense checkpoint's float weights at load (about half the memory of a float32 checkpoint; the cast is best effort, and the stored precision keeps the model as trained) and selects a quantized checkpoint's compute dtype; `null` keeps the checkpoint's own. A load that reads neither meaning refuses naming the loads that do. The same `dtype` the command line's `--dtype` reads. |
| [imageHeight](imageHeight.md) | [common]<br>val [imageHeight](imageHeight.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0 |
| [imageWidth](imageWidth.md) | [common]<br>val [imageWidth](imageWidth.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0 |
| [maxSeq](maxSeq.md) | [common]<br>val [maxSeq](maxSeq.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null |
| [offline](offline.md) | [common]<br>open override val [offline](offline.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false |
| [revision](revision.md) | [common]<br>open override val [revision](revision.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [token](token.md) | [common]<br>open override val [token](token.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null |
| [weights](weights.md) | [common]<br>open override val [weights](weights.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null<br>The weight option of a repository that ships several (a GGUF repository with many quantizations): a quantization tag (`Q4_K_M`), a repo-relative `.gguf` file name, or a glob over the option names. Null picks nothing: a repository with one option needs none, one with several refuses naming them. The same `weights` the command line's `--weights` reads. |