Skip to content

Commit 3551f52

Browse files
committed
Remove extra parameters from Gemma 3 model initializers
1 parent cc96f0c commit 3551f52

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/SHLLM/LLM.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,15 +435,13 @@ extension LLM where Model == Gemma3 {
435435
public static func gemma3_4B(
436436
directory: URL,
437437
input: UserInput,
438-
processing: UserInput.Processing = .init(resize: CGSize(width: 896, height: 896)),
439438
maxInputTokenCount: Int? = nil,
440439
maxOutputTokenCount: Int? = nil
441440
) throws -> LLM<Gemma3> {
442441
try SHLLM.assertSupportedDevice
443442
return .init(
444443
directory: directory,
445444
input: input,
446-
processing: processing,
447445
maxInputTokenCount: maxInputTokenCount,
448446
maxOutputTokenCount: maxOutputTokenCount,
449447
customConfiguration: { config in
@@ -464,15 +462,13 @@ extension LLM where Model == Gemma3 {
464462
public static func gemma3_12B(
465463
directory: URL,
466464
input: UserInput,
467-
processing: UserInput.Processing = .init(resize: CGSize(width: 896, height: 896)),
468465
maxInputTokenCount: Int? = nil,
469466
maxOutputTokenCount: Int? = nil
470467
) throws -> LLM<Gemma3> {
471468
try SHLLM.assertSupportedDevice
472469
return .init(
473470
directory: directory,
474471
input: input,
475-
processing: processing,
476472
maxInputTokenCount: maxInputTokenCount,
477473
maxOutputTokenCount: maxOutputTokenCount,
478474
customConfiguration: { config in
@@ -493,15 +489,13 @@ extension LLM where Model == Gemma3 {
493489
public static func gemma3_27B(
494490
directory: URL,
495491
input: UserInput,
496-
processing: UserInput.Processing = .init(resize: CGSize(width: 896, height: 896)),
497492
maxInputTokenCount: Int? = nil,
498493
maxOutputTokenCount: Int? = nil
499494
) throws -> LLM<Gemma3> {
500495
try SHLLM.assertSupportedDevice
501496
return .init(
502497
directory: directory,
503498
input: input,
504-
processing: processing,
505499
maxInputTokenCount: maxInputTokenCount,
506500
maxOutputTokenCount: maxOutputTokenCount,
507501
customConfiguration: { config in

0 commit comments

Comments
 (0)