Hello,
I have created this basic swift program:
let session = LanguageModelSession(
model: .default,
instructions: "bla bla bla.")
I want to understand what I can put in model parameter (instead of .default). How can I choose between on-device local model (.default I suppose) and apple private cloud model (or any other ?)
Thanks
You can create a SystemLanguageModel instance and use it to create a session. The following code example shows how to create a session for the .contentTagging use case:
let model = SystemLanguageModel(useCase: .contentTagging)
let session = LanguageModelSession(model: model, ...)
The Foundation Models framework currently doesn't provide an API to access cloud-based models
Best,
——
Ziqiao Chen
Worldwide Developer Relations.