SmolLM2
Collection
6 items
•
Updated
This model was converted from HuggingFaceTB/SmolLM2-1.7B-Instruct to CoreML using coremlpipelinestools.
import CoreMLPipelines
let pipeline = try await TextGenerationPipeline(
modelName: "finnvoorhees/coreml-SmolLM2-1.7B-Instruct-4bit"
)
let stream = pipeline(
messages: [[
"role": "user",
"content": "Write a poem about Ireland"
]]
)
for try await text in stream {
print(text, terminator: "")
fflush(stdout)
}
print("")