fix: платформа поддержки HGX только для SXM/HGX GPU; актуализированы цены HGX по регламенту 2026-10-07
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b073e63b1
commit
d48865869a
4 files changed
+29
-26
No files matched your search
@@ -289,7 +289,7 @@ rental calc the same way any BOM line does, with no special-casing needed in tho
|
||||
a QuoteForge release — see `bible-local/server-contract-qt-settings.md` for the schema; the
|
||||
fixed list of offerable level×duration codes stays in the frontend, only the price is
|
||||
server-driven;
|
||||
- platform (x86 vs HGX-H100/H200 vs HGX-B200 vs HGX-B300) is auto-detected client-side from the
|
||||
- platform (x86 vs HGX-H100/H200 vs HGX-B200 vs HGX-B300) is auto-detected client-side from the (HGX only for SXM/HGX-named GPUs or H100/H200/B200/B300 non-PCIe; PCIe GPUs like A30 stay x86)
|
||||
cart's GPU components, the same chip-generation classification used by the rental
|
||||
depreciation calc (`internal/services/rental.go`), so the picker only offers combinations
|
||||
valid for the current configuration;
|
||||
|
||||
@@ -188,19 +188,19 @@ the regulation and the picker won't show it.
|
||||
},
|
||||
"hgx_price": {
|
||||
"HGX-H200": {
|
||||
"B": {"1": 20000, "3": 55000, "5": 80000},
|
||||
"S": {"1": 28000, "3": 70000, "5": 100000},
|
||||
"P": {"1": 63000, "3": 105000}
|
||||
"B": {"1": 28000, "3": 77000, "5": 112000},
|
||||
"S": {"1": 39500, "3": 98000, "5": 140000},
|
||||
"P": {"1": 88500, "3": 147000}
|
||||
},
|
||||
"HGX-B200": {
|
||||
"B": {"1": 40000, "3": 100000, "5": 145000},
|
||||
"S": {"1": 55000, "3": 130000, "5": 185000},
|
||||
"P": {"1": 101000, "3": 176000}
|
||||
"B": {"1": 158500, "3": 230500, "5": 284500},
|
||||
"S": {"1": 176500, "3": 266500, "5": 332500},
|
||||
"P": {"1": 232000, "3": 322000}
|
||||
},
|
||||
"HGX-B300": {
|
||||
"B": {"1": 40000, "3": 100000, "5": 145000},
|
||||
"S": {"1": 55000, "3": 130000, "5": 185000},
|
||||
"P": {"1": 112000, "3": 187000}
|
||||
"B": {"1": 192000, "3": 270000, "5": 328500},
|
||||
"S": {"1": 211500, "3": 309000, "5": 380500},
|
||||
"P": {"1": 286000, "3": 383500}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,19 +163,19 @@ func defaultSupportPricing() *localdb.SupportPricingTable {
|
||||
},
|
||||
HGXPrice: map[string]map[string]map[string]float64{
|
||||
"HGX-H200": {
|
||||
"B": {"1": 20000, "3": 55000, "5": 80000},
|
||||
"S": {"1": 28000, "3": 70000, "5": 100000},
|
||||
"P": {"1": 63000, "3": 105000},
|
||||
"B": {"1": 28000, "3": 77000, "5": 112000},
|
||||
"S": {"1": 39500, "3": 98000, "5": 140000},
|
||||
"P": {"1": 88500, "3": 147000},
|
||||
},
|
||||
"HGX-B200": {
|
||||
"B": {"1": 40000, "3": 100000, "5": 145000},
|
||||
"S": {"1": 55000, "3": 130000, "5": 185000},
|
||||
"P": {"1": 101000, "3": 176000},
|
||||
"B": {"1": 158500, "3": 230500, "5": 284500},
|
||||
"S": {"1": 176500, "3": 266500, "5": 332500},
|
||||
"P": {"1": 232000, "3": 322000},
|
||||
},
|
||||
"HGX-B300": {
|
||||
"B": {"1": 40000, "3": 100000, "5": 145000},
|
||||
"S": {"1": 55000, "3": 130000, "5": 185000},
|
||||
"P": {"1": 112000, "3": 187000},
|
||||
"B": {"1": 192000, "3": 270000, "5": 328500},
|
||||
"S": {"1": 211500, "3": 309000, "5": 380500},
|
||||
"P": {"1": 286000, "3": 383500},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -2365,19 +2365,22 @@ function findSupportCartIndex() {
|
||||
return cart.findIndex(i => (i.lot_name || '').toUpperCase().startsWith('SVC_'));
|
||||
}
|
||||
|
||||
// Mirrors the GPU chip-generation classification used by internal/services/rental.go,
|
||||
// so the support picker and the rental calc agree on which platform a config is.
|
||||
// HGX = SXM baseboard servers. Plain PCIe GPUs (A30, L40, H200 NVL PCIe, ...) in a regular
|
||||
// server keep the x86 percent-of-price support model.
|
||||
function detectSupportPlatform() {
|
||||
const actualGenSubstrings = ['H200', 'B200', 'B300', 'BLACKWELL SE'];
|
||||
let sawGPU = false;
|
||||
let platform = 'x86';
|
||||
for (const item of cart) {
|
||||
if ((item.category || '').toUpperCase() !== 'GPU') continue;
|
||||
sawGPU = true;
|
||||
const upperLot = (item.lot_name || '').toUpperCase();
|
||||
const isPCIe = upperLot.includes('PCIE');
|
||||
const isHGX = upperLot.includes('HGX') || upperLot.includes('SXM') ||
|
||||
(!isPCIe && /(H100|H200|B200|B300)/.test(upperLot));
|
||||
if (!isHGX) continue;
|
||||
if (upperLot.includes('B300')) return 'HGX-B300';
|
||||
if (upperLot.includes('B200')) return 'HGX-B200';
|
||||
if (upperLot.includes('B200')) platform = 'HGX-B200';
|
||||
else if (platform === 'x86') platform = 'HGX-H200';
|
||||
}
|
||||
return sawGPU ? 'HGX-H200' : 'x86';
|
||||
return platform;
|
||||
}
|
||||
|
||||
// cartTotal excludes any existing support line so the x86 percent is based on hardware only.
|
||||
|
||||
Reference in new issue
Block a user