From 362f1c8ad8d4514727beba56c253339fb4e40850 Mon Sep 17 00:00:00 2001 From: Rudro Samanta Date: Tue, 27 Feb 2024 13:02:13 -0800 Subject: [PATCH] Fix position of @main annotation - Also update package versions otherwise things don't compile out of the box (you need the version where `callAsFunction` is marked `open`) --- Tools/llm-tool/LLMTool.swift | 2 +- .../xcshareddata/swiftpm/Package.resolved | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/llm-tool/LLMTool.swift b/Tools/llm-tool/LLMTool.swift index 542bbda..d2d6495 100644 --- a/Tools/llm-tool/LLMTool.swift +++ b/Tools/llm-tool/LLMTool.swift @@ -6,6 +6,7 @@ import LLM import MLX import MLXRandom +@main struct LLMTool: AsyncParsableCommand { static var configuration = CommandConfiguration( abstract: "Command line tool for generating text using Llama models", @@ -13,7 +14,6 @@ struct LLMTool: AsyncParsableCommand { defaultSubcommand: SyncGenerator.self) } -@main struct SyncGenerator: AsyncParsableCommand { static var configuration = CommandConfiguration( diff --git a/mlx-swift-examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/mlx-swift-examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index f436e10..7e747b3 100644 --- a/mlx-swift-examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/mlx-swift-examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -15,7 +15,7 @@ "location" : "https://github.com/ml-explore/mlx-swift", "state" : { "branch" : "main", - "revision" : "cadf5f8187ac0894e66cd288217e2eda9f2c933d" + "revision" : "fbe215ae29ec286bdc66f4b3423e3eea1b3ef2fc" } }, { @@ -41,8 +41,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-collections.git", "state" : { - "revision" : "d029d9d39c87bed85b1c50adee7c41795261a192", - "version" : "1.0.6" + "revision" : "94cf62b3ba8d4bed62680a282d4c25f9c63c2efb", + "version" : "1.1.0" } }, {