Ross ROSS = Recommend OSS · open-source software intelligence for agents

huggingface/swift-transformers

Swift Package to implement a transformers-like API in Swift observed · 2026-08-28

github.com/huggingface/swift-transformers · Swift · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

91/100

  • Activity 99
  • Release rhythm 84
  • Longevity 86
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 7.0
  • age_days: 1210
  • days_rel: 109
  • days_push: 9
  • n_releases_24m: 17

Full methodology

Adoption not part of the score

1350 stars · 205 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Swift Package providing a transformers-like API for Swift apps, including fast tokenization, chat templating, and reliable model downloads from the Hugging Face Hub. It enables developers to adopt language models in Swift applications with an API familiar to users of the Python transformers library.

Use cases

  • tokenize text for LLMs in a Swift app
  • apply chat templates to messages on iOS
  • download models from the Hugging Face Hub to a device
  • format prompts for tool calling in Swift
  • decode model tokens back to text
  • build on-device ML features in Apple apps

When to choose

  • you are building Swift/iOS/macOS apps that use language models
  • you need Python-transformers-style tokenization in Swift
  • you want fast, reliable Hub model downloads on-device
  • you need chat template and tool-calling support in Swift

When to avoid

  • you are working in Python or another non-Swift ecosystem
  • you need to train or fine-tune models rather than prepare inputs
  • you need full model inference beyond tokenization and hub utilities

Facets

library · maturity active

machine-learning nlp sdk http-client machine-learning large-language-models developer-tools cross-platform tokenizers huggingface-hub chat-templates swift-package on-device-ml tool-calling natural-language-processing swift ios macos

1 source

Member repositories

RepositoryRoleHealth v2
huggingface/swift-transformersmain91

For agents

markdown · JSON · MCP: product_card(name="huggingface/swift-transformers")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem