Skip to content

fix: resolve VRAM OOM, 2-node garbage output, and topology viz crash#3

Merged
grangec merged 1 commit into
mainfrom
fork_20260627_193217
Jun 27, 2026
Merged

fix: resolve VRAM OOM, 2-node garbage output, and topology viz crash#3
grangec merged 1 commit into
mainfrom
fork_20260627_193217

Conversation

@grangec

@grangec grangec commented Jun 27, 2026

Copy link
Copy Markdown
Owner

VRAM management:

  • Free model + flush tinygrad allocator cache before topology rebuild
  • Filter non-layer weights per shard (embed_tokens, norm, lm_head)
  • Fix tied embedding missing on last shard

2-node inference:

  • Add .float() on logits in TransformerShard forward_base
  • Fix TEMPERATURE env var int() → float()

Other fixes:

  • ZeroDivisionError in topology_viz.py during download
  • Pin tinygrad to HEAD (afe9fcaec) for JIT buffer fix
  • Add 2-node integration test (test_2node.py)
  • Save defensive patches for read-only buffer crash

VRAM management:
- Free model + flush tinygrad allocator cache before topology rebuild
- Filter non-layer weights per shard (embed_tokens, norm, lm_head)
- Fix tied embedding missing on last shard

2-node inference:
- Add .float() on logits in TransformerShard forward_base
- Fix TEMPERATURE env var int() → float()

Other fixes:
- ZeroDivisionError in topology_viz.py during download
- Pin tinygrad to HEAD (afe9fcaec) for JIT buffer fix
- Add 2-node integration test (test_2node.py)
- Save defensive patches for read-only buffer crash
@grangec grangec merged commit cc19f19 into main Jun 27, 2026
grangec added a commit that referenced this pull request Jun 27, 2026
)

VRAM management:
- Free model + flush tinygrad allocator cache before topology rebuild
- Filter non-layer weights per shard (embed_tokens, norm, lm_head)
- Fix tied embedding missing on last shard

2-node inference:
- Add .float() on logits in TransformerShard forward_base
- Fix TEMPERATURE env var int() → float()

Other fixes:
- ZeroDivisionError in topology_viz.py during download
- Pin tinygrad to HEAD (afe9fcaec) for JIT buffer fix
- Add 2-node integration test (test_2node.py)
- Save defensive patches for read-only buffer crash

Co-authored-by: grangec <grangec@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant