From b7ae2d1ede9abc174433923fb5afc4b8622ac989 Mon Sep 17 00:00:00 2001 From: Garret Buell Date: Sat, 14 Nov 2026 15:35:07 -0800 Subject: [PATCH] Recognize GA102 (SM86) as a platform Maintainers agreed to recognize SM86 GPUs as a platform. Until now an export on a GA102 GPU, such as the GeForce RTX 3090, either failed ("NVML reports unsupported GPU PCI id") or, with device_identity "none", produced an unknown-device core. helios/src/core/naming.rs gains GA102_DEVICES (RTX 3090 Ti, 3090, 3080, 3080 Ti, 3080 12 GB, 3080 LHR) and the platform "ga102", following the device-identifier naming of gb10, gb202 and gb300. Because this table is the single source for core export naming and for Flare's NVML revision detection, a GA102 capture is now named ga102-tp-, and flare detects the ga102 Hub revision. Other SM86 dies (GA104, GA106) are not included. The catalog test that requires every platform to match one of a fixed set of branches gains a ga102 branch. docs/core-format-design.md, docs/cli-design.md and the --revision help list ga102. Result: export_capture names cores exported on GA102 GPUs ga102, and the catalog and hub treat ga102 like the other platforms. Evidence, on Windows 11 build 26200, RTX 3090 (PCI id 0x2204), NVIDIA driver 621.01: - naming.rs's tests, compiled on their own with rustc --test because Helios's library tests do not compile on Windows: 6 pass, including the new GA102 ids and the GA104 (0x2484) and non-NVIDIA rejections. - flare's library tests: 191 pass, 4 ignored (built with #293 applied). - The same table, carried as a local patch, has named the bf16 and int8 cores of a 9B embedding model ga102-tp1; both load through Helios and replay bit-identically to their exports. Not tested: GA102 GPUs other than the RTX 3090, flare run against a ga102 Hub revision, and Linux. flare-cli's orbit keeps its own compute-capability table and still reports these GPUs as sm86. Design-Signed-Off-By: Claude Opus 5.5 (Claude Code); design-review=ed22 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Garret Buell --- docs/cli-design.md | 6 +++--- docs/core-format-design.md | 2 +- flare-cli/src/cli.rs | 2 +- flare/src/catalog.rs | 2 +- helios/src/core/naming.rs | 18 +++++++++++++++++- 5 files changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/cli-design.md b/docs/cli-design.md index ac6e9ee83..cde639a96 100644 --- a/docs/cli-design.md +++ b/docs/cli-design.md @@ -880,10 +880,10 @@ flare run ORG/MODEL@gb202 --filename model.safetensors --gpus 0,1,2,3 These examples use `ORG/MODEL` as a repository placeholder. Repositories contain prepared Flare cores, not source Transformers checkpoints. Hardware variants -are separate Hugging Face revisions named `gb10`, `gb202`, and `gb300`. Automatic selection +are separate Hugging Face revisions named `ga102`, `gb10`, `gb202`, and `gb300`. Automatic selection queries the selected GPUs' PCI device identifiers through NVML without initializing CUDA. GB10 selects `gb10`; known GB202 devices, including RTX PRO -6000 Blackwell, select `gb202`; GB300 selects `gb300`. All selected GPUs must belong to the same family. +6000 Blackwell, select `gb202`; GB300 selects `gb300`; known GA102 devices select `ga102`. All selected GPUs must belong to the same family. An unknown identifier or a driver unable to report it requires an explicit revision. GPU selection follows `CUDA_VISIBLE_DEVICES` for both commands. Revision detection runs in a short-lived process so NVML's worker threads cannot @@ -914,7 +914,7 @@ Both commands accept these download options: | Flag | Meaning | Default | |---|---|---| -| `--revision REVISION` | Explicit Hub branch, tag, or commit | Recorded model origin, otherwise detected `gb10`, `gb202`, or `gb300` | +| `--revision REVISION` | Explicit Hub branch, tag, or commit | Recorded model origin, otherwise detected `ga102`, `gb10`, `gb202`, or `gb300` | | `--filename FILE` | Repository-relative prepared core filename | Sole primary `.safetensors` file | | `--cache-dir PATH` | Parent for the shared Hugging Face download transport cache | Flare model cache | | `--token-file PATH` | File containing a Hub token for gated or private repositories | No authentication | diff --git a/docs/core-format-design.md b/docs/core-format-design.md index 98192f624..1d715deb7 100644 --- a/docs/core-format-design.md +++ b/docs/core-format-design.md @@ -742,7 +742,7 @@ A published cache entry is named for its selected deployments: `-tp-`, for example `gb202-tp1-202610170923`. An entry containing several TP sizes joins their labels in ascending order, without duplicates: `gb202-tp1+tp2-202610170923`. -The platform is the device identifier recorded by preparation (`gb10`, +The platform is the device identifier recorded by preparation (`ga102`, `gb10`, `gb202`, or `gb300`), never an SM architecture name. Downloads use the authenticated device identity; cores without one use `unknown-device`, including union names such as `unknown-device-tp1+tp2-202610170923`. The timestamp records entry creation in diff --git a/flare-cli/src/cli.rs b/flare-cli/src/cli.rs index 96336fba5..c1bf06e17 100644 --- a/flare-cli/src/cli.rs +++ b/flare-cli/src/cli.rs @@ -170,7 +170,7 @@ pub struct CacheGc { #[derive(Debug, Args, Default, Clone, serde::Serialize, serde::Deserialize)] pub struct HubOptions { - /// Hub revision; uses the model origin when cached, otherwise detects gb10, gb202, or gb300. + /// Hub revision; uses the model origin when cached, otherwise detects ga102, gb10, gb202, or gb300. #[arg(long, value_name = "REVISION", help_heading = "Download options")] pub revision: Option, diff --git a/flare/src/catalog.rs b/flare/src/catalog.rs index 7e9b9a7e9..adeff0329 100644 --- a/flare/src/catalog.rs +++ b/flare/src/catalog.rs @@ -559,7 +559,7 @@ mod tests { } } let refs = serde_json::from_value(json!({"branches": [ - {"name": "gb10-tp1"}, {"name": "gb202"}, {"name": "gb300-tp8"} + {"name": "ga102-tp1"}, {"name": "gb10-tp1"}, {"name": "gb202"}, {"name": "gb300-tp8"} ]})).unwrap(); let mut entry = CatalogEntry::default(); let branches = apply_refs(&mut entry, refs, Some(target)); diff --git a/helios/src/core/naming.rs b/helios/src/core/naming.rs index 601e8b4df..f651a1988 100644 --- a/helios/src/core/naming.rs +++ b/helios/src/core/naming.rs @@ -12,7 +12,7 @@ use std::time::{SystemTime, UNIX_EPOCH}; /// Platforms a core may be named for. These are the NVIDIA device /// identifiers Flare already uses for revisions, not SM architecture names. -pub const PLATFORMS: [&str; 3] = ["gb10", "gb202", "gb300"]; +pub const PLATFORMS: [&str; 4] = ["ga102", "gb10", "gb202", "gb300"]; /// Platform for one NVIDIA PCI id in NVML's `device<<16 | vendor` layout. /// @@ -25,6 +25,10 @@ pub const GB202_DEVICES: [u32; 9] = [ /// GB10 and RTX Spark N1X device identifiers for the SM121 platform. pub const GB10_DEVICES: [u32; 5] = [0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a]; +/// GA102 device identifiers for the SM86 platform: GeForce RTX 3090 Ti, 3090, +/// 3080, 3080 Ti, 3080 12 GB and 3080 LHR. +pub const GA102_DEVICES: [u32; 6] = [0x2203, 0x2204, 0x2206, 0x2208, 0x220a, 0x2216]; + /// GB300 device identifiers. `0x31c3` is the SM103 GPU of DGX Station GB300. pub const GB300_DEVICES: [u32; 1] = [0x31c3]; @@ -39,6 +43,9 @@ pub fn platform_from_pci(pci_id: u32) -> Option<&'static str> { if GB300_DEVICES.contains(&device) { return Some("gb300"); } + if GA102_DEVICES.contains(&device) { + return Some("ga102"); + } GB202_DEVICES.contains(&device).then_some("gb202") } @@ -186,6 +193,15 @@ mod tests { "{device:#06x}" ); } + for device in GA102_DEVICES { + assert_eq!( + platform_from_pci(device << 16 | 0x10de), + Some("ga102"), + "{device:#06x}" + ); + } + assert_eq!(platform_from_pci(0x2204_1af4), None); + assert_eq!(platform_from_pci(0x2484_10de), None); assert_eq!(platform_from_pci(0x2bbc_1af4), None); assert_eq!(platform_from_pci(0x31c3_1af4), None); assert_eq!(platform_from_pci(0x2e06_1af4), None);