The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of swift-transformers, reference main (89fb5d), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 11:57:46 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ashvardanian/swift-transformers.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ashvardanian/swift-transformers
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 89fb5d9 Fix: UTF8 support in Unigram tokenizer
Cloned https://github.com/ashvardanian/swift-transformers.git
Revision (git rev-parse @):
89fb5d97e1df347f9f588f62fc538dcad6fdb16c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ashvardanian/swift-transformers.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ashvardanian/swift-transformers.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/21] Write sources
[5/21] Write transformers-entitlement.plist
[6/21] Write sources
[9/21] Write hub-cli-entitlement.plist
[9/21] Write sources
[12/21] Copying t5_tokenizer_config.json
[13/21] Copying gpt2_tokenizer_config.json
[14/21] Write swift-version-1EA4D86E10B52AF.txt
[16/37] Emitting module ArgumentParserToolInfo
[17/37] Compiling ArgumentParserToolInfo ToolInfo.swift
[18/75] Compiling ArgumentParser AsyncParsableCommand.swift
[19/75] Compiling ArgumentParser CommandConfiguration.swift
[20/75] Compiling ArgumentParser EnumerableFlag.swift
[21/75] Compiling ArgumentParser ExpressibleByArgument.swift
[22/79] Emitting module ArgumentParser
[23/79] Compiling ArgumentParser Platform.swift
[24/79] Compiling ArgumentParser SequenceExtensions.swift
[25/79] Compiling ArgumentParser StringExtensions.swift
[26/79] Compiling ArgumentParser Tree.swift
[27/79] Compiling ArgumentParser BashCompletionsGenerator.swift
[28/79] Compiling ArgumentParser CompletionsGenerator.swift
[29/79] Compiling ArgumentParser FishCompletionsGenerator.swift
[30/79] Compiling ArgumentParser ZshCompletionsGenerator.swift
[31/79] Compiling ArgumentParser Argument.swift
[32/79] Compiling Hub Hub.swift
[33/79] Compiling Hub resource_bundle_accessor.swift
[34/79] Compiling ArgumentParser Flag.swift
[35/79] Compiling ArgumentParser NameSpecification.swift
[36/79] Compiling ArgumentParser Option.swift
[37/79] Compiling ArgumentParser OptionGroup.swift
[38/79] Compiling ArgumentParser InputOrigin.swift
[39/79] Compiling ArgumentParser Name.swift
[40/79] Compiling ArgumentParser Parsed.swift
[41/79] Compiling ArgumentParser ParsedValues.swift
[42/79] Compiling ArgumentParser ArgumentHelp.swift
[43/79] Compiling ArgumentParser ArgumentVisibility.swift
[44/79] Compiling ArgumentParser CompletionKind.swift
[45/79] Compiling ArgumentParser Errors.swift
[46/79] Compiling ArgumentParser ParsableArguments.swift
[47/79] Compiling ArgumentParser ParsableArgumentsValidation.swift
[48/79] Compiling ArgumentParser ParsableCommand.swift
[49/79] Compiling ArgumentParser ArgumentDecoder.swift
[50/79] Compiling ArgumentParser HelpGenerator.swift
[51/79] Compiling ArgumentParser MessageInfo.swift
[52/79] Compiling ArgumentParser UsageGenerator.swift
[53/79] Compiling ArgumentParser CollectionExtensions.swift
[54/79] Compiling Hub HubApi.swift
[55/79] Emitting module Hub
[56/79] Compiling Hub Downloader.swift
[57/91] Compiling ArgumentParser ParserError.swift
[58/91] Compiling ArgumentParser SplitArguments.swift
[59/91] Compiling ArgumentParser DumpHelpGenerator.swift
[60/91] Compiling ArgumentParser HelpCommand.swift
[61/91] Compiling ArgumentParser ArgumentDefinition.swift
[62/91] Compiling ArgumentParser ArgumentSet.swift
[63/91] Compiling ArgumentParser CommandParser.swift
[64/91] Compiling ArgumentParser InputKey.swift
[65/93] Compiling Tokenizers Trie.swift
[66/94] Compiling Tokenizers UnigramTokenizer.swift
[67/94] Compiling Tokenizers TokenLattice.swift
[68/94] Compiling Tokenizers Tokenizer.swift
[69/94] Compiling Tokenizers Utils.swift
[70/94] Compiling HubCLI HubCLI.swift
[71/94] Emitting module HubCLI
[71/94] Write Objects.LinkFileList
[73/94] Compiling Tokenizers PostProcessor.swift
[74/94] Compiling Tokenizers PreTokenizer.swift
[75/94] Compiling Tokenizers Normalizer.swift
[76/94] Compiling Tokenizers ByteEncoder.swift
[77/94] Compiling Tokenizers Decoder.swift
[78/94] Compiling Tokenizers BPETokenizer.swift
[79/94] Compiling Tokenizers BertTokenizer.swift
[80/94] Emitting module Tokenizers
[81/94] Compiling TensorUtils TemperatureLogitsWarper.swift
[82/94] Compiling TensorUtils LogitsProcessor.swift
[83/94] Emitting module TensorUtils
[84/94] Compiling TensorUtils LogitsWarper.swift
[85/94] Compiling TensorUtils MLShapedArray+Utils.swift
[86/94] Compiling TensorUtils TopPLogitsWarper.swift
[87/94] Compiling TensorUtils TopKLogitsWarper.swift
[88/94] Compiling TensorUtils MLMultiArray+Utils.swift
[89/94] Compiling TensorUtils Math.swift
[89/94] Linking hub-cli
[90/97] Applying hub-cli
[92/97] Emitting module Generation
[93/97] Compiling Generation Generation.swift
[94/97] Compiling Generation GenerationConfig.swift
[95/100] Compiling Models LanguageModelTypes.swift
[96/100] Emitting module Models
/Users/admin/builder/spi-builder-workspace/Sources/Models/LanguageModel.swift:215:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
213 | }
214 |
215 | extension String: Error {}
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
216 |
[97/100] Compiling Models LanguageModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Models/LanguageModel.swift:215:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
213 | }
214 |
215 | extension String: Error {}
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
216 |
[98/102] Compiling TransformersCLI main.swift
[99/102] Emitting module TransformersCLI
[99/102] Write Objects.LinkFileList
[100/102] Linking transformers
[101/102] Applying transformers
Build complete! (15.06s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.61s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (2.11s)
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.3.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "exact" : [
          "1.3.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    }
  ],
  "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/dev-v1.1.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/gpt2_encoded_tokens.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" : [
        "BertTokenizerTests.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_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",
      "sources" : [
        "LogitsWarperTests.swift",
        "TensorUtilsTests.swift",
        "TestUtils.swift"
      ],
      "target_dependencies" : [
        "TensorUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TensorUtils",
      "module_type" : "SwiftTarget",
      "name" : "TensorUtils",
      "path" : "Sources/TensorUtils",
      "product_memberships" : [
        "Transformers",
        "transformers"
      ],
      "sources" : [
        "LogitsWarper/LogitsProcessor.swift",
        "LogitsWarper/LogitsWarper.swift",
        "LogitsWarper/TemperatureLogitsWarper.swift",
        "LogitsWarper/TopKLogitsWarper.swift",
        "LogitsWarper/TopPLogitsWarper.swift",
        "MLMultiArray+Utils.swift",
        "MLShapedArray+Utils.swift",
        "Math.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",
      "sources" : [
        "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" : [
        "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"
}
Done.