@camstack/types 1.2.337 → 1.2.338
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +10 -0
- package/dist/capabilities/platform-probe.cap.d.ts +12 -0
- package/dist/index.js +111 -2
- package/dist/index.mjs +111 -2
- package/dist/interfaces/platform.d.ts +6 -1
- package/dist/pipeline/auto-tune/plan-schemas.d.ts +22 -0
- package/package.json +1 -1
|
@@ -1300,6 +1300,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1300
1300
|
nodeId: z.ZodString;
|
|
1301
1301
|
reachable: z.ZodBoolean;
|
|
1302
1302
|
hardwareClass: z.ZodNullable<z.ZodEnum<{
|
|
1303
|
+
"amd-phoenix": "amd-phoenix";
|
|
1303
1304
|
"apple-m-base": "apple-m-base";
|
|
1304
1305
|
"apple-m-pro": "apple-m-pro";
|
|
1305
1306
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -1312,6 +1313,8 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1312
1313
|
devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1313
1314
|
deviceKey: z.ZodString;
|
|
1314
1315
|
accelerator: z.ZodNullable<z.ZodEnum<{
|
|
1316
|
+
"amd-igpu": "amd-igpu";
|
|
1317
|
+
"amd-npu": "amd-npu";
|
|
1315
1318
|
"apple-ane": "apple-ane";
|
|
1316
1319
|
"arm-cpu": "arm-cpu";
|
|
1317
1320
|
coral: "coral";
|
|
@@ -1374,6 +1377,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1374
1377
|
}, z.core.$strip>, z.ZodObject<{
|
|
1375
1378
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
1376
1379
|
hardwareClass: z.ZodEnum<{
|
|
1380
|
+
"amd-phoenix": "amd-phoenix";
|
|
1377
1381
|
"apple-m-base": "apple-m-base";
|
|
1378
1382
|
"apple-m-pro": "apple-m-pro";
|
|
1379
1383
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -1431,6 +1435,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1431
1435
|
}, z.core.$strip>, z.ZodObject<{
|
|
1432
1436
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
1433
1437
|
hardwareClass: z.ZodEnum<{
|
|
1438
|
+
"amd-phoenix": "amd-phoenix";
|
|
1434
1439
|
"apple-m-base": "apple-m-base";
|
|
1435
1440
|
"apple-m-pro": "apple-m-pro";
|
|
1436
1441
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -1554,6 +1559,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1554
1559
|
nodeId: z.ZodString;
|
|
1555
1560
|
reachable: z.ZodBoolean;
|
|
1556
1561
|
hardwareClass: z.ZodNullable<z.ZodEnum<{
|
|
1562
|
+
"amd-phoenix": "amd-phoenix";
|
|
1557
1563
|
"apple-m-base": "apple-m-base";
|
|
1558
1564
|
"apple-m-pro": "apple-m-pro";
|
|
1559
1565
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -1566,6 +1572,8 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1566
1572
|
devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1567
1573
|
deviceKey: z.ZodString;
|
|
1568
1574
|
accelerator: z.ZodNullable<z.ZodEnum<{
|
|
1575
|
+
"amd-igpu": "amd-igpu";
|
|
1576
|
+
"amd-npu": "amd-npu";
|
|
1569
1577
|
"apple-ane": "apple-ane";
|
|
1570
1578
|
"arm-cpu": "arm-cpu";
|
|
1571
1579
|
coral: "coral";
|
|
@@ -1628,6 +1636,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1628
1636
|
}, z.core.$strip>, z.ZodObject<{
|
|
1629
1637
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
1630
1638
|
hardwareClass: z.ZodEnum<{
|
|
1639
|
+
"amd-phoenix": "amd-phoenix";
|
|
1631
1640
|
"apple-m-base": "apple-m-base";
|
|
1632
1641
|
"apple-m-pro": "apple-m-pro";
|
|
1633
1642
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -1685,6 +1694,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1685
1694
|
}, z.core.$strip>, z.ZodObject<{
|
|
1686
1695
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
1687
1696
|
hardwareClass: z.ZodEnum<{
|
|
1697
|
+
"amd-phoenix": "amd-phoenix";
|
|
1688
1698
|
"apple-m-base": "apple-m-base";
|
|
1689
1699
|
"apple-m-pro": "apple-m-pro";
|
|
1690
1700
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -153,9 +153,15 @@ export declare const platformProbeCapability: {
|
|
|
153
153
|
}, z.core.$strip>>;
|
|
154
154
|
npu: z.ZodNullable<z.ZodObject<{
|
|
155
155
|
type: z.ZodEnum<{
|
|
156
|
+
"amd-xdna": "amd-xdna";
|
|
156
157
|
"apple-ane": "apple-ane";
|
|
157
158
|
"intel-npu": "intel-npu";
|
|
158
159
|
}>;
|
|
160
|
+
name: z.ZodOptional<z.ZodString>;
|
|
161
|
+
generation: z.ZodOptional<z.ZodEnum<{
|
|
162
|
+
xdna1: "xdna1";
|
|
163
|
+
xdna2: "xdna2";
|
|
164
|
+
}>>;
|
|
159
165
|
}, z.core.$strip>>;
|
|
160
166
|
coral: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
161
167
|
type: z.ZodLiteral<"coral-edgetpu">;
|
|
@@ -232,9 +238,15 @@ export declare const platformProbeCapability: {
|
|
|
232
238
|
}, z.core.$strip>>;
|
|
233
239
|
npu: z.ZodNullable<z.ZodObject<{
|
|
234
240
|
type: z.ZodEnum<{
|
|
241
|
+
"amd-xdna": "amd-xdna";
|
|
235
242
|
"apple-ane": "apple-ane";
|
|
236
243
|
"intel-npu": "intel-npu";
|
|
237
244
|
}>;
|
|
245
|
+
name: z.ZodOptional<z.ZodString>;
|
|
246
|
+
generation: z.ZodOptional<z.ZodEnum<{
|
|
247
|
+
xdna1: "xdna1";
|
|
248
|
+
xdna2: "xdna2";
|
|
249
|
+
}>>;
|
|
238
250
|
}, z.core.$strip>>;
|
|
239
251
|
coral: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
240
252
|
type: z.ZodLiteral<"coral-edgetpu">;
|
package/dist/index.js
CHANGED
|
@@ -28367,11 +28367,14 @@ var HardwareClassIdSchema = zod.z.enum([
|
|
|
28367
28367
|
"intel-n-series",
|
|
28368
28368
|
"apple-m-base",
|
|
28369
28369
|
"apple-m-pro",
|
|
28370
|
+
"amd-phoenix",
|
|
28370
28371
|
"unknown"
|
|
28371
28372
|
]);
|
|
28372
28373
|
var AcceleratorKindSchema = zod.z.enum([
|
|
28373
28374
|
"intel-npu",
|
|
28374
28375
|
"intel-igpu",
|
|
28376
|
+
"amd-igpu",
|
|
28377
|
+
"amd-npu",
|
|
28375
28378
|
"x86-cpu",
|
|
28376
28379
|
"arm-cpu",
|
|
28377
28380
|
"apple-ane",
|
|
@@ -43539,7 +43542,15 @@ var GpuInfoSchema = zod.z.object({
|
|
|
43539
43542
|
name: zod.z.string(),
|
|
43540
43543
|
memoryMB: zod.z.number().optional()
|
|
43541
43544
|
});
|
|
43542
|
-
var NpuInfoSchema = zod.z.object({
|
|
43545
|
+
var NpuInfoSchema = zod.z.object({
|
|
43546
|
+
type: zod.z.enum([
|
|
43547
|
+
"apple-ane",
|
|
43548
|
+
"intel-npu",
|
|
43549
|
+
"amd-xdna"
|
|
43550
|
+
]),
|
|
43551
|
+
name: zod.z.string().optional(),
|
|
43552
|
+
generation: zod.z.enum(["xdna1", "xdna2"]).optional()
|
|
43553
|
+
});
|
|
43543
43554
|
var CoralInfoSchema = zod.z.object({
|
|
43544
43555
|
type: zod.z.literal("coral-edgetpu"),
|
|
43545
43556
|
bus: zod.z.string().optional()
|
|
@@ -75339,6 +75350,8 @@ function fieldsPinnedAtValueBelow(layer, below, boundKeys) {
|
|
|
75339
75350
|
var APPLE_CHIP = /^Apple M(\d+)(?:\s+(Pro|Max|Ultra))?\b/i;
|
|
75340
75351
|
var INTEL_CORE_ULTRA = /Core\(TM\)\s+Ultra|Core Ultra/i;
|
|
75341
75352
|
var INTEL_N_SERIES = /Intel\(R\)\s+N\d{2,3}\b|\bIntel\s+N\d{2,3}\b/i;
|
|
75353
|
+
/** Phoenix / Hawk Point mobile (7040/8040) and Ryzen 8000G desktop APUs. */
|
|
75354
|
+
var AMD_PHOENIX = /Ryzen \d+ (7[0-9]40|8[0-9]40|8[0-9]45)[HSU]|Ryzen \d+ 8[0-9]00G/i;
|
|
75342
75355
|
function parseAppleChip(cpuModel) {
|
|
75343
75356
|
const match = APPLE_CHIP.exec(cpuModel.trim());
|
|
75344
75357
|
if (match === null) return null;
|
|
@@ -75371,6 +75384,10 @@ function classifyInferenceHardware(hw) {
|
|
|
75371
75384
|
hardwareClass: "intel-n-series",
|
|
75372
75385
|
cpuModel
|
|
75373
75386
|
};
|
|
75387
|
+
if (AMD_PHOENIX.test(cpuModel)) return {
|
|
75388
|
+
hardwareClass: "amd-phoenix",
|
|
75389
|
+
cpuModel
|
|
75390
|
+
};
|
|
75374
75391
|
return {
|
|
75375
75392
|
hardwareClass: "unknown",
|
|
75376
75393
|
cpuModel
|
|
@@ -75387,6 +75404,8 @@ function acceleratorKindOf(deviceKey, hw) {
|
|
|
75387
75404
|
if (backend === "coreml") return device === "cpu" ? "arm-cpu" : "apple-ane";
|
|
75388
75405
|
if (backend === "openvino" && device === "npu") return "intel-npu";
|
|
75389
75406
|
if (backend === "openvino" && device === "gpu") return "intel-igpu";
|
|
75407
|
+
if (backend === "onnx" && device === "webgpu") return "amd-igpu";
|
|
75408
|
+
if (backend === "vitisai" && device === "npu") return "amd-npu";
|
|
75390
75409
|
if (backend === "cpu" || device === "cpu") return hw.arch === "arm64" ? "arm-cpu" : "x86-cpu";
|
|
75391
75410
|
return null;
|
|
75392
75411
|
}
|
|
@@ -75707,6 +75726,68 @@ var DETECTOR_PERF = {
|
|
|
75707
75726
|
}
|
|
75708
75727
|
}
|
|
75709
75728
|
},
|
|
75729
|
+
"amd-phoenix": { "x86-cpu": {
|
|
75730
|
+
"yolov9t-320": {
|
|
75731
|
+
p50Ms: 6.9,
|
|
75732
|
+
fps: 145,
|
|
75733
|
+
measured: false
|
|
75734
|
+
},
|
|
75735
|
+
"yolov9t-320-int8": {
|
|
75736
|
+
p50Ms: 2.7,
|
|
75737
|
+
fps: 405,
|
|
75738
|
+
measured: false
|
|
75739
|
+
},
|
|
75740
|
+
"yolov9t-640": {
|
|
75741
|
+
p50Ms: 23,
|
|
75742
|
+
fps: 44,
|
|
75743
|
+
measured: false
|
|
75744
|
+
},
|
|
75745
|
+
"yolov9t-640-int8": {
|
|
75746
|
+
p50Ms: 8.8,
|
|
75747
|
+
fps: 124,
|
|
75748
|
+
measured: false
|
|
75749
|
+
},
|
|
75750
|
+
"yolov9s-320": {
|
|
75751
|
+
p50Ms: 15.8,
|
|
75752
|
+
fps: 63,
|
|
75753
|
+
measured: false
|
|
75754
|
+
},
|
|
75755
|
+
"yolov9s-320-int8": {
|
|
75756
|
+
p50Ms: 6.5,
|
|
75757
|
+
fps: 180,
|
|
75758
|
+
measured: false
|
|
75759
|
+
},
|
|
75760
|
+
"yolov9s-640": {
|
|
75761
|
+
p50Ms: 58.2,
|
|
75762
|
+
fps: 17,
|
|
75763
|
+
measured: false
|
|
75764
|
+
},
|
|
75765
|
+
"yolov9s-640-int8": {
|
|
75766
|
+
p50Ms: 20.1,
|
|
75767
|
+
fps: 52,
|
|
75768
|
+
measured: false
|
|
75769
|
+
},
|
|
75770
|
+
"yolov9m-320": {
|
|
75771
|
+
p50Ms: 40,
|
|
75772
|
+
fps: 25,
|
|
75773
|
+
measured: false
|
|
75774
|
+
},
|
|
75775
|
+
"yolov9m-320-int8": {
|
|
75776
|
+
p50Ms: 14.2,
|
|
75777
|
+
fps: 74,
|
|
75778
|
+
measured: false
|
|
75779
|
+
},
|
|
75780
|
+
"yolov9m-640": {
|
|
75781
|
+
p50Ms: 155.8,
|
|
75782
|
+
fps: 6,
|
|
75783
|
+
measured: false
|
|
75784
|
+
},
|
|
75785
|
+
"yolov9m-640-int8": {
|
|
75786
|
+
p50Ms: 52.4,
|
|
75787
|
+
fps: 19,
|
|
75788
|
+
measured: false
|
|
75789
|
+
}
|
|
75790
|
+
} },
|
|
75710
75791
|
"apple-m-pro": { "apple-ane": {
|
|
75711
75792
|
"yolov9t-320": {
|
|
75712
75793
|
p50Ms: 1.1,
|
|
@@ -78543,6 +78624,10 @@ var RUNTIMES = [
|
|
|
78543
78624
|
value: "cuda",
|
|
78544
78625
|
label: "CUDA"
|
|
78545
78626
|
});
|
|
78627
|
+
if (hw.gpu?.type === "amd") out.push({
|
|
78628
|
+
value: "webgpu",
|
|
78629
|
+
label: "WebGPU (AMD iGPU)"
|
|
78630
|
+
});
|
|
78546
78631
|
if (hw.npu?.type === "apple-ane") out.push({
|
|
78547
78632
|
value: "coreml",
|
|
78548
78633
|
label: "CoreML EP"
|
|
@@ -78553,9 +78638,10 @@ var RUNTIMES = [
|
|
|
78553
78638
|
},
|
|
78554
78639
|
{
|
|
78555
78640
|
id: "openvino",
|
|
78556
|
-
supports: (hw) => hw?.arch === "x64" && hw.platform !== "darwin" && hw.gpu?.type === "intel",
|
|
78641
|
+
supports: (hw) => hw?.arch === "x64" && hw.platform !== "darwin" && (hw.gpu?.type === "intel" || hw.gpu?.type === "amd"),
|
|
78557
78642
|
devices: (hw) => {
|
|
78558
78643
|
if (!hw) return [AUTO];
|
|
78644
|
+
if (hw.gpu?.type === "amd") return [CPU];
|
|
78559
78645
|
const out = [AUTO, CPU];
|
|
78560
78646
|
if (hw.gpu?.type === "intel") out.push({
|
|
78561
78647
|
value: "gpu",
|
|
@@ -78674,6 +78760,24 @@ function scoreRuntimes(hw) {
|
|
|
78674
78760
|
available: true
|
|
78675
78761
|
});
|
|
78676
78762
|
}
|
|
78763
|
+
if (hw.gpu?.type === "amd") {
|
|
78764
|
+
scores.push({
|
|
78765
|
+
runtime: "python",
|
|
78766
|
+
backend: "onnx",
|
|
78767
|
+
format: "onnx",
|
|
78768
|
+
score: 75,
|
|
78769
|
+
reason: "ONNX WebGPU (AMD iGPU)",
|
|
78770
|
+
available: true
|
|
78771
|
+
});
|
|
78772
|
+
scores.push({
|
|
78773
|
+
runtime: "python",
|
|
78774
|
+
backend: "openvino",
|
|
78775
|
+
format: "openvino",
|
|
78776
|
+
score: 65,
|
|
78777
|
+
reason: "OpenVINO CPU (AMD x64)",
|
|
78778
|
+
available: true
|
|
78779
|
+
});
|
|
78780
|
+
}
|
|
78677
78781
|
if (hw.coral != null) scores.push({
|
|
78678
78782
|
runtime: "python",
|
|
78679
78783
|
backend: "edgetpu",
|
|
@@ -78729,6 +78833,7 @@ function enumerateInferenceDevices(hw) {
|
|
|
78729
78833
|
if (s.backend === "openvino") {
|
|
78730
78834
|
if (hw.npu?.type === "intel-npu") out.push(device("openvino", "npu", s.format, s.score + 2));
|
|
78731
78835
|
if (hw.gpu?.type === "intel") out.push(device("openvino", "gpu", s.format, s.score));
|
|
78836
|
+
if (hw.gpu?.type === "amd") out.push(device("openvino", "cpu", s.format, s.score));
|
|
78732
78837
|
continue;
|
|
78733
78838
|
}
|
|
78734
78839
|
if (s.backend === "edgetpu") {
|
|
@@ -78739,6 +78844,10 @@ function enumerateInferenceDevices(hw) {
|
|
|
78739
78844
|
}
|
|
78740
78845
|
continue;
|
|
78741
78846
|
}
|
|
78847
|
+
if (s.backend === "onnx" && s.reason.startsWith("ONNX WebGPU")) {
|
|
78848
|
+
out.push(device("onnx", "webgpu", s.format, s.score));
|
|
78849
|
+
continue;
|
|
78850
|
+
}
|
|
78742
78851
|
const dev = DEVICE_FOR_BACKEND[s.backend] ?? s.backend;
|
|
78743
78852
|
out.push(device(s.backend, dev, s.format, s.score));
|
|
78744
78853
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -28366,11 +28366,14 @@ var HardwareClassIdSchema = z.enum([
|
|
|
28366
28366
|
"intel-n-series",
|
|
28367
28367
|
"apple-m-base",
|
|
28368
28368
|
"apple-m-pro",
|
|
28369
|
+
"amd-phoenix",
|
|
28369
28370
|
"unknown"
|
|
28370
28371
|
]);
|
|
28371
28372
|
var AcceleratorKindSchema = z.enum([
|
|
28372
28373
|
"intel-npu",
|
|
28373
28374
|
"intel-igpu",
|
|
28375
|
+
"amd-igpu",
|
|
28376
|
+
"amd-npu",
|
|
28374
28377
|
"x86-cpu",
|
|
28375
28378
|
"arm-cpu",
|
|
28376
28379
|
"apple-ane",
|
|
@@ -43538,7 +43541,15 @@ var GpuInfoSchema = z.object({
|
|
|
43538
43541
|
name: z.string(),
|
|
43539
43542
|
memoryMB: z.number().optional()
|
|
43540
43543
|
});
|
|
43541
|
-
var NpuInfoSchema = z.object({
|
|
43544
|
+
var NpuInfoSchema = z.object({
|
|
43545
|
+
type: z.enum([
|
|
43546
|
+
"apple-ane",
|
|
43547
|
+
"intel-npu",
|
|
43548
|
+
"amd-xdna"
|
|
43549
|
+
]),
|
|
43550
|
+
name: z.string().optional(),
|
|
43551
|
+
generation: z.enum(["xdna1", "xdna2"]).optional()
|
|
43552
|
+
});
|
|
43542
43553
|
var CoralInfoSchema = z.object({
|
|
43543
43554
|
type: z.literal("coral-edgetpu"),
|
|
43544
43555
|
bus: z.string().optional()
|
|
@@ -75338,6 +75349,8 @@ function fieldsPinnedAtValueBelow(layer, below, boundKeys) {
|
|
|
75338
75349
|
var APPLE_CHIP = /^Apple M(\d+)(?:\s+(Pro|Max|Ultra))?\b/i;
|
|
75339
75350
|
var INTEL_CORE_ULTRA = /Core\(TM\)\s+Ultra|Core Ultra/i;
|
|
75340
75351
|
var INTEL_N_SERIES = /Intel\(R\)\s+N\d{2,3}\b|\bIntel\s+N\d{2,3}\b/i;
|
|
75352
|
+
/** Phoenix / Hawk Point mobile (7040/8040) and Ryzen 8000G desktop APUs. */
|
|
75353
|
+
var AMD_PHOENIX = /Ryzen \d+ (7[0-9]40|8[0-9]40|8[0-9]45)[HSU]|Ryzen \d+ 8[0-9]00G/i;
|
|
75341
75354
|
function parseAppleChip(cpuModel) {
|
|
75342
75355
|
const match = APPLE_CHIP.exec(cpuModel.trim());
|
|
75343
75356
|
if (match === null) return null;
|
|
@@ -75370,6 +75383,10 @@ function classifyInferenceHardware(hw) {
|
|
|
75370
75383
|
hardwareClass: "intel-n-series",
|
|
75371
75384
|
cpuModel
|
|
75372
75385
|
};
|
|
75386
|
+
if (AMD_PHOENIX.test(cpuModel)) return {
|
|
75387
|
+
hardwareClass: "amd-phoenix",
|
|
75388
|
+
cpuModel
|
|
75389
|
+
};
|
|
75373
75390
|
return {
|
|
75374
75391
|
hardwareClass: "unknown",
|
|
75375
75392
|
cpuModel
|
|
@@ -75386,6 +75403,8 @@ function acceleratorKindOf(deviceKey, hw) {
|
|
|
75386
75403
|
if (backend === "coreml") return device === "cpu" ? "arm-cpu" : "apple-ane";
|
|
75387
75404
|
if (backend === "openvino" && device === "npu") return "intel-npu";
|
|
75388
75405
|
if (backend === "openvino" && device === "gpu") return "intel-igpu";
|
|
75406
|
+
if (backend === "onnx" && device === "webgpu") return "amd-igpu";
|
|
75407
|
+
if (backend === "vitisai" && device === "npu") return "amd-npu";
|
|
75389
75408
|
if (backend === "cpu" || device === "cpu") return hw.arch === "arm64" ? "arm-cpu" : "x86-cpu";
|
|
75390
75409
|
return null;
|
|
75391
75410
|
}
|
|
@@ -75706,6 +75725,68 @@ var DETECTOR_PERF = {
|
|
|
75706
75725
|
}
|
|
75707
75726
|
}
|
|
75708
75727
|
},
|
|
75728
|
+
"amd-phoenix": { "x86-cpu": {
|
|
75729
|
+
"yolov9t-320": {
|
|
75730
|
+
p50Ms: 6.9,
|
|
75731
|
+
fps: 145,
|
|
75732
|
+
measured: false
|
|
75733
|
+
},
|
|
75734
|
+
"yolov9t-320-int8": {
|
|
75735
|
+
p50Ms: 2.7,
|
|
75736
|
+
fps: 405,
|
|
75737
|
+
measured: false
|
|
75738
|
+
},
|
|
75739
|
+
"yolov9t-640": {
|
|
75740
|
+
p50Ms: 23,
|
|
75741
|
+
fps: 44,
|
|
75742
|
+
measured: false
|
|
75743
|
+
},
|
|
75744
|
+
"yolov9t-640-int8": {
|
|
75745
|
+
p50Ms: 8.8,
|
|
75746
|
+
fps: 124,
|
|
75747
|
+
measured: false
|
|
75748
|
+
},
|
|
75749
|
+
"yolov9s-320": {
|
|
75750
|
+
p50Ms: 15.8,
|
|
75751
|
+
fps: 63,
|
|
75752
|
+
measured: false
|
|
75753
|
+
},
|
|
75754
|
+
"yolov9s-320-int8": {
|
|
75755
|
+
p50Ms: 6.5,
|
|
75756
|
+
fps: 180,
|
|
75757
|
+
measured: false
|
|
75758
|
+
},
|
|
75759
|
+
"yolov9s-640": {
|
|
75760
|
+
p50Ms: 58.2,
|
|
75761
|
+
fps: 17,
|
|
75762
|
+
measured: false
|
|
75763
|
+
},
|
|
75764
|
+
"yolov9s-640-int8": {
|
|
75765
|
+
p50Ms: 20.1,
|
|
75766
|
+
fps: 52,
|
|
75767
|
+
measured: false
|
|
75768
|
+
},
|
|
75769
|
+
"yolov9m-320": {
|
|
75770
|
+
p50Ms: 40,
|
|
75771
|
+
fps: 25,
|
|
75772
|
+
measured: false
|
|
75773
|
+
},
|
|
75774
|
+
"yolov9m-320-int8": {
|
|
75775
|
+
p50Ms: 14.2,
|
|
75776
|
+
fps: 74,
|
|
75777
|
+
measured: false
|
|
75778
|
+
},
|
|
75779
|
+
"yolov9m-640": {
|
|
75780
|
+
p50Ms: 155.8,
|
|
75781
|
+
fps: 6,
|
|
75782
|
+
measured: false
|
|
75783
|
+
},
|
|
75784
|
+
"yolov9m-640-int8": {
|
|
75785
|
+
p50Ms: 52.4,
|
|
75786
|
+
fps: 19,
|
|
75787
|
+
measured: false
|
|
75788
|
+
}
|
|
75789
|
+
} },
|
|
75709
75790
|
"apple-m-pro": { "apple-ane": {
|
|
75710
75791
|
"yolov9t-320": {
|
|
75711
75792
|
p50Ms: 1.1,
|
|
@@ -78542,6 +78623,10 @@ var RUNTIMES = [
|
|
|
78542
78623
|
value: "cuda",
|
|
78543
78624
|
label: "CUDA"
|
|
78544
78625
|
});
|
|
78626
|
+
if (hw.gpu?.type === "amd") out.push({
|
|
78627
|
+
value: "webgpu",
|
|
78628
|
+
label: "WebGPU (AMD iGPU)"
|
|
78629
|
+
});
|
|
78545
78630
|
if (hw.npu?.type === "apple-ane") out.push({
|
|
78546
78631
|
value: "coreml",
|
|
78547
78632
|
label: "CoreML EP"
|
|
@@ -78552,9 +78637,10 @@ var RUNTIMES = [
|
|
|
78552
78637
|
},
|
|
78553
78638
|
{
|
|
78554
78639
|
id: "openvino",
|
|
78555
|
-
supports: (hw) => hw?.arch === "x64" && hw.platform !== "darwin" && hw.gpu?.type === "intel",
|
|
78640
|
+
supports: (hw) => hw?.arch === "x64" && hw.platform !== "darwin" && (hw.gpu?.type === "intel" || hw.gpu?.type === "amd"),
|
|
78556
78641
|
devices: (hw) => {
|
|
78557
78642
|
if (!hw) return [AUTO];
|
|
78643
|
+
if (hw.gpu?.type === "amd") return [CPU];
|
|
78558
78644
|
const out = [AUTO, CPU];
|
|
78559
78645
|
if (hw.gpu?.type === "intel") out.push({
|
|
78560
78646
|
value: "gpu",
|
|
@@ -78673,6 +78759,24 @@ function scoreRuntimes(hw) {
|
|
|
78673
78759
|
available: true
|
|
78674
78760
|
});
|
|
78675
78761
|
}
|
|
78762
|
+
if (hw.gpu?.type === "amd") {
|
|
78763
|
+
scores.push({
|
|
78764
|
+
runtime: "python",
|
|
78765
|
+
backend: "onnx",
|
|
78766
|
+
format: "onnx",
|
|
78767
|
+
score: 75,
|
|
78768
|
+
reason: "ONNX WebGPU (AMD iGPU)",
|
|
78769
|
+
available: true
|
|
78770
|
+
});
|
|
78771
|
+
scores.push({
|
|
78772
|
+
runtime: "python",
|
|
78773
|
+
backend: "openvino",
|
|
78774
|
+
format: "openvino",
|
|
78775
|
+
score: 65,
|
|
78776
|
+
reason: "OpenVINO CPU (AMD x64)",
|
|
78777
|
+
available: true
|
|
78778
|
+
});
|
|
78779
|
+
}
|
|
78676
78780
|
if (hw.coral != null) scores.push({
|
|
78677
78781
|
runtime: "python",
|
|
78678
78782
|
backend: "edgetpu",
|
|
@@ -78728,6 +78832,7 @@ function enumerateInferenceDevices(hw) {
|
|
|
78728
78832
|
if (s.backend === "openvino") {
|
|
78729
78833
|
if (hw.npu?.type === "intel-npu") out.push(device("openvino", "npu", s.format, s.score + 2));
|
|
78730
78834
|
if (hw.gpu?.type === "intel") out.push(device("openvino", "gpu", s.format, s.score));
|
|
78835
|
+
if (hw.gpu?.type === "amd") out.push(device("openvino", "cpu", s.format, s.score));
|
|
78731
78836
|
continue;
|
|
78732
78837
|
}
|
|
78733
78838
|
if (s.backend === "edgetpu") {
|
|
@@ -78738,6 +78843,10 @@ function enumerateInferenceDevices(hw) {
|
|
|
78738
78843
|
}
|
|
78739
78844
|
continue;
|
|
78740
78845
|
}
|
|
78846
|
+
if (s.backend === "onnx" && s.reason.startsWith("ONNX WebGPU")) {
|
|
78847
|
+
out.push(device("onnx", "webgpu", s.format, s.score));
|
|
78848
|
+
continue;
|
|
78849
|
+
}
|
|
78741
78850
|
const dev = DEVICE_FOR_BACKEND[s.backend] ?? s.backend;
|
|
78742
78851
|
out.push(device(s.backend, dev, s.format, s.score));
|
|
78743
78852
|
}
|
|
@@ -22,9 +22,14 @@ export interface GpuInfo {
|
|
|
22
22
|
readonly memoryMB?: number;
|
|
23
23
|
}
|
|
24
24
|
export interface NpuInfo {
|
|
25
|
-
readonly type: 'apple-ane' | 'intel-npu';
|
|
25
|
+
readonly type: 'apple-ane' | 'intel-npu' | 'amd-xdna';
|
|
26
26
|
/** Human-readable accelerator name (e.g. `Intel AI Boost NPU`), when known. */
|
|
27
27
|
readonly name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* AMD XDNA generation when `type` is `amd-xdna`. Present-only until P2
|
|
30
|
+
* offers a device key — Phoenix/Hawk Point are xdna1, Strix is xdna2.
|
|
31
|
+
*/
|
|
32
|
+
readonly generation?: 'xdna1' | 'xdna2';
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
35
|
* Coral USB Edge TPU (Google Coral). A discrete USB inference accelerator that
|
|
@@ -13,6 +13,7 @@ export declare const MIN_SESSIONS_PER_DEVICE_RANGE: {
|
|
|
13
13
|
readonly max: 8;
|
|
14
14
|
};
|
|
15
15
|
export declare const HardwareClassIdSchema: z.ZodEnum<{
|
|
16
|
+
"amd-phoenix": "amd-phoenix";
|
|
16
17
|
"apple-m-base": "apple-m-base";
|
|
17
18
|
"apple-m-pro": "apple-m-pro";
|
|
18
19
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -20,6 +21,8 @@ export declare const HardwareClassIdSchema: z.ZodEnum<{
|
|
|
20
21
|
unknown: "unknown";
|
|
21
22
|
}>;
|
|
22
23
|
export declare const AcceleratorKindSchema: z.ZodEnum<{
|
|
24
|
+
"amd-igpu": "amd-igpu";
|
|
25
|
+
"amd-npu": "amd-npu";
|
|
23
26
|
"apple-ane": "apple-ane";
|
|
24
27
|
"arm-cpu": "arm-cpu";
|
|
25
28
|
coral: "coral";
|
|
@@ -62,6 +65,7 @@ export declare const RecommendationReasonSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
62
65
|
}, z.core.$strip>, z.ZodObject<{
|
|
63
66
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
64
67
|
hardwareClass: z.ZodEnum<{
|
|
68
|
+
"amd-phoenix": "amd-phoenix";
|
|
65
69
|
"apple-m-base": "apple-m-base";
|
|
66
70
|
"apple-m-pro": "apple-m-pro";
|
|
67
71
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -117,6 +121,8 @@ export declare const DeviceModelChoiceSchema: z.ZodObject<{
|
|
|
117
121
|
export declare const DeviceRecommendationSchema: z.ZodObject<{
|
|
118
122
|
deviceKey: z.ZodString;
|
|
119
123
|
accelerator: z.ZodNullable<z.ZodEnum<{
|
|
124
|
+
"amd-igpu": "amd-igpu";
|
|
125
|
+
"amd-npu": "amd-npu";
|
|
120
126
|
"apple-ane": "apple-ane";
|
|
121
127
|
"arm-cpu": "arm-cpu";
|
|
122
128
|
coral: "coral";
|
|
@@ -179,6 +185,7 @@ export declare const DeviceRecommendationSchema: z.ZodObject<{
|
|
|
179
185
|
}, z.core.$strip>, z.ZodObject<{
|
|
180
186
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
181
187
|
hardwareClass: z.ZodEnum<{
|
|
188
|
+
"amd-phoenix": "amd-phoenix";
|
|
182
189
|
"apple-m-base": "apple-m-base";
|
|
183
190
|
"apple-m-pro": "apple-m-pro";
|
|
184
191
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -205,6 +212,7 @@ export declare const NodeRecommendationSchema: z.ZodObject<{
|
|
|
205
212
|
nodeId: z.ZodString;
|
|
206
213
|
reachable: z.ZodBoolean;
|
|
207
214
|
hardwareClass: z.ZodNullable<z.ZodEnum<{
|
|
215
|
+
"amd-phoenix": "amd-phoenix";
|
|
208
216
|
"apple-m-base": "apple-m-base";
|
|
209
217
|
"apple-m-pro": "apple-m-pro";
|
|
210
218
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -217,6 +225,8 @@ export declare const NodeRecommendationSchema: z.ZodObject<{
|
|
|
217
225
|
devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
218
226
|
deviceKey: z.ZodString;
|
|
219
227
|
accelerator: z.ZodNullable<z.ZodEnum<{
|
|
228
|
+
"amd-igpu": "amd-igpu";
|
|
229
|
+
"amd-npu": "amd-npu";
|
|
220
230
|
"apple-ane": "apple-ane";
|
|
221
231
|
"arm-cpu": "arm-cpu";
|
|
222
232
|
coral: "coral";
|
|
@@ -279,6 +289,7 @@ export declare const NodeRecommendationSchema: z.ZodObject<{
|
|
|
279
289
|
}, z.core.$strip>, z.ZodObject<{
|
|
280
290
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
281
291
|
hardwareClass: z.ZodEnum<{
|
|
292
|
+
"amd-phoenix": "amd-phoenix";
|
|
282
293
|
"apple-m-base": "apple-m-base";
|
|
283
294
|
"apple-m-pro": "apple-m-pro";
|
|
284
295
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -336,6 +347,7 @@ export declare const NodeRecommendationSchema: z.ZodObject<{
|
|
|
336
347
|
}, z.core.$strip>, z.ZodObject<{
|
|
337
348
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
338
349
|
hardwareClass: z.ZodEnum<{
|
|
350
|
+
"amd-phoenix": "amd-phoenix";
|
|
339
351
|
"apple-m-base": "apple-m-base";
|
|
340
352
|
"apple-m-pro": "apple-m-pro";
|
|
341
353
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -428,6 +440,7 @@ export declare const AutoTunePlanSchema: z.ZodObject<{
|
|
|
428
440
|
nodeId: z.ZodString;
|
|
429
441
|
reachable: z.ZodBoolean;
|
|
430
442
|
hardwareClass: z.ZodNullable<z.ZodEnum<{
|
|
443
|
+
"amd-phoenix": "amd-phoenix";
|
|
431
444
|
"apple-m-base": "apple-m-base";
|
|
432
445
|
"apple-m-pro": "apple-m-pro";
|
|
433
446
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -440,6 +453,8 @@ export declare const AutoTunePlanSchema: z.ZodObject<{
|
|
|
440
453
|
devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
441
454
|
deviceKey: z.ZodString;
|
|
442
455
|
accelerator: z.ZodNullable<z.ZodEnum<{
|
|
456
|
+
"amd-igpu": "amd-igpu";
|
|
457
|
+
"amd-npu": "amd-npu";
|
|
443
458
|
"apple-ane": "apple-ane";
|
|
444
459
|
"arm-cpu": "arm-cpu";
|
|
445
460
|
coral: "coral";
|
|
@@ -502,6 +517,7 @@ export declare const AutoTunePlanSchema: z.ZodObject<{
|
|
|
502
517
|
}, z.core.$strip>, z.ZodObject<{
|
|
503
518
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
504
519
|
hardwareClass: z.ZodEnum<{
|
|
520
|
+
"amd-phoenix": "amd-phoenix";
|
|
505
521
|
"apple-m-base": "apple-m-base";
|
|
506
522
|
"apple-m-pro": "apple-m-pro";
|
|
507
523
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -559,6 +575,7 @@ export declare const AutoTunePlanSchema: z.ZodObject<{
|
|
|
559
575
|
}, z.core.$strip>, z.ZodObject<{
|
|
560
576
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
561
577
|
hardwareClass: z.ZodEnum<{
|
|
578
|
+
"amd-phoenix": "amd-phoenix";
|
|
562
579
|
"apple-m-base": "apple-m-base";
|
|
563
580
|
"apple-m-pro": "apple-m-pro";
|
|
564
581
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -688,6 +705,7 @@ export declare const AutoTuneApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
688
705
|
nodeId: z.ZodString;
|
|
689
706
|
reachable: z.ZodBoolean;
|
|
690
707
|
hardwareClass: z.ZodNullable<z.ZodEnum<{
|
|
708
|
+
"amd-phoenix": "amd-phoenix";
|
|
691
709
|
"apple-m-base": "apple-m-base";
|
|
692
710
|
"apple-m-pro": "apple-m-pro";
|
|
693
711
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -700,6 +718,8 @@ export declare const AutoTuneApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
700
718
|
devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
701
719
|
deviceKey: z.ZodString;
|
|
702
720
|
accelerator: z.ZodNullable<z.ZodEnum<{
|
|
721
|
+
"amd-igpu": "amd-igpu";
|
|
722
|
+
"amd-npu": "amd-npu";
|
|
703
723
|
"apple-ane": "apple-ane";
|
|
704
724
|
"arm-cpu": "arm-cpu";
|
|
705
725
|
coral: "coral";
|
|
@@ -762,6 +782,7 @@ export declare const AutoTuneApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
762
782
|
}, z.core.$strip>, z.ZodObject<{
|
|
763
783
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
764
784
|
hardwareClass: z.ZodEnum<{
|
|
785
|
+
"amd-phoenix": "amd-phoenix";
|
|
765
786
|
"apple-m-base": "apple-m-base";
|
|
766
787
|
"apple-m-pro": "apple-m-pro";
|
|
767
788
|
"intel-core-ultra": "intel-core-ultra";
|
|
@@ -819,6 +840,7 @@ export declare const AutoTuneApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
819
840
|
}, z.core.$strip>, z.ZodObject<{
|
|
820
841
|
kind: z.ZodLiteral<"no-measured-data">;
|
|
821
842
|
hardwareClass: z.ZodEnum<{
|
|
843
|
+
"amd-phoenix": "amd-phoenix";
|
|
822
844
|
"apple-m-base": "apple-m-base";
|
|
823
845
|
"apple-m-pro": "apple-m-pro";
|
|
824
846
|
"intel-core-ultra": "intel-core-ultra";
|