Skip to main content

MtmdProgressCallback

Type Alias MtmdProgressCallback 

Source
pub type MtmdProgressCallback = unsafe extern "C" fn(progress: f32, user_data: *mut c_void) -> bool;
Expand description

Progress callback invoked while the CLIP/mmproj weights are loading.

Receives a value in [0.0, 1.0]. Return true to continue loading or false to abort immediately.