Skip to content

Commit 10643a5

Browse files
committed
fix warning, switch to swift 6 -- that fixes some of the sendability issues
1 parent b146473 commit 10643a5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Tools/llm-tool/LoraCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct LoRAModelArguments: ParsableArguments, Sendable {
4141
/// This does not load the adapter weights as they may not exist yet.
4242
func load(
4343
defaultModel: String = defaultModel,
44-
modelFactory: ModelFactory = LLMModelFactory.shared
44+
modelFactory: any ModelFactory = LLMModelFactory.shared
4545
) async throws -> (ModelContainer, ModelAdapter) {
4646
let modelContainer = try await args.load(
4747
defaultModel: defaultModel, modelFactory: modelFactory)

mlx-swift-examples.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,7 @@
26862686
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
26872687
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
26882688
SWIFT_STRICT_CONCURRENCY = complete;
2689-
SWIFT_VERSION = 5.0;
2689+
SWIFT_VERSION = 6.0;
26902690
};
26912691
name = Debug;
26922692
};
@@ -2746,7 +2746,7 @@
27462746
SDKROOT = macosx;
27472747
SWIFT_COMPILATION_MODE = wholemodule;
27482748
SWIFT_STRICT_CONCURRENCY = complete;
2749-
SWIFT_VERSION = 5.0;
2749+
SWIFT_VERSION = 6.0;
27502750
};
27512751
name = Release;
27522752
};

0 commit comments

Comments
 (0)