{"adoption": {"forks": 205, "observed_at": "2026-08-28T04:04:28.064984+00:00", "stars": 1350}, "canonical_url": "https://ross.abutalabs.com/products/swift-transformers", "card": {"archived": false, "artifact_type": "library", "description": "Swift Package to implement a transformers-like API in Swift", "domain": ["machine-learning", "large-language-models", "developer-tools"], "enriched": true, "function": ["machine-learning", "nlp", "sdk", "http-client"], "health_score": 99, "homepage": null, "language": "Swift", "license": "Apache-2.0", "license_family": "permissive", "maturity": "active", "member_repos": ["huggingface/swift-transformers"], "name": "huggingface/swift-transformers", "platform": ["cross-platform"], "pushed_at": "2026-08-24T15:12:07+00:00", "repo": "huggingface/swift-transformers", "stars": 1350, "tags": ["tokenizers", "huggingface-hub", "chat-templates", "swift-package", "on-device-ml", "tool-calling", "natural-language-processing", "swift", "ios", "macos"], "topics": [], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/swift-transformers", "repo": "huggingface/swift-transformers", "role": "main", "score": 91}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.064984+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:42:17.210394+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "175666b414c56130966bcb3d42b238b0e68d4b5924a2fdb2e6712c1e95f4e4a0", "fetched_at": "2026-08-28T04:04:28.064984+00:00", "kind": "readme", "missing": false, "url": "https://github.com/huggingface/swift-transformers"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 86, "rhythm": 84}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1210, "days_push": 9, "days_rel": 109, "gap_med": 7.0, "n_releases_24m": 17}, "score": 91, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}