Build Information
Successful build of llmfarm_core with Swift 5.9 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.28.8
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buhe/llmfarm_core.swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builds/J1XnyXFH/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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "llmfarm_core.swift",
"name": "llmfarm_core",
"url": "https://github.com/buhe/llmfarm_core.swift.git",
"version": "unspecified",
"path": "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/llmfarm_core.swift",
"dependencies": [
]
}
]
}
Fetching https://github.com/buhe/llmfarm_core.swift.git
[1/1197] Fetching llmfarm_core.swift
Fetched https://github.com/buhe/llmfarm_core.swift.git (0.67s)
Creating working copy for https://github.com/buhe/llmfarm_core.swift.git
Working copy of https://github.com/buhe/llmfarm_core.swift.git resolved at main
warning: '.resolve-product-dependencies': dependency 'llmfarm_core.swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD/checkout
https://github.com/buhe/llmfarm_core.swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/32] Copying tokenizers
[1/32] Copying metal
[2/32] Compiling llmfarm_core_cpp resource_bundle_accessor.m
[3/32] Compiling llmfarm_core_cpp package_helper.m
[4/32] Compiling llmfarm_core_cpp grammar-parser.mm
[5/32] Compiling rwkv.mm
[6/32] Compiling starcoder.mm
[7/32] Compiling replit.mm
[8/32] Compiling llmfarm_core_cpp gpt_helpers.mm
[9/32] Compiling k_quants_dadbed9.m
[10/32] Compiling llmfarm_core_cpp gpt_spm.mm
[11/32] Compiling ggml_d925ed-metal.m
[12/32] Compiling gptneox.mm
[13/32] Compiling ggml_d925ed-alloc.m
[14/32] Compiling gpt2.mm
[15/32] Compiling ggml-metal_dadbed9.m
[16/32] Compiling train.mm
[17/32] Compiling ggml-backend.m
[18/32] Compiling ggml-alloc_dadbed9.m
[19/32] Compiling ggml-metal.m
[20/32] Compiling ggml-alloc.m
[21/32] Compiling llama_dadbed9.mm
[22/32] Compiling ggml-quants.m
[23/32] Compiling llmfarm_core_cpp exception_helper_objc.mm
[24/32] Compiling llmfarm_core_cpp exception_helper.mm
[25/32] Compiling finetune.mm
[26/32] Compiling export-lora.mm
[27/32] Compiling ggml_dadbed9.m
[28/32] Compiling ggml_d925ed.m
[29/32] Compiling ggml.m
[30/32] Compiling common.mm
[31/32] Compiling llama.mm
[33/52] Compiling llmfarm_core LLaMa.swift
<module-includes>:6:9: note: in file included from <module-includes>:6:
#import "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core_cpp/spm-headers/gpt_spm.h"
^
/Users/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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)
^
[34/52] Compiling llmfarm_core LLaMa_dadbed9.swift
<module-includes>:6:9: note: in file included from <module-includes>:6:
#import "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core_cpp/spm-headers/gpt_spm.h"
^
/Users/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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)
^
[35/52] Compiling llmfarm_core ComputeGraph.swift
<module-includes>:6:9: note: in file included from <module-includes>:6:
#import "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/llmfarm_core_cpp/spm-headers/gpt_spm.h"
^
/Users/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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)
^
[36/54] Compiling llmfarm_core Replit.swift
[37/54] Compiling llmfarm_core Starcoder.swift
[38/54] Compiling llmfarm_core Tasker.swift
[39/54] Compiling llmfarm_core TokenizeUtils.swift
[40/54] Emitting module llmfarm_core
[41/54] Compiling llmfarm_core AI.swift
[42/54] Compiling llmfarm_core ArrayExt.swift
[43/54] Compiling llmfarm_core ByteEncoder.swift
[44/54] Compiling llmfarm_core GPTNeox.swift
/Users/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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,
~~~~^~~~~~
_
[45/54] Compiling llmfarm_core LLMBase.swift
/Users/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/54] Compiling llmfarm_core LLaMA_FineTune.swift
/Users/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/admin/builds/J1XnyXFH/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/54] Compiling llmfarm_core Extensions.swift
[48/54] Compiling llmfarm_core FineTune.swift
[49/54] Compiling llmfarm_core GPT2.swift
[50/54] Compiling llmfarm_core Math.swift
[51/54] Compiling llmfarm_core Utils.swift
[52/54] Compiling llmfarm_core RWKV.swift
[53/54] Compiling llmfarm_core Tokenizer.swift
[54/54] Compiling llmfarm_core TokenizerConfig.swift
Build complete! (65.17s)
Build complete.
Done.