GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tags · abandonrules/DeepSpeed

Tags

v0.19.2

Toggle v0.19.2's commit message
Mixed-precision: per-policy param/buffer dtype cast (preserve fp32 bu…

…ffers) (deepspeedai#8066)

## Summary
- Add `data_types.param_dtype` and `data_types.buffer_dtype` (both
default `None`), mirroring FSDP `MixedPrecisionPolicy`.
- Replace the blanket `module.half()` / `module.bfloat16()` in
`_configure_distributed_model` with a targeted cast: parameters go to
`param_dtype`; floating buffers keep their loaded dtype unless
`buffer_dtype` is explicitly set.

## Motivation
The blanket cast downcasts every floating buffer, including the rotary
`inv_freq` buffer that HF/FSDP2 keep in fp32. On long contexts the bf16
`inv_freq` loses precision, RoPE angles drift, and logits/grads diverge
from the FSDP2 reference. Preserving fp32 buffers by default fixes this;
`buffer_dtype` is the escape hatch to reproduce the legacy behavior.

## Behavior
- `param_dtype` unset -> derived from the fp16/bf16 enabled flag (legacy
param behavior).
- `buffer_dtype` unset -> buffers keep their loaded dtype (e.g. fp32
`inv_freq`).
- `buffer_dtype` set -> buffers force-cast (legacy blanket-cast parity).

## Test plan
- [ ] `param_dtype=bf16`, `buffer_dtype` unset -> params bf16,
`inv_freq` stays fp32.
- [ ] `buffer_dtype=bf16` -> buffers downcast (legacy parity).
- [ ] bf16/fp16 run with neither key set behaves as before except fp32
buffers preserved.
- [ ] 8B / 32B ZeRO-3 long-context run -> grad_norm tracks the FSDP2
reference.

Made with [Cursor](https://cursor.com)

---------

Signed-off-by: Olatunji Ruwase <[email protected]>
Signed-off-by: Stas Bekman <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Olatunji Ruwase <[email protected]>
Co-authored-by: Stas Bekman <[email protected]>
Co-authored-by: Stas Bekman <[email protected]>
  • Jun 16, 2026
  • b919284
  • zip
  • tar.gz

v0.19.1

Toggle v0.19.1's commit message
Fix DeepCompile AOT kwargs patching for PyTorch >= v2.11 (deepspeedai…

…#8024)

DeepCompiles breaks for PyTorch >= v2.11 because these versions can
construct the AOT Autograd backend without a bw_compiler kwarg, while
DeepSpeed's Inductor patch assumes that key is always present.

This PR fixes DeepCompile's AOT Autograd patch so unrelated AOT backend
registrations can pass through unchanged. `TestDeepCompile` passes with
this fix.

Signed-off-by: Masahiro Tanaka <[email protected]>
  • May 25, 2026
  • 510ebe5
  • zip
  • tar.gz

v0.19.0

Toggle v0.19.0's commit message
Update version.txt before 0.19.0 release (deepspeedai#7995)

  • May 6, 2026
  • 98a2fbd
  • zip
  • tar.gz

v0.18.9

Toggle v0.18.9's commit message
Update version.txt for latest incoming release 0.18.9 (deepspeedai#7935)

  • Mar 30, 2026
  • 8c93851
  • zip
  • tar.gz

v0.18.8

Toggle v0.18.8's commit message
Update version (deepspeedai#7903)

  • Mar 13, 2026
  • 5f7b687
  • zip
  • tar.gz

v0.18.7

Toggle v0.18.7's commit message
Fix hook count performance regression from v0.18.5 (deepspeedai#7886)

Fixes performance regressions reported in deepspeedai#7882 and deepspeedai#7885.

PR deepspeedai#7780 added dynamic hook count computation for reentrant
checkpointing correctness, but placed the call inside every gradient
hook closure. For a model with n parameter tensors, this creates
significant overhead per backward pass.

Summary:

1. Added `should_refresh_expected_hook_count()` predicate that returns
true only at backward phase boundaries (first hook, or new reentrant
phase), so `count_used_parameters_in_backward()` is called once per
phase instead of once per hook.
2. Applied this predicate in ZeRO-1/2 (stage_1_and_2.py) and both ZeRO-3
hook sites (stage3.py), reusing the `cached_max_expected_hooks_seen`
value when refresh isn't needed.
3. Changed enter_backward() to reset hook counters on first real
backward entry, preventing pollution from pre-user-backward autograd
calls (e.g., TiledFusedLogitsLoss).

With 24-layer transformer, ~267M params (147 parameter tensors), ZeRO-2,
8×H100 80GB, bf16, batch size 8, 20 warmup + 20 measured iterations:
  - Before fix: 0.1265s/iter
  - After fix: 0.0505s/iter

---------

Signed-off-by: Masahiro Tanaka <[email protected]>
Co-authored-by: Ramya Ramineni <[email protected]>
  • Mar 5, 2026
  • 6c59d54
  • zip
  • tar.gz

v0.18.6

Toggle v0.18.6's commit message
Replace torch.jit.script with torch.compile (deepspeedai#7835) (deeps…

…peedai#7840)

Fixes deepspeedai#7835.

On torch==2.10.0, importing DeepSpeed emitted deprecation warnings from
import-time JIT-decorated helpers.
This change updates the compatibility path to align with PyTorch
guidance while keeping import clean.

---------

Signed-off-by: Masahiro Tanaka <[email protected]>
Co-authored-by: Hongwei Chen <[email protected]>
  • Feb 12, 2026
  • d2ca6e7
  • zip
  • tar.gz

v0.18.5

Toggle v0.18.5's commit message
Update PyTorch to v2.9 for modal tests (deepspeedai#7816)

Update PyTorch to v2.9 for modal tests

---------

Signed-off-by: Masahiro Tanaka <[email protected]>
  • Jan 29, 2026
  • b19987c
  • zip
  • tar.gz

v0.18.4

Toggle v0.18.4's commit message
fix: avoid IndexError in BF16_Optimizer.destroy() when using DummyOpt…

…im (deepspeedai#7763)

fix: avoid IndexError in BF16_Optimizer.destroy() when using DummyOptim

Short-circuit BF16_Optimizer.destroy() if using_real_optimizer is False.
When initialized with optimizer=None (DummyOptim), bf16_groups remains
empty, causing an IndexError when accessing it in destroy().

Resolves deepspeedai#7752
  • Jan 7, 2026
  • b35d9eb
  • zip
  • tar.gz

v0.18.3

Toggle v0.18.3's commit message
Wall clock timers API (deepspeedai#7714)

Make wall clock timers available to clients.

---------

Signed-off-by: Olatunji Ruwase <[email protected]>
  • Dec 9, 2025
  • 6eb98aa
  • zip
  • tar.gz
PreviousNext
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.