Skip to main content

MIN_AVAILABLE_MEMORY_MB

Constant MIN_AVAILABLE_MEMORY_MB 

Source
pub const MIN_AVAILABLE_MEMORY_MB: u64 = 2_048;
Expand description

Minimum available memory in MiB required before starting model loading.

If sysinfo::System::available_memory() / 1_048_576 falls below this value, the invocation is aborted with crate::errors::AppError::LowMemory (exit code LOW_MEMORY_EXIT_CODE).