mlboydaisuke commited on
Commit
6e9fdf7
Β·
verified Β·
1 Parent(s): 1d7b8cb

gen-cards: regenerate Use-it block

Browse files
Files changed (1) hide show
  1. README.md +12 -7
README.md CHANGED
@@ -36,19 +36,24 @@ paradigm, running on-device on Apple Silicon.
36
  <!-- gen-cards:use-it begin id=llada-8b (managed by scripts/gen-cards β€” edit cards.json / QuickStart.swift, not this block) -->
37
  ## Use it
38
 
39
- ▢️ **Run it (source)** β€” the [DiffuseChat runner](https://github.com/john-rocky/coreai-kit/tree/main/Examples/DiffuseChat)
 
 
40
  (GUI + CLI, one app for every diffusion LM in the catalog):
41
 
42
  ```bash
43
- git clone https://github.com/john-rocky/coreai-kit
44
- open coreai-kit/Examples/DiffuseChat/DiffuseChat.xcodeproj
 
45
  # β†’ Run, then pick "LLaDA-8B (diffusion)" in the model picker
46
 
47
  # agents / headless (macOS):
48
  cd coreai-kit/Examples/DiffuseChat
49
- swift run diffuse-cli --model llada-8b --prompt "What is the capital of France?"
50
  ```
51
 
 
 
52
  πŸ’» **Build with it** β€” complete; the glue is kit API, copy-paste runs:
53
 
54
  ```swift
@@ -60,7 +65,7 @@ let reply = try await dlm.reply(to: prompt)
60
  // (still-masked positions as β–‘), in parallel, not left-to-right
61
  ```
62
 
63
- The take-home is [`Examples/DiffuseChat/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/main/Examples/DiffuseChat/Sources/QuickStart.swift)
64
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
65
  the GUI renders the same live canvas.
66
  The canvas is fixed (S=256 β‰ˆ 210 generated tokens) and the whole history must fit β€” no
@@ -69,10 +74,10 @@ Pass `onStep: nil` if you only want the final text.
69
 
70
  **Integration checklist**
71
 
72
- - SPM: `https://github.com/john-rocky/coreai-kit` β†’ product **CoreAIKit**
73
  - Info.plist: none needed
74
  - Entitlements: none needed
75
- - First run downloads the model β€” 5.3 GB (Mac) β€” then it loads from the
76
  local cache (Application Support; progress via the `downloadProgress` callback)
77
  - Measure in Release β€” Debug is ~3Γ— slower on per-token host work
78
  <!-- gen-cards:use-it end -->
 
36
  <!-- gen-cards:use-it begin id=llada-8b (managed by scripts/gen-cards β€” edit cards.json / QuickStart.swift, not this block) -->
37
  ## Use it
38
 
39
+ **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.
40
+
41
+ ▢️ **Run it (source)** β€” the [DiffuseChat runner](https://github.com/john-rocky/coreai-kit/tree/0.7.1/Examples/DiffuseChat)
42
  (GUI + CLI, one app for every diffusion LM in the catalog):
43
 
44
  ```bash
45
+ git clone --branch 0.7.1 --depth 1 https://github.com/john-rocky/coreai-kit
46
+ export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
47
+ open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/DiffuseChat/DiffuseChat.xcodeproj
48
  # β†’ Run, then pick "LLaDA-8B (diffusion)" in the model picker
49
 
50
  # agents / headless (macOS):
51
  cd coreai-kit/Examples/DiffuseChat
52
+ swift run -c release diffuse-cli --model llada-8b --prompt "What is the capital of France?"
53
  ```
54
 
55
+ Use Xcode build **27A266a** from the release's `.xcode-pin`; adjust the app path if your installation is named differently.
56
+
57
  πŸ’» **Build with it** β€” complete; the glue is kit API, copy-paste runs:
58
 
59
  ```swift
 
65
  // (still-masked positions as β–‘), in parallel, not left-to-right
66
  ```
67
 
68
+ The take-home is [`Examples/DiffuseChat/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.1/Examples/DiffuseChat/Sources/QuickStart.swift)
69
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
70
  the GUI renders the same live canvas.
71
  The canvas is fixed (S=256 β‰ˆ 210 generated tokens) and the whole history must fit β€” no
 
74
 
75
  **Integration checklist**
76
 
77
+ - SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.1**) β†’ product **CoreAIKit**
78
  - Info.plist: none needed
79
  - Entitlements: none needed
80
+ - First run downloads the model β€” ~5,265 MB (Mac) β€” then it loads from the
81
  local cache (Application Support; progress via the `downloadProgress` callback)
82
  - Measure in Release β€” Debug is ~3Γ— slower on per-token host work
83
  <!-- gen-cards:use-it end -->