language: [] | |
library_name: coreml | |
pipeline_tag: text-generation | |
tags: | |
- CoreMLPipelines | |
# coreml-Qwen3-0.6B | |
This model was converted from Local model: /Users/xdgcc/Downloads/Qwen3-0.6B to CoreML using [coremlpipelinestools](https://github.com/finnvoor/CoreMLPipelines/tree/main/coremlpipelinestools). | |
### Use with [CoreMLPipelines](https://github.com/finnvoor/CoreMLPipelines) | |
```swift | |
import CoreMLPipelines | |
let pipeline = try await TextGenerationPipeline( | |
modelName: "XDGCC/coreml-Qwen3-0.6B" | |
) | |
let stream = pipeline( | |
messages: [[ | |
"role": "user", | |
"content": "Write a poem about Ireland" | |
]] | |
) | |
for try await text in stream { | |
print(text, terminator: "") | |
fflush(stdout) | |
} | |
print("") | |
``` | |