Build Information
Successful build of llmfarm_core with Swift 5.10 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buhe/llmfarm_core.swift.git
Reference: main
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/buhe/llmfarm_core.swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a0c1bc8 Update swift.yml
Cloned https://github.com/buhe/llmfarm_core.swift.git
Revision (git rev-parse @):
a0c1bc8b584e6c24442d48a82dd5383fa0f18740
SUCCESS checkout https://github.com/buhe/llmfarm_core.swift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $workDir
https://github.com/buhe/llmfarm_core.swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/34] Write sources
[1/34] Copying metal
[2/34] Copying tokenizers
[3/34] Write swift-version--423B1241ED78D482.txt
[4/34] Compiling llmfarm_core_cpp package_helper.m
[5/34] Compiling llmfarm_core_cpp resource_bundle_accessor.m
[6/34] Compiling llmfarm_core_cpp grammar-parser.mm
[7/34] Compiling rwkv.mm
[8/34] Compiling starcoder.mm
[9/34] Compiling replit.mm
[10/34] Compiling k_quants_dadbed9.m
[11/34] Compiling llmfarm_core_cpp gpt_helpers.mm
[12/34] Compiling llmfarm_core_cpp gpt_spm.mm
[13/34] Compiling gptneox.mm
[14/34] Compiling ggml_d925ed-metal.m
[15/34] Compiling ggml_d925ed-alloc.m
[16/34] Compiling gpt2.mm
[17/34] Compiling ggml-metal_dadbed9.m
[18/34] Compiling train.mm
[19/34] Compiling ggml-backend.m
[20/34] Compiling ggml-alloc_dadbed9.m
[21/34] Compiling ggml-metal.m
[22/34] Compiling ggml-alloc.m
[23/34] Compiling llama_dadbed9.mm
[24/34] Compiling ggml-quants.m
[25/34] Compiling llmfarm_core_cpp exception_helper_objc.mm
[26/34] Compiling llmfarm_core_cpp exception_helper.mm
[27/34] Compiling finetune.mm
[28/34] Compiling export-lora.mm
[29/34] Compiling ggml_dadbed9.m
[30/34] Compiling ggml_d925ed.m
[31/34] Compiling ggml.m
[32/34] Compiling common.mm
[33/34] Compiling llama.mm
[35/54] Compiling llmfarm_core Extensions.swift
[36/54] Compiling llmfarm_core FineTune.swift
[37/54] Compiling llmfarm_core GPT2.swift
[38/54] Compiling llmfarm_core Tasker.swift
[39/54] Compiling llmfarm_core TokenizeUtils.swift
[40/54] Compiling llmfarm_core Replit.swift
<module-includes>:6:9: note: in file included from <module-includes>:6:
#import "/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core_cpp/spm-headers/gpt_spm.h"
^
[41/54] Compiling llmfarm_core Starcoder.swift
<module-includes>:6:9: note: in file included from <module-includes>:6:
#import "/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core_cpp/spm-headers/gpt_spm.h"
^
[42/56] Compiling llmfarm_core LLaMa.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa.swift:26:13: warning: variable 'progress_callback_user_data' was never used; consider replacing with '_' or removing it
var progress_callback_user_data:Int32 = 0
^~~~~~~~~~~~~~~~~~~~~~~~~~~
_
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa.swift:89:12: warning: 'llama_eval' is deprecated: use llama_decode() instead
if llama_eval(self.context, mutable_inputBatch.mutPtr, Int32(inputBatch.count), min(self.contextParams.context, self.nPast)) != 0 {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa_dadbed9.swift:35:24: warning: 'llama_dadbed9_init_from_file' is deprecated: please use llama_dadbed9_load_model_from_file combined with llama_dadbed9_new_context_with_model instead
self.context = llama_dadbed9_init_from_file(path, params)
^
[43/56] Compiling llmfarm_core LLaMa_dadbed9.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa.swift:26:13: warning: variable 'progress_callback_user_data' was never used; consider replacing with '_' or removing it
var progress_callback_user_data:Int32 = 0
^~~~~~~~~~~~~~~~~~~~~~~~~~~
_
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa.swift:89:12: warning: 'llama_eval' is deprecated: use llama_decode() instead
if llama_eval(self.context, mutable_inputBatch.mutPtr, Int32(inputBatch.count), min(self.contextParams.context, self.nPast)) != 0 {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa_dadbed9.swift:35:24: warning: 'llama_dadbed9_init_from_file' is deprecated: please use llama_dadbed9_load_model_from_file combined with llama_dadbed9_new_context_with_model instead
self.context = llama_dadbed9_init_from_file(path, params)
^
[44/56] Compiling llmfarm_core ComputeGraph.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa.swift:26:13: warning: variable 'progress_callback_user_data' was never used; consider replacing with '_' or removing it
var progress_callback_user_data:Int32 = 0
^~~~~~~~~~~~~~~~~~~~~~~~~~~
_
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa.swift:89:12: warning: 'llama_eval' is deprecated: use llama_decode() instead
if llama_eval(self.context, mutable_inputBatch.mutPtr, Int32(inputBatch.count), min(self.contextParams.context, self.nPast)) != 0 {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMa_dadbed9.swift:35:24: warning: 'llama_dadbed9_init_from_file' is deprecated: please use llama_dadbed9_load_model_from_file combined with llama_dadbed9_new_context_with_model instead
self.context = llama_dadbed9_init_from_file(path, params)
^
[45/56] Compiling llmfarm_core GPTNeox.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLMBase.swift:217:17: warning: variable 'class_name' was never mutated; consider changing to 'let' constant
var class_name = String(describing: self)
~~~ ^
let
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:39:21: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
let result = run_finetune(Int32(args.count), &cargs,
~~~~^~~~~~
_
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:62:13: warning: variable 'args' was never mutated; consider changing to 'let' constant
var args = ["progr_name", "-m", self.model_base, "-o", self.export_model,
~~~ ^
let
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:71:21: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
let result = export_lora_main(Int32(args.count), &cargs,
~~~~^~~~~~
_
[46/56] Compiling llmfarm_core LLMBase.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLMBase.swift:217:17: warning: variable 'class_name' was never mutated; consider changing to 'let' constant
var class_name = String(describing: self)
~~~ ^
let
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:39:21: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
let result = run_finetune(Int32(args.count), &cargs,
~~~~^~~~~~
_
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:62:13: warning: variable 'args' was never mutated; consider changing to 'let' constant
var args = ["progr_name", "-m", self.model_base, "-o", self.export_model,
~~~ ^
let
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:71:21: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
let result = export_lora_main(Int32(args.count), &cargs,
~~~~^~~~~~
_
[47/56] Compiling llmfarm_core LLaMA_FineTune.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLMBase.swift:217:17: warning: variable 'class_name' was never mutated; consider changing to 'let' constant
var class_name = String(describing: self)
~~~ ^
let
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:39:21: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
let result = run_finetune(Int32(args.count), &cargs,
~~~~^~~~~~
_
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:62:13: warning: variable 'args' was never mutated; consider changing to 'let' constant
var args = ["progr_name", "-m", self.model_base, "-o", self.export_model,
~~~ ^
let
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core/LLaMA_FineTune.swift:71:21: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
let result = export_lora_main(Int32(args.count), &cargs,
~~~~^~~~~~
_
[48/56] Emitting module llmfarm_core
[49/56] Compiling llmfarm_core AI.swift
[50/56] Compiling llmfarm_core ArrayExt.swift
[51/56] Compiling llmfarm_core ByteEncoder.swift
[52/56] Compiling llmfarm_core Math.swift
[53/56] Compiling llmfarm_core Utils.swift
[54/56] Compiling llmfarm_core RWKV.swift
[55/56] Compiling llmfarm_core Tokenizer.swift
[56/56] Compiling llmfarm_core TokenizerConfig.swift
Build complete! (31.34s)
Build complete.
Done.