mlboydaisuke commited on
Commit
53f703d
Β·
verified Β·
1 Parent(s): 9e45ae6

gen-cards: regenerate Use-it block

Browse files
Files changed (1) hide show
  1. README.md +13 -8
README.md CHANGED
@@ -41,6 +41,8 @@ waveform. Distilled (ARC) for few-step generation, so it's fast.
41
 
42
  ## Use it
43
 
 
 
44
  ⚑ **One line** β€” this model is the default behind the kit's task op
45
  (`import CoreAIOps`; no session, no model plumbing, downloads on first use):
46
 
@@ -48,21 +50,24 @@ waveform. Distilled (ARC) for few-step generation, so it's fast.
48
  let audio = try await CoreAI.compose(prompt)
49
  ```
50
 
51
- Every op, one shape β€” [Cookbook](https://github.com/john-rocky/coreai-kit/blob/main/docs/COOKBOOK.md).
52
 
53
- ▢️ **Run it (source)** β€” the [Music runner](https://github.com/john-rocky/coreai-kit/tree/main/Examples/Music)
54
  (GUI + CLI, one app for every text-to-music model in the catalog):
55
 
56
  ```bash
57
- git clone https://github.com/john-rocky/coreai-kit
58
- open coreai-kit/Examples/Music/Music.xcodeproj
 
59
  # β†’ Run, then pick "Stable Audio Open Small" in the model picker
60
 
61
  # agents / headless (macOS):
62
  cd coreai-kit/Examples/Music
63
- swift run music-cli --model stable-audio-open-small --prompt "128 BPM tech house drum loop" --output loop.wav
64
  ```
65
 
 
 
66
  πŸ’» **Build with it** β€” complete; the glue is kit API, copy-paste runs:
67
 
68
  ```swift
@@ -73,7 +78,7 @@ let audio = try await musician.generate(prompt)
73
  // audio.samples: 44.1 kHz stereo (planar L/R) β€” play it or write a WAV
74
  ```
75
 
76
- The take-home is [`Examples/Music/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/main/Examples/Music/Sources/QuickStart.swift)
77
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
78
  the GUI drives the same `KitMusician(catalog:)` and plays the result.
79
  Length? `generate(_:seconds:)` up to the model's ~11 s window. The WAV container is your
@@ -81,10 +86,10 @@ app's territory (the runner ships a 30-line writer with planar-stereo support).
81
 
82
  **Integration checklist**
83
 
84
- - SPM: `https://github.com/john-rocky/coreai-kit` β†’ product **CoreAIKit**
85
  - Info.plist: none needed
86
  - Entitlements: none needed (macOS)
87
- - First run downloads the model β€” 1.1 GB (Mac) β€” then it loads from the
88
  local cache (Application Support; progress via the `downloadProgress` callback)
89
  - Measure in Release β€” Debug is ~3Γ— slower on per-token host work
90
  <!-- gen-cards:use-it end -->
 
41
 
42
  ## Use it
43
 
44
+ **New to Core AI? [Start with CoreAIKit 0.7.1](https://github.com/john-rocky/coreai-kit#readme).** Follow its requirements and first-run steps for `qwen3-0.6b`, then open the same release's [ChatDemo](https://github.com/john-rocky/coreai-kit/tree/0.7.1/Examples/ChatDemo). The README records the tested OS/SDK and download size; model and device coverage is stated per example.
45
+
46
  ⚑ **One line** β€” this model is the default behind the kit's task op
47
  (`import CoreAIOps`; no session, no model plumbing, downloads on first use):
48
 
 
50
  let audio = try await CoreAI.compose(prompt)
51
  ```
52
 
53
+ Every op, one shape β€” [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.7.1/docs/COOKBOOK.md).
54
 
55
+ ▢️ **Run it (source)** β€” the [Music runner](https://github.com/john-rocky/coreai-kit/tree/0.7.1/Examples/Music)
56
  (GUI + CLI, one app for every text-to-music model in the catalog):
57
 
58
  ```bash
59
+ git clone --branch 0.7.1 --depth 1 https://github.com/john-rocky/coreai-kit
60
+ export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
61
+ open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/Music/Music.xcodeproj
62
  # β†’ Run, then pick "Stable Audio Open Small" in the model picker
63
 
64
  # agents / headless (macOS):
65
  cd coreai-kit/Examples/Music
66
+ swift run -c release music-cli --model stable-audio-open-small --prompt "128 BPM tech house drum loop" --output loop.wav
67
  ```
68
 
69
+ Use Xcode build **27A266a** from the release's `.xcode-pin`; adjust the app path if your installation is named differently.
70
+
71
  πŸ’» **Build with it** β€” complete; the glue is kit API, copy-paste runs:
72
 
73
  ```swift
 
78
  // audio.samples: 44.1 kHz stereo (planar L/R) β€” play it or write a WAV
79
  ```
80
 
81
+ The take-home is [`Examples/Music/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.1/Examples/Music/Sources/QuickStart.swift)
82
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
83
  the GUI drives the same `KitMusician(catalog:)` and plays the result.
84
  Length? `generate(_:seconds:)` up to the model's ~11 s window. The WAV container is your
 
86
 
87
  **Integration checklist**
88
 
89
+ - SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.1**) β†’ product **CoreAIKit**
90
  - Info.plist: none needed
91
  - Entitlements: none needed (macOS)
92
+ - First run downloads the model β€” ~1,060 MB (Mac) β€” then it loads from the
93
  local cache (Application Support; progress via the `downloadProgress` callback)
94
  - Measure in Release β€” Debug is ~3Γ— slower on per-token host work
95
  <!-- gen-cards:use-it end -->