Depth Anything V2 Core ML Model not working with Xcode 16.1

https://developer.apple.com/machine-learning/models/

Adding the DepthAnythingV2SmallF16.mlpackage to a new project in Xcode 16.1 and invoking the class crashes the app.

Anyone else having the same issue?

I tried Xcode 16.2 beta and it has the same response.

Code

import UIKit
import CoreML

class ViewController : UIViewController {

    override func viewDidLoad() {
        
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        do {
            
            // Use a default model configuration.
            
            let defaultConfig = MLModelConfiguration()

            // app crashes here
            
            let model = try? DepthAnythingV2SmallF16(
                configuration: defaultConfig
            )
            
        } catch {
            
            //
            
        }
        
    }

}

Response

/AppleInternal/Library/BuildRoots/4b66fb3c-7dd0-11ef-b4fb-4a83e32a47e1/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphExecutable.mm:129: failed assertion Error: unhandled platform for MPSGraph serialization' `

Depth Anything V2 Core ML Model not working with Xcode 16.1
 
 
Q