MCPcopy Create free account
hub / github.com/evilsocket/cake / estimate_layer_vram

Method estimate_layer_vram

cake-core/src/utils/mod.rs:54–56  ·  view source on GitHub ↗

Estimate in-memory layer size given on-disk size and target dtype bytes. Default: no expansion (on-disk size = in-memory size).

(&self, on_disk_bytes: u64, _dtype_bytes: u64)

Source from the content-addressed store, hash-verified

52 /// Estimate in-memory layer size given on-disk size and target dtype bytes.
53 /// Default: no expansion (on-disk size = in-memory size).
54 fn estimate_layer_vram(&self, on_disk_bytes: u64, _dtype_bytes: u64) -> u64 {
55 on_disk_bytes
56 }
57}
58
59/// No quantization — plain safetensors, loaded as-is.

Callers

nothing calls this directly

Implementers 1

mod.rscake-core/src/utils/mod.rs

Calls

no outgoing calls

Tested by

no test coverage detected