Skip to content

Commit 875da40

Browse files
docs: sync ML roadmap after Phase 3 (#105) merge (#108)
Track #105/#106/#107 on critical path, reserve VTL_CUDA_OPTIMIZER for Phase 4, and pin #106 on project board sync script. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4f585fb commit 875da40

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎.github/scripts/sync-ml-project-8.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ IN_PROGRESS_ID="47fc9ee4"
1212
TODO_ID="f75ad846"
1313

1414
# 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"
15+
IN_PROGRESS_ISSUES="vlang/vtl#41 vlang/vsl#225 vlang/vtl#63 vlang/vtl#106"
1616

1717
echo "Fetching project $PROJECT_NUMBER items..."
1818
items=$(gh project item-list "$PROJECT_NUMBER" --owner "$OWNER" --format json --limit 200)

‎autograd/gpu_config.v‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ pub fn gpu_activations_enabled() bool {
1414
pub fn cuda_backward_enabled() bool {
1515
return os.getenv('VTL_USE_CUDA') == '1' && os.getenv('VTL_CUDA_BACKWARD') == '1'
1616
}
17+
18+
// cuda_optimizer_enabled will run Adam/SGD steps on GPU (Phase 4, #106). Not implemented yet.
19+
@[inline]
20+
pub fn cuda_optimizer_enabled() bool {
21+
return os.getenv('VTL_USE_CUDA') == '1' && os.getenv('VTL_CUDA_OPTIMIZER') == '1'
22+
}

‎docs/DEVICE_MEMORY.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ mut model := models.sequential_from_ctx[f64](ctx)
4949

5050
- **Phase 2**: GPU-resident `Variable` (`gpu_activation`, #101) — done (#104)
5151
- **Phase 3**: CUDA backward for Linear (opt-in) — done; Conv2D backward still CPU
52-
- **Phase 4**: Optimizer state on device (fused Adam step)
52+
- **Phase 4**: Optimizer state on device (#106, `VTL_CUDA_OPTIMIZER=1` reserved, not implemented)
5353

5454
See [DEV_LIGHTWEIGHT.md](DEV_LIGHTWEIGHT.md) for safe test commands.

‎docs/ML_ROADMAP.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GPU memory: [DEVICE_MEMORY.md](DEVICE_MEMORY.md)
1414
| [#88](https://github.com/vlang/vtl/issues/88) | vs NumPy/PyTorch benchmarks + PR comments |
1515
| [#89](https://github.com/vlang/vtl/issues/89)–[#91](https://github.com/vlang/vtl/issues/91) | CUDA Linear/Conv2D + `DeviceSession` (Phase 1) |
1616
| [#101](https://github.com/vlang/vtl/issues/101)/[#104](https://github.com/vlang/vtl/pull/104) | GPU activation chain (Phase 2) |
17-
| Phase 3 | Linear CUDA backward (`VTL_CUDA_BACKWARD=1`) |
17+
| [#105](https://github.com/vlang/vtl/pull/105) | Linear CUDA backward (`VTL_CUDA_BACKWARD=1`, Phase 3) |
1818
| [#86](https://github.com/vlang/vtl/issues/86) | `DataLoader` |
1919

2020
**VSL (downstream):** [#280](https://github.com/vlang/vsl/issues/280)–[#285](https://github.com/vlang/vsl/issues/285).
@@ -25,7 +25,8 @@ GPU memory: [DEVICE_MEMORY.md](DEVICE_MEMORY.md)
2525
|----------|-------|--------|
2626
| P1 | [#41](https://github.com/vlang/vtl/issues/41) | Windows example crash |
2727
| P1 | — | Full `nn_cifar10` in CI (compile OOM on default runners) |
28-
| P1 | follow-up | GPU Phase 4 optimizer on device ([DEVICE_MEMORY.md](DEVICE_MEMORY.md)) |
28+
| P1 | [#106](https://github.com/vlang/vtl/issues/106) | GPU Phase 4 optimizer on device |
29+
| P2 | [#107](https://github.com/vlang/vtl/issues/107) | Conv2D CUDA backward |
2930
| P2 | — | Conv2D CUDA backward; Vulkan in `Sequential` training |
3031
| P2 | [#63](https://github.com/vlang/vtl/issues/63) | ARM GPU support |
3132
| P2 | — | Vulkan in `Sequential` training (today: smoke in `nn_cifar10_vulkan`) |

0 commit comments

Comments
 (0)