Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
alxmrs
force-pushed
the
graphcast-weights
branch
8 times, most recently
from
October 21, 2026 00:23
b821fa1 to
644ead4
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NyN7idACeDMh94qrnFMu6h
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NyN7idACeDMh94qrnFMu6h
Also fix the docstring's name for param_tables, and say that DeepMind's 15-second forecast includes JAX's compilation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NyN7idACeDMh94qrnFMu6h
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NyN7idACeDMh94qrnFMu6h
alxmrs
force-pushed
the
graphcast-weights
branch
from
October 21, 2026 09:17
644ead4 to
4f29d2f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #269. Replaces the miniature
03_graphcast.pywith GraphCast_small as DeepMind publishes it: a 1° grid, 13 pressure levels, a mesh refined 5 times, 16 message-passing rounds and 36M weights. It runs as a program of SQL statements over tables registered through xarray-sql.Status: work in progress. A full forecast has not run end to end yet.
What's here
_graphcast.py: everything on DeepMind's side.gs://dm_graphcast, cached in~/.cache/xarray-sql/graphcast.weights(net, f, g, w),biases,norms, andnets(net, name).deepmind_stages()runs DeepMind's model in float32 and returns each stage's output, anddeepmind_forecast()returns the full forecast.mirror()is a plain JAX transcription of the model. It matches DeepMind's stages to about 1e-6 of each stage's largest value (float32 against float64), and it can stop after any processor round, so the SQL can be checked a round at a time.03_graphcast.py: the model in SQL.mlp(): matmul, bias plus swish, matmul, bias, then layer norm throughOVER (PARTITION BY id)windows.Host.store), so no host computes a CTE twice (DataFusion plans a CTE once per reference, so ML queries grow exponentially with depth #267).receptive_field()andprogram(..., regional=True)add an exact regional forecast: the same stages, each limited by semi-joins to what the region needs. It's written but hasn't run yet.--sizesis the number of processor rounds; at 16, the forecast is checked against DeepMind's.--memory, in GB) and spill to~/.cache/xarray-sql/spill.What's been checked
grid_inmatches DeepMind's stacked inputs.What went wrong
systemd-run --scope -p MemoryMax=…cgroup.HASH_GROUP_BYsumming ~200M rows into ~1M groups, and the restructured MLP made it slower: 78 s against DataFusion's 8 s on the same slice. I'll look into that before filing it.Next
mirror().deepmind_forecast().🤖 Generated with Claude Code
https://claude.ai/code/session_01NyN7idACeDMh94qrnFMu6h