@localmode/bench 0.6.1 → 0.7.0
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/README.md +15 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -19
- package/dist/index.d.ts +70 -19
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
/** Protocol identifier embedded in every result. Bump only with a spec change. */
|
|
8
8
|
declare const BENCH_PROTOCOL_VERSION = "localmode-bench/4";
|
|
9
9
|
/** Result JSON schema version (independent of the protocol semantics version). */
|
|
10
|
-
declare const BENCH_SCHEMA_VERSION =
|
|
10
|
+
declare const BENCH_SCHEMA_VERSION = 3;
|
|
11
|
+
/** Schema versions a submission may carry: the current one and the one a page built before the last schema change still sends. */
|
|
12
|
+
declare const ACCEPTED_SCHEMA_VERSIONS: readonly number[];
|
|
11
13
|
/** Benchmark suite presets. `custom` = user-picked cells. */
|
|
12
14
|
type BenchSuiteId = 'quick' | 'standard' | 'thorough' | 'custom';
|
|
13
15
|
/**
|
|
@@ -406,18 +408,14 @@ interface DisplayInfo {
|
|
|
406
408
|
wideGamut?: boolean;
|
|
407
409
|
/** `screen.isExtended` (Window Management API) — more than one display attached. */
|
|
408
410
|
isExtended?: boolean;
|
|
409
|
-
/** Reduced-motion / forced-colors preferences, cheap OS-level signals. */
|
|
410
|
-
prefersReducedMotion?: boolean;
|
|
411
|
-
prefersColorScheme?: 'light' | 'dark' | 'no-preference';
|
|
412
411
|
}
|
|
413
|
-
/**
|
|
412
|
+
/**
|
|
413
|
+
* Locale signal: the BCP 47 tag only (`en-US`). The time zone, UTC offset,
|
|
414
|
+
* and calendar a page can also read place a device in a city, which a public
|
|
415
|
+
* dataset has no use for, so they are not captured (schema 3).
|
|
416
|
+
*/
|
|
414
417
|
interface LocaleInfo {
|
|
415
|
-
timeZone?: string;
|
|
416
|
-
/** Minutes offset from UTC at capture time (`Date#getTimezoneOffset`). */
|
|
417
|
-
timeZoneOffsetMinutes?: number;
|
|
418
418
|
locale?: string;
|
|
419
|
-
/** `Intl.DateTimeFormat().resolvedOptions().calendar`. */
|
|
420
|
-
calendar?: string;
|
|
421
419
|
}
|
|
422
420
|
/**
|
|
423
421
|
* Full environment capture for a run. Every field beyond the first block is
|
|
@@ -471,10 +469,12 @@ interface EnvironmentCapture {
|
|
|
471
469
|
power: {
|
|
472
470
|
batterySupported: boolean;
|
|
473
471
|
charging?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* Battery level rounded to a quarter (0, 0.25, 0.5, 0.75, 1). Low levels
|
|
474
|
+
* bring power saving, which matters; the exact percentage would track a
|
|
475
|
+
* device across runs and is not kept (schema 3).
|
|
476
|
+
*/
|
|
474
477
|
level?: number;
|
|
475
|
-
/** Seconds until full / empty (Infinity serialized as absent). */
|
|
476
|
-
chargingTimeSec?: number;
|
|
477
|
-
dischargingTimeSec?: number;
|
|
478
478
|
};
|
|
479
479
|
pressure: {
|
|
480
480
|
supported: boolean;
|
|
@@ -491,7 +491,6 @@ interface EnvironmentCapture {
|
|
|
491
491
|
display?: DisplayInfo;
|
|
492
492
|
network?: NetworkInfo;
|
|
493
493
|
locale?: LocaleInfo;
|
|
494
|
-
languages?: string[];
|
|
495
494
|
/** Raw `navigator.userAgent` — kept verbatim so future parsers can re-derive fields. */
|
|
496
495
|
userAgent?: string;
|
|
497
496
|
/** Page origin the run executed on (distinguishes production from local/staging). */
|
|
@@ -585,10 +584,19 @@ interface BenchRunResult {
|
|
|
585
584
|
events: TraceEvent[];
|
|
586
585
|
/** Client-computed summaries (advisory; server recomputes from the trace). */
|
|
587
586
|
clientSummaries?: CellSummary[];
|
|
588
|
-
/**
|
|
587
|
+
/**
|
|
588
|
+
* Server-issued anti-forgery nonce (verified tier only). Present on the
|
|
589
|
+
* submission, never in the published file: the server strips it.
|
|
590
|
+
*/
|
|
589
591
|
nonce?: string;
|
|
590
|
-
/** SHA-256 of the canonical JSON of this object without `digest`. */
|
|
592
|
+
/** SHA-256 of the canonical JSON of this object without `digest` and `nonce`. */
|
|
591
593
|
digest?: string;
|
|
594
|
+
/**
|
|
595
|
+
* ISO time at which the published file was rewritten by the publication
|
|
596
|
+
* scrub (fields removed under a later schema, digest recomputed); absent
|
|
597
|
+
* when the file is exactly what the client submitted.
|
|
598
|
+
*/
|
|
599
|
+
scrubbedAt?: string;
|
|
592
600
|
}
|
|
593
601
|
/** A plausibility/integrity finding attached by validation. */
|
|
594
602
|
interface PlausibilityFlag {
|
|
@@ -1037,6 +1045,8 @@ declare function parseGpuModel(renderer: string | null | undefined): string | un
|
|
|
1037
1045
|
* const wasm = await detectWasmFeatures(); // { simd: true, threads: true, ... }
|
|
1038
1046
|
*/
|
|
1039
1047
|
declare function detectWasmFeatures(): Promise<WasmFeatureSupport>;
|
|
1048
|
+
/** Battery level rounded to a quarter: enough to see power saving, too coarse to track a device. */
|
|
1049
|
+
declare function coarseBatteryLevel(level: number | undefined): number | undefined;
|
|
1040
1050
|
|
|
1041
1051
|
/**
|
|
1042
1052
|
* Memory sampling at protocol points (baseline / post-load / post-run).
|
|
@@ -1229,15 +1239,56 @@ declare function canonicalJson(value: unknown): string;
|
|
|
1229
1239
|
declare function sha256Hex(text: string): Promise<string>;
|
|
1230
1240
|
/**
|
|
1231
1241
|
* Compute the run digest: SHA-256 of the canonical JSON of the result with
|
|
1232
|
-
* `digest` removed.
|
|
1242
|
+
* `digest` and `nonce` removed. The nonce is a submission credential the
|
|
1243
|
+
* server strips before publishing, so it cannot be part of what the
|
|
1244
|
+
* published file attests to.
|
|
1233
1245
|
*
|
|
1234
1246
|
* @example
|
|
1235
1247
|
* result.digest = await computeRunDigest(result);
|
|
1236
1248
|
*/
|
|
1237
1249
|
declare function computeRunDigest(result: BenchRunResult): Promise<string>;
|
|
1238
|
-
/**
|
|
1250
|
+
/**
|
|
1251
|
+
* The digest rule of files published before schema 3, which covered the
|
|
1252
|
+
* nonce; kept so those files still verify.
|
|
1253
|
+
*/
|
|
1254
|
+
declare function computeLegacyRunDigest(result: BenchRunResult): Promise<string>;
|
|
1255
|
+
/**
|
|
1256
|
+
* Verify a result's embedded digest under the current rule, else under the
|
|
1257
|
+
* legacy rule when the result still carries a nonce. Returns false when
|
|
1258
|
+
* absent or wrong.
|
|
1259
|
+
*/
|
|
1239
1260
|
declare function verifyRunDigest(result: BenchRunResult): Promise<boolean>;
|
|
1240
1261
|
|
|
1262
|
+
/**
|
|
1263
|
+
* The publication scrub: what a run file may carry once it is public. The
|
|
1264
|
+
* environment capture no longer reads these signals (schema 3), so on a
|
|
1265
|
+
* fresh submission the scrub changes nothing; it exists for submissions from
|
|
1266
|
+
* pages built before the change and for rewriting files published earlier.
|
|
1267
|
+
* The digest is the caller's job (`computeRunDigest`), because a scrub that
|
|
1268
|
+
* changed anything invalidates the digest the client computed.
|
|
1269
|
+
*/
|
|
1270
|
+
|
|
1271
|
+
/** What the scrub did to a run. */
|
|
1272
|
+
interface PublicationScrub {
|
|
1273
|
+
run: BenchRunResult;
|
|
1274
|
+
/**
|
|
1275
|
+
* True when a digested field was removed or coarsened, so the client's
|
|
1276
|
+
* digest no longer applies and must be recomputed. Stripping the nonce
|
|
1277
|
+
* alone does not count: the digest never covers it.
|
|
1278
|
+
*/
|
|
1279
|
+
changed: boolean;
|
|
1280
|
+
/** Dotted paths of the fields removed or coarsened, for the audit trail. */
|
|
1281
|
+
removed: string[];
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Return a copy of `run` with the fields a public file must not carry
|
|
1285
|
+
* removed: the submission nonce; the time zone, UTC offset, and calendar
|
|
1286
|
+
* (they locate a device); the language list; the battery's exact level and
|
|
1287
|
+
* time-to-full (they track a device); and the display preferences. A run
|
|
1288
|
+
* that already lacks them is returned unchanged (`changed: false`).
|
|
1289
|
+
*/
|
|
1290
|
+
declare function scrubRunForPublication(run: BenchRunResult): PublicationScrub;
|
|
1291
|
+
|
|
1241
1292
|
/**
|
|
1242
1293
|
* Aggregation for the public leaderboard and for offline analysis. Runs group
|
|
1243
1294
|
* into device-class rows; medians are taken per submission first, then across
|
|
@@ -1394,4 +1445,4 @@ interface STSPair {
|
|
|
1394
1445
|
/** 100-pair STS-B test subset (order preserved from the source dataset). */
|
|
1395
1446
|
declare const STSB_SUBSET: readonly STSPair[];
|
|
1396
1447
|
|
|
1397
|
-
export { type APIAvailability, type AdapterAvailability, type AdapterLoadProgress, BENCH_PROTOCOL_VERSION, BENCH_SCHEMA_VERSION, type BenchCellResult, type BenchCellStatus, type BenchChunk, type BenchEmbeddingModel, type BenchLanguageModel, type BenchModelRef, type BenchRunResult, type BenchRuntimeId, type BenchStreamChunk, type BenchSuiteId, type BenchWorkloadKind, type BenchWorkloadSpec, type BrowserInfo, type CellSummary, type DeviceInfo, type DeviceType, type DeviceTypeSignals, type DisplayInfo, EMBED_WORKLOADS, type EmbedIteration, type EmbedWorkloadSpec, type EmbeddingRuntimeAdapter, type EnvironmentCapture, type FingerprintResult, GENERATION_BUDGET, type GPUInfo, HEADLINE_MIN_SUBMISSIONS, type HarnessInfo, type LLMIteration, type LLMRuntimeAdapter, type LLMWorkloadSpec, LLM_WORKLOADS, type LeaderboardRow, type LoadRecord, type LoadedEmbedder, type LoadedLLM, type LocaleInfo, MIN_GENERATED_CHARS, type MMLUItem, MMLU_MAX_TOKENS, MMLU_OUTPUT_CAP, type MemorySample, type MetricSummary, type NetworkInfo, type OSInfo, PLAUSIBILITY_RULES_VERSION, type PlannedCell, type PlausibilityFlag, type ProviderUsage, QUALITY_WORKLOADS, type QualityResult, type QualityWorkloadSpec, RUNTIME_EXECUTION_ORDER, RUN_POLICIES, type RunPolicy, type RunSuiteOptions, type RunnerActivity, type RunnerHooks, STREAM_COHERENCE_MIN_SPAN_RATIO, STSB_SUBSET, type STSPair, TINY_MMLU, type TraceEvent, TraceRecorder, USAGE_FIDELITY, type ValidationReport, WORKLOADS_BY_ID, type WasmFeatureSupport, type WebGLInfo, aggregateRuns, canonicalJson, captureEnvironment, checkPlausibility, computeRunDigest, deriveDeviceType, detectEngine, detectWasmFeatures, deviceClassOf, formatMMLUPrompt, geomean, hrNow, inferTimerResolutionUs, isIncrementalStream, mean, median, memoryApiAvailable, orderCells, parseGpuModel, parseMMLUAnswer, parseUserAgent, quantile, resolveGpuModel, rowsToCSV, runBenchmarkSuite, runFingerprint, runMMLUFidelity, runSTSQuality, runsToLongCSV, sampleMemoryBytes, sha256Hex, sleep, spearman, stddev, summarize, summarizeCell, summarizeRun, validateRunShape, validateSubmission, verifyRunDigest };
|
|
1448
|
+
export { ACCEPTED_SCHEMA_VERSIONS, type APIAvailability, type AdapterAvailability, type AdapterLoadProgress, BENCH_PROTOCOL_VERSION, BENCH_SCHEMA_VERSION, type BenchCellResult, type BenchCellStatus, type BenchChunk, type BenchEmbeddingModel, type BenchLanguageModel, type BenchModelRef, type BenchRunResult, type BenchRuntimeId, type BenchStreamChunk, type BenchSuiteId, type BenchWorkloadKind, type BenchWorkloadSpec, type BrowserInfo, type CellSummary, type DeviceInfo, type DeviceType, type DeviceTypeSignals, type DisplayInfo, EMBED_WORKLOADS, type EmbedIteration, type EmbedWorkloadSpec, type EmbeddingRuntimeAdapter, type EnvironmentCapture, type FingerprintResult, GENERATION_BUDGET, type GPUInfo, HEADLINE_MIN_SUBMISSIONS, type HarnessInfo, type LLMIteration, type LLMRuntimeAdapter, type LLMWorkloadSpec, LLM_WORKLOADS, type LeaderboardRow, type LoadRecord, type LoadedEmbedder, type LoadedLLM, type LocaleInfo, MIN_GENERATED_CHARS, type MMLUItem, MMLU_MAX_TOKENS, MMLU_OUTPUT_CAP, type MemorySample, type MetricSummary, type NetworkInfo, type OSInfo, PLAUSIBILITY_RULES_VERSION, type PlannedCell, type PlausibilityFlag, type ProviderUsage, type PublicationScrub, QUALITY_WORKLOADS, type QualityResult, type QualityWorkloadSpec, RUNTIME_EXECUTION_ORDER, RUN_POLICIES, type RunPolicy, type RunSuiteOptions, type RunnerActivity, type RunnerHooks, STREAM_COHERENCE_MIN_SPAN_RATIO, STSB_SUBSET, type STSPair, TINY_MMLU, type TraceEvent, TraceRecorder, USAGE_FIDELITY, type ValidationReport, WORKLOADS_BY_ID, type WasmFeatureSupport, type WebGLInfo, aggregateRuns, canonicalJson, captureEnvironment, checkPlausibility, coarseBatteryLevel, computeLegacyRunDigest, computeRunDigest, deriveDeviceType, detectEngine, detectWasmFeatures, deviceClassOf, formatMMLUPrompt, geomean, hrNow, inferTimerResolutionUs, isIncrementalStream, mean, median, memoryApiAvailable, orderCells, parseGpuModel, parseMMLUAnswer, parseUserAgent, quantile, resolveGpuModel, rowsToCSV, runBenchmarkSuite, runFingerprint, runMMLUFidelity, runSTSQuality, runsToLongCSV, sampleMemoryBytes, scrubRunForPublication, sha256Hex, sleep, spearman, stddev, summarize, summarizeCell, summarizeRun, validateRunShape, validateSubmission, verifyRunDigest };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
/** Protocol identifier embedded in every result. Bump only with a spec change. */
|
|
8
8
|
declare const BENCH_PROTOCOL_VERSION = "localmode-bench/4";
|
|
9
9
|
/** Result JSON schema version (independent of the protocol semantics version). */
|
|
10
|
-
declare const BENCH_SCHEMA_VERSION =
|
|
10
|
+
declare const BENCH_SCHEMA_VERSION = 3;
|
|
11
|
+
/** Schema versions a submission may carry: the current one and the one a page built before the last schema change still sends. */
|
|
12
|
+
declare const ACCEPTED_SCHEMA_VERSIONS: readonly number[];
|
|
11
13
|
/** Benchmark suite presets. `custom` = user-picked cells. */
|
|
12
14
|
type BenchSuiteId = 'quick' | 'standard' | 'thorough' | 'custom';
|
|
13
15
|
/**
|
|
@@ -406,18 +408,14 @@ interface DisplayInfo {
|
|
|
406
408
|
wideGamut?: boolean;
|
|
407
409
|
/** `screen.isExtended` (Window Management API) — more than one display attached. */
|
|
408
410
|
isExtended?: boolean;
|
|
409
|
-
/** Reduced-motion / forced-colors preferences, cheap OS-level signals. */
|
|
410
|
-
prefersReducedMotion?: boolean;
|
|
411
|
-
prefersColorScheme?: 'light' | 'dark' | 'no-preference';
|
|
412
411
|
}
|
|
413
|
-
/**
|
|
412
|
+
/**
|
|
413
|
+
* Locale signal: the BCP 47 tag only (`en-US`). The time zone, UTC offset,
|
|
414
|
+
* and calendar a page can also read place a device in a city, which a public
|
|
415
|
+
* dataset has no use for, so they are not captured (schema 3).
|
|
416
|
+
*/
|
|
414
417
|
interface LocaleInfo {
|
|
415
|
-
timeZone?: string;
|
|
416
|
-
/** Minutes offset from UTC at capture time (`Date#getTimezoneOffset`). */
|
|
417
|
-
timeZoneOffsetMinutes?: number;
|
|
418
418
|
locale?: string;
|
|
419
|
-
/** `Intl.DateTimeFormat().resolvedOptions().calendar`. */
|
|
420
|
-
calendar?: string;
|
|
421
419
|
}
|
|
422
420
|
/**
|
|
423
421
|
* Full environment capture for a run. Every field beyond the first block is
|
|
@@ -471,10 +469,12 @@ interface EnvironmentCapture {
|
|
|
471
469
|
power: {
|
|
472
470
|
batterySupported: boolean;
|
|
473
471
|
charging?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* Battery level rounded to a quarter (0, 0.25, 0.5, 0.75, 1). Low levels
|
|
474
|
+
* bring power saving, which matters; the exact percentage would track a
|
|
475
|
+
* device across runs and is not kept (schema 3).
|
|
476
|
+
*/
|
|
474
477
|
level?: number;
|
|
475
|
-
/** Seconds until full / empty (Infinity serialized as absent). */
|
|
476
|
-
chargingTimeSec?: number;
|
|
477
|
-
dischargingTimeSec?: number;
|
|
478
478
|
};
|
|
479
479
|
pressure: {
|
|
480
480
|
supported: boolean;
|
|
@@ -491,7 +491,6 @@ interface EnvironmentCapture {
|
|
|
491
491
|
display?: DisplayInfo;
|
|
492
492
|
network?: NetworkInfo;
|
|
493
493
|
locale?: LocaleInfo;
|
|
494
|
-
languages?: string[];
|
|
495
494
|
/** Raw `navigator.userAgent` — kept verbatim so future parsers can re-derive fields. */
|
|
496
495
|
userAgent?: string;
|
|
497
496
|
/** Page origin the run executed on (distinguishes production from local/staging). */
|
|
@@ -585,10 +584,19 @@ interface BenchRunResult {
|
|
|
585
584
|
events: TraceEvent[];
|
|
586
585
|
/** Client-computed summaries (advisory; server recomputes from the trace). */
|
|
587
586
|
clientSummaries?: CellSummary[];
|
|
588
|
-
/**
|
|
587
|
+
/**
|
|
588
|
+
* Server-issued anti-forgery nonce (verified tier only). Present on the
|
|
589
|
+
* submission, never in the published file: the server strips it.
|
|
590
|
+
*/
|
|
589
591
|
nonce?: string;
|
|
590
|
-
/** SHA-256 of the canonical JSON of this object without `digest`. */
|
|
592
|
+
/** SHA-256 of the canonical JSON of this object without `digest` and `nonce`. */
|
|
591
593
|
digest?: string;
|
|
594
|
+
/**
|
|
595
|
+
* ISO time at which the published file was rewritten by the publication
|
|
596
|
+
* scrub (fields removed under a later schema, digest recomputed); absent
|
|
597
|
+
* when the file is exactly what the client submitted.
|
|
598
|
+
*/
|
|
599
|
+
scrubbedAt?: string;
|
|
592
600
|
}
|
|
593
601
|
/** A plausibility/integrity finding attached by validation. */
|
|
594
602
|
interface PlausibilityFlag {
|
|
@@ -1037,6 +1045,8 @@ declare function parseGpuModel(renderer: string | null | undefined): string | un
|
|
|
1037
1045
|
* const wasm = await detectWasmFeatures(); // { simd: true, threads: true, ... }
|
|
1038
1046
|
*/
|
|
1039
1047
|
declare function detectWasmFeatures(): Promise<WasmFeatureSupport>;
|
|
1048
|
+
/** Battery level rounded to a quarter: enough to see power saving, too coarse to track a device. */
|
|
1049
|
+
declare function coarseBatteryLevel(level: number | undefined): number | undefined;
|
|
1040
1050
|
|
|
1041
1051
|
/**
|
|
1042
1052
|
* Memory sampling at protocol points (baseline / post-load / post-run).
|
|
@@ -1229,15 +1239,56 @@ declare function canonicalJson(value: unknown): string;
|
|
|
1229
1239
|
declare function sha256Hex(text: string): Promise<string>;
|
|
1230
1240
|
/**
|
|
1231
1241
|
* Compute the run digest: SHA-256 of the canonical JSON of the result with
|
|
1232
|
-
* `digest` removed.
|
|
1242
|
+
* `digest` and `nonce` removed. The nonce is a submission credential the
|
|
1243
|
+
* server strips before publishing, so it cannot be part of what the
|
|
1244
|
+
* published file attests to.
|
|
1233
1245
|
*
|
|
1234
1246
|
* @example
|
|
1235
1247
|
* result.digest = await computeRunDigest(result);
|
|
1236
1248
|
*/
|
|
1237
1249
|
declare function computeRunDigest(result: BenchRunResult): Promise<string>;
|
|
1238
|
-
/**
|
|
1250
|
+
/**
|
|
1251
|
+
* The digest rule of files published before schema 3, which covered the
|
|
1252
|
+
* nonce; kept so those files still verify.
|
|
1253
|
+
*/
|
|
1254
|
+
declare function computeLegacyRunDigest(result: BenchRunResult): Promise<string>;
|
|
1255
|
+
/**
|
|
1256
|
+
* Verify a result's embedded digest under the current rule, else under the
|
|
1257
|
+
* legacy rule when the result still carries a nonce. Returns false when
|
|
1258
|
+
* absent or wrong.
|
|
1259
|
+
*/
|
|
1239
1260
|
declare function verifyRunDigest(result: BenchRunResult): Promise<boolean>;
|
|
1240
1261
|
|
|
1262
|
+
/**
|
|
1263
|
+
* The publication scrub: what a run file may carry once it is public. The
|
|
1264
|
+
* environment capture no longer reads these signals (schema 3), so on a
|
|
1265
|
+
* fresh submission the scrub changes nothing; it exists for submissions from
|
|
1266
|
+
* pages built before the change and for rewriting files published earlier.
|
|
1267
|
+
* The digest is the caller's job (`computeRunDigest`), because a scrub that
|
|
1268
|
+
* changed anything invalidates the digest the client computed.
|
|
1269
|
+
*/
|
|
1270
|
+
|
|
1271
|
+
/** What the scrub did to a run. */
|
|
1272
|
+
interface PublicationScrub {
|
|
1273
|
+
run: BenchRunResult;
|
|
1274
|
+
/**
|
|
1275
|
+
* True when a digested field was removed or coarsened, so the client's
|
|
1276
|
+
* digest no longer applies and must be recomputed. Stripping the nonce
|
|
1277
|
+
* alone does not count: the digest never covers it.
|
|
1278
|
+
*/
|
|
1279
|
+
changed: boolean;
|
|
1280
|
+
/** Dotted paths of the fields removed or coarsened, for the audit trail. */
|
|
1281
|
+
removed: string[];
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Return a copy of `run` with the fields a public file must not carry
|
|
1285
|
+
* removed: the submission nonce; the time zone, UTC offset, and calendar
|
|
1286
|
+
* (they locate a device); the language list; the battery's exact level and
|
|
1287
|
+
* time-to-full (they track a device); and the display preferences. A run
|
|
1288
|
+
* that already lacks them is returned unchanged (`changed: false`).
|
|
1289
|
+
*/
|
|
1290
|
+
declare function scrubRunForPublication(run: BenchRunResult): PublicationScrub;
|
|
1291
|
+
|
|
1241
1292
|
/**
|
|
1242
1293
|
* Aggregation for the public leaderboard and for offline analysis. Runs group
|
|
1243
1294
|
* into device-class rows; medians are taken per submission first, then across
|
|
@@ -1394,4 +1445,4 @@ interface STSPair {
|
|
|
1394
1445
|
/** 100-pair STS-B test subset (order preserved from the source dataset). */
|
|
1395
1446
|
declare const STSB_SUBSET: readonly STSPair[];
|
|
1396
1447
|
|
|
1397
|
-
export { type APIAvailability, type AdapterAvailability, type AdapterLoadProgress, BENCH_PROTOCOL_VERSION, BENCH_SCHEMA_VERSION, type BenchCellResult, type BenchCellStatus, type BenchChunk, type BenchEmbeddingModel, type BenchLanguageModel, type BenchModelRef, type BenchRunResult, type BenchRuntimeId, type BenchStreamChunk, type BenchSuiteId, type BenchWorkloadKind, type BenchWorkloadSpec, type BrowserInfo, type CellSummary, type DeviceInfo, type DeviceType, type DeviceTypeSignals, type DisplayInfo, EMBED_WORKLOADS, type EmbedIteration, type EmbedWorkloadSpec, type EmbeddingRuntimeAdapter, type EnvironmentCapture, type FingerprintResult, GENERATION_BUDGET, type GPUInfo, HEADLINE_MIN_SUBMISSIONS, type HarnessInfo, type LLMIteration, type LLMRuntimeAdapter, type LLMWorkloadSpec, LLM_WORKLOADS, type LeaderboardRow, type LoadRecord, type LoadedEmbedder, type LoadedLLM, type LocaleInfo, MIN_GENERATED_CHARS, type MMLUItem, MMLU_MAX_TOKENS, MMLU_OUTPUT_CAP, type MemorySample, type MetricSummary, type NetworkInfo, type OSInfo, PLAUSIBILITY_RULES_VERSION, type PlannedCell, type PlausibilityFlag, type ProviderUsage, QUALITY_WORKLOADS, type QualityResult, type QualityWorkloadSpec, RUNTIME_EXECUTION_ORDER, RUN_POLICIES, type RunPolicy, type RunSuiteOptions, type RunnerActivity, type RunnerHooks, STREAM_COHERENCE_MIN_SPAN_RATIO, STSB_SUBSET, type STSPair, TINY_MMLU, type TraceEvent, TraceRecorder, USAGE_FIDELITY, type ValidationReport, WORKLOADS_BY_ID, type WasmFeatureSupport, type WebGLInfo, aggregateRuns, canonicalJson, captureEnvironment, checkPlausibility, computeRunDigest, deriveDeviceType, detectEngine, detectWasmFeatures, deviceClassOf, formatMMLUPrompt, geomean, hrNow, inferTimerResolutionUs, isIncrementalStream, mean, median, memoryApiAvailable, orderCells, parseGpuModel, parseMMLUAnswer, parseUserAgent, quantile, resolveGpuModel, rowsToCSV, runBenchmarkSuite, runFingerprint, runMMLUFidelity, runSTSQuality, runsToLongCSV, sampleMemoryBytes, sha256Hex, sleep, spearman, stddev, summarize, summarizeCell, summarizeRun, validateRunShape, validateSubmission, verifyRunDigest };
|
|
1448
|
+
export { ACCEPTED_SCHEMA_VERSIONS, type APIAvailability, type AdapterAvailability, type AdapterLoadProgress, BENCH_PROTOCOL_VERSION, BENCH_SCHEMA_VERSION, type BenchCellResult, type BenchCellStatus, type BenchChunk, type BenchEmbeddingModel, type BenchLanguageModel, type BenchModelRef, type BenchRunResult, type BenchRuntimeId, type BenchStreamChunk, type BenchSuiteId, type BenchWorkloadKind, type BenchWorkloadSpec, type BrowserInfo, type CellSummary, type DeviceInfo, type DeviceType, type DeviceTypeSignals, type DisplayInfo, EMBED_WORKLOADS, type EmbedIteration, type EmbedWorkloadSpec, type EmbeddingRuntimeAdapter, type EnvironmentCapture, type FingerprintResult, GENERATION_BUDGET, type GPUInfo, HEADLINE_MIN_SUBMISSIONS, type HarnessInfo, type LLMIteration, type LLMRuntimeAdapter, type LLMWorkloadSpec, LLM_WORKLOADS, type LeaderboardRow, type LoadRecord, type LoadedEmbedder, type LoadedLLM, type LocaleInfo, MIN_GENERATED_CHARS, type MMLUItem, MMLU_MAX_TOKENS, MMLU_OUTPUT_CAP, type MemorySample, type MetricSummary, type NetworkInfo, type OSInfo, PLAUSIBILITY_RULES_VERSION, type PlannedCell, type PlausibilityFlag, type ProviderUsage, type PublicationScrub, QUALITY_WORKLOADS, type QualityResult, type QualityWorkloadSpec, RUNTIME_EXECUTION_ORDER, RUN_POLICIES, type RunPolicy, type RunSuiteOptions, type RunnerActivity, type RunnerHooks, STREAM_COHERENCE_MIN_SPAN_RATIO, STSB_SUBSET, type STSPair, TINY_MMLU, type TraceEvent, TraceRecorder, USAGE_FIDELITY, type ValidationReport, WORKLOADS_BY_ID, type WasmFeatureSupport, type WebGLInfo, aggregateRuns, canonicalJson, captureEnvironment, checkPlausibility, coarseBatteryLevel, computeLegacyRunDigest, computeRunDigest, deriveDeviceType, detectEngine, detectWasmFeatures, deviceClassOf, formatMMLUPrompt, geomean, hrNow, inferTimerResolutionUs, isIncrementalStream, mean, median, memoryApiAvailable, orderCells, parseGpuModel, parseMMLUAnswer, parseUserAgent, quantile, resolveGpuModel, rowsToCSV, runBenchmarkSuite, runFingerprint, runMMLUFidelity, runSTSQuality, runsToLongCSV, sampleMemoryBytes, scrubRunForPublication, sha256Hex, sleep, spearman, stddev, summarize, summarizeCell, summarizeRun, validateRunShape, validateSubmission, verifyRunDigest };
|