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 mlx-libraries, reference main (fc3afc), with Swift 6.2 for macOS (SPM) on 12 Dec 2025 01:57:59 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-examples.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ml-explore/mlx-swift-examples
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fc3afc7 Update LLMEval example (#452)
Cloned https://github.com/ml-explore/mlx-swift-examples.git
Revision (git rev-parse @):
fc3afc7cdbc4b6120d210c4c58c6b132ce346775
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-examples.git at main
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/huggingface/swift-jinja.git
[1/783] Fetching swift-jinja
[9/2340] Fetching swift-jinja, gzipswift
[243/8724] Fetching swift-jinja, gzipswift, swift-numerics
[307/13876] Fetching swift-jinja, gzipswift, swift-numerics, swift-transformers
[1793/26105] Fetching swift-jinja, gzipswift, swift-numerics, swift-transformers, mlx-swift
[2326/44483] Fetching swift-jinja, gzipswift, swift-numerics, swift-transformers, mlx-swift, swift-collections
Fetched https://github.com/huggingface/swift-transformers from cache (1.41s)
Fetched https://github.com/apple/swift-numerics from cache (1.41s)
[15868/32947] Fetching swift-jinja, gzipswift, mlx-swift, swift-collections
Fetched https://github.com/ml-explore/mlx-swift from cache (1.71s)
Fetched https://github.com/huggingface/swift-jinja.git from cache (1.71s)
Fetched https://github.com/apple/swift-collections.git from cache (1.90s)
Fetched https://github.com/1024jp/GzipSwift from cache (1.90s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (4.85s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.1 (0.56s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (0.60s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.1.0 (0.58s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.68s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.65s)
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/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.1.0
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.29.1
========================================
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": "mlx-swift-examples",
      "name": "mlx-libraries",
      "url": "https://github.com/ml-explore/mlx-swift-examples.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/mlx-swift-examples",
      "dependencies": [
        {
          "identity": "mlx-swift",
          "name": "mlx-swift",
          "url": "https://github.com/ml-explore/mlx-swift",
          "version": "0.29.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/mlx-swift",
          "dependencies": [
            {
              "identity": "swift-numerics",
              "name": "swift-numerics",
              "url": "https://github.com/apple/swift-numerics",
              "version": "1.1.1",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "swift-transformers",
          "name": "swift-transformers",
          "url": "https://github.com/huggingface/swift-transformers",
          "version": "1.1.5",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-transformers",
          "dependencies": [
            {
              "identity": "swift-jinja",
              "name": "Jinja",
              "url": "https://github.com/huggingface/swift-jinja.git",
              "version": "2.2.0",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-jinja",
              "dependencies": [
                {
                  "identity": "swift-collections",
                  "name": "swift-collections",
                  "url": "https://github.com/apple/swift-collections.git",
                  "version": "1.3.0",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
                  "dependencies": [
                  ]
                }
              ]
            },
            {
              "identity": "swift-collections",
              "name": "swift-collections",
              "url": "https://github.com/apple/swift-collections.git",
              "version": "1.3.0",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "gzipswift",
          "name": "Gzip",
          "url": "https://github.com/1024jp/GzipSwift",
          "version": "6.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GzipSwift",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ml-explore/mlx-swift-examples.git
[1/7269] Fetching mlx-swift-examples
Fetched https://github.com/ml-explore/mlx-swift-examples.git from cache (1.42s)
Fetching https://github.com/1024jp/GzipSwift from cache
Fetching https://github.com/huggingface/swift-transformers from cache
Fetching https://github.com/ml-explore/mlx-swift from cache
Fetched https://github.com/1024jp/GzipSwift from cache (0.51s)
Fetched https://github.com/ml-explore/mlx-swift from cache (0.55s)
Fetched https://github.com/huggingface/swift-transformers from cache (0.55s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (0.61s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (0.03s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (0.61s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.5 (1.21s)
Fetching https://github.com/huggingface/swift-jinja.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.59s)
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.59s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.13s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.2.0 (0.03s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.56s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.29.1
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.2.0
Creating working copy for https://github.com/ml-explore/mlx-swift-examples.git
Working copy of https://github.com/ml-explore/mlx-swift-examples.git resolved at main (fc3afc7)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.1.5
warning: '.resolve-product-dependencies': dependency 'mlx-swift-examples' is not used by any target
Found 3 product dependencies
  - mlx-swift
  - swift-transformers
  - Gzip
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift-examples.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/188] Write sources
[12/188] Copying t5_tokenizer_config.json
[13/188] Write sources
[13/188] Copying gpt2_tokenizer_config.json
[13/188] Write sources
[20/188] Write swift-version-49B95AFC49DCD68C.txt
[21/188] Compiling system-zlib anchor.c
[21/188] Compiling _NumericsShims _NumericsShims.c
[23/188] Compiling version.cpp
[25/212] Emitting module RealModule
[26/213] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[27/213] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[28/214] Compiling RealModule AlgebraicField.swift
[29/214] Compiling RealModule RealFunctions.swift
[30/214] Compiling RealModule Float80+Real.swift
[31/214] Compiling RealModule Real.swift
[32/214] Compiling RealModule ApproximateEquality.swift
[33/214] Compiling RealModule Float16+Real.swift
[34/214] Compiling RealModule ElementaryFunctions.swift
[35/214] Compiling RealModule Float+Real.swift
[36/214] Compiling RealModule Double+Real.swift
[37/214] Compiling RealModule AugmentedArithmetic.swift
[38/214] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[39/216] Compiling InternalCollectionsUtilities Descriptions.swift
[40/216] Compiling InternalCollectionsUtilities Debugging.swift
[41/216] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[42/216] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[43/216] Compiling InternalCollectionsUtilities _SortedCollection.swift
[44/216] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[45/216] Compiling InternalCollectionsUtilities UInt+reversed.swift
[46/216] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[47/216] Compiling InternalCollectionsUtilities Integer rank.swift
[48/216] Emitting module InternalCollectionsUtilities
[49/216] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[50/216] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[50/221] Compiling utils.cpp
[51/221] Compiling scheduler.cpp
[53/221] Emitting module ComplexModule
[54/221] Compiling ComplexModule ElementaryFunctions.swift
[55/221] Compiling ComplexModule Arithmetic.swift
[56/221] Compiling ComplexModule Differentiable.swift
[57/221] Compiling ComplexModule Complex.swift
[57/277] Compiling random.cpp
[58/277] Compiling linalg.cpp
[60/279] Compiling OrderedCollections OrderedDictionary+Elements.swift
[61/279] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[62/279] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[63/279] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[64/279] Emitting module Numerics
[65/279] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[66/279] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[67/279] Compiling Numerics Numerics.swift
[68/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[69/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[70/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[71/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[72/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[73/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[74/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[75/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[76/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[77/279] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[78/279] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[79/279] Compiling OrderedCollections OrderedSet+Sendable.swift
[80/279] Compiling OrderedCollections _Hashtable+Header.swift
[81/279] Compiling OrderedCollections OrderedDictionary+Codable.swift
[82/279] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[83/279] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[84/279] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[85/279] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[86/279] Compiling OrderedCollections OrderedSet+Codable.swift
[87/279] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[88/279] Compiling OrderedCollections OrderedSet+Descriptions.swift
[89/279] Compiling OrderedCollections OrderedSet+Diffing.swift
[90/279] Compiling OrderedCollections OrderedSet+Equatable.swift
[91/279] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[92/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[93/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[94/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[95/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[96/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[97/279] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[98/279] Compiling OrderedCollections OrderedSet+Hashable.swift
[99/279] Compiling OrderedCollections OrderedSet+Initializers.swift
[100/279] Compiling OrderedCollections OrderedSet+Insertions.swift
[101/279] Compiling OrderedCollections OrderedSet+Invariants.swift
[102/279] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[103/279] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[104/279] Compiling OrderedCollections _HashTable+Bucket.swift
[105/279] Compiling OrderedCollections _HashTable+BucketIterator.swift
[106/279] Compiling OrderedCollections _HashTable+Constants.swift
[107/279] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[108/279] Compiling OrderedCollections _HashTable+Testing.swift
[109/279] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[110/279] Compiling OrderedCollections _HashTable.swift
[110/285] Compiling no_gguf.cpp
[112/285] Emitting module OrderedCollections
[113/285] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[114/285] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[115/285] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[116/285] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[117/285] Compiling OrderedCollections OrderedDictionary+Values.swift
[118/285] Compiling OrderedCollections OrderedDictionary.swift
[119/285] Compiling OrderedCollections OrderedSet+SubSequence.swift
[120/285] Compiling OrderedCollections OrderedSet+Testing.swift
[121/285] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[122/285] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[123/285] Compiling OrderedCollections OrderedSet.swift
[124/285] Compiling OrderedCollections _UnsafeBitset.swift
[124/285] Compiling load.cpp
[125/299] Compiling primitives.cpp
[126/299] Compiling transforms.cpp
[127/299] Compiling graph_utils.cpp
[128/299] Compiling fft.cpp
[129/299] Compiling safetensors.cpp
[130/299] Compiling dtype_utils.cpp
[131/299] Compiling dtype.cpp
[132/299] Compiling no_ring.cpp
[133/299] Compiling fast.cpp
[134/299] Compiling primitives.cpp
[135/299] Compiling device.cpp
[136/299] Compiling einsum.cpp
[137/299] Compiling no_nccl.cpp
[138/299] Compiling ops.cpp
[139/299] Compiling no_mpi.cpp
[140/299] Compiling distributed.cpp
[141/299] Compiling ops.cpp
[143/299] Compiling Gzip Data+Gzip.swift
[144/299] Emitting module Gzip
[145/299] Compiling Jinja Utilities.swift
[146/300] Compiling Jinja Tests.swift
[147/300] Compiling Jinja Template.swift
[148/300] Compiling Jinja PropertyMembers.swift
[149/300] Compiling Jinja Macro.swift
[150/300] Compiling Jinja Parser.swift
[151/300] Compiling Jinja Token.swift
[152/300] Compiling Jinja Value.swift
[153/300] Compiling Jinja Interpreter.swift
[154/300] Compiling Jinja Lexer.swift
[154/300] Compiling utils.cpp
[155/300] Compiling unary.cpp
[156/300] Compiling ternary.cpp
[157/300] Compiling sort.cpp
[158/300] Compiling softmax.cpp
[159/300] Compiling compile.cpp
[161/300] Compiling Jinja AST.swift
[162/300] Compiling Jinja Error.swift
[163/300] Emitting module Jinja
[164/300] Compiling Jinja Filters.swift
[165/300] Compiling Jinja Globals.swift
[165/300] Compiling scan.cpp
[166/300] Compiling slicing.cpp
[167/308] Compiling resident.cpp
[168/308] Compiling scaled_dot_product_attention.cpp
[169/308] Compiling rope.cpp
[170/308] Compiling metal.cpp
[171/308] Compiling reduce.cpp
[172/308] Compiling primitives.cpp
[173/308] Compiling normalization.cpp
[174/308] Compiling quantized.cpp
[175/308] Compiling export.cpp
[176/308] Compiling logsumexp.cpp
[177/308] Compiling event.cpp
[178/308] Compiling matmul.cpp
[179/308] Compiling fence.cpp
[180/308] Compiling hadamard.cpp
[181/308] Compiling jit_kernels.cpp
[182/308] Compiling indexing.cpp
[183/308] Compiling eval.cpp
[184/308] Compiling distributed.cpp
[186/308] Compiling Hub resource_bundle_accessor.swift
[187/308] Compiling Hub Hub.swift
[188/308] Compiling Hub JSONSerialization+BOM.swift
[189/308] Compiling Hub Downloader.swift
[190/308] Emitting module Hub
[191/308] Compiling Hub BinaryDistinct.swift
[192/308] Compiling Hub Config.swift
[193/308] Compiling Hub HubApi.swift
[193/308] Compiling fft.cpp
[194/321] Compiling copy.cpp
[196/321] Compiling Tokenizers Trie.swift
[197/321] Compiling Tokenizers UnigramTokenizer.swift
[198/322] Compiling Tokenizers Utils.swift
[198/322] Compiling slicing.cpp
[200/322] Compiling Tokenizers TokenLattice.swift
[201/322] Compiling Tokenizers String+PreTokenization.swift
[202/322] Compiling Tokenizers PreTokenizer.swift
[203/322] Compiling Tokenizers Normalizer.swift
[204/322] Compiling Tokenizers PostProcessor.swift
[205/322] Compiling Tokenizers ByteEncoder.swift
[206/322] Compiling Tokenizers Decoder.swift
[207/322] Emitting module Tokenizers
[208/322] Compiling Tokenizers BPETokenizer.swift
[209/322] Compiling Tokenizers BertTokenizer.swift
[210/322] Compiling Tokenizers Tokenizer.swift
[210/322] Compiling binary.cpp
[211/322] Compiling conv.cpp
[212/322] Compiling compiled.cpp
[213/322] Compiling threefry.cpp
[214/332] Compiling device.cpp
[215/332] Compiling allocator.cpp
[216/332] Compiling primitives.cpp
[217/332] Compiling custom_kernel.cpp
[218/332] Compiling no_cuda.cpp
[219/332] Compiling copy.cpp
[220/332] Compiling select.cpp
[221/332] Compiling softmax.cpp
[223/332] Compiling Generation TopPLogitsWarper.swift
[224/332] Compiling Generation TemperatureLogitsWarper.swift
[225/332] Compiling Generation TopKLogitsWarper.swift
[226/332] Compiling Generation MinPLogitsWarper.swift
[227/332] Compiling Generation LogitsProcessor.swift
[228/332] Compiling Generation GenerationConfig.swift
[229/332] Compiling Generation RepetitionPenaltyLogitsProcessor.swift
[230/332] Emitting module Generation
[231/332] Compiling Generation Decoders.swift
[232/332] Compiling Generation Generation.swift
[232/332] Compiling svd.cpp
[233/336] Compiling scan.cpp
[234/336] Compiling quantized.cpp
[236/336] Compiling Models Weights.swift
[236/336] Compiling qrf.cpp
[238/336] Compiling Models LanguageModelTypes.swift
[239/336] Emitting module Models
[240/336] Compiling Models LanguageModel.swift
[240/336] Compiling sort.cpp
[241/336] Compiling matmul.cpp
[242/336] Compiling jit_compiler.cpp
[243/336] Compiling primitives.cpp
[244/336] Compiling unary.cpp
[245/336] Compiling logsumexp.cpp
[246/336] Compiling luf.cpp
[247/336] Compiling masked_mm.cpp
[248/336] Compiling hadamard.cpp
[249/336] Compiling cblas.cpp
[250/336] Compiling inverse.cpp
[251/336] Compiling encoder.cpp
[252/336] Compiling eval.cpp
[253/336] Compiling bnns.cpp
[254/336] Compiling fft.cpp
[255/336] Compiling available.cpp
[256/336] Compiling reduce.cpp
[257/336] Compiling distributed.cpp
[258/336] Compiling indexing.cpp
[259/336] Compiling eigh.cpp
[260/336] Compiling utils.cpp
[261/336] Compiling eig.cpp
[262/336] Compiling slicing.cpp
[263/336] Compiling arg_reduce.cpp
[264/336] Compiling reduce.cpp
[265/336] Compiling cholesky.cpp
[266/336] Compiling utils.cpp
[267/336] Compiling unary_ops.cpp
[268/336] Compiling unary.cpp
[269/336] Compiling ternary_ops.cpp
[270/336] Compiling ternary.cpp
[271/336] Compiling steel_gemm_splitk.cpp
[272/336] Compiling steel_gemm_segmented.cpp
[273/336] Compiling steel_gemm_masked.cpp
[274/336] Compiling broadcasting.cpp
[275/336] Compiling steel_gemm_gather.cpp
[276/336] Compiling steel_gemm_fused.cpp
[277/336] Compiling load.cpp
[278/336] Compiling steel_conv_general.cpp
[279/336] Compiling steel_conv.cpp
[280/336] Compiling sort.cpp
[281/336] Compiling softmax.cpp
[282/336] Compiling scatter_axis.cpp
[283/336] Compiling scatter.cpp
[284/336] Compiling scan.cpp
[285/336] Compiling reduce_utils.cpp
[286/336] Compiling reduce.cpp
[287/336] Compiling quantized_utils.cpp
[288/336] Compiling quantized.cpp
[289/336] Compiling logsumexp.cpp
[290/336] Compiling hadamard.cpp
[291/336] Compiling gemv_masked.cpp
[292/336] Compiling gemm.cpp
[293/336] Compiling gather_front.cpp
[294/336] Compiling gather_axis.cpp
[295/336] Compiling gather.cpp
[296/336] Compiling fp4_quantized.cpp
[297/336] Compiling compiled.cpp
[298/336] Compiling fft.cpp
[299/336] Compiling common.cpp
[300/336] Compiling copy.cpp
[301/336] Compiling conv.cpp
[302/336] Compiling compiled_preamble.cpp
[303/336] Compiling binary_two.cpp
[304/336] Compiling binary_ops.cpp
[305/336] Compiling binary.cpp
[306/336] Compiling arange.cpp
[307/336] Compiling allocator.cpp
[308/336] Compiling conv.cpp
[309/336] Compiling array.cpp
[310/336] Compiling copy.cpp
[311/336] Compiling version.cpp
[312/336] Compiling string.cpp
[313/336] Compiling transforms_impl.cpp
[314/336] Compiling transforms.cpp
[315/336] Compiling stream.cpp
[316/336] Compiling vector.cpp
[317/336] Compiling random.cpp
[318/336] Compiling compiled_conditional.cpp
[319/336] Compiling ops.cpp
[320/336] Compiling memory.cpp
[321/336] Compiling io_types.cpp
[322/336] Compiling metal.cpp
[323/336] Compiling linalg.cpp
[324/336] Compiling map.cpp
[325/336] Compiling io.cpp
[326/336] Compiling error.cpp
[327/336] Compiling fft.cpp
[328/336] Compiling export.cpp
[329/336] Compiling fast.cpp
[330/336] Compiling device.cpp
[331/336] Compiling compile.cpp
[332/336] Compiling format.cc
[333/336] Compiling closure.cpp
[334/336] Compiling array.cpp
[335/336] Compiling binary.cpp
[337/367] Compiling MLX ArrayAt.swift
[338/367] Compiling MLX Cmlx+Util.swift
[339/367] Compiling MLX DType.swift
[340/367] Compiling MLX Device.swift
[341/370] Emitting module MLX
[342/370] Compiling MLX Transforms+Internal.swift
[343/370] Compiling MLX Transforms+Vmap.swift
[344/370] Compiling MLX Transforms.swift
[345/370] Compiling MLX Transforms+Compile.swift
[346/370] Compiling MLX Transforms+Eval.swift
[347/370] Compiling MLX Transforms+Grad.swift
[348/370] Compiling MLX Ops.swift
[349/370] Compiling MLX ParameterTypes.swift
[350/370] Compiling MLX Protocols.swift
[351/370] Compiling MLX ErrorHandler.swift
[352/370] Compiling MLX Export.swift
[353/370] Compiling MLX FFT.swift
[354/370] Compiling MLX Factory.swift
[355/370] Compiling MLX Foundation+Util.swift
[356/370] Compiling MLX GPU.swift
[357/370] Compiling MLX IO.swift
[358/370] Compiling MLX Linalg.swift
[359/370] Compiling MLX MLXArray+Ops.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/include/mlx/c/array.h:325:1: note: built-in type 'Complex' not supported
323 |  * Array must be evaluated, otherwise returns NULL.
324 |  */
325 | const float _Complex* mlx_array_data_complex64(const mlx_array arr);
    | `- note: built-in type 'Complex' not supported
326 |
327 | #ifdef HAS_FLOAT16
[360/370] Compiling MLX MLXArray.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/include/mlx/c/array.h:325:1: note: built-in type 'Complex' not supported
323 |  * Array must be evaluated, otherwise returns NULL.
324 |  */
325 | const float _Complex* mlx_array_data_complex64(const mlx_array arr);
    | `- note: built-in type 'Complex' not supported
326 |
327 | #ifdef HAS_FLOAT16
[361/370] Compiling MLX MLXFast.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/include/mlx/c/array.h:325:1: note: built-in type 'Complex' not supported
323 |  * Array must be evaluated, otherwise returns NULL.
324 |  */
325 | const float _Complex* mlx_array_data_complex64(const mlx_array arr);
    | `- note: built-in type 'Complex' not supported
326 |
327 | #ifdef HAS_FLOAT16
[362/370] Compiling MLX MLXFastKernel.swift
[363/370] Compiling MLX Nested.swift
[364/370] Compiling MLX Ops+Array.swift
[365/370] Compiling MLX Random.swift
[366/370] Compiling MLX State.swift
[367/370] Compiling MLX Stream.swift
[368/370] Compiling MLX MLXArray+Bytes.swift
[369/370] Compiling MLX MLXArray+Indexing.swift
[370/370] Compiling MLX MLXArray+Init.swift
[371/375] Emitting module MLXFast
[372/375] Compiling MLXFast MLXFast.swift
[373/375] Compiling MLXFast MLXFastKernel.swift
[374/375] Emitting module MLXRandom
[375/375] Compiling MLXRandom Random.swift
[376/393] Compiling MLXNN PositionalEncoding.swift
[377/393] Compiling MLXNN Quantized.swift
[378/393] Compiling MLXNN Normalization.swift
[379/393] Compiling MLXNN Pooling.swift
[380/393] Compiling MLXNN Recurrent.swift
[381/393] Compiling MLXNN Transformer.swift
[382/393] Compiling MLXNN Upsample.swift
[383/394] Compiling MLXNN ValueAndGrad.swift
[384/394] Compiling MLXNN Embedding.swift
[385/394] Compiling MLXNN Linear.swift
[386/394] Compiling MLXNN ConvolutionTransposed.swift
[387/394] Compiling MLXNN Dropout.swift
[388/394] Compiling MLXNN Containers.swift
[389/394] Compiling MLXNN Convolution.swift
[390/394] Compiling MLXNN Activations.swift
[391/394] Compiling MLXNN Cache.swift
[392/394] Emitting module MLXNN
[393/394] Compiling MLXNN Losses.swift
[394/394] Compiling MLXNN Module.swift
[395/406] Emitting module MLXOptimizers
[396/406] Compiling MLXOptimizers Optimizers.swift
[397/410] Compiling MLXMNIST MNIST.swift
[398/410] Compiling MLXMNIST Random.swift
[399/410] Emitting module MLXMNIST
[400/410] Compiling MLXMNIST Files.swift
[401/410] Compiling StableDiffusion VAE.swift
[402/410] Compiling StableDiffusion Sampler.swift
[403/410] Compiling StableDiffusion Tokenizer.swift
[404/410] Compiling StableDiffusion StableDiffusion.swift
[405/410] Compiling StableDiffusion Load.swift
[406/410] Compiling StableDiffusion UNet.swift
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/UNet.swift:134:13: warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
132 |     ) -> MLXArray {
133 |         let inputX = x
134 |         let dtype = x.dtype
    |             `- warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
135 |         var x = x
136 |
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/UNet.swift:196:13: warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
194 |
195 |     func callAsFunction(_ x: MLXArray, timeEmbedding: MLXArray? = nil) -> MLXArray {
196 |         let dtype = x.dtype
    |             `- warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
197 |
198 |         var y = norm1(x)
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/UNet.swift:503:13: warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
501 |
502 |         // postprocess the output
503 |         let dtype = x.dtype
    |             `- warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
504 |         x = convNormOut(x)
505 |         x = silu(x)
[407/410] Compiling StableDiffusion Clip.swift
[408/410] Compiling StableDiffusion Configuration.swift
[409/410] Emitting module StableDiffusion
[410/410] Compiling StableDiffusion Image.swift
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/Image.swift:135:20: warning: immutable value 'C' was never used; consider replacing with '_' or removing it [#no-usage]
133 |
134 |         let arrayData = raster.asData()
135 |         let (H, W, C) = raster.shape3
    |                    `- warning: immutable value 'C' was never used; consider replacing with '_' or removing it [#no-usage]
136 |         let cs = CGColorSpace(name: CGColorSpace.sRGB)!
137 |
Build complete! (35.90s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "mlx-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.29.1",
            "upper_bound" : "0.30.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ml-explore/mlx-swift"
    },
    {
      "identity" : "swift-transformers",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "1.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/huggingface/swift-transformers"
    },
    {
      "identity" : "gzipswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.0.1",
            "upper_bound" : "6.0.2"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/1024jp/GzipSwift"
    }
  ],
  "manifest_display_name" : "mlx-libraries",
  "name" : "mlx-libraries",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "MLXMNIST",
      "targets" : [
        "MLXMNIST"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "StableDiffusion",
      "targets" : [
        "StableDiffusion"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StableDiffusion",
      "module_type" : "SwiftTarget",
      "name" : "StableDiffusion",
      "path" : "Libraries/StableDiffusion",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXRandom",
        "Transformers"
      ],
      "product_memberships" : [
        "StableDiffusion"
      ],
      "sources" : [
        "Clip.swift",
        "Configuration.swift",
        "Image.swift",
        "Load.swift",
        "Sampler.swift",
        "StableDiffusion.swift",
        "Tokenizer.swift",
        "UNet.swift",
        "VAE.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MLXMNIST",
      "module_type" : "SwiftTarget",
      "name" : "MLXMNIST",
      "path" : "Libraries/MLXMNIST",
      "product_dependencies" : [
        "MLX",
        "MLXFast",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "Transformers",
        "Gzip"
      ],
      "product_memberships" : [
        "MLXMNIST"
      ],
      "sources" : [
        "Files.swift",
        "MNIST.swift",
        "Random.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/ml-explore/mlx-swift-examples/main
Repository:               ml-explore/mlx-swift-examples
Swift version used:       6.2
        .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0")
Target:                   MLXLLM
Fetching https://github.com/apple/swift-docc-plugin
Updating https://github.com/1024jp/GzipSwift
Updated https://github.com/1024jp/GzipSwift (0.44s)
[1/2158] Fetching swift-docc-plugin
Updating https://github.com/apple/swift-numerics
Updating https://github.com/apple/swift-collections.git
Updating https://github.com/huggingface/swift-transformers
Updating https://github.com/ml-explore/mlx-swift
Updating https://github.com/huggingface/swift-jinja.git
Fetched https://github.com/apple/swift-docc-plugin from cache (1.29s)
Updated https://github.com/apple/swift-collections.git (0.57s)
Updated https://github.com/apple/swift-numerics (0.57s)
Updated https://github.com/ml-explore/mlx-swift (0.57s)
Updated https://github.com/huggingface/swift-transformers (0.57s)
Updated https://github.com/huggingface/swift-jinja.git (0.57s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (2.48s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.1 (0.51s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (0.54s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.1.0 (0.50s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.62s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.58s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (0.70s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3594] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.21s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.93s)
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
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version-49B95AFC49DCD68C.txt
[6/53] Compiling SymbolKit DeclarationFragments.swift
[7/53] Compiling SymbolKit Fragment.swift
[8/53] Compiling SymbolKit FragmentKind.swift
[9/53] Compiling SymbolKit FunctionParameter.swift
[10/53] Compiling SymbolKit FunctionSignature.swift
[11/53] Compiling SymbolKit GenericConstraint.swift
[12/53] Compiling SymbolKit GenericParameter.swift
[13/53] Compiling SymbolKit Generics.swift
[14/53] Compiling SymbolKit Namespace.swift
[15/57] Emitting module SymbolKit
[16/57] Compiling SymbolKit Mixin+Equals.swift
[17/57] Compiling SymbolKit Mixin+Hash.swift
[18/57] Compiling SymbolKit Mixin.swift
[19/57] Compiling SymbolKit LineList.swift
[20/57] Compiling SymbolKit Position.swift
[21/57] Compiling SymbolKit SourceRange.swift
[22/57] Compiling SymbolKit Metadata.swift
[23/57] Compiling SymbolKit Module.swift
[24/57] Compiling SymbolKit OperatingSystem.swift
[25/57] Compiling SymbolKit Platform.swift
[26/57] Compiling SymbolKit Names.swift
[27/57] Compiling SymbolKit SPI.swift
[28/57] Compiling SymbolKit Snippet.swift
[29/57] Compiling SymbolKit Extension.swift
[30/57] Compiling SymbolKit SemanticVersion.swift
[31/57] Compiling SymbolKit AccessControl.swift
[32/57] Compiling SymbolKit Availability.swift
[33/57] Compiling SymbolKit AvailabilityItem.swift
[34/57] Compiling SymbolKit Domain.swift
[35/57] Compiling SymbolKit Relationship.swift
[36/57] Compiling SymbolKit RelationshipKind.swift
[37/57] Compiling SymbolKit SourceOrigin.swift
[38/57] Compiling SymbolKit GenericConstraints.swift
[39/57] Compiling SymbolKit Swift.swift
[40/57] Compiling SymbolKit Identifier.swift
[41/57] Compiling SymbolKit KindIdentifier.swift
[42/57] Compiling SymbolKit Location.swift
[43/57] Compiling SymbolKit Mutability.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 SnippetParser.swift
[53/57] Compiling Snippets Snippet.swift
[54/57] Emitting module Snippets
[55/61] Compiling snippet_extract SnippetBuildCommand.swift
[56/61] Emitting module snippet_extract
[57/61] Compiling snippet_extract URL+Status.swift
[58/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (3.49s)
error: no target named 'MLXLLM'
compatible targets: 'MLXMNIST', 'StableDiffusion', 'MLX', 'MLXFast', 'MLXNN', 'MLXOptimizers', 'MLXRandom', 'Tokenizers', 'Generation', 'Models', 'Gzip'
Target:                   MLXVLM
Building for debugging...
[0/3] Write swift-version-49B95AFC49DCD68C.txt
Build of product 'snippet-extract' complete! (0.59s)
error: no target named 'MLXVLM'
compatible targets: 'MLXMNIST', 'StableDiffusion', 'MLX', 'MLXFast', 'MLXNN', 'MLXOptimizers', 'MLXRandom', 'Tokenizers', 'Generation', 'Models', 'Gzip'
Target:                   MLXLMCommon
Building for debugging...
[0/3] Write swift-version-49B95AFC49DCD68C.txt
Build of product 'snippet-extract' complete! (0.59s)
error: no target named 'MLXLMCommon'
compatible targets: 'MLXMNIST', 'StableDiffusion', 'MLX', 'MLXFast', 'MLXNN', 'MLXOptimizers', 'MLXRandom', 'Tokenizers', 'Generation', 'Models', 'Gzip'
Target:                   MLXMNIST
Extracting symbol information for 'MLXMNIST'...
Finished extracting symbol information for 'MLXMNIST'. (2.61s)
Building documentation for 'MLXMNIST'...
Finished building documentation for 'MLXMNIST' (0.13s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/ml-explore/mlx-swift-examples/main
Building for debugging...
[0/3] Write swift-version-49B95AFC49DCD68C.txt
Build of product 'snippet-extract' complete! (0.60s)
Building for debugging...
[0/1] Write swift-version-49B95AFC49DCD68C.txt
Build of target: 'MLXMNIST' complete! (0.71s)
Target:                   MLXEmbedders
Building for debugging...
[0/3] Write swift-version-49B95AFC49DCD68C.txt
Build of product 'snippet-extract' complete! (0.62s)
error: no target named 'MLXEmbedders'
compatible targets: 'MLXMNIST', 'StableDiffusion', 'MLX', 'MLXFast', 'MLXNN', 'MLXOptimizers', 'MLXRandom', 'Tokenizers', 'Generation', 'Models', 'Gzip'
Target:                   StableDiffusion
Extracting symbol information for 'StableDiffusion'...
Finished extracting symbol information for 'StableDiffusion'. (1.36s)
Building documentation for 'StableDiffusion'...
warning: 'setConservativeMemory(_:)' doesn't exist at '/StableDiffusion/ModelContainer/performTwoStage(first:second:)'
   --> Libraries/StableDiffusion/StableDiffusion.swift:180:14-180:39
178 |     /// Perform a two stage action where the first stage returns values passed to the second stage.
179 |     ///
180 +     /// If ``setConservativeMemory(_:)`` is `true` this will discard the model in between
181 |     /// the `first` and `second` blocks. The container will have to be recreated if a caller
182 |     /// wants to use it again.
Finished building documentation for 'StableDiffusion' (0.12s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/ml-explore/mlx-swift-examples/main
Building for debugging...
[0/3] Write swift-version-49B95AFC49DCD68C.txt
Build of product 'snippet-extract' complete! (0.55s)
Building for debugging...
[0/1] Write swift-version-49B95AFC49DCD68C.txt
Build of target: 'StableDiffusion' complete! (0.62s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/ml-explore/mlx-swift-examples/main/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/ml-explore/mlx-swift-examples/main/linkable-paths.json
     402
4	/Users/admin/builder/spi-builder-workspace/.docs/ml-explore/mlx-swift-examples/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/ml-explore/mlx-swift-examples/main
File count: 402
Doc size:   4.0MB
Preparing doc bundle ...
Uploading prod-ml-explore-mlx-swift-examples-main-c1e30b0b.zip to s3://spi-docs-inbox/prod-ml-explore-mlx-swift-examples-main-c1e30b0b.zip
Copying... [18%]
Copying... [27%]
Copying... [36%]
Copying... [45%]
Copying... [54%]
Copying... [63%]
Copying... [72%]
Copying... [81%]
Copying... [90%]
Copying... [100%]
Done.