The Swift Package Index logo.Swift Package Index

Build Information

Successful build of swift-transformers, reference main (4a606f), with Swift 6.1 for Android on 30 May 2025 22:30:16 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ensan-hcl/swift-tokenizers.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ensan-hcl/swift-tokenizers
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4a606f6 Merge pull request #1 from ensan-hcl/feat/minimum
Cloned https://github.com/ensan-hcl/swift-tokenizers.git
Revision (git rev-parse @):
4a606f66e0cc4d7d9f0197649e812f7fc86a4c34
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ensan-hcl/swift-tokenizers.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ensan-hcl/swift-tokenizers.git
https://github.com/ensan-hcl/swift-tokenizers.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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.1.0",
            "upper_bound" : "1.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/johnmai-dev/Jinja"
    }
  ],
  "manifest_display_name" : "swift-transformers",
  "name" : "swift-transformers",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Transformers",
      "targets" : [
        "Tokenizers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TokenizersTests",
      "module_type" : "SwiftTarget",
      "name" : "TokenizersTests",
      "path" : "Tests/TokenizersTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/basic_tokenized_questions.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/bert_uncased_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/dev-v1.1.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/distilbert_cased_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/falcon_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/gemma_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/gpt2_encoded_tokens.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/llama_3.2_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/llama_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/question_tokens.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/t5_base_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/tokenized_questions.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/tokenizer_tests.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/whisper_large_v2_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/whisper_tiny_en_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/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",
        "Hub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Tokenizers",
      "module_type" : "SwiftTarget",
      "name" : "Tokenizers",
      "path" : "Sources/Tokenizers",
      "product_dependencies" : [
        "Jinja"
      ],
      "product_memberships" : [
        "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" : "PreTokenizerTests",
      "module_type" : "SwiftTarget",
      "name" : "PreTokenizerTests",
      "path" : "Tests/PreTokenizerTests",
      "sources" : [
        "PreTokenizerTests.swift"
      ],
      "target_dependencies" : [
        "Tokenizers",
        "Hub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HubTests",
      "module_type" : "SwiftTarget",
      "name" : "HubTests",
      "path" : "Tests/HubTests",
      "sources" : [
        "HubApiTests.swift",
        "HubTests.swift"
      ],
      "target_dependencies" : [
        "Hub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hub",
      "module_type" : "SwiftTarget",
      "name" : "Hub",
      "path" : "Sources/Hub",
      "product_memberships" : [
        "Transformers"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/Hub/FallbackConfigs/gpt2_tokenizer_config.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/Hub/FallbackConfigs/t5_tokenizer_config.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Downloader.swift",
        "Hub.swift",
        "HubApi.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git
[8/393] Fetching jinja
Fetched https://github.com/johnmai-dev/Jinja from cache (0.33s)
[1/15386] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.88s)
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.38s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.1.2 (1.50s)
Fetching https://github.com/apple/swift-collections.git
[1/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.54s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (2.42s)
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.1.2
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/9] Write sources
[2/9] Copying gpt2_tokenizer_config.json
[3/9] Copying t5_tokenizer_config.json
[4/9] Write sources
[8/9] Write swift-version-24593BA9C3E375BF.txt
[10/28] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[11/28] Compiling InternalCollectionsUtilities UInt+reversed.swift
[12/29] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[13/29] Compiling InternalCollectionsUtilities Debugging.swift
[14/29] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[15/29] Compiling InternalCollectionsUtilities _SortedCollection.swift
[16/29] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[17/29] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[18/29] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[19/29] Compiling InternalCollectionsUtilities Descriptions.swift
[20/29] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[21/29] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[22/29] Emitting module InternalCollectionsUtilities
[23/29] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[24/29] Compiling InternalCollectionsUtilities Integer rank.swift
[26/85] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[27/85] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[28/85] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[29/85] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[30/85] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[31/85] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[32/85] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[33/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[34/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[35/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[36/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[37/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[38/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[39/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[40/92] Compiling OrderedCollections OrderedSet+Initializers.swift
[41/92] Compiling OrderedCollections OrderedSet+Insertions.swift
[42/92] Compiling OrderedCollections OrderedSet+Invariants.swift
[43/92] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[44/92] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[45/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[46/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[47/92] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[48/92] Compiling OrderedCollections OrderedDictionary.swift
[49/92] Compiling OrderedCollections OrderedSet+Codable.swift
[50/92] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[51/92] Compiling OrderedCollections OrderedSet+Descriptions.swift
[52/92] Compiling OrderedCollections OrderedSet+Diffing.swift
[53/92] Compiling OrderedCollections OrderedSet+Equatable.swift
[54/92] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[55/92] Compiling OrderedCollections OrderedSet+Hashable.swift
[56/92] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[57/92] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[58/92] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[59/92] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[60/92] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[61/92] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[62/92] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[63/92] Compiling OrderedCollections OrderedDictionary+Values.swift
[64/92] Compiling OrderedCollections OrderedDictionary+Codable.swift
[65/92] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[66/92] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[67/92] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[68/92] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[69/92] Compiling OrderedCollections OrderedDictionary+Elements.swift
[70/92] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[71/92] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[72/92] Compiling OrderedCollections _HashTable+Bucket.swift
[73/92] Compiling OrderedCollections _HashTable+BucketIterator.swift
[74/92] Compiling OrderedCollections _HashTable+Constants.swift
[75/92] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[76/92] Compiling OrderedCollections _HashTable+Testing.swift
[77/92] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[78/92] Compiling OrderedCollections _HashTable.swift
[79/92] Compiling OrderedCollections _Hashtable+Header.swift
[80/92] Emitting module OrderedCollections
[81/92] Compiling OrderedCollections OrderedSet+Sendable.swift
[82/92] Compiling OrderedCollections OrderedSet+SubSequence.swift
[83/92] Compiling OrderedCollections OrderedSet+Testing.swift
[84/92] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[85/92] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[86/92] Compiling OrderedCollections OrderedSet.swift
[87/92] Compiling OrderedCollections _UnsafeBitset.swift
[89/102] Emitting module Hub
/host/spi-builder-workspace/Sources/Hub/Hub.swift:113:17: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
105 |
106 | public class LanguageModelConfigurationFromHub {
107 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
108 |         var modelConfig: Config
109 |         var tokenizerConfig: Config?
    :
111 |     }
112 |
113 |     private var configPromise: Task<Configurations, Error>? = nil
    |                 `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 |
115 |     public init(
/host/spi-builder-workspace/Sources/Hub/HubApi.swift:31: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
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
    :
 29 |     }
 30 |
 31 |     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
 32 | }
 33 |
[90/102] Compiling Hub resource_bundle_accessor.swift
[91/102] Compiling Jinja Template.swift
[92/103] Compiling Hub HubApi.swift
/host/spi-builder-workspace/Sources/Hub/HubApi.swift:31: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
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
    :
 29 |     }
 30 |
 31 |     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
 32 | }
 33 |
[93/103] Compiling Hub Downloader.swift
[94/103] Compiling Hub Hub.swift
/host/spi-builder-workspace/Sources/Hub/Hub.swift:113:17: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
105 |
106 | public class LanguageModelConfigurationFromHub {
107 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
108 |         var modelConfig: Config
109 |         var tokenizerConfig: Config?
    :
111 |     }
112 |
113 |     private var configPromise: Task<Configurations, Error>? = nil
    |                 `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 |
115 |     public init(
/host/spi-builder-workspace/Sources/Hub/Hub.swift:119:30: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
105 |
106 | public class LanguageModelConfigurationFromHub {
107 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
108 |         var modelConfig: Config
109 |         var tokenizerConfig: Config?
    :
117 |         hubApi: HubApi = .shared
118 |     ) {
119 |         self.configPromise = Task {
    |                              `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
120 |             return try await self.loadConfig(modelFolder: modelFolder, hubApi: hubApi)
121 |         }
/host/spi-builder-workspace/Sources/Hub/Hub.swift:119:30: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
105 |
106 | public class LanguageModelConfigurationFromHub {
107 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
108 |         var modelConfig: Config
109 |         var tokenizerConfig: Config?
    :
117 |         hubApi: HubApi = .shared
118 |     ) {
119 |         self.configPromise = Task {
    |                              `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
120 |             return try await self.loadConfig(modelFolder: modelFolder, hubApi: hubApi)
121 |         }
/host/spi-builder-workspace/Sources/Hub/Hub.swift:126:38: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
105 |
106 | public class LanguageModelConfigurationFromHub {
107 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
108 |         var modelConfig: Config
109 |         var tokenizerConfig: Config?
    :
124 |     public var modelConfig: Config {
125 |         get async throws {
126 |             try await configPromise!.value.modelConfig
    |                                      `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 |         }
128 |     }
/host/spi-builder-workspace/Sources/Hub/Hub.swift:132:57: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
105 |
106 | public class LanguageModelConfigurationFromHub {
107 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
108 |         var modelConfig: Config
109 |         var tokenizerConfig: Config?
    :
130 |     public var tokenizerConfig: Config? {
131 |         get async throws {
132 |             if let hubConfig = try await configPromise!.value.tokenizerConfig {
    |                                                         `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 |                 // Try to guess the class if it's not present and the modelType is
134 |                 if let _ = hubConfig.tokenizerClass?.stringValue { return hubConfig }
/host/spi-builder-workspace/Sources/Hub/Hub.swift:157:38: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
105 |
106 | public class LanguageModelConfigurationFromHub {
107 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
108 |         var modelConfig: Config
109 |         var tokenizerConfig: Config?
    :
155 |     public var tokenizerData: Config {
156 |         get async throws {
157 |             try await configPromise!.value.tokenizerData
    |                                      `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 |         }
159 |     }
/host/spi-builder-workspace/Sources/Hub/Hub.swift:119: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
117 |         hubApi: HubApi = .shared
118 |     ) {
119 |         self.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
120 |             return try await self.loadConfig(modelFolder: modelFolder, hubApi: hubApi)
    |                              `- note: closure captures 'self' which is accessible to code in the current task
121 |         }
122 |     }
[96/104] Emitting module Jinja
[97/104] Compiling Jinja Error.swift
[98/104] Compiling Jinja StringExtension.swift
[99/104] Compiling Jinja Lexer.swift
[100/104] Compiling Jinja Utilities.swift
[101/104] Compiling Jinja Parser.swift
[102/104] Compiling Jinja Runtime.swift
[103/104] Compiling Jinja Ast.swift
[104/104] Compiling Jinja Environment.swift
[106/117] Compiling Tokenizers Trie.swift
[107/118] Compiling Tokenizers UnigramTokenizer.swift
[108/118] Compiling Tokenizers Utils.swift
[109/118] Compiling Tokenizers PreTokenizer.swift
[110/118] Compiling Tokenizers TokenLattice.swift
[111/118] Emitting module Tokenizers
[112/118] Compiling Tokenizers BPETokenizer.swift
[113/118] Compiling Tokenizers BertTokenizer.swift
[114/118] Compiling Tokenizers Normalizer.swift
[115/118] Compiling Tokenizers PostProcessor.swift
[116/118] Compiling Tokenizers ByteEncoder.swift
[117/118] Compiling Tokenizers Decoder.swift
[118/118] Compiling Tokenizers Tokenizer.swift
Build complete! (39.54s)
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.1.0",
            "upper_bound" : "1.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/johnmai-dev/Jinja"
    }
  ],
  "manifest_display_name" : "swift-transformers",
  "name" : "swift-transformers",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Transformers",
      "targets" : [
        "Tokenizers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TokenizersTests",
      "module_type" : "SwiftTarget",
      "name" : "TokenizersTests",
      "path" : "Tests/TokenizersTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/basic_tokenized_questions.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/bert_uncased_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/dev-v1.1.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/distilbert_cased_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/falcon_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/gemma_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/gpt2_encoded_tokens.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/llama_3.2_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/llama_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/question_tokens.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/t5_base_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/tokenized_questions.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/tokenizer_tests.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/whisper_large_v2_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TokenizersTests/Resources/whisper_tiny_en_encoded.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/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",
        "Hub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Tokenizers",
      "module_type" : "SwiftTarget",
      "name" : "Tokenizers",
      "path" : "Sources/Tokenizers",
      "product_dependencies" : [
        "Jinja"
      ],
      "product_memberships" : [
        "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" : "PreTokenizerTests",
      "module_type" : "SwiftTarget",
      "name" : "PreTokenizerTests",
      "path" : "Tests/PreTokenizerTests",
      "sources" : [
        "PreTokenizerTests.swift"
      ],
      "target_dependencies" : [
        "Tokenizers",
        "Hub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HubTests",
      "module_type" : "SwiftTarget",
      "name" : "HubTests",
      "path" : "Tests/HubTests",
      "sources" : [
        "HubApiTests.swift",
        "HubTests.swift"
      ],
      "target_dependencies" : [
        "Hub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hub",
      "module_type" : "SwiftTarget",
      "name" : "Hub",
      "path" : "Sources/Hub",
      "product_memberships" : [
        "Transformers"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/Hub/FallbackConfigs/gpt2_tokenizer_config.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/Hub/FallbackConfigs/t5_tokenizer_config.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Downloader.swift",
        "Hub.swift",
        "HubApi.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.