Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.git

CLAUDE.md
GEMINI.md

logs/

Expand Down
7 changes: 1 addition & 6 deletions experiments/isoflop_sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,7 @@ def pick_v5p_type(
seq_len: int,
vocab: int,
) -> str:
"""
Select the smallest TPU v5p slice that fits the model in float32.

Returns:
- TPU slice name, e.g., "v5p-8" or "v5p-32"
"""
"""Select the smallest TPU v5p slice that fits the model in float32."""
param_count = compute_num_parameters(config, vocab)
need_bytes = estimate_bytes(param_count, hidden, layers, batch, seq_len, vocab)
chip_bytes = HBM_PER_CHIP_GIB * 1024**3
Expand Down
Loading