Repository navigation
Make GCS client more robust - #74
Merged
Merged
Conversation
dirkgr
suggested changes
Oct 30, 2024
| return if_transient_error(exc) or isinstance(exc, requests.exceptions.Timeout) | ||
|
|
||
|
|
||
| def _get_gcs_retry(): |
Contributor
There was a problem hiding this comment.
Why not just create a retry object once? Why wrap it in a function and create a new one every time?
Contributor
Author
There was a problem hiding this comment.
cuz GCS is an optional dependency
dhgottesman
pushed a commit
to dhgottesman/OLMo-core
that referenced
this pull request
Dec 30, 2025
dhgottesman
pushed a commit
to dhgottesman/OLMo-core
that referenced
this pull request
Dec 30, 2025
AkshitaB
added a commit
that referenced
this pull request
Sep 10, 2026
The pinned dion (7452a58, 2026-01) is ~98 commits stale and its HSDP path deadlocks on an ALLREDUCE on torch 2.13 (test_hsdp_dion hangs -> NCCL watchdog timeout -> SIGABRT); it passes on torch 2.10. HEAD (e64832041) carries the relevant fixes: megabatch_orthogonalize_async hang (#74), per-step allreduce sync change (#75), FSDP2 padding regression (#97), and the PyTorch-2.13 / Triton-3.7.1 inductor-miscompile fix (#117). Needs a rebuild + re-run of the dion tests (single-GPU and HSDP) to confirm; a 98-commit bump may require adjusting olmo-core's dion integration. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
AkshitaB
added a commit
that referenced
this pull request
Oct 23, 2026
) OLMoE3 training on B300 with Torch 2.13 failed before its first optimizer step: packed BF16 parameters could violate compiled kernels’ alignment assumptions, and a separately compiled loss could replace Dynamo’s stream registry before shared-expert backward. Cold-cache LC data packing also exceeded the default distributed startup timeout. This preserves 16-byte starts in flat model parameter buffers while keeping logical parameter shapes and packed collective offsets unchanged. Shared-expert stream contexts run outside the compiled graph on both the no-EP and rowwise-NVSHMEM paths; child math stays compiled, with the existing arithmetic, stream dependencies, and overlap. Experiment configs now expose the process-group timeout (default unchanged at 15 minutes), allowing the companion LC workload to use two hours for cold-cache packing. HF exports also now serialize `moe_use_core_numerics=true`. The exported HF model reproduces the source no-EP expert arithmetic: packed dense/shared projections, packed SwiGLU with a single rounding, and TE index-map combination in routing-slot order. BF16 combination rounds multiplication separately on pre-SM90 GPUs and uses fused updates on SM90+, matching the respective TE kernels. CUDA inference without Triton uses the existing Torch activation fallback. Prior HF configs retain their original FP32-combination implementation. This fixes a real model-forward difference rather than substituting a special verifier, and leaves the strict conversion tolerance unchanged. Companion to [scaling-ladders #74](allenai/scaling-ladders#74). ## Validation - Two-rank CPU regression checks BF16 pointer alignment, mixed sharded/replicated FP32 master synchronization, and exact values before/after updates. It failed before the buffer fix. - [B300 stream regressions at `52c4d42`](https://beaker.org/ex/01M3E62JVQVTTARVP0ZQJY35R4): **3 passed**. They compare forward outputs and input/weight gradients after a separate compiled loss, including the split shared-expert path with and without activation recomputation. - Configuration tests verify timeout overrides survive serialization and reach distributed initialization in both training and checkpoint evaluation: **2 passed**. - Production-command 275M Cx8 canary: [PT](https://beaker.org/ex/01M3D82C49ZWWP2Z08G8PQ1JTH), [MT](https://beaker.org/ex/01M3D97F10FCATAME3FPP64REP), and [LC](https://beaker.org/ex/01M3DB87FD4AYSD4C41NY0MEDG) each completed five steps with finite gradients, zero skipped updates, and checkpoint audits passing. - All seventeen 275M/450M/810M no-EP PT/MT/LC topologies completed 50 steps each on B300 (fifteen using core `97a4bc3`, the two LC retries using core `2122d42`). Immutable training image: `01M28XX5N4KM6PD0G81KC41BDW`; Torch `2.13.0+cu130`, Triton `3.7.1`, FLA `0.5.2`, FA4 `4.0.0b16`. Detailed topology/source pins and job IDs are recorded in the companion ladder PR. - Focused CPU HF/config tests, lint, type, and formatting checks pass. [Current-head CI](https://github.com/allenai/OLMo-core/actions/runs/36231650355) at `b5db31d` passed: **22 checks passed, 1 skipped**. ## Distributed qualification All seven 1.4B EP4/EP8 production topologies completed 50 steps with finite gradients and zero skipped updates, completing all 24 approved B300 systems configurations in the companion ladder. Every replica exit is verified. The one-GPU stream regression does not qualify distributed expert communication. All three production PT/MT/LC conversions and tokenizer export audits now pass; downstream PT/MT/LC native vLLM smoke evaluations also passed (10,000 examples each, zero errors, exit 0). Exact HF/core conversion does not establish exact HF/vLLM numerical parity. [Current A100 qualification](https://beaker.org/ex/01M3EDD3RZC0MMPV31SDBGS6ZN), [H100](https://beaker.org/ex/01M3EDD4RFMC2WM8SC8612TZ54), and [B300](https://beaker.org/ex/01M3EDD5PCY9B7PZDF553WR2KA) at `f09d694`: **16 tests passed on each GPU**, covering actual core/TE BF16 and FP32 experts, the real dense/shared GEMM dimensions, CUDA without Triton, FP64 rounding oracles, and full-graph forward/gradients. Each GPU also produced **maximum logit difference `0.0` on three real PT-checkpoint input seeds**, using contiguous HF weights as in the exporter. All jobs exited successfully; `rtol=atol=1e-4` is unchanged. --------- Co-authored-by: Akshita Bhagia <[email protected]>
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.
No description provided.