'CoreAILanguageModels' & What’s new in the Foundation Models framework developer video

I am trying to build the example on device model example in video WWDC26/241 (What’s new in the Foundation Models framework).

I have included the coreai-models package from GitHub but the build still fails with;

What’s new in the Foundation Models framework

Suggestions appreciated!

Sorry for the late post. The error is actually;

No such module "CoreAILanguageModels".

The error turns out to be the default version when you request the package. It defaults to

0.2.0< etc but only works with 0.0.0< etc

the CoreAILanguageModles import then works.

However the build still fails with some compiler errors which I posted on GitHub.

To avoid the build errors, the package manager has to be set to Branch:main instead of latest.

The code now builds without errors.

'CoreAILanguageModels' & What’s new in the Foundation Models framework developer video
 
 
Q