File tree Expand file tree Collapse file tree 2 files changed +3
-71
lines changed Expand file tree Collapse file tree 2 files changed +3
-71
lines changed Original file line number Diff line number Diff line change @@ -172,34 +172,18 @@ public extension LanguageModel {
172172 try await textGenerationParameters? . doSample? . boolValue ?? true
173173 }
174174 }
175-
176- var architecture : Architecture ? {
177- get async throws {
178- guard let modelType = try await modelType else { return nil }
179- return Architecture . from ( modelType: modelType)
180- }
181- }
182-
183- var padTokenId : Int ? {
184- get async throws {
185- guard let architecture = try await architecture else { return nil }
186- return architecture. padTokenId ?? architecture. eosTokenId
187- }
188- }
189-
175+
190176 var bosTokenId : Int ? {
191177 get async throws {
192178 let modelConfig = try await modelConfig
193- if let bosTokenId = modelConfig. bosTokenId? . intValue { return bosTokenId }
194- return try await architecture? . bosTokenId
179+ return modelConfig. bosTokenId? . intValue
195180 }
196181 }
197182
198183 var eosTokenId : Int ? {
199184 get async throws {
200185 let modelConfig = try await modelConfig
201- if let eosTokenId = modelConfig. eosTokenId? . intValue { return eosTokenId }
202- return try await architecture? . eosTokenId
186+ return modelConfig. eosTokenId? . intValue
203187 }
204188 }
205189
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments