YouZum

Nachrichten

AI, Committee, Nachrichten, Uncategorized

Prime Intellect Releases prime-rl 0.6.0 to Train Trillion-Parameter MoE Models on Agentic RL Workloads

Prime Intellect has released prime-rl version 0.6.0. The framework targets reinforcement learning on trillion-parameter Mixture-of-Experts (MoE) models. It focuses on heavy agentic workloads, like long-horizon software-engineering tasks. The research team trained GLM-5 on SWE tasks at up to 131k sequence length. Step times stayed under five minutes. The batch size was 256 rollouts. The run used only 28 H200 nodes. TL;DR prime-rl 0.6.0 trains trillion-parameter MoE models on agentic RL workloads. GLM-5 trained on SWE at 131k sequence length, sub-5-minute steps, 28 H200 nodes. Asynchronous RL disaggregates trainer and inference for independent optimization. Inference uses FP8, Wide EP, P/D disaggregation, KV offloading, and router replay. Training uses 3-D parallelism (FSDP, EP, CP) plus block-scaled FP8. What is prime-rl 0.6.0? prime-rl is an open framework for asynchronous reinforcement learning. It post-trains large open-source models on agentic tasks. Version 0.6.0 extends this to trillion-parameter MoE scale. The example model in the announcement is zai-org/GLM-5.1. The optimizations also apply to other large MoE models. Examples include moonshotai/Kimi-K2.7-Code and nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16. A full GLM-5.1 run starts with one command on a Slurm cluster. Copy CodeCopiedUse a different Browser uv run rl @ examples/glm5_llmd/rl.toml –output-dir /shared/outputs/glm5-llmd Role of asynchronous RL Agentic tasks have long-tail outliers. Some coding rollouts run for hours. Waiting for them before each policy update would idle GPUs. Asynchronous RL avoids this. The trainer and inference systems are disaggregated. They run and scale independently. The inference policy updates as soon as the optimizer step finishes. There is one synchronization point: the policy update. prime-rl pushes new weights as soon as they exist. Already-dispatched rollouts keep their active prefix cache. So a single rollout may mix tokens from several policy versions. New rollouts behave differently. They repopulate their own KV cache, even when prefixes match. A KV-cache salt forces this. Requests from too old a policy are dropped. The max_off_policy_steps value controls that threshold. Inference optimizations Inference is usually the throughput bottleneck in an RL system. prime-rl optimizes for throughput, while keeping latency bounded. FP8 inference: Lower precision speeds up prefill and decode. prime-rl uses FP8 with DeepEP and DeepGEMM kernels. Wide Expert Parallelism: Wide EP spreads experts across ≥32 GPUs. It pairs with a large data-parallel rank, for example 32. Each GPU holds separate experts and serves as an endpoint. Synchronization happens per-layer, through dispatch and combine operations. Prefill and Decode Disaggregation: Some modelenv pairs hit a 4:1 prefill:decode token ratio. Shared workers would inflate end-to-end latency. That reduces the benefits of PipelineRL. P/D disaggregation separates prefill and decode workers. Long tool outputs then stop throttling decode workers. KV cache management: High concurrency needs large KV cache space. prime-rl supports tiered offloading to CPU and disk. vLLM native offloading creates one pool per worker. Mooncake Store instead pools RAM and disk across all nodes centrally. Request routing: prime-rl ships a fork of vllm-router by default. It also supports the NVIDIA Dynamo router as a drop-in. Routers score workers using KV cache reuse, queue depth, and live load. Router replay (R3): Trainerinference mismatch silently kills training. Router replay captures inference routing decisions. It replays them directly on the trainer. This cuts KL mismatch by roughly an order of magnitude. Routed experts have shape [num_layers, top_k, seq_len]. This payload can grow to hundreds of GB. At scale, the data rate reaches tens of Gbps. So prime-rl treats it as an opaque payload. Optimized PyTorch operations handle the processing. Training optimizations The trainer builds on torchtitan, a PyTorch-native training codebase. It relies on 3-D parallelism: FSDP, CP, and EP. The GLM-5 case study uses all three. Strategy What it shards Primary use Key detail FSDP (FSDP2) Parameters, gradients, optimizer states Baseline memory amortization Gathers weights on demand per layer via fully_shard Expert Parallelism (EP) Experts within a layer Shrinks active layer memory all2all dispatch/combine; torch-native or DeepEP Context Parallelism (CP) The sequence dimension Long-context activation memory Ulysses (default) or Ring Attention EP exists because layers stay huge after FSDP. With 78 layers and 800B params in float32, one layer’s all-gather needs roughly 40GB. Overlapping one layer pushes that near 80GB. Setting EP=8 dispatches tokens instead of gathering full experts. torch-native all2all is slightly faster within one node. DeepEP wins when EP spans multiple nodes. CP matters at 131k+ sequence length. There, activations dominate memory, not parameters. GLM-5 uses DSA, which neither Ulysses nor Ring Attention parallelizes directly. So prime-rl ships a custom context-parallel implementation for it. FP8 training. prime-rl uses DeepGEMM block-scaled FP8, as proposed by DeepSeek V3. This rarely raises throughput, due to quantization overhead. Its real value is matching trainer and inference precision. That reduces KL mismatch and stabilizes training. Interactive Explainer Use cases with examples Long-horizon SWE agents: Train a model on real repository issues. Rollouts can span 100s of turns and tool calls. P/D disaggregation keeps decode latency predictable here. 1T-scale post-training on fewer nodes: The GLM-5 run fit on 28 H200 nodes. Wide EP and KV offloading raise concurrency and throughput. Stable agentic RL at scale: Router replay and FP8 training both reduce trainerinference KL mismatch. Lower mismatch means steadier training. Check out the Technical details. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well. Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us The post Prime Intellect Releases prime-rl 0.6.0 to Train Trillion-Parameter MoE Models on Agentic RL Workloads appeared first on MarkTechPost.

Prime Intellect Releases prime-rl 0.6.0 to Train Trillion-Parameter MoE Models on Agentic RL Workloads Beitrag lesen »

AI, Committee, Nachrichten, Uncategorized

Elephant alert! AI warning systems aim to avoid deadly clashes

India is home to about 60% of the world’s wild Asian elephants, and around 80% of the animals’ habitat lies outside protected areas, according to the Ministry of Environment, Forest, and Climate Change. That brings people and wildlife into close contact, and clashes can turn lethal: There have been some 3,000 human casualties in the last five years and over 1,000 elephant deaths since 2014. In places where elephants tend to wander, warnings from ground-based patrols can sometimes take hours to reach populated areas like villages and farms, so they have failed to prevent much of the damage. In response, state forest departments, NGOs, and locals are beginning to design, test, and deploy a range of artificially intelligent systems that can cut response and warning times to minutes—or even seconds.  Kanika Gupta is an independent journalist and documentary filmmaker based in New Delhi.

Elephant alert! AI warning systems aim to avoid deadly clashes Beitrag lesen »

AI, Committee, Nachrichten, Uncategorized

The Download: the future of chipmaking and Anthropic’s government clash

This is today’s edition of The Download, our weekday newsletter that provides a daily dose of what’s going on in the world of technology. The $400 million machine powering the future of chipmaking It’s a bit of a schlep to get to the top of ASML’s newest machine. It’s about the size of a double-decker bus, weighs more than 150 tons, and costs $400 million. But if you want to make the world’s most powerful chips, a lithography system like this is essential. The AI era needs ever faster chips, and ASML’s machines make that possible. They pattern chip features with extreme-ultraviolet light, or EUV—radiation outside the visible spectrum, produced by shooting lasers at tiny molten drops of tin tens of thousands of times a second. ASML now makes about 90% of all chip-lithography tools worldwide. That dominance has made some people, and governments, uneasy. And would-be competitors are now gunning for its territory. Read the full story on ASML’s $400 million machine—and the growing threats to its position. —Clive Thompson Three things to watch amid Anthropic’s latest feud with the government In April, Anthropic said it had built an AI model called Mythos that could pose a cybersecurity risk. It then released a safer version called Fable. Days later, the US government placed export controls on it. Within hours, Anthropic revoked access to both models. “Doomers” have long warned about catastrophic AI risk. But this intervention came over a coding model—not a bioweapon or rogue AI—and the response so far looks less like a safety plan than a reactive policy move. Here are three things to watch in Anthropic’s standoff with Washington. —James O’Donnell This story is from The Algorithm, our weekly newsletter giving you the inside track on all things AI. Sign up to receive it in your inbox every Monday. Longevity’s next frontier: “reprogramming” your body Billions of dollars are flooding into efforts to reverse aging as scientists explore ways to return cells to a younger state. But how far off are these experimental treatments? Will they really work? At an upcoming virtual Roundtables event, MIT Technology Review will examine the science behind the hype. Science editor Mary Beth Griggs and senior biotechnology reporter Jessica Hamzelou will explore longevity’s latest frontier in a subscriber-only discussion on Tuesday, June 30. Register here to join the session at 11:30 AM ET / 8:30 AM PT / 16:30 GMT. The must-reads I’ve combed the internet to find you today’s most fun/important/scary/fascinating stories about technology. 1 Meta is pausing an AI training program that tracks workers’ keystrokesThe move comes after sensitive data was leaked. (Business Insider)+ Meta declined to say how ⁠long the pause would last. (Reuters $)+ The program tracked staff keystrokes and mouse movements. (BBC)+ AI is supercharging surveillance. (MIT Technology Review) 2 Trump is throwing his weight behind quantum computingHe’s signed an order for a system for scientific research by 2028. (Reuters $)+ A second order aims to protect government ‌systems from the tech. (TNW) 3 A trial was reportedly won using an AI lawyerAn AI law firm in England won the landmark case over an unpaid debt. (Guardian)+ Courts have been flooded with AI lawsuits. (MIT Technology Review) 4 Tesla faces a federal probe after a Model 3 killed a 76-year-oldThe car crashed into the woman’s Texas home. (NYT $)+ Police said Tesla’s driver-assistance system has been engaged. (CNBC) 5 Google DeepMind has partnered with movie studio A24 to build AI toolsIt’s invested $75 million into the company as well. (The Verge)+ The deal aims to develop new movie production tech. (WSJ $) 6 Nvidia says its new data center design can significantly cut water use The breakthrough lies in a “closed-loop” cooling system. (Gizmodo)+ But there are major caveats to Nvidia’s claims. (The Verge)+ We did the math on AI’s energy footprint. (MIT Technology Review) 7 SpaceX today plans to test a spacecraft for moving cargo from orbitStarfall is designed to deliver payloads anywhere on Earth. (Ars Technica)+ Commercial space stations are gaining traction. (MIT Technology Review) 8 People training new AI models admit they just get chatbots to do itWhich may reduce the usefulness of future models. (New Scientist $)+ AI trained on AI garbage spits out AI garbage. (MIT Technology Review) 9 A woman with Alzheimer’s regained speech after taking psilocybinShe had only spoken in monosyllables before the dose. (Vice)+ But psychedelics are falling short in clinical trials. (MIT Technology Review) 10 Elon Musk and NASA’s chief are dreaming of antimatter propulsionThey argue it could enable travel beyond our solar system. (Gizmodo) Quote of the day “If AI is to help build a better ​future, it must be honest about what it costs us now.”  —UN Secretary-General António Guterres calls on AI firms to come clean on environmental costs during his address at London Climate Action Week. One More Thing The entrepreneur dreaming of a factory of unlimited organs When her daughter was diagnosed with a fatal lung disease, entrepreneur Martine Rothblatt started a biotechnology company. Her goal was to create what she calls an “unlimited supply of transplantable organs.” Back then, Rothblatt’s vision seemed not only impossible but “phantasmagoric.” But genetically engineered pig organs have already been transplanted into humans, while United Therapeutics is also developing 3D-printed lungs.  Rothblatt believes every body part could eventually be 3D-printed. She envisions a pipeline of readily available transplantable organs, saving countless lives—including her daughter’s. Read the full story on her bet that the future of medicine lies in organs on demand. —Antonio Regalado We can still have nice things A place for comfort, fun, and distraction to brighten up your day. (Got any ideas? Drop me a line.) + George Washington’s original beer recipe is a delicious taste of American history.+ Korn’s “Falling Away From Me” has been lovingly reconstructed as a jazz fusion brass track.+ Brighten your morning with a massive, cheering gallery of 99 incredibly derpy animal faces.+ This 20-legged omnidirectional robot moves seamlessly in any direction like a mechanical sea urchin.

The Download: the future of chipmaking and Anthropic’s government clash Beitrag lesen »

AI, Committee, Nachrichten, Uncategorized

Three things to watch amid Anthropic’s latest feud with the government

This story originally appeared in The Algorithm, our weekly newsletter on AI. To get stories like this in your inbox first, sign up here. For those of you enjoying your summer unaware of Anthropic’s latest feud with the US government, here’s a recap: In April the company said it had built an AI model called Mythos that was so good at working with code it could pose a global cybersecurity threat. Anthropic gave access to a small group of cybersecurity experts so they could see what they were up against. Then it released a modified version called Fable which it said was safer to the public on Tuesday, June 9. That Friday, the federal government told the company it was a threat to national security and placed export controls on the new release. Anthropic revoked access to both models hours later. People worried about catastrophic effects of AI—broadly labeled “doomers”—have said for years that the technology poses a threat to humanity and published proposals for how the government should intervene in its development. The doomers just got their government intervention—not over a bioweapon or rogue AI, but in response to an AI model that’s basically just really good at coding. And the result so far looks less like a safety plan than like a superficial reaction. There’s plenty to dissect about what happened in those few days that led to such drastic action from the government, and it’s notable that Amazon CEO Andy Jassy was the one who told government officials that Fable would be dangerous (Amazon is both invested in Anthropic and building its own competing AI models). It’s also possible this will be a short-lived ban from the government that doesn’t survive legal scrutiny (it’s not clear that Anthropic’s offering access to Fable really counts as “exporting” it, for example).  But there are ripple effects happening already.  For one, this is making a whole lot of people not want to rely on American AI companies. TheFrench politician Bruno Retailleau described it as a “wake-up call” that should motivate Europe to build more AI. But any vision of turning Paris into Silicon Valley—touted by many other European leaders following the shutdown of Anthropic’s models—is complicated by one big thing: China.  Open-source models from China are very capable and incredibly cheap, and they can be downloaded to run on anyone’s servers with no rules or guardrails. (This makes them attractive to companies that don’t want access turned off on the basis of a decision from the White House—but equally attractive to cybercriminals, the type that Anthropic hoped to fend off by building safety guardrails into its models.)  It’s possible that companies, including those in the US and Europe, will decide that working with Chinese models is just easier, as the skyrocketing of shares in the Chinese startup Zhipu suggests. Playing this forward, is it possible the government’s next drastic decision will be to say that US companies using models from China pose a threat to national security? I wouldn’t write it off.  Second, it’s possible that shutting off access to Anthropic’s models will leave the country morevulnerable to cybersecurity attacks, not less. Leading cybersecurity experts have said as much in an open letter to the government, writing that access to Anthropic’s models was helping researchers prepare defenses, and that the company’s models are no more dangerous than other leading models that are widely available. Such is the risk of applying the concept of nonproliferation to software—trying to control and restrict dangerous AI models in the manner of the uranium used for nuclear weapons.  The third thing worth watching is how US lawmakers will react. Remember that following Anthropic’s last feud with the government over how the Pentagon could or could not use its models, a slate of new bills was introduced that would define the limits of military AI. Right now, the biggest players shaping how AI gets used are the companies and the White House. There’s been much talk about more federal AI regulation, and polling suggests most Americans want it. Lawmakers are still figuring out whether to form rules on how kids use chatbots and are far from a clear answer on the extent to which the government should vet the safety of AI models. But with every drastic action from the White House, the pressure for regulations rises. To state the obvious, predictions are hard when the administration’s attitudes toward AI  change with the wind. When President Trump took office, he threw out the restrictive rulebook for how to make AI safe and promised to get out of the way of tech companies. The White House has now called the most valuable AI startup a risk to national security once in the spring, and again in summer. What will fall bring?

Three things to watch amid Anthropic’s latest feud with the government Beitrag lesen »

AI, Committee, Nachrichten, Uncategorized

How to Design Python-First Interactive Dashboards with Prefab Reactive UI Components and Static HTML Export

In this tutorial, we build a Prefab application that demonstrates how to create interactive dashboards entirely in Python. We use Prefab’s component-based Python interface to design a polished operations dashboard with reactive state, charts, tables, filters, forms, tabs, alerts, metrics, and client-side actions. We generate realistic pipeline monitoring data, connect it to live UI controls, and export the final app as a static HTML dashboard that we can preview directly inside Google Colab. Through this workflow, we learn how Prefab lets us move from Python data logic to a modern React-powered user interface without having to write frontend code manually. Installing Prefab in Colab Copy CodeCopiedUse a different Browser import os import sys import base64 import subprocess from pathlib import Path from IPython.display import HTML, display, FileLink PREFAB_VERSION = “0.20.2” APP_PATH = Path(“/content/prefab_advanced_tutorial_app.py”) HTML_PATH = Path(“/content/prefab_advanced_dashboard.html”) subprocess.check_call([ sys.executable, “-m”, “pip”, “install”, “-q”, f”prefab-ui=={PREFAB_VERSION}”, ]) APP_CODE = “” We set up the Colab environment by importing the required Python utilities and defining the Prefab version, app path, and HTML export path. We install the pinned prefab-ui package so that the tutorial runs consistently without version-related issues. We also initialize an empty APP_CODE string, which we use to build the complete Prefab application step by step. Copy CodeCopiedUse a different Browser APP_CODE += r”’ Generating Synthetic Operations Data Copy CodeCopiedUse a different Browser import random from collections import Counter, defaultdict from datetime import date, timedelta from prefab_ui.actions import AppendState, OpenLink, PopState, SetState, ShowToast, ToggleState from prefab_ui.app import PrefabApp from prefab_ui.components import ( Alert, AlertDescription, AlertTitle, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Code, Column, DataTable, DataTableColumn, Form, Grid, H2, Input, Markdown, Mermaid, Metric, Muted, Progress, Ring, Row, Slider, Small, Switch, Tab, Tabs, Text ) from prefab_ui.components.charts import ( BarChart, ChartSeries, LineChart, PieChart, RadarChart, ScatterChart, Sparkline ) from prefab_ui.components.control_flow import Else, ForEach, If from prefab_ui.rx import EVENT, STATE random.seed(42) TODAY = date.today() DATES = [TODAY – timedelta(days=29 – i) for i in range(30)] REGIONS = [“All”, “APAC”, “EMEA”, “NA”, “LATAM”] PIPELINES = [ “Customer 360 ETL”, “Invoice OCR”, “LLM Triage”, “Risk Scoring”, “Forecast Sync”, “Warehouse Load”, ] OWNERS = [“Data Platform”, “AI Apps”, “Revenue Ops”, “Risk Engineering”] STATES = [“Completed”, “Completed”, “Completed”, “Completed”, “Late”, “Failed”] PRIORITIES = [“P0”, “P1”, “P2”, “P3”] runs = [] daily_region_rows = [] for d in DATES: for region in REGIONS[1:]: region_bias = { “APAC”: 0.96, “EMEA”: 0.94, “NA”: 0.97, “LATAM”: 0.91, }[region] volume = random.randint(32, 78) failures = 0 late = 0 total_cost = 0.0 total_latency = 0.0 total_revenue = 0.0 for i in range(volume): pipeline = random.choice(PIPELINES) owner = random.choice(OWNERS) state = random.choices( STATES, weights=[ region_bias * 10, 6, 4, 3, 1.2, max(0.2, (1 – region_bias) * 16), ], k=1, )[0] duration = max( 12, int( random.gauss(95, 35) + (20 if state == “Late” else 0) + (45 if state == “Failed” else 0) ), ) cost = round(max(0.09, random.lognormvariate(-1.15, 0.55) + duration / 1800), 2) revenue = round(random.uniform(1.2, 8.5) * (1.3 if state == “Completed” else 0.6), 2) priority = random.choices(PRIORITIES, weights=[1, 3, 7, 10], k=1)[0] if state == “Failed”: failures += 1 if state == “Late”: late += 1 total_cost += cost total_latency += duration total_revenue += revenue if d >= TODAY – timedelta(days=10) and (state in {“Failed”, “Late”} or random.random() < 0.05): runs.append({ “run_id”: f”{d.strftime(‘%m%d’)}-{region[:2]}-{len(runs)+1:04d}”, “date”: d.strftime(“%Y-%m-%d”), “pipeline”: pipeline, “owner”: owner, “region”: region, “state”: state, “priority”: priority, “duration_s”: duration, “cost_usd”: cost, “revenue_k”: revenue, “sla_gap”: round(max(0, duration – 120) / 60, 1), }) daily_region_rows.append({ “date”: d.strftime(“%b %d”), “region”: region, “runs”: volume, “failures”: failures, “late”: late, “success_rate”: round(100 * (volume – failures – late * 0.35) / volume, 1), “avg_latency”: round(total_latency / volume, 1), “cost_usd”: round(total_cost, 2), “revenue_k”: round(total_revenue, 1), }) runs = sorted( runs, key=lambda r: (r[“priority”], r[“state”] != “Failed”, -r[“duration_s”]) )[:80] def aggregate_daily(rows): by_date = defaultdict(lambda: { “date”: “”, “runs”: 0, “failures”: 0, “late”: 0, “cost_usd”: 0.0, “revenue_k”: 0.0, “latency_weighted”: 0.0, }) for r in rows: bucket = by_date[r[“date”]] bucket[“date”] = r[“date”] bucket[“runs”] += r[“runs”] bucket[“failures”] += r[“failures”] bucket[“late”] += r[“late”] bucket[“cost_usd”] += r[“cost_usd”] bucket[“revenue_k”] += r[“revenue_k”] bucket[“latency_weighted”] += r[“avg_latency”] * r[“runs”] out = [] for d in [x.strftime(“%b %d”) for x in DATES]: b = by_date[d] if b[“runs”]: b[“success_rate”] = round(100 * (b[“runs”] – b[“failures”] – b[“late”] * 0.35) / b[“runs”], 1) b[“avg_latency”] = round(b[“latency_weighted”] / b[“runs”], 1) b[“cost_usd”] = round(b[“cost_usd”], 2) b[“revenue_k”] = round(b[“revenue_k”], 1) del b[“latency_weighted”] out.append(dict(b)) return out def aggregate_regions(rows): by_region = defaultdict(lambda: { “region”: “”, “runs”: 0, “failures”: 0, “late”: 0, “cost_usd”: 0.0, “revenue_k”: 0.0, “latency_weighted”: 0.0, }) for r in rows: b = by_region[r[“region”]] b[“region”] = r[“region”] b[“runs”] += r[“runs”] b[“failures”] += r[“failures”] b[“late”] += r[“late”] b[“cost_usd”] += r[“cost_usd”] b[“revenue_k”] += r[“revenue_k”] b[“latency_weighted”] += r[“avg_latency”] * r[“runs”] out = [] for region in REGIONS[1:]: b = by_region[region] b[“success_rate”] = round(100 * (b[“runs”] – b[“failures”] – b[“late”] * 0.35) / b[“runs”], 1) b[“avg_latency”] = round(b[“latency_weighted”] / b[“runs”], 1) b[“cost_usd”] = round(b[“cost_usd”], 2) b[“revenue_k”] = round(b[“revenue_k”], 1) b[“roi”] = round(b[“revenue_k”] / max(1, b[“cost_usd”]), 1) del b[“latency_weighted”] out.append(dict(b)) return out def make_status_rows(table_rows): counts = Counter(r[“state”] for r in table_rows) return [{“state”: k, “count”: v} for k, v in counts.items()] def make_pipeline_rows(table_rows): counts = Counter(r[“pipeline”] for r in table_rows) return [{“pipeline”: k, “count”: v} for k, v in counts.most_common()] def make_kpis(region, daily_rows, table_rows): runs_count = sum(r[“runs”] for r in daily_rows) failures = sum(r[“failures”] for r in daily_rows) late = sum(r[“late”] for r in daily_rows) cost = sum(r[“cost_usd”] for r in daily_rows) revenue = sum(r[“revenue_k”] for r in daily_rows) return { “region”: region, “runs”: runs_count, “success_rate”: round(100 * (runs_count – failures – late * 0.35) / max(1, runs_count), 1), “avg_latency”: round(sum(r[“avg_latency”] * r[“runs”] for r in daily_rows) / max(1, runs_count), 1), “cost_usd”: round(cost, 2), “revenue_k”: round(revenue, 1), “roi”: round(revenue / max(1, cost), 1), “open_issues”: len(table_rows), “p0p1”: sum(1 for r in table_rows if r[“priority”] in {“P0”, “P1”}), “failure_rate”: round(100 * failures / max(1, runs_count), 2), “spark”: [r[“success_rate”] for r in daily_rows[-14:]], } DAILY_BY_REGION = {“All”: aggregate_daily(daily_region_rows)} REGION_ROWS = aggregate_regions(daily_region_rows) for region in REGIONS[1:]: DAILY_BY_REGION[region] = [r for r in daily_region_rows if r[“region”] == region] RUNS_BY_REGION = { region: [r for r in

How to Design Python-First Interactive Dashboards with Prefab Reactive UI Components and Static HTML Export Beitrag lesen »

AI, Committee, Nachrichten, Uncategorized

MoonMath AI Open-Sources a HIP Attention Kernel for AMD MI300X That Beats AITER v3 on Every Shape and Rounding Mode

MoonMath AI team has released a bf16 forward attention kernel for AMD’s MI300X GPU. It is written in HIP, not hand-written assembly. The code is open-source under the MIT license. The MoonMath.ai team reports it beats AITER v3, AMD’s own optimized kernel, on every tested shape. Bare-metal access came from HotAisle, an AMD cloud provider. Attention is the fused softmax(QKᵀ/√d)·V operation inside every transformer. The MI300X is AMD’s CDNA3 data-center GPU, with the ISA target (gfx942). This kernel runs on that hardware only. TL;DR MoonMath.ai open-sources a bf16 forward attention kernel for AMD MI300X, written in HIP, not assembly (MIT). It beats AMD’s AITER v3 on every shape and rounding mode — geomean 1.18×/1.15×/1.08×, up to 1.26×. The core trick: one-instruction asm wrappers let you pick the opcode while the compiler allocates registers. Most of the speedup is memory placement — K in LDS, V hot in L1, Q and accumulators in registers. A real SGLang PR used it to speed up Wan2.1 video diffusion by 1.23×, with no quality regression. Understanding Kernel A kernel is a small program that runs directly on the GPU’s many cores to perform one specific computation—here, the attention math—as fast as the hardware allows. The kernel computes forward attention in bf16 on MI300X only. It takes inputs in either BSHD or BHSD layout, with no transpose. Head dimension is fixed at 128. It supports any sequence length, including cross-attention. There are real limits. There is no causal mask, no GQA, and no varlen batching. Outputs are bf16, and it runs on gfx942 hardware exclusively. Numerics are tightly controlled. All three rounding modes match AITER’s per-mode rounding rule. Every finite output sits within 1 bf16 ULP of AITER. NaN and Inf handling is bit-identical, and results are deterministic. The Core Trick: One-Instruction asm Wrappers The core technique avoids a familiar dilemma. Compiler intrinsics keep code tidy but let the compiler reorder or rename operands. Raw inline assembly gives control but forces manual register and address management. MoonMath wraps exactly one instruction in a __device__ __forceinline__ function. Extended asm constraints describe the operands. The research team picks the opcode. The compiler still allocates registers and tracks data flow. Copy CodeCopiedUse a different Browser // in/out tied to the SAME VGPR → no accumulator rename, no v_mov copy. __device__ __forceinline__ void asm_mfma(bf16x4_t a, bf16x4_t b, fp32x4_t& c) { asm volatile(“v_mfma_f32_16x16x16_bf16 %0, %1, %2, %0” : “+v”(c) : “v”(a), “v”(b)); } The “+v”(c) constraint ties the accumulator input and output to the same VGPR. No copy instruction is emitted. This keeps the kernel close to ordinary HIP. It still steers the machine one instruction at a time. The Architecture: Eight Waves, Two Groups, Two Barriers A CDNA3 compute unit has four SIMD units. The textbook block is four waves. MoonMath instead runs eight waves per block, in two groups of four. The two groups run the same Q*K, softmax, O += P*V sequence. They are offset by a phase. While one group saturates the matrix core, the other runs softmax and issues loads. Then they swap, so the matrix core never idles. There are two s_barriers per iteration. One sits at the phase handoff. One sits at the iteration boundary. Per-counter waits handle the rest of the synchronization. This echoes FlashAttention-3’s matmul and softmax alternation. It does not copy FA3’s producer and consumer warp split. On CDNA3, every memory move is already asynchronous, so a dedicated producer wave is unnecessary. Where Data Lives, and Why 16×16×16 Most of the speedup comes from memory placement. K streams from HBM into LDS, double-buffered, shared by all eight waves. V stays hot in L1, read on every PV matmul. Q and accumulators live in registers. The research team picked the 16×16×16 MFMA over 32×32×8. Both shapes have identical throughput. The smaller tile accumulates into 4 fp32 elements per lane, against 16. Lower accumulator pressure leaves room for deeper prefetch and a third Q tile. Decision Choice Reason Waves per block 8 (two groups of 4) Plan the pipeline directly; share one K copy MFMA shape 16×16×16 bf16 Same throughput, lower VGPR pressure, better power efficiency K placement LDS, double-buffered, 32 KiB Shared by all 8 waves, swapped per iteration V placement L1, resident, prefetched Reread across PV, kept hot deliberately Q + accumulators VGPRs Read every iteration, never reloaded Two later wins close the gap. A third Q tile (3Q) raises data reuse per loaded K and V tile. A Flash-Decoding-style tail KV split rescues the stranded fractional round across MI300X’s 304 CUs. These wins cascade. Moving V to L1 freed the LDS that the third Q tile then fills. Benchmark Tests ran on MI300X in bf16, head dimension 128. Each shape was measured at three rounding modes. RTNE rounds to nearest even. RTNA rounds to nearest, ties away from zero. RTZ truncates toward zero. Shape (B, H, S, D) Round Ours (ms) AITER v3 (ms) vs AITER vs MAX (2, 24, 8192, 128) RTNE 3.083 3.792 1.23× 1.37× (2, 24, 16384, 128) RTNE 11.670 14.691 1.26× 1.54× (4, 16, 16384, 128) RTZ 15.055 16.183 1.07× 1.47× (2, 24, 32768, 128) RTNA 44.440 52.363 1.18× 1.57× (1, 16, 131072, 128) RTNE 232.517 269.278 1.16× 1.46× Geomeans across the sweep favor MoonMath. Versus AITER, it scores 1.18× (RTNE), 1.15× (RTNA), and 1.08× (RTZ). Versus Modular MAX, geomeans run 1.44× to 1.49×, and per-shape speedups reach 1.59×. RTZ is AITER’s own fastest mode and the tightest race. The (4, 16, 16384) RTZ shape moved from 0.95× to 1.07×. The tail KV split is what closed that final gap. Interactive Explainer Use Cases The kernel installs with pip and exposes a small API. It launches on the caller’s stream, so it overlaps inside larger pipelines. Copy CodeCopiedUse a different Browser import torch import moonmath_attention as ma # PyTorch’s ROCm build uses the “cuda” device string on AMD GPUs q = torch.randn(2, 8192, 24, 128, dtype=torch.bfloat16, device=”cuda”) k = torch.randn(2, 8192, 24, 128, dtype=torch.bfloat16, device=”cuda”) v = torch.randn(2, 8192, 24, 128, dtype=torch.bfloat16, device=”cuda”) out

MoonMath AI Open-Sources a HIP Attention Kernel for AMD MI300X That Beats AITER v3 on Every Shape and Rounding Mode Beitrag lesen »

AI, Committee, Nachrichten, Uncategorized

Inside the world’s deepest and longest subsea road tunnel

It’s cold, it’s very, very noisy, and—if I can be quite honest with you—I’m not feeling super relaxed. I’m currently around 300 meters, or 1,000 feet, beneath the North Sea, in a dark, dank cave. It smells weird. And I am increasingly aware of the pressure from millions of tons of seawater just above my head, pushing down with a force of more than 500 pounds per square inch. Picture a baby rhino standing on a postage stamp.  Only fabulous engineering is keeping me from being crushed, drowned, disappeared. My safety goggles are foggy. Just a few hundred meters away, someone is about to blow up a giant rock wall. Luckily, earlier that day I was given a full safety briefing, and I’ve got a special hard hat on. “Don’t worry—if you don’t make it, we’ll have your stuff sent back to your office,” geologist Anne-Merete Gilje tells me, straight-faced. Ah, Norwegian humor. “It’s kind of a lifestyle. You have to be a little bit crazy to work underground all the time.” Niclas Brusehed, tunnel foreman, Implenia I’m in this odd situation under the iconic fjords of Norway to visit what will soon become the world’s longest and deepest subsea road tunnel, called Rogfast (short for “Rogaland Fixed Link”). I want to understand how you make something as audacious as a 26.7-kilometer (16.6-mile) highway that sits 390 meters (1,280 feet) below the sea at its deepest point. And also—at a time when it can feel hard to get anything done, especially in the US—to reassure myself that ambitious engineering is still possible. That we can still make things.  The Norwegians already have the world’s longest subsea tunnel, the 14.4-kilometer Ryfylke, though Rogfast will dwarf it. Their expertise has attracted attention from Japan, Spain, Morocco, and even a number of US states, whose representatives were due to visit the site in May, just weeks after I went. They, too, want to know how Norway does it.  The answer: tons of explosives.  The entire endeavor feels like an obstinate refusal to give in to physics and geology. “It’s always exciting,” Niclas Brusehed, a tunnel foreman at Implenia, a Swiss firm involved in the project, tells me. “Every blast creates a new world.” There’s not just the blasting of the tunnel itself—although that is an epic project on its own—but an immense logistics challenge involving huge ventilation shafts, extreme pressure, underground roundabouts, and the complex Norwegian geology. Oh, and the water. So much water.   “This is the longest continuous blast on the sea,” says John Olaf Østerhus, assistant project manager at Implenia. “Never been done before. We can’t buy a book to see how we do this.”  All right, time to fish my phone out of my safety suit—don’t want to forget this. On another planet Arriving at the rock face where the tunnel hits seabed feels like being on the moon. It’s a huge slab of stone at the end of a long, dark, wet, wide passageway that’s lit (barely) by electric lights. Giant vehicles carting tons of rocks rumble past periodically, and we pull to the side of the road to let them by.  Rescue chambers are spread throughout the tunnel network.COURTESY OF NORWEGIAN PUBLIC ROADS ADMINISTRATION Workers clock in for 12-hour shifts, 6 a.m. until 6 p.m., deep in the bowels of the Earth where no natural light can reach. Twelve days on, 16 days off. They eat their lunch at a table in this damp cave surrounded by portacabins plastered with safety notices. “It’s kind of a lifestyle,” says Brusehed, laughing. “You have to be a little bit crazy to work underground all the time.” These crazy engineers are here to make tunnels the Norwegian way. The nation frequently uses what’s known as the drill-and-blast method instead of the tunnel-boring machines that are more typical elsewhere. This approach offers more flexibility for long, complex operations with varied rock types. Each blast adds about five to six meters to the tunnel.  Rogfast is being built inward from the ends to speed things up. The construction company Skanska is leading from the north, coming from the island of Vestre Bokn; Implenia has joined a company called Stangeland to tunnel from Randaberg in the south, which is where I am. Both teams use multiple laser scans each day to consistently measure their orientation and check that the tunnel is exactly where it should be. The two ends should meet sometime in 2029, with no more than just a few centimeters of deviation. The caves are like towering cathedrals, scattered with rubble.COURTESY OF NORWEGIAN PUBLIC ROADS ADMINISTRATION Norway has constructed more than a thousand kilometers of tunnels over the past several decades. The depth and length of these make the best efforts to date of Elon Musk’s Boring Company—a mere 2.7-kilometer tunnel in Las Vegas that is just 3.6 meters wide—look rather pathetic. The country’s spectacular setting makes such builds necessary; while Norwegians are proud of having the second-longest coastline in the world after Canada, getting up and down the west coast requires multiple ferry rides between islands, which can move extra slowly when the weather’s bad.  After it’s completed, which is scheduled to happen in 2033, Rogfast should help eliminate two ferry routes and cut the five-hour journey between the southwestern cities of Stavanger and Bergen by 40 minutes. It will funnel four lanes of traffic deep beneath the fjords of Boknafjord and Kvitsøyfjord, and at one section a relatively scant 50 meters of rock will separate the drivers speeding through the tunnel from the bottom of the North Sea. There are also, delightfully, two undersea roundabouts located 220 meters below sea level. But the first job is to contend with all that water. The never-ending battle Subsea tunneling is defined by a constant, ultimately unwinnable battle with the ocean. The sheer weight of the sea above you, and the crushing pressure, means the water will always find a way in. “It’s the volume and the pressure that’s the biggest risk,”

Inside the world’s deepest and longest subsea road tunnel Beitrag lesen »

We use cookies to improve your experience and performance on our website. You can learn more at Datenschutzrichtlinie and manage your privacy settings by clicking Settings.

Privacy Preferences

You can choose your cookie settings by turning on/off each type of cookie as you wish, except for essential cookies.

Allow All
Manage Consent Preferences
  • Always Active

Save
de_DE