Build Information
Successful build of swift-transformers, reference main (79626a
), with Swift 6.1 for macOS (SPM) on 5 Jun 2025 15:33:15 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/huggingface/swift-transformers.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/huggingface/swift-transformers
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 79626a8 updating Jina to 1.2.0 as it correctly supports Granite model template (#207)
Cloned https://github.com/huggingface/swift-transformers.git
Revision (git rev-parse @):
79626a822e4e9170e0112d963163f50b82927160
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/huggingface/swift-transformers.git at main
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git from cache
[1/393] Fetching jinja
Fetched https://github.com/johnmai-dev/Jinja from cache (0.83s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.03s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.2.0 (1.56s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.84s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (1.40s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.59s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.4.0
Creating working copy for https://github.com/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-transformers",
"name": "swift-transformers",
"url": "https://github.com/huggingface/swift-transformers.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-transformers",
"dependencies": [
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
},
{
"identity": "jinja",
"name": "Jinja",
"url": "https://github.com/johnmai-dev/Jinja",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Jinja",
"dependencies": [
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/huggingface/swift-transformers.git
[1/3365] Fetching swift-transformers
Fetched https://github.com/huggingface/swift-transformers.git from cache (1.17s)
Fetching https://github.com/johnmai-dev/Jinja from cache
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetched https://github.com/johnmai-dev/Jinja from cache (0.49s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.50s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.2.0 (0.55s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.49s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (0.56s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.03s)
Creating working copy for https://github.com/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at main (79626a8)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.4.0
Found 2 product dependencies
- swift-argument-parser
- Jinja
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/huggingface/swift-transformers.git
https://github.com/huggingface/swift-transformers.git
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "1.5.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
},
{
"identity" : "jinja",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "1.3.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnmai-dev/Jinja"
}
],
"manifest_display_name" : "swift-transformers",
"name" : "swift-transformers",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Transformers",
"targets" : [
"Tokenizers",
"Generation",
"Models"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "transformers",
"targets" : [
"TransformersCLI"
],
"type" : {
"executable" : null
}
},
{
"name" : "hub-cli",
"targets" : [
"HubCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "TransformersCLI",
"module_type" : "SwiftTarget",
"name" : "TransformersCLI",
"path" : "Sources/TransformersCLI",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"transformers"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Models",
"Generation",
"Tokenizers"
],
"type" : "executable"
},
{
"c99name" : "TokenizersTests",
"module_type" : "SwiftTarget",
"name" : "TokenizersTests",
"path" : "Tests/TokenizersTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/basic_tokenized_questions.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/bert_uncased_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/dev-v1.1.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/distilbert_cased_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/falcon_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/gemma_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/gpt2_encoded_tokens.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/llama_3.2_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/llama_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/question_tokens.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/t5_base_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/tokenized_questions.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/tokenizer_tests.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/whisper_large_v2_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/whisper_tiny_en_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Vocabs/bert-vocab.txt",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AddedTokensTests.swift",
"BertTokenizerTests.swift",
"ChatTemplateTests.swift",
"DecoderTests.swift",
"FactoryTests.swift",
"SplitTests.swift",
"SquadDataset.swift",
"TokenizerTests.swift",
"TrieTests.swift"
],
"target_dependencies" : [
"Tokenizers",
"Models",
"Hub"
],
"type" : "test"
},
{
"c99name" : "Tokenizers",
"module_type" : "SwiftTarget",
"name" : "Tokenizers",
"path" : "Sources/Tokenizers",
"product_dependencies" : [
"Jinja"
],
"product_memberships" : [
"Transformers",
"transformers"
],
"sources" : [
"BPETokenizer.swift",
"BertTokenizer.swift",
"ByteEncoder.swift",
"Decoder.swift",
"Normalizer.swift",
"PostProcessor.swift",
"PreTokenizer.swift",
"TokenLattice.swift",
"Tokenizer.swift",
"Trie.swift",
"UnigramTokenizer.swift",
"Utils.swift"
],
"target_dependencies" : [
"Hub"
],
"type" : "library"
},
{
"c99name" : "TensorUtilsTests",
"module_type" : "SwiftTarget",
"name" : "TensorUtilsTests",
"path" : "Tests/TensorUtilsTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TensorUtilsTests/Resources/tensor-1d-int32.safetensors",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TensorUtilsTests/Resources/tensor-2d-float64.safetensors",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TensorUtilsTests/Resources/tensor-3d-float32.safetensors",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TensorUtilsTests/Resources/tensor-4d-float32.safetensors",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"LogitsWarperTests.swift",
"TensorUtilsTests.swift",
"TestUtils.swift",
"WeightsTests.swift"
],
"target_dependencies" : [
"TensorUtils",
"Models",
"Hub"
],
"type" : "test"
},
{
"c99name" : "TensorUtils",
"module_type" : "SwiftTarget",
"name" : "TensorUtils",
"path" : "Sources/TensorUtils",
"product_memberships" : [
"Transformers",
"transformers"
],
"sources" : [
"LogitsWarper/LogitsProcessor.swift",
"LogitsWarper/LogitsWarper.swift",
"LogitsWarper/RepetitionPenaltyWarper.swift",
"LogitsWarper/TemperatureLogitsWarper.swift",
"LogitsWarper/TopKLogitsWarper.swift",
"LogitsWarper/TopPLogitsWarper.swift",
"MLMultiArray+Utils.swift",
"MLShapedArray+Utils.swift",
"Math.swift",
"Weights.swift"
],
"type" : "library"
},
{
"c99name" : "PreTokenizerTests",
"module_type" : "SwiftTarget",
"name" : "PreTokenizerTests",
"path" : "Tests/PreTokenizerTests",
"sources" : [
"PreTokenizerTests.swift"
],
"target_dependencies" : [
"Tokenizers",
"Hub"
],
"type" : "test"
},
{
"c99name" : "PostProcessorTests",
"module_type" : "SwiftTarget",
"name" : "PostProcessorTests",
"path" : "Tests/PostProcessorTests",
"sources" : [
"PostProcessorTests.swift"
],
"target_dependencies" : [
"Tokenizers",
"Hub"
],
"type" : "test"
},
{
"c99name" : "NormalizerTests",
"module_type" : "SwiftTarget",
"name" : "NormalizerTests",
"path" : "Tests/NormalizerTests",
"sources" : [
"NormalizerTests.swift"
],
"target_dependencies" : [
"Tokenizers",
"Hub"
],
"type" : "test"
},
{
"c99name" : "Models",
"module_type" : "SwiftTarget",
"name" : "Models",
"path" : "Sources/Models",
"product_memberships" : [
"Transformers",
"transformers"
],
"sources" : [
"LanguageModel.swift",
"LanguageModelTypes.swift"
],
"target_dependencies" : [
"Tokenizers",
"Generation",
"TensorUtils"
],
"type" : "library"
},
{
"c99name" : "HubTests",
"module_type" : "SwiftTarget",
"name" : "HubTests",
"path" : "Tests/HubTests",
"product_dependencies" : [
"Jinja"
],
"sources" : [
"ConfigTests.swift",
"DownloaderTests.swift",
"HubApiTests.swift",
"HubTests.swift"
],
"target_dependencies" : [
"Hub"
],
"type" : "test"
},
{
"c99name" : "HubCLI",
"module_type" : "SwiftTarget",
"name" : "HubCLI",
"path" : "Sources/HubCLI",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"hub-cli"
],
"sources" : [
"HubCLI.swift"
],
"target_dependencies" : [
"Hub"
],
"type" : "executable"
},
{
"c99name" : "Hub",
"module_type" : "SwiftTarget",
"name" : "Hub",
"path" : "Sources/Hub",
"product_memberships" : [
"Transformers",
"transformers",
"hub-cli"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Hub/FallbackConfigs/gpt2_tokenizer_config.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Hub/FallbackConfigs/t5_tokenizer_config.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"BinaryDistinct.swift",
"Config.swift",
"Downloader.swift",
"Hub.swift",
"HubApi.swift"
],
"type" : "library"
},
{
"c99name" : "Generation",
"module_type" : "SwiftTarget",
"name" : "Generation",
"path" : "Sources/Generation",
"product_memberships" : [
"Transformers",
"transformers"
],
"sources" : [
"Generation.swift",
"GenerationConfig.swift"
],
"target_dependencies" : [
"Tokenizers",
"TensorUtils"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/24] Write sources
[1/24] Write transformers-entitlement.plist
[7/24] Write sources
[8/24] Write hub-cli-entitlement.plist
[8/24] Copying t5_tokenizer_config.json
[10/24] Copying gpt2_tokenizer_config.json
[10/24] Write sources
[17/24] Write swift-version-2F0A5646E1D333AE.txt
[19/57] Compiling InternalCollectionsUtilities Debugging.swift
[20/57] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[21/58] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[22/58] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[23/58] Compiling InternalCollectionsUtilities Descriptions.swift
[24/58] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[25/58] Compiling InternalCollectionsUtilities _SortedCollection.swift
[26/58] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[27/58] Compiling InternalCollectionsUtilities UInt+reversed.swift
[28/58] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[29/58] Compiling InternalCollectionsUtilities Integer rank.swift
[30/58] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[31/58] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[32/58] Emitting module InternalCollectionsUtilities
[33/58] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[34/58] Compiling ArgumentParserToolInfo ToolInfo.swift
[35/58] Emitting module ArgumentParserToolInfo
[36/152] Compiling ArgumentParser ExpressibleByArgument.swift
[37/152] Compiling ArgumentParser BashCompletionsGenerator.swift
[38/152] Compiling ArgumentParser CompletionsGenerator.swift
[39/152] Compiling ArgumentParser FishCompletionsGenerator.swift
[40/152] Compiling ArgumentParser ZshCompletionsGenerator.swift
[41/152] Compiling ArgumentParser Argument.swift
[42/158] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[43/158] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[44/158] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[45/158] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[46/158] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[47/158] Compiling OrderedCollections OrderedSet+Sendable.swift
[48/158] Compiling ArgumentParser Option.swift
[49/158] Compiling ArgumentParser OptionGroup.swift
[50/158] Compiling ArgumentParser ArgumentHelp.swift
[51/158] Compiling ArgumentParser ArgumentVisibility.swift
[52/158] Compiling ArgumentParser CompletionKind.swift
[53/158] Compiling ArgumentParser Errors.swift
[54/158] Compiling OrderedCollections _Hashtable+Header.swift
[55/158] Compiling OrderedCollections OrderedDictionary+Codable.swift
[56/158] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[57/158] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[58/158] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[59/158] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[60/158] Compiling ArgumentParser ParsableArguments.swift
[61/158] Compiling ArgumentParser ParsableArgumentsValidation.swift
[62/158] Compiling ArgumentParser ParsableCommand.swift
[63/158] Compiling ArgumentParser ArgumentDecoder.swift
[64/158] Compiling ArgumentParser InputOrigin.swift
[65/158] Compiling ArgumentParser Name.swift
[66/158] Compiling OrderedCollections OrderedSet+Hashable.swift
[67/158] Compiling OrderedCollections OrderedSet+Initializers.swift
[68/158] Compiling OrderedCollections OrderedSet+Insertions.swift
[69/158] Compiling OrderedCollections OrderedSet+Invariants.swift
[70/158] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[71/158] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[72/158] Compiling ArgumentParser Parsed.swift
[73/158] Compiling ArgumentParser ParsedValues.swift
[74/158] Compiling ArgumentParser HelpGenerator.swift
[75/158] Compiling ArgumentParser MessageInfo.swift
[76/158] Compiling ArgumentParser UsageGenerator.swift
[77/158] Compiling ArgumentParser CollectionExtensions.swift
[78/158] Compiling ArgumentParser ParserError.swift
[79/158] Compiling ArgumentParser SplitArguments.swift
[80/158] Compiling ArgumentParser DumpHelpGenerator.swift
[81/158] Compiling ArgumentParser HelpCommand.swift
[82/158] Compiling ArgumentParser AsyncParsableCommand.swift
[83/158] Compiling ArgumentParser CommandConfiguration.swift
[84/158] Compiling ArgumentParser EnumerableFlag.swift
[85/158] Compiling OrderedCollections OrderedSet+SubSequence.swift
[86/158] Compiling OrderedCollections OrderedSet+Testing.swift
[87/158] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[88/158] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[89/158] Compiling OrderedCollections OrderedSet.swift
[90/158] Compiling OrderedCollections _UnsafeBitset.swift
[91/158] Compiling ArgumentParser ArgumentDefinition.swift
[92/158] Compiling ArgumentParser ArgumentSet.swift
[93/158] Compiling ArgumentParser CommandParser.swift
[94/158] Compiling ArgumentParser InputKey.swift
[95/158] Compiling ArgumentParser Flag.swift
[96/158] Compiling ArgumentParser NameSpecification.swift
[97/158] Emitting module OrderedCollections
[98/168] Emitting module ArgumentParser
[99/172] Compiling Jinja Utilities.swift
[100/172] Emitting module Jinja
[101/172] Compiling Jinja Template.swift
[102/172] Compiling Hub Hub.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:85:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
83 | hubApi: HubApi = .shared
84 | ) {
85 | configPromise = Task.init {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
86 | try await self.loadConfig(modelName: modelName, revision: revision, hubApi: hubApi)
| `- note: closure captures 'self' which is accessible to code in the current task
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:94:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
92 | hubApi: HubApi = .shared
93 | ) {
94 | configPromise = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
95 | try await self.loadConfig(modelFolder: modelFolder, hubApi: hubApi)
| `- note: closure captures 'self' which is accessible to code in the current task
96 | }
97 | }
[103/172] Compiling Jinja StringExtension.swift
[104/172] Compiling Jinja Runtime.swift
[105/172] Emitting module Hub
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Downloader.swift:12:7: warning: non-final class 'Downloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | import Foundation
11 |
12 | class Downloader: NSObject, ObservableObject {
| `- warning: non-final class 'Downloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | private(set) var destination: URL
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Downloader.swift:13:22: warning: stored property 'destination' of 'Sendable'-conforming class 'Downloader' is mutable; this is an error in the Swift 6 language mode
11 |
12 | class Downloader: NSObject, ObservableObject {
13 | private(set) var destination: URL
| `- warning: stored property 'destination' of 'Sendable'-conforming class 'Downloader' is mutable; this is an error in the Swift 6 language mode
14 |
15 | private let chunkSize = 10 * 1024 * 1024 // 10MB
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:41:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
11 | import os
12 |
13 | public struct HubApi {
| `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
14 | var downloadBase: URL
15 | var hfToken: String?
:
39 | let commitHashPattern = "^[0-9a-f]{40}$"
40 |
41 | public static let shared = HubApi()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | private static let logger = Logger()
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:636:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi.NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
626 | /// Network monitor helper class to help decide whether to use offline mode
627 | private extension HubApi {
628 | private final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
629 | private var monitor: NWPathMonitor
630 | private var queue: DispatchQueue
:
634 | private(set) var isConstrained: Bool = false
635 |
636 | static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi.NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
637 |
638 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:768:15: warning: non-final class 'RedirectDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
766 | /// Only allow relative redirects and reject others
767 | /// Reference: https://github.com/huggingface/huggingface_hub/blob/b2c9a148d465b43ab90fab6e4ebcbbf5a9df27d4/src/huggingface_hub/file_download.py#L258
768 | private class RedirectDelegate: NSObject, URLSessionTaskDelegate {
| `- warning: non-final class 'RedirectDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
769 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
770 | // Check if it's a redirect status code (300-399)
[106/172] Compiling Jinja Parser.swift
[107/172] Compiling Jinja Error.swift
[108/172] Compiling Jinja Lexer.swift
[109/172] Compiling Jinja Ast.swift
[110/172] Compiling Jinja Environment.swift
[111/172] Compiling ArgumentParser Platform.swift
[112/172] Compiling ArgumentParser SequenceExtensions.swift
[113/172] Compiling ArgumentParser StringExtensions.swift
[114/172] Compiling ArgumentParser Tree.swift
[128/172] Compiling Hub Downloader.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Downloader.swift:12:7: warning: non-final class 'Downloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | import Foundation
11 |
12 | class Downloader: NSObject, ObservableObject {
| `- warning: non-final class 'Downloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | private(set) var destination: URL
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Downloader.swift:13:22: warning: stored property 'destination' of 'Sendable'-conforming class 'Downloader' is mutable; this is an error in the Swift 6 language mode
11 |
12 | class Downloader: NSObject, ObservableObject {
13 | private(set) var destination: URL
| `- warning: stored property 'destination' of 'Sendable'-conforming class 'Downloader' is mutable; this is an error in the Swift 6 language mode
14 |
15 | private let chunkSize = 10 * 1024 * 1024 // 10MB
[129/172] Compiling Hub resource_bundle_accessor.swift
[130/172] Compiling Hub BinaryDistinct.swift
[131/172] Compiling Hub Config.swift
[132/172] Compiling Hub HubApi.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:41:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
11 | import os
12 |
13 | public struct HubApi {
| `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
14 | var downloadBase: URL
15 | var hfToken: String?
:
39 | let commitHashPattern = "^[0-9a-f]{40}$"
40 |
41 | public static let shared = HubApi()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | private static let logger = Logger()
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:636:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi.NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
626 | /// Network monitor helper class to help decide whether to use offline mode
627 | private extension HubApi {
628 | private final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
629 | private var monitor: NWPathMonitor
630 | private var queue: DispatchQueue
:
634 | private(set) var isConstrained: Bool = false
635 |
636 | static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi.NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
637 |
638 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:768:15: warning: non-final class 'RedirectDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
766 | /// Only allow relative redirects and reject others
767 | /// Reference: https://github.com/huggingface/huggingface_hub/blob/b2c9a148d465b43ab90fab6e4ebcbbf5a9df27d4/src/huggingface_hub/file_download.py#L258
768 | private class RedirectDelegate: NSObject, URLSessionTaskDelegate {
| `- warning: non-final class 'RedirectDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
769 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
770 | // Check if it's a redirect status code (300-399)
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:646:27: warning: capture of 'self' with non-sendable type 'HubApi.NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
626 | /// Network monitor helper class to help decide whether to use offline mode
627 | private extension HubApi {
628 | private final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
629 | private var monitor: NWPathMonitor
630 | private var queue: DispatchQueue
:
644 | func startMonitoring() {
645 | monitor.pathUpdateHandler = { [weak self] path in
646 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HubApi.NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
647 |
648 | isConnected = path.status == .satisfied
[133/184] Compiling Tokenizers BPETokenizer.swift
[134/184] Compiling Tokenizers BertTokenizer.swift
[135/184] Compiling Tokenizers ByteEncoder.swift
[136/184] Compiling Tokenizers Decoder.swift
[157/184] Compiling TensorUtils MLMultiArray+Utils.swift
[158/184] Compiling TensorUtils TopPLogitsWarper.swift
[159/185] Compiling TensorUtils TemperatureLogitsWarper.swift
[160/185] Compiling TensorUtils RepetitionPenaltyWarper.swift
[161/185] Compiling TensorUtils LogitsProcessor.swift
[162/185] Emitting module TensorUtils
[163/185] Compiling TensorUtils TopKLogitsWarper.swift
[164/185] Compiling TensorUtils MLShapedArray+Utils.swift
[165/185] Compiling TensorUtils LogitsWarper.swift
[166/185] Compiling TensorUtils Math.swift
[167/185] Compiling Tokenizers Trie.swift
[168/185] Compiling Tokenizers UnigramTokenizer.swift
[169/188] Compiling TensorUtils Weights.swift
[172/188] Compiling Tokenizers PreTokenizer.swift
[173/188] Compiling Tokenizers PostProcessor.swift
[174/188] Compiling Tokenizers TokenLattice.swift
[175/188] Compiling Tokenizers Normalizer.swift
[176/188] Emitting module Tokenizers
[179/188] Compiling Tokenizers Tokenizer.swift
[180/188] Compiling Tokenizers Utils.swift
[181/188] Emitting module HubCLI
[182/188] Compiling HubCLI HubCLI.swift
[182/188] Write Objects.LinkFileList
[184/191] Compiling Generation GenerationConfig.swift
[185/191] Compiling Generation Generation.swift
[186/191] Emitting module Generation
[186/194] Linking hub-cli
[187/194] Applying hub-cli
[189/194] Compiling Models LanguageModelTypes.swift
[190/194] Compiling Models LanguageModel.swift
[191/194] Emitting module Models
[192/196] Compiling TransformersCLI main.swift
/Users/admin/builder/spi-builder-workspace/Sources/TransformersCLI/main.swift:29:19: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 | func generate(model: LanguageModel, config: GenerationConfig, prompt: String, printOutput: Bool = true) {
28 | let semaphore = DispatchSemaphore(value: 0)
29 | Task.init { [config] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | defer { semaphore.signal() }
31 | var tokensReceived = 0
:
33 | let begin = Date()
34 | do {
35 | try await model.generate(config: config, prompt: prompt) { inProgressGeneration in
| | `- note: closure captures non-Sendable 'config'
| `- note: closure captures non-Sendable 'model'
36 | tokensReceived += 1
37 | let response = inProgressGeneration.replacingOccurrences(of: "\\n", with: "\n")
[193/196] Emitting module TransformersCLI
[193/196] Write Objects.LinkFileList
[194/196] Linking transformers
[195/196] Applying transformers
Build complete! (14.77s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "1.5.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
},
{
"identity" : "jinja",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "1.3.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnmai-dev/Jinja"
}
],
"manifest_display_name" : "swift-transformers",
"name" : "swift-transformers",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Transformers",
"targets" : [
"Tokenizers",
"Generation",
"Models"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "transformers",
"targets" : [
"TransformersCLI"
],
"type" : {
"executable" : null
}
},
{
"name" : "hub-cli",
"targets" : [
"HubCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "TransformersCLI",
"module_type" : "SwiftTarget",
"name" : "TransformersCLI",
"path" : "Sources/TransformersCLI",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"transformers"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Models",
"Generation",
"Tokenizers"
],
"type" : "executable"
},
{
"c99name" : "TokenizersTests",
"module_type" : "SwiftTarget",
"name" : "TokenizersTests",
"path" : "Tests/TokenizersTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/basic_tokenized_questions.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/bert_uncased_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/dev-v1.1.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/distilbert_cased_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/falcon_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/gemma_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/gpt2_encoded_tokens.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/llama_3.2_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/llama_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/question_tokens.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/t5_base_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/tokenized_questions.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/tokenizer_tests.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/whisper_large_v2_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Resources/whisper_tiny_en_encoded.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TokenizersTests/Vocabs/bert-vocab.txt",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AddedTokensTests.swift",
"BertTokenizerTests.swift",
"ChatTemplateTests.swift",
"DecoderTests.swift",
"FactoryTests.swift",
"SplitTests.swift",
"SquadDataset.swift",
"TokenizerTests.swift",
"TrieTests.swift"
],
"target_dependencies" : [
"Tokenizers",
"Models",
"Hub"
],
"type" : "test"
},
{
"c99name" : "Tokenizers",
"module_type" : "SwiftTarget",
"name" : "Tokenizers",
"path" : "Sources/Tokenizers",
"product_dependencies" : [
"Jinja"
],
"product_memberships" : [
"Transformers",
"transformers"
],
"sources" : [
"BPETokenizer.swift",
"BertTokenizer.swift",
"ByteEncoder.swift",
"Decoder.swift",
"Normalizer.swift",
"PostProcessor.swift",
"PreTokenizer.swift",
"TokenLattice.swift",
"Tokenizer.swift",
"Trie.swift",
"UnigramTokenizer.swift",
"Utils.swift"
],
"target_dependencies" : [
"Hub"
],
"type" : "library"
},
{
"c99name" : "TensorUtilsTests",
"module_type" : "SwiftTarget",
"name" : "TensorUtilsTests",
"path" : "Tests/TensorUtilsTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TensorUtilsTests/Resources/tensor-1d-int32.safetensors",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TensorUtilsTests/Resources/tensor-2d-float64.safetensors",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TensorUtilsTests/Resources/tensor-3d-float32.safetensors",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TensorUtilsTests/Resources/tensor-4d-float32.safetensors",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"LogitsWarperTests.swift",
"TensorUtilsTests.swift",
"TestUtils.swift",
"WeightsTests.swift"
],
"target_dependencies" : [
"TensorUtils",
"Models",
"Hub"
],
"type" : "test"
},
{
"c99name" : "TensorUtils",
"module_type" : "SwiftTarget",
"name" : "TensorUtils",
"path" : "Sources/TensorUtils",
"product_memberships" : [
"Transformers",
"transformers"
],
"sources" : [
"LogitsWarper/LogitsProcessor.swift",
"LogitsWarper/LogitsWarper.swift",
"LogitsWarper/RepetitionPenaltyWarper.swift",
"LogitsWarper/TemperatureLogitsWarper.swift",
"LogitsWarper/TopKLogitsWarper.swift",
"LogitsWarper/TopPLogitsWarper.swift",
"MLMultiArray+Utils.swift",
"MLShapedArray+Utils.swift",
"Math.swift",
"Weights.swift"
],
"type" : "library"
},
{
"c99name" : "PreTokenizerTests",
"module_type" : "SwiftTarget",
"name" : "PreTokenizerTests",
"path" : "Tests/PreTokenizerTests",
"sources" : [
"PreTokenizerTests.swift"
],
"target_dependencies" : [
"Tokenizers",
"Hub"
],
"type" : "test"
},
{
"c99name" : "PostProcessorTests",
"module_type" : "SwiftTarget",
"name" : "PostProcessorTests",
"path" : "Tests/PostProcessorTests",
"sources" : [
"PostProcessorTests.swift"
],
"target_dependencies" : [
"Tokenizers",
"Hub"
],
"type" : "test"
},
{
"c99name" : "NormalizerTests",
"module_type" : "SwiftTarget",
"name" : "NormalizerTests",
"path" : "Tests/NormalizerTests",
"sources" : [
"NormalizerTests.swift"
],
"target_dependencies" : [
"Tokenizers",
"Hub"
],
"type" : "test"
},
{
"c99name" : "Models",
"module_type" : "SwiftTarget",
"name" : "Models",
"path" : "Sources/Models",
"product_memberships" : [
"Transformers",
"transformers"
],
"sources" : [
"LanguageModel.swift",
"LanguageModelTypes.swift"
],
"target_dependencies" : [
"Tokenizers",
"Generation",
"TensorUtils"
],
"type" : "library"
},
{
"c99name" : "HubTests",
"module_type" : "SwiftTarget",
"name" : "HubTests",
"path" : "Tests/HubTests",
"product_dependencies" : [
"Jinja"
],
"sources" : [
"ConfigTests.swift",
"DownloaderTests.swift",
"HubApiTests.swift",
"HubTests.swift"
],
"target_dependencies" : [
"Hub"
],
"type" : "test"
},
{
"c99name" : "HubCLI",
"module_type" : "SwiftTarget",
"name" : "HubCLI",
"path" : "Sources/HubCLI",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"hub-cli"
],
"sources" : [
"HubCLI.swift"
],
"target_dependencies" : [
"Hub"
],
"type" : "executable"
},
{
"c99name" : "Hub",
"module_type" : "SwiftTarget",
"name" : "Hub",
"path" : "Sources/Hub",
"product_memberships" : [
"Transformers",
"transformers",
"hub-cli"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Hub/FallbackConfigs/gpt2_tokenizer_config.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Hub/FallbackConfigs/t5_tokenizer_config.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"BinaryDistinct.swift",
"Config.swift",
"Downloader.swift",
"Hub.swift",
"HubApi.swift"
],
"type" : "library"
},
{
"c99name" : "Generation",
"module_type" : "SwiftTarget",
"name" : "Generation",
"path" : "Sources/Generation",
"product_memberships" : [
"Transformers",
"transformers"
],
"sources" : [
"Generation.swift",
"GenerationConfig.swift"
],
"target_dependencies" : [
"Tokenizers",
"TensorUtils"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/huggingface/swift-transformers/main
Repository: huggingface/swift-transformers
Swift version used: 6.1
Target: Hub
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 4633b45fc732d8c55568be09dd852f9dc1582c25 -> FETCH_HEAD
HEAD is now at 4633b45 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Extracting symbol information for 'Hub'...
Finished extracting symbol information for 'Hub'. (3.61s)
Building documentation for 'Hub'...
warning: 'CustomStringConvertible' doesn't exist at '/Hub/BinaryDistinctString/description'
--> Sources/Hub/BinaryDistinct.swift:26:21-26:44
24 | }
25 |
26 + /// Satisfies ``CustomStringConvertible`` protocol.
27 | public var description: String {
28 | string
warning: 'ExpressibleByStringLiteral' doesn't exist at '/Hub/BinaryDistinctString/init(stringLiteral:)'
--> Sources/Hub/BinaryDistinct.swift:55:21-55:47
53 | }
54 |
55 + /// Satisfies ``ExpressibleByStringLiteral`` protocol.
56 | public init(stringLiteral value: String) {
57 | self.init(value)
warning: 'ExpressibleByStringLiteral' doesn't exist at '/Hub/BinaryDistinctCharacter/init(stringLiteral:)'
--> Sources/Hub/BinaryDistinct.swift:222:21-222:47
220 | }
221 |
222 + /// Satisfies ``ExpressibleByStringLiteral`` protocol.
223 | public init(stringLiteral value: String) {
224 | self.init(value)
warning: Parameter 'localDir' not found in instance method declaration
--> Sources/Hub/HubApi.swift:240:11-240:79
238 | ///
239 | /// - Parameters:
240 + /// - localDir: The local directory where metadata files are downloaded.
| ╰─suggestion: Remove 'localDir' parameter documentation
241 | /// - filePath: The path of the file for which metadata is being read.
242 | /// - Throws: An `EnvironmentError.invalidMetadataError` if the metadata file is invalid and cannot be removed.
warning: Parameter 'filePath' not found in instance method declaration
--> Sources/Hub/HubApi.swift:241:11-241:77
239 | /// - Parameters:
240 | /// - localDir: The local directory where metadata files are downloaded.
241 + /// - filePath: The path of the file for which metadata is being read.
| ╰─suggestion: Remove 'filePath' parameter documentation
242 | /// - Throws: An `EnvironmentError.invalidMetadataError` if the metadata file is invalid and cannot be removed.
243 | /// - Returns: A `LocalDownloadFileMetadata` object if the metadata file exists and is valid, or `nil` if the file is missing or invalid.
warning: Parameter 'metadataPath' is missing documentation
--> Sources/Hub/HubApi.swift:241:77-241:77
239 | /// - Parameters:
240 | /// - localDir: The local directory where metadata files are downloaded.
241 + /// - filePath: The path of the file for which metadata is being read.
| ╰─suggestion: Document 'metadataPath' parameter
242 | /// - Throws: An `EnvironmentError.invalidMetadataError` if the metadata file is invalid and cannot be removed.
243 | /// - Returns: A `LocalDownloadFileMetadata` object if the metadata file exists and is valid, or `nil` if the file is missing or invalid.
Finished building documentation for 'Hub' (0.26s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/huggingface/swift-transformers/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Updating https://github.com/apple/swift-argument-parser.git
Updated https://github.com/apple/swift-argument-parser.git (0.56s)
Updating https://github.com/johnmai-dev/Jinja
Updating https://github.com/apple/swift-collections.git
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.63s)
Updated https://github.com/johnmai-dev/Jinja (0.54s)
Updated https://github.com/apple/swift-collections.git (0.54s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.2.0 (1.61s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (0.46s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.51s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.4 (0.57s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.03s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.65s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.4
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/7] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit GenericConstraint.swift
[8/57] Compiling SymbolKit GenericParameter.swift
[9/57] Compiling SymbolKit Generics.swift
[10/57] Compiling SymbolKit Namespace.swift
[11/57] Compiling SymbolKit DeclarationFragments.swift
[12/57] Compiling SymbolKit Fragment.swift
[13/57] Compiling SymbolKit FragmentKind.swift
[14/57] Compiling SymbolKit FunctionParameter.swift
[15/57] Compiling SymbolKit FunctionSignature.swift
[16/57] Compiling SymbolKit Identifier.swift
[17/57] Compiling SymbolKit KindIdentifier.swift
[18/57] Compiling SymbolKit Location.swift
[19/57] Compiling SymbolKit Mutability.swift
[20/57] Compiling SymbolKit Names.swift
[21/57] Compiling SymbolKit SPI.swift
[22/57] Compiling SymbolKit Snippet.swift
[23/57] Compiling SymbolKit Extension.swift
[24/57] Compiling SymbolKit Mixin+Equals.swift
[25/57] Compiling SymbolKit Mixin+Hash.swift
[26/57] Compiling SymbolKit Mixin.swift
[27/57] Compiling SymbolKit LineList.swift
[28/57] Compiling SymbolKit Position.swift
[29/57] Compiling SymbolKit SourceRange.swift
[30/57] Compiling SymbolKit Metadata.swift
[31/57] Compiling SymbolKit Module.swift
[32/57] Compiling SymbolKit OperatingSystem.swift
[33/57] Compiling SymbolKit Platform.swift
[34/57] Compiling SymbolKit Relationship.swift
[35/57] Compiling SymbolKit RelationshipKind.swift
[36/57] Compiling SymbolKit SourceOrigin.swift
[37/57] Compiling SymbolKit GenericConstraints.swift
[38/57] Compiling SymbolKit Swift.swift
[39/57] Compiling SymbolKit SemanticVersion.swift
[40/57] Compiling SymbolKit AccessControl.swift
[41/57] Compiling SymbolKit Availability.swift
[42/57] Compiling SymbolKit AvailabilityItem.swift
[43/57] Compiling SymbolKit Domain.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets Snippet.swift
[53/57] Emitting module Snippets
[54/57] Compiling Snippets SnippetParser.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.19s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/8] Compiling Hub resource_bundle_accessor.swift
[3/8] Compiling Hub Hub.swift
[4/8] Compiling Hub Config.swift
[5/8] Compiling Hub Downloader.swift
[6/8] Compiling Hub BinaryDistinct.swift
[7/8] Emitting module Hub
[8/8] Compiling Hub HubApi.swift
Build of target: 'Hub' complete! (1.38s)
Target: Tokenizers
Extracting symbol information for 'Tokenizers'...
Finished extracting symbol information for 'Tokenizers'. (3.73s)
Building documentation for 'Tokenizers'...
Finished building documentation for 'Tokenizers' (0.16s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/huggingface/swift-transformers/main
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
Build of product 'snippet-extract' complete! (0.41s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/15] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[3/15] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[4/16] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[5/16] Compiling InternalCollectionsUtilities Descriptions.swift
[6/16] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[7/16] Compiling InternalCollectionsUtilities Debugging.swift
[8/16] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[9/16] Compiling InternalCollectionsUtilities _SortedCollection.swift
[10/16] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[11/16] Compiling InternalCollectionsUtilities UInt+reversed.swift
[12/16] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[13/16] Compiling InternalCollectionsUtilities Integer rank.swift
[14/16] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[15/16] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[16/16] Emitting module InternalCollectionsUtilities
[17/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[18/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[19/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[20/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[21/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[22/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[23/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[24/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[25/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[26/72] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[27/72] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[28/72] Compiling OrderedCollections OrderedSet+Sendable.swift
[29/78] Compiling OrderedCollections OrderedSet+Hashable.swift
[30/78] Compiling OrderedCollections OrderedSet+Initializers.swift
[31/78] Compiling OrderedCollections OrderedSet+Insertions.swift
[32/78] Compiling OrderedCollections OrderedSet+Invariants.swift
[33/78] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[34/78] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[35/78] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[36/78] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[37/78] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[38/78] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[39/78] Compiling OrderedCollections OrderedDictionary+Values.swift
[40/78] Compiling OrderedCollections OrderedDictionary.swift
[41/78] Compiling OrderedCollections OrderedSet+SubSequence.swift
[42/78] Compiling OrderedCollections OrderedSet+Testing.swift
[43/78] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[44/78] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[45/78] Compiling OrderedCollections OrderedSet.swift
[46/78] Compiling OrderedCollections _UnsafeBitset.swift
[47/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[48/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[49/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[50/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[51/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[52/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[53/78] Compiling OrderedCollections _HashTable+Bucket.swift
[54/78] Compiling OrderedCollections _HashTable+BucketIterator.swift
[55/78] Compiling OrderedCollections _HashTable+Constants.swift
[56/78] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[57/78] Compiling OrderedCollections _HashTable+Testing.swift
[58/78] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[59/78] Compiling OrderedCollections _HashTable.swift
[60/78] Compiling OrderedCollections _Hashtable+Header.swift
[61/78] Compiling OrderedCollections OrderedDictionary+Codable.swift
[62/78] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[63/78] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[64/78] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[65/78] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[66/78] Compiling OrderedCollections OrderedDictionary+Elements.swift
[67/78] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[68/78] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[69/78] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[70/78] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[71/78] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[72/78] Compiling OrderedCollections OrderedSet+Codable.swift
[73/78] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[74/78] Compiling OrderedCollections OrderedSet+Descriptions.swift
[75/78] Compiling OrderedCollections OrderedSet+Diffing.swift
[76/78] Compiling OrderedCollections OrderedSet+Equatable.swift
[77/78] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[78/78] Emitting module OrderedCollections
[79/88] Compiling Jinja Utilities.swift
[80/88] Compiling Jinja Parser.swift
[81/88] Compiling Jinja StringExtension.swift
[82/88] Compiling Jinja Runtime.swift
[83/88] Compiling Jinja Template.swift
[84/88] Compiling Jinja Lexer.swift
[85/88] Compiling Jinja Error.swift
[86/88] Emitting module Jinja
[87/88] Compiling Jinja Ast.swift
[88/88] Compiling Jinja Environment.swift
[89/100] Compiling Tokenizers UnigramTokenizer.swift
[90/101] Compiling Tokenizers Trie.swift
[91/101] Compiling Tokenizers TokenLattice.swift
[92/101] Compiling Tokenizers Tokenizer.swift
[93/101] Compiling Tokenizers PostProcessor.swift
[94/101] Compiling Tokenizers Normalizer.swift
[95/101] Compiling Tokenizers BPETokenizer.swift
[96/101] Compiling Tokenizers BertTokenizer.swift
[97/101] Compiling Tokenizers ByteEncoder.swift
[98/101] Compiling Tokenizers Decoder.swift
[99/101] Emitting module Tokenizers
[100/101] Compiling Tokenizers PreTokenizer.swift
[101/101] Compiling Tokenizers Utils.swift
Build of target: 'Tokenizers' complete! (3.56s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/huggingface/swift-transformers/main/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/huggingface/swift-transformers/main/linkable-paths.json
Target: TensorUtils
Extracting symbol information for 'TensorUtils'...
Finished extracting symbol information for 'TensorUtils'. (3.01s)
Building documentation for 'TensorUtils'...
Finished building documentation for 'TensorUtils' (0.08s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/huggingface/swift-transformers/main
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
Build of product 'snippet-extract' complete! (0.38s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/11] Compiling TensorUtils MLShapedArray+Utils.swift
[3/11] Compiling TensorUtils TopPLogitsWarper.swift
[4/11] Compiling TensorUtils RepetitionPenaltyWarper.swift
[5/11] Compiling TensorUtils MLMultiArray+Utils.swift
[6/11] Compiling TensorUtils TemperatureLogitsWarper.swift
[7/11] Compiling TensorUtils TopKLogitsWarper.swift
[8/11] Compiling TensorUtils LogitsProcessor.swift
[9/11] Compiling TensorUtils Math.swift
[10/11] Emitting module TensorUtils
[11/11] Compiling TensorUtils LogitsWarper.swift
[12/12] Compiling TensorUtils Weights.swift
Build of target: 'TensorUtils' complete! (1.29s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/huggingface/swift-transformers/main/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/huggingface/swift-transformers/main/linkable-paths.json
Target: Generation
Extracting symbol information for 'Generation'...
Finished extracting symbol information for 'Generation'. (0.93s)
Building documentation for 'Generation'...
Finished building documentation for 'Generation' (0.06s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/huggingface/swift-transformers/main
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
Build of product 'snippet-extract' complete! (0.41s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/4] Compiling Generation GenerationConfig.swift
[3/4] Emitting module Generation
[4/4] Compiling Generation Generation.swift
Build of target: 'Generation' complete! (0.79s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/huggingface/swift-transformers/main/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/huggingface/swift-transformers/main/linkable-paths.json
Target: Models
Extracting symbol information for 'Models'...
Finished extracting symbol information for 'Models'. (1.02s)
Building documentation for 'Models'...
Finished building documentation for 'Models' (0.07s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/huggingface/swift-transformers/main
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
Build of product 'snippet-extract' complete! (0.41s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/4] Compiling Models LanguageModelTypes.swift
[3/4] Compiling Models LanguageModel.swift
[4/4] Emitting module Models
Build of target: 'Models' complete! (0.87s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/huggingface/swift-transformers/main/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/huggingface/swift-transformers/main/linkable-paths.json
1484
9 /Users/admin/builder/spi-builder-workspace/.docs/huggingface/swift-transformers/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/huggingface/swift-transformers/main
File count: 1484
Doc size: 9.0MB
Preparing doc bundle ...
Uploading prod-huggingface-swift-transformers-main-41fb7f24.zip to s3://spi-docs-inbox/prod-huggingface-swift-transformers-main-41fb7f24.zip
Copying... [10%]
Copying... [20%]
Copying... [31%]
Copying... [41%]
Copying... [51%]
Copying... [61%]
Copying... [72%]
Copying... [82%]
Copying... [92%]
Copying... [100%]
Done.