var model: MLModel { get }
s6Models21LanguageModelProtocolP5modelSo7MLModelCvp
52VUR
import Models
protocol LanguageModelProtocol
init(model: MLModel)
var modelName: String { get }
name_or_path in the Python world
name_or_path
var tokenizer: Tokenizer { get async throws }
func callAsFunction(_ tokens: InputTokens, config: GenerationConfig) -> any MLShapedArrayProtocol
func predictNextTokenScores(_ tokens: InputTokens, config: GenerationConfig) -> any MLShapedArrayProtocol
Make prediction callable (this works like call in Python)