Skip to content

Commit d0db45e

Browse files
docs: sync ML roadmap and project-8 board script (#100)
* docs: sync ML roadmap with main and add project-8 sync script Reflect closed epics (#87-91, VSL #280-285), next priorities (GPU phases, Windows, CI), and cross-repo status. Add gh script for org project #8. Co-authored-by: Cursor <cursoragent@cursor.com> * docs: fix ML_ROADMAP line length for check-md Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 9b4a0c4 commit d0db45e

3 files changed

Lines changed: 117 additions & 49 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
# Sync GitHub org project #8 (Vlang ML Roadmap) with issue open/closed state.
3+
# Requires: gh auth with scopes read:project, project
4+
set -euo pipefail
5+
6+
OWNER=vlang
7+
PROJECT_NUMBER=8
8+
PROJECT_ID="PVT_kwDOAsQ3Cs4BYswy"
9+
STATUS_FIELD="PVTSSF_lADOAsQ3Cs4BYswyzhTwqXI"
10+
DONE_ID="98236657"
11+
IN_PROGRESS_ID="47fc9ee4"
12+
TODO_ID="f75ad846"
13+
14+
# Optional: keep these open issues visible as In Progress on the board
15+
IN_PROGRESS_ISSUES="vlang/vtl#41 vlang/vsl#225 vlang/vtl#63"
16+
17+
echo "Fetching project $PROJECT_NUMBER items..."
18+
items=$(gh project item-list "$PROJECT_NUMBER" --owner "$OWNER" --format json --limit 200)
19+
20+
count_done=0
21+
count_ip=0
22+
23+
while IFS='|' read -r item_id num repo; do
24+
[[ -z "$num" || "$num" == "null" ]] && continue
25+
state=$(gh issue view "$num" --repo "$repo" --json state -q .state 2>/dev/null || echo OPEN)
26+
key="${repo}#${num}"
27+
28+
if [[ "$state" == "CLOSED" ]]; then
29+
gh project item-edit --id "$item_id" --project-id "$PROJECT_ID" \
30+
--field-id "$STATUS_FIELD" --single-select-option-id "$DONE_ID" >/dev/null
31+
echo "Done: $key"
32+
count_done=$((count_done + 1))
33+
elif [[ " ${IN_PROGRESS_ISSUES} " == *" ${key} "* ]]; then
34+
gh project item-edit --id "$item_id" --project-id "$PROJECT_ID" \
35+
--field-id "$STATUS_FIELD" --single-select-option-id "$IN_PROGRESS_ID" >/dev/null
36+
echo "In Progress: $key"
37+
count_ip=$((count_ip + 1))
38+
fi
39+
done < <(echo "$items" | jq -r '.items[] | select(.content.number != null) | "\(.id)|\(.content.number)|\(.content.repository)"')
40+
41+
echo "Updated: $count_done → Done, $count_ip → In Progress"

‎ROADMAP.md‎

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -76,37 +76,44 @@
7676
### Phase E — Example Consolidation
7777
- [x] `nn_cifar10_cuda` — opt-in CUDA smoke (`VTL_USE_CUDA=1`, `-d cuda`)
7878
- [x] `nn_cifar10_vulkan` — f32 smoke + `linear_forward_vulkan` check
79-
- [ ] All variants should pass `v check-md -fix -hide-warnings` from `~/.vmodules`
79+
- [x] Root `README.md` passes `v check-md -hide-warnings`
80+
- [ ] All example READMEs pass `v check-md -hide-warnings`
81+
82+
### Phase F — GPU training loop (follow-up to #91)
83+
- [x] Phase 1: `DeviceSession` buffer reuse; CUDA forward for Linear/Conv2D
84+
- [ ] Phase 2: GPU-resident `Variable` (forward tensors)
85+
- [ ] Phase 3: CUDA backward for Linear / Conv2D
86+
- [ ] Phase 4: Optimizer state on device
87+
88+
See [docs/DEVICE_MEMORY.md](docs/DEVICE_MEMORY.md).
89+
90+
---
91+
92+
## 🔜 Next priorities
93+
94+
| Priority | Work item |
95+
|----------|-----------|
96+
| P1 | [#41](https://github.com/vlang/vtl/issues/41) Windows crash |
97+
| P1 | CI strategy for full `nn_cifar10` (compile memory) |
98+
| P1 | Phases 2–4 in `DEVICE_MEMORY.md` |
99+
| P2 | Vulkan wired into training (not only smoke example) |
100+
| P2 | [#63](https://github.com/vlang/vtl/issues/63) ARM GPU |
101+
102+
**Project board:** [vlang org project #8](https://github.com/orgs/vlang/projects/8)
80103

81104
---
82105

83-
## 🧩 Existing Open Issues (VTL)
106+
## 🧩 Open issues (VTL)
84107

85108
| # | Title | Priority | Notes |
86109
|---|-------|----------|-------|
87-
| [#64](https://github.com/vlang/vtl/issues/64) | Phase 7+: Performance Engineering | 🔴 High | Kernel fusion, mixed precision |
88-
| [#63](https://github.com/vlang/vtl/issues/63) | Phase 6: ARM GPU Support | 🟢 Done | |
89-
| [#62](https://github.com/vlang/vtl/issues/62) | Phase 5: OpenCL Backend | 🟢 Done | |
90-
| [#61](https://github.com/vlang/vtl/issues/61) | Phase 4: GPU Autograd | 🟢 Done | |
91-
| [#60](https://github.com/vlang/vtl/issues/60) | Phase 3: VSL Integration + CUDA | 🟢 Done | |
92-
| [#59](https://github.com/vlang/vtl/issues/59) | Phase 2: Forward Pass on GPU | 🟢 Done | |
93-
| [#58](https://github.com/vlang/vtl/issues/58) | Phase 1: Vulkan Compute Foundation | 🟢 Done | |
94-
| [#89](https://github.com/vlang/vtl/issues/89) | Wire LinearLayer to CUDA | 🟢 Done | #93 |
95-
| [#90](https://github.com/vlang/vtl/issues/90) | Wire Conv2D to vsl.cuda | 🟢 Done | #93 |
96-
| [#91](https://github.com/vlang/vtl/issues/91) | Device-resident autograd | 🟢 Done | #93 |
97-
| [#88](https://github.com/vlang/vtl/issues/88) | vs NumPy benchmarks | 🟢 Done | #94 |
98-
| [#87](https://github.com/vlang/vtl/issues/87) | Checkpointing in CIFAR | 🟢 Done | #95 |
99-
| [#52](https://github.com/vlang/vtl/issues/52) | Tracel-AI/Burn reference | 🟢 Research | |
100-
| [#43](https://github.com/vlang/vtl/issues/43) | `stats.to_array` performance fix | 🔴 High | Prevent allocation overhead |
101-
| [#40](https://github.com/vlang/vtl/issues/40) | YOLO for autograd gates | 🟡 Medium | Loop-once pattern for gates |
102-
| [#39](https://github.com/vlang/vtl/issues/39) | Remove continue-on-error in v fmt | 🔴 High | |
103-
| [#30](https://github.com/vlang/vtl/issues/30) | Add `vsl.plot` examples | 🟡 Medium | |
104-
| [#29](https://github.com/vlang/vtl/issues/29) | Improve VTL tutorial | 🟡 Medium | |
105-
| [#28](https://github.com/vlang/vtl/issues/28) | Add ML metrics examples | 🟡 Medium | |
106-
| [#27](https://github.com/vlang/vtl/issues/27) | Add more datasets | 🟡 Medium | CIFAR-10 done; MNIST, ImageNet pending |
107-
| [#26](https://github.com/vlang/vtl/issues/26) | Add more examples | 🟡 Medium | |
108-
| [#25](https://github.com/vlang/vtl/issues/25) | autograd:register inconsistency | 🟡 Medium | |
109-
| [#23](https://github.com/vlang/vtl/issues/23) | datasets example compile error | 🔴 High | Fixed |
110+
| [#41](https://github.com/vlang/vtl/issues/41) | Windows example crash | 🔴 P1 | |
111+
| [#63](https://github.com/vlang/vtl/issues/63) | ARM GPU support | 🟡 P2 | Open |
112+
| [#43](https://github.com/vlang/vtl/issues/43) | `stats.to_array` performance | 🟡 Medium | |
113+
| [#40](https://github.com/vlang/vtl/issues/40) | YOLO for autograd gates | 🟡 Medium | |
114+
| [#52](https://github.com/vlang/vtl/issues/52) | Tracel-AI/Burn reference | Research | |
115+
116+
**Closed ML epics:** #58–#64, #86–#91 — see [ML_ROADMAP.md](docs/ML_ROADMAP.md).
110117

111118
---
112119

@@ -115,10 +122,10 @@
115122
| Dependency | Repo | Status |
116123
|------------|------|--------|
117124
| VSL LA ops (matmul, conv2d, solve, etc.) | [vlang/vsl](https://github.com/vlang/vsl) | ✅ Done |
118-
| VSL CUDA backend (`vsl/cuda`) | [vlang/vsl](https://github.com/vlang/vsl) | ✅ Phase B done |
119-
| VSL Vulkan backend (`vsl/vulkan`) | [vlang/vsl](https://github.com/vlang/vsl) | 🔴 Phase A in progress |
120-
| VSL OpenCL backend (VCL) | [vlang/vsl](https://github.com/vlang/vsl) | 🟡 VCL integrated |
121-
| Benchmark harness | [vlang/vtl](https://github.com/vlang/vtl) | 🔴 Not started |
125+
| VSL CUDA (`vsl/cuda`, cuBLAS/cuDNN) | [vlang/vsl](https://github.com/vlang/vsl) | ✅ #280 |
126+
| VSL Vulkan compute | [vlang/vsl](https://github.com/vlang/vsl) | ✅ #283–#284 |
127+
| VSL OpenCL (VCL) | [vlang/vsl](https://github.com/vlang/vsl) | ✅ Integrated |
128+
| vs NumPy / PR benchmarks | [vlang/vtl](https://github.com/vlang/vtl) | ✅ #88, workflow |
122129

123130
---
124131

@@ -167,6 +174,9 @@ vtl/examples/
167174
├── nn_cifar10_safe/ # Safe defaults, CI-friendly
168175
├── nn_cifar10_tiny/ # Real data subset (64 train, 16 test)
169176
├── nn_cifar10_tiny_synth/# Synthetic data, no I/O
177+
├── nn_cifar10_cuda/ # CUDA smoke (opt-in)
178+
├── nn_cifar10_vulkan/ # Vulkan GEMM smoke (opt-in)
179+
├── nn_mnist/ # MNIST example
170180
├── nn_xor/ # XOR training example
171181
├── nn_regression_sine/ # Sine regression
172182
├── nn_multiclass_iris/ # Iris multi-class
@@ -190,10 +200,10 @@ vtl/
190200
│ └── cifar10.v # CIFAR-10 loader with subset support
191201
├── autograd/
192202
│ └── gates/ # Autograd gate implementations
193-
├── benchmarks/ # (TODO) VTL vs NumPy benchmarks
194-
└── docs/ # Tutorials
203+
├── benchmarks/vs_numpy/ # matmul, conv2d, autograd_bench
204+
└── docs/ # Tutorials + ML_ROADMAP
195205
```
196206

197207
---
198208

199-
*Last updated: 2026-05-26*
209+
*Last updated: 2026-05-31* · Board: [project #8](https://github.com/orgs/vlang/projects/8)

‎docs/ML_ROADMAP.md‎

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,57 @@
11
# VTL — ML Roadmap & Launch Tracking
22

3-
Central planning lives on the **vlang org project board**:
3+
Central planning: **https://github.com/orgs/vlang/projects/8** (Vlang ML Roadmap — VSL + VTL)
44

5-
**https://github.com/orgs/vlang/projects/8** (Vlang ML Roadmap — VSL + VTL)
5+
Detailed roadmap: [ROADMAP.md](../ROADMAP.md)
66

7-
Detailed file-level roadmap: [ROADMAP.md](../ROADMAP.md) in this repo.
7+
GPU memory: [DEVICE_MEMORY.md](DEVICE_MEMORY.md)
88

9-
## Critical path (open issues)
9+
## Done (2026-05-31)
10+
11+
| Issue | Topic |
12+
|-------|--------|
13+
| [#87](https://github.com/vlang/vtl/issues/87) | Serialization + CIFAR checkpoints |
14+
| [#88](https://github.com/vlang/vtl/issues/88) | vs NumPy/PyTorch benchmarks + PR comments |
15+
| [#89](https://github.com/vlang/vtl/issues/89)–[#91](https://github.com/vlang/vtl/issues/91) | CUDA Linear/Conv2D + `DeviceSession` (Phase 1) |
16+
| [#86](https://github.com/vlang/vtl/issues/86) | `DataLoader` |
17+
18+
**VSL (downstream):** [#280](https://github.com/vlang/vsl/issues/280)–[#285](https://github.com/vlang/vsl/issues/285).
19+
20+
## Critical path (open)
1021

1122
| Priority | Issue | Topic |
1223
|----------|-------|--------|
1324
| P1 | [#41](https://github.com/vlang/vtl/issues/41) | Windows example crash |
14-
| — | — | `nn_cifar10_cuda` example added (opt-in GPU smoke) |
15-
| P2 | follow-up | Benchmark PR comments + PyTorch baselines (#88 scripts done) |
16-
17-
**Done (2026-05-31):** #89–#91 (PR #93), #88 (PR #94), #87 (PR #95).
18-
**VSL done:** #280, #281, #282.
25+
| P1 | — | Full `nn_cifar10` in CI (compile OOM on default runners) |
26+
| P1 | follow-up | GPU training loop Phase 2–4 ([DEVICE_MEMORY.md](DEVICE_MEMORY.md)) |
27+
| P2 | [#63](https://github.com/vlang/vtl/issues/63) | ARM GPU support |
28+
| P2 | — | Vulkan in `Sequential` training (today: smoke in `nn_cifar10_vulkan`) |
29+
| P2 | — | `v check-md -hide-warnings` on all example READMEs |
1930

2031
## Local development
2132

22-
**Lightweight workflow (avoid OOM):** [DEV_LIGHTWEIGHT.md](DEV_LIGHTWEIGHT.md)
23-
24-
Work from `~/.vmodules` (see [vlang pack](https://github.com/vlang/vtl)):
33+
**Lightweight workflow:** [DEV_LIGHTWEIGHT.md](DEV_LIGHTWEIGHT.md)
2534

2635
```bash
2736
v up
2837
cd ~/.vmodules
29-
# Smoke (avoid full v test vtl on low-RAM machines)
3038
v test vtl/nn vtl/datasets
3139
v run vtl/examples/nn_cifar10_tiny_synth/main.v
32-
# CUDA Linear/Conv2D (opt-in, PR #93)
33-
# VTL_USE_CUDA=1 v -d cuda run vtl/examples/nn_cifar10_tiny_synth/main.v
34-
# VTL_USE_CUDA=1 v -d cuda test vtl/nn/layers/linear_cuda_test.v
40+
# CUDA (opt-in)
41+
# VTL_USE_CUDA=1 v -d cuda run vtl/examples/nn_cifar10_cuda/main.v
42+
# Vulkan smoke
43+
# v -d vulkan run vtl/examples/nn_cifar10_vulkan/main.v
3544
```
3645

3746
## CI recommendation
3847

3948
- **Default PR:** `nn_cifar10_tiny_synth` + scoped `v test vtl/nn`
40-
- **Full suite / CUDA:** labeled runners only
49+
- **Full / CUDA / Vulkan:** labeled runners or local only
50+
51+
## Project board sync
52+
53+
From repo root (requires `gh` scopes `read:project`, `project`):
54+
55+
```bash
56+
./.github/scripts/sync-ml-project-8.sh
57+
```

0 commit comments

Comments
 (0)