🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
⚠️ Malware / Trojaner / VirenVorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf(11.09.2026 um 09:35 Uhr)
🕵️ SicherheitslückenMicrosoft geht endlich eines der nervigsten Probleme von Windows 11 an(11.09.2026 um 11:58 Uhr)
💾 IT Security ToolsSysinternals Suite(11.09.2026 um 12:00 Uhr)
🕵️ SicherheitslückenDefender 0-Day ShieldBreak (CVE-2026-69414) nicht sauber gepatcht - BornCity(11.09.2026 um 12:52 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
⚠️ Malware / Trojaner / VirenVorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf(11.09.2026 um 09:35 Uhr)
🕵️ SicherheitslückenMicrosoft geht endlich eines der nervigsten Probleme von Windows 11 an(11.09.2026 um 11:58 Uhr)
💾 IT Security ToolsSysinternals Suite(11.09.2026 um 12:00 Uhr)
🕵️ SicherheitslückenDefender 0-Day ShieldBreak (CVE-2026-69414) nicht sauber gepatcht - BornCity(11.09.2026 um 12:52 Uhr)

💾 Downloads 🕛 vor 3 Monaten 2 Min Lesezeit
0

trunk/9455d3d34559799d09196341ca545d946610eb2e: Teach min-cut about online softmax prep (#185783)

↗ Quelle (GitHub · github.com)
🗣️ Stimme:
🐙
$ git clone https://github.com/pytorch/pytorch.git

The online softmax preparation pattern computes softmax max and sum as a

multi-output prim. When this prim appears in an AOTAutograd joint graph, the

min-cut partitioner previously did not know that it was a recomputable/fusible

operation like the decomposed amax/sum pattern it replaces. That skewed the cut

and could make the forward save a full softmax activation instead of the much

smaller max/sum tuple outputs.


Add prims.prepare_softmax_online to the partitioner's recomputable op set. The

existing post-grad placement is still the normal path, but this makes the

partitioner robust if the online softmax preparation is introduced before

partitioning.


I considered relying only on the post-grad pattern placement that originally

avoided the regression, but that leaves the partitioner's cost model wrong for

this prim and makes future joint-graph uses fragile.


Benchmark Results:

A focused AOTAutograd min-cut reproducer that simulates joint-graph online

softmax placement saved 212,992 activation bytes before the fix and 149,504

after the fix, a 29.8% reduction. The old cut saved an extra full

[2, 128, 128] fp16 softmax activation; the new cut saves the small

[2, 128, 1] fp32 max/sum tuple outputs instead.


Test Plan:



  • python test/inductor/test_online_softmax.py -k test_prepare_softmax_after_partitioning

  • python test/inductor/test_online_softmax.py -k test_prepare_softmax

  • python ../state/148141/benchmark_partition_saved_bytes.py

  • lintrunner -a torch/_functorch/partitioners.py test/inductor/test_online_softmax.py

  • git diff --check --cached


Fixes

Approved by: https://github.com/shunting314

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf github.com.
↗ Original-Artikel auf github.com lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Windows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC
1 Quelle
Vorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten trunk/9455d3d34559799d09196341ca545d946610eb2e: Teach min-cut about online softmax prep (#185783)

Thematisch verwandte Begriffe: trunk9455d3d34559799d09196341ca545d946610eb2e, Teach, mincut, about · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...