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

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

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

# ResidencyPart

[common]\
data class [ResidencyPart](index.md)(val name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), val device: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), val weightsBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), val kvCacheBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), val otherBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), val totalBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html))

What one part of a loaded model holds on one device ([ResidencyReport](../ResidencyReport/index.md)).

## Constructors

| | |
|---|---|
| [ResidencyPart](ResidencyPart.md) | [common]<br>constructor(name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), device: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), weightsBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), kvCacheBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), otherBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), totalBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)) |

## Properties

| Name | Summary |
|---|---|
| [device](device.md) | [common]<br>val [device](device.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>The device as the library labels it, `<Api>:<index>` (`CPU:-1` for the whole machine's cpu, `CUDA:0`). |
| [kvCacheBytes](kvCacheBytes.md) | [common]<br>val [kvCacheBytes](kvCacheBytes.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) |
| [name](name.md) | [common]<br>val [name](name.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>The part's name (the family's, or a tower's). |
| [otherBytes](otherBytes.md) | [common]<br>val [otherBytes](otherBytes.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) |
| [totalBytes](totalBytes.md) | [common]<br>val [totalBytes](totalBytes.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) |
| [weightsBytes](weightsBytes.md) | [common]<br>val [weightsBytes](weightsBytes.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) |