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 {
172
172
try await textGenerationParameters? . doSample? . boolValue ?? true
173
173
}
174
174
}
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
+
190
176
var bosTokenId : Int ? {
191
177
get async throws {
192
178
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
195
180
}
196
181
}
197
182
198
183
var eosTokenId : Int ? {
199
184
get async throws {
200
185
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
203
187
}
204
188
}
205
189
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments