Skip to content

Gemma 4 26B-A4B inference in ~2 GB of RAM on any M-series MacBook

326 B
Raw Blame
import TurboFieldfareAppCore

public enum GenericErrorBannerPolicy {
    public static func shouldShow(error: AppInferenceError?, loadState: AppModelLoadState)
        -> Bool {
        guard let error, error != .cancelled else { return false }
        if case .failed = loadState { return false }
        return true
    }
}