Skip to content

AnyLanguageModel 1.0 Expands Local and Hosted Model Support for Swift Apps

Hugging Face BlogFrom the sourcePicksAnyLanguageModel 1.0: One Year of Local Models on Apple Platforms
Original
Image: Hugging Face Blog
Who
Hugging Face
What
released AnyLanguageModel 1.0, swift-huggingface 1.0, and swift-xet 1.0
QuoteOn OS 27, AnyLanguageModel also works with any model that conforms to Foundation Models' LanguageModel protocol, including Core AI models.

What happened

Hugging Face released AnyLanguageModel 1.0 alongside swift-huggingface 1.0 and swift-xet 1.0, expanding its drop-in alternative to Apple's Foundation Models framework. The library supports local and hosted models through shared session code, with tool calling and guided generation across every provider. Updates also add image support using Foundation Models 27 syntax, reasoning in transcripts, and closure-based API keys for fetching short-lived tokens.

Why it matters

A shared Foundation Models API gives Swift developers a way to choose local or hosted inference for each task while keeping session code consistent across providers.

The story so far

Hugging Face released AnyLanguageModel 1.0 alongside swift-huggingface 1.0 and swift-xet 1.0, expanding its alternative to Apple’s Foundation Models framework so Swift apps can use local and hosted models through shared session code. AnyLanguageModel supports tool calling and guided generation across every provider. The update adds image support using Foundation Models 27 syntax, reasoning in transcripts, and closure-based API keys for fetching short-lived tokens. On OS 27, AnyLanguageModel also works with models that conform to Foundation Models’ LanguageModel protocol, including Core AI models.

Catch every AI shift in one morning briefing

Model releases, price cuts, and compute shifts with original sources. Free, confirmed by email, unsubscribe anytime. Read a past issue

Read next

See the full storyHugging Face Releases AnyLanguageModel 1.0 and Two Swift Libraries
This story is in 10/21 AI DailyRead the whole issue