Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: []
|
| 3 |
+
library_name: coreml
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- CoreMLPipelines
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# coreml-Qwen3-0.6B
|
| 10 |
+
|
| 11 |
+
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).
|
| 12 |
+
|
| 13 |
+
### Use with [CoreMLPipelines](https://github.com/finnvoor/CoreMLPipelines)
|
| 14 |
+
|
| 15 |
+
```swift
|
| 16 |
+
import CoreMLPipelines
|
| 17 |
+
|
| 18 |
+
let pipeline = try await TextGenerationPipeline(
|
| 19 |
+
modelName: "XDGCC/coreml-Qwen3-0.6B"
|
| 20 |
+
)
|
| 21 |
+
let stream = pipeline(
|
| 22 |
+
messages: [[
|
| 23 |
+
"role": "user",
|
| 24 |
+
"content": "Write a poem about Ireland"
|
| 25 |
+
]]
|
| 26 |
+
)
|
| 27 |
+
for try await text in stream {
|
| 28 |
+
print(text, terminator: "")
|
| 29 |
+
fflush(stdout)
|
| 30 |
+
}
|
| 31 |
+
print("")
|
| 32 |
+
```
|
| 33 |
+
|