From 820abdb759d84254983eb2360c61eced4f7d6b49 Mon Sep 17 00:00:00 2001 From: Wiktor Zdrojewski Date: Tue, 24 Nov 2026 22:42:44 +0100 Subject: [PATCH 1/2] feat: add gb206 platform support Signed-off-by: Wiktor Zdrojewski --- flare-cli/src/orbit/gpu.rs | 3 +++ helios/src/core/naming.rs | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/flare-cli/src/orbit/gpu.rs b/flare-cli/src/orbit/gpu.rs index 137125c34..f319b37e2 100644 --- a/flare-cli/src/orbit/gpu.rs +++ b/flare-cli/src/orbit/gpu.rs @@ -316,6 +316,9 @@ fn platform(pci_id: u32) -> Option<&'static str> { 0x2b85 | 0x2b87 | 0x2b8c | 0x2bb1 | 0x2bb2 | 0x2bb3 | 0x2bb4 | 0x2bb5 | 0x2bb9 | 0x2bbc => { Some("gb202") } + 0x2d04 | 0x2d05 | 0x2d18 | 0x2d19 | 0x2d30 | 0x2d39 | 0x2d58 | 0x2d59 | 0x2d79 => { + Some("gb206") + } _ => None, } } diff --git a/helios/src/core/naming.rs b/helios/src/core/naming.rs index f651a1988..5c8fb08dc 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; 4] = ["ga102", "gb10", "gb202", "gb300"]; +pub const PLATFORMS: [&str; 5] = ["ga102", "gb10", "gb202","gb206", "gb300"]; /// Platform for one NVIDIA PCI id in NVML's `device<<16 | vendor` layout. /// @@ -22,6 +22,10 @@ pub const GB202_DEVICES: [u32; 9] = [ 0x2b85, 0x2b87, 0x2b8c, 0x2bb1, 0x2bb2, 0x2bb3, 0x2bb4, 0x2bb5, 0x2bb9, ]; +pub const GB206_DEVICES: [u32; 9] = [ + 0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79, +]; + /// GB10 and RTX Spark N1X device identifiers for the SM121 platform. pub const GB10_DEVICES: [u32; 5] = [0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a]; @@ -46,6 +50,9 @@ pub fn platform_from_pci(pci_id: u32) -> Option<&'static str> { if GA102_DEVICES.contains(&device) { return Some("ga102"); } + if GB206_DEVICES.contains(&device) { + return Some("gb206") + } GB202_DEVICES.contains(&device).then_some("gb202") } @@ -193,6 +200,13 @@ mod tests { "{device:#06x}" ); } + for device in GB206_DEVICES { + assert_eq!( + platform_from_pci(device << 16 | 0x10de), + Some("gb206"), + "{device:#06x}" + ); + } for device in GA102_DEVICES { assert_eq!( platform_from_pci(device << 16 | 0x10de), From 8e2ea68ec7f0af5a4497f49cb1aa6ff661780f4c Mon Sep 17 00:00:00 2001 From: Wiktor Zdrojewski Date: Thu, 26 Nov 2026 11:37:11 +0100 Subject: [PATCH 2/2] fix: update catalog test, docs, and scope for gb206 platform Signed-off-by: Wiktor Zdrojewski --- docs/cli-design.md | 6 +++--- docs/core-format-design.md | 2 +- flare-cli/src/cli.rs | 2 +- flare-cli/src/orbit/gpu.rs | 3 --- flare/src/catalog.rs | 2 +- helios/src/core/naming.rs | 6 +++++- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/cli-design.md b/docs/cli-design.md index ee9e66512..23c835aca 100644 --- a/docs/cli-design.md +++ b/docs/cli-design.md @@ -884,10 +884,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 `ga102`, `gb10`, `gb202`, and `gb300`. Automatic selection +are separate Hugging Face revisions named `ga102`, `gb10`, `gb202`, `gb206`, 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`; known GA102 devices select `ga102`. All selected GPUs must belong to the same family. +6000 Blackwell, select `gb202`; known GB206 devices, including GeForce RTX 5060 Ti, select `gb206`; 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 @@ -920,7 +920,7 @@ Both commands accept these download options: | Flag | Meaning | Default | |---|---|---| -| `--revision REVISION` | Explicit Hub branch, tag, or commit | Recorded model origin, otherwise detected `ga102`, `gb10`, `gb202`, or `gb300` | +| `--revision REVISION` | Explicit Hub branch, tag, or commit | Recorded model origin, otherwise detected `ga102`, `gb10`, `gb202`, `gb206`, 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 access token (must exist and be non-empty when passed) | `HF_TOKEN`, then `$HF_TOKEN_PATH` / `$HF_HOME/token` / `~/.cache/huggingface/token` when present, otherwise unauthenticated | diff --git a/docs/core-format-design.md b/docs/core-format-design.md index 8582e4a11..416d03a62 100644 --- a/docs/core-format-design.md +++ b/docs/core-format-design.md @@ -751,7 +751,7 @@ A published cache entry is named for its selected deployments: 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 (`ga102`, `gb10`, -`gb202`, or `gb300`), never an SM architecture name. Downloads use the authenticated device +`gb202`, `gb206`, 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 UTC with minute resolution. diff --git a/flare-cli/src/cli.rs b/flare-cli/src/cli.rs index f83e0128a..021e6da25 100644 --- a/flare-cli/src/cli.rs +++ b/flare-cli/src/cli.rs @@ -172,7 +172,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 ga102, gb10, gb202, or gb300. + /// Hub revision; uses the model origin when cached, otherwise detects ga102, gb10, gb202, gb206, or gb300. #[arg(long, value_name = "REVISION", help_heading = "Download options")] pub revision: Option, diff --git a/flare-cli/src/orbit/gpu.rs b/flare-cli/src/orbit/gpu.rs index f319b37e2..137125c34 100644 --- a/flare-cli/src/orbit/gpu.rs +++ b/flare-cli/src/orbit/gpu.rs @@ -316,9 +316,6 @@ fn platform(pci_id: u32) -> Option<&'static str> { 0x2b85 | 0x2b87 | 0x2b8c | 0x2bb1 | 0x2bb2 | 0x2bb3 | 0x2bb4 | 0x2bb5 | 0x2bb9 | 0x2bbc => { Some("gb202") } - 0x2d04 | 0x2d05 | 0x2d18 | 0x2d19 | 0x2d30 | 0x2d39 | 0x2d58 | 0x2d59 | 0x2d79 => { - Some("gb206") - } _ => None, } } diff --git a/flare/src/catalog.rs b/flare/src/catalog.rs index adeff0329..c75afaa27 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": "ga102-tp1"}, {"name": "gb10-tp1"}, {"name": "gb202"}, {"name": "gb300-tp8"} + {"name": "ga102-tp1"}, {"name": "gb10-tp1"}, {"name": "gb202"}, {"name": "gb206"}, {"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 5c8fb08dc..7fe836a24 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; 5] = ["ga102", "gb10", "gb202","gb206", "gb300"]; +pub const PLATFORMS: [&str; 5] = ["ga102", "gb10", "gb202", "gb206", "gb300"]; /// Platform for one NVIDIA PCI id in NVML's `device<<16 | vendor` layout. /// @@ -22,6 +22,8 @@ pub const GB202_DEVICES: [u32; 9] = [ 0x2b85, 0x2b87, 0x2b8c, 0x2bb1, 0x2bb2, 0x2bb3, 0x2bb4, 0x2bb5, 0x2bb9, ]; +/// GB206 device identifiers for the SM120 platform: GeForce RTX 5060 Ti, 5060, +/// and mobile/workstation variants. pub const GB206_DEVICES: [u32; 9] = [ 0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79, ]; @@ -214,6 +216,8 @@ mod tests { "{device:#06x}" ); } + assert_eq!(platform_from_pci(0x2d04_10de), Some("gb206")); + assert_eq!(platform_from_pci(0x2d04_1af4), None); assert_eq!(platform_from_pci(0x2204_1af4), None); assert_eq!(platform_from_pci(0x2484_10de), None); assert_eq!(platform_from_pci(0x2bbc_1af4), None);