Typed decision/classification service with an in-process gte-small ONNX embedding engine and lexical fallback, JS/Python SDKs, adapters, and the otsone model family. Apache-2.0 (sub-packages keep their MIT licenses). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
241 lines
8.5 KiB
JSON
241 lines
8.5 KiB
JSON
{
|
|
"kind": "CPU spectrum measurement of four selected matrices; not task accuracy or GPU latency",
|
|
"numpy_version": "2.5.3",
|
|
"thread_limits": {
|
|
"VECLIB_MAXIMUM_THREADS": "1",
|
|
"OPENBLAS_NUM_THREADS": "1",
|
|
"MKL_NUM_THREADS": "1",
|
|
"OMP_NUM_THREADS": "1"
|
|
},
|
|
"samples": [
|
|
{
|
|
"model": "laya",
|
|
"weight": "encoder.layers.14.attn.Wo.weight",
|
|
"shape": [
|
|
1024,
|
|
1024
|
|
],
|
|
"checkpoint_dtype": "float16",
|
|
"matrix_sha256": "a66da014d88bed52ba29a81fbbdb39835b62bf983925cd615f67ba0f3972c8e0",
|
|
"method": "float64 Gram symmetric eigensolver on CPU; no randomized approximation",
|
|
"largest_singular_value": 7.610559182214394,
|
|
"smallest_singular_value": 0.0007687107357831962,
|
|
"stable_rank": 100.84777274831983,
|
|
"rank_for_90_percent_squared_frobenius": 406,
|
|
"rank_for_99_percent_squared_frobenius": 690,
|
|
"rank_for_99_9_percent_squared_frobenius": 849,
|
|
"max_rank_for_10x_matrix_flop_reduction": 51,
|
|
"ranks": [
|
|
{
|
|
"rank": 32,
|
|
"matrix_flop_ratio": 0.0625,
|
|
"retained_squared_frobenius_fraction": 0.20094138823717173,
|
|
"best_relative_frobenius_error": 0.8939007840710446
|
|
},
|
|
{
|
|
"rank": 51,
|
|
"matrix_flop_ratio": 0.099609375,
|
|
"retained_squared_frobenius_fraction": 0.2866492904061337,
|
|
"best_relative_frobenius_error": 0.8446009173531995
|
|
},
|
|
{
|
|
"rank": 64,
|
|
"matrix_flop_ratio": 0.125,
|
|
"retained_squared_frobenius_fraction": 0.33695205173876186,
|
|
"best_relative_frobenius_error": 0.8142775621747403
|
|
},
|
|
{
|
|
"rank": 128,
|
|
"matrix_flop_ratio": 0.25,
|
|
"retained_squared_frobenius_fraction": 0.5273015986396008,
|
|
"best_relative_frobenius_error": 0.6875306548514031
|
|
},
|
|
{
|
|
"rank": 256,
|
|
"matrix_flop_ratio": 0.5,
|
|
"retained_squared_frobenius_fraction": 0.7600859992963814,
|
|
"best_relative_frobenius_error": 0.489810168028001
|
|
},
|
|
{
|
|
"rank": 1024,
|
|
"matrix_flop_ratio": 2.0,
|
|
"retained_squared_frobenius_fraction": 0.9999999999999999,
|
|
"best_relative_frobenius_error": 1.0536712127723509e-08
|
|
}
|
|
],
|
|
"cpu_seconds": 0.07202458299980208
|
|
},
|
|
{
|
|
"model": "laya",
|
|
"weight": "encoder.layers.14.mlp.Wi.weight",
|
|
"shape": [
|
|
5248,
|
|
1024
|
|
],
|
|
"checkpoint_dtype": "float16",
|
|
"matrix_sha256": "732ac51571b61817c608bb3b13f0c2e84f50359b7601cb2f11471358d90314c9",
|
|
"method": "float64 Gram symmetric eigensolver on CPU; no randomized approximation",
|
|
"largest_singular_value": 16.419563253246025,
|
|
"smallest_singular_value": 0.5324999779333852,
|
|
"stable_rank": 101.39432102873907,
|
|
"rank_for_90_percent_squared_frobenius": 686,
|
|
"rank_for_99_percent_squared_frobenius": 956,
|
|
"rank_for_99_9_percent_squared_frobenius": 1013,
|
|
"max_rank_for_10x_matrix_flop_reduction": 85,
|
|
"ranks": [
|
|
{
|
|
"rank": 32,
|
|
"matrix_flop_ratio": 0.037347560975609755,
|
|
"retained_squared_frobenius_fraction": 0.1544536253542224,
|
|
"best_relative_frobenius_error": 0.9195359561462388
|
|
},
|
|
{
|
|
"rank": 64,
|
|
"matrix_flop_ratio": 0.07469512195121951,
|
|
"retained_squared_frobenius_fraction": 0.24463882147822935,
|
|
"best_relative_frobenius_error": 0.8691151698835837
|
|
},
|
|
{
|
|
"rank": 85,
|
|
"matrix_flop_ratio": 0.09920445884146341,
|
|
"retained_squared_frobenius_fraction": 0.29290358297030783,
|
|
"best_relative_frobenius_error": 0.8408902526665963
|
|
},
|
|
{
|
|
"rank": 128,
|
|
"matrix_flop_ratio": 0.14939024390243902,
|
|
"retained_squared_frobenius_fraction": 0.37718073051953294,
|
|
"best_relative_frobenius_error": 0.7891889947791131
|
|
},
|
|
{
|
|
"rank": 256,
|
|
"matrix_flop_ratio": 0.29878048780487804,
|
|
"retained_squared_frobenius_fraction": 0.5647676864115292,
|
|
"best_relative_frobenius_error": 0.659721390882902
|
|
},
|
|
{
|
|
"rank": 1024,
|
|
"matrix_flop_ratio": 1.1951219512195121,
|
|
"retained_squared_frobenius_fraction": 0.9999999999999999,
|
|
"best_relative_frobenius_error": 1.0536712127723509e-08
|
|
}
|
|
],
|
|
"cpu_seconds": 0.08847683299973141
|
|
},
|
|
{
|
|
"model": "laya-multilingual",
|
|
"weight": "encoder.layers.11.attn.Wo.weight",
|
|
"shape": [
|
|
768,
|
|
768
|
|
],
|
|
"checkpoint_dtype": "float16",
|
|
"matrix_sha256": "6d99e6566f345f0f53a1467ca46926f9aeddb81fcbca45cfe9b1a380ed566a1c",
|
|
"method": "float64 Gram symmetric eigensolver on CPU; no randomized approximation",
|
|
"largest_singular_value": 2.847494414351225,
|
|
"smallest_singular_value": 0.0009283700374182185,
|
|
"stable_rank": 120.71631582233171,
|
|
"rank_for_90_percent_squared_frobenius": 311,
|
|
"rank_for_99_percent_squared_frobenius": 516,
|
|
"rank_for_99_9_percent_squared_frobenius": 636,
|
|
"max_rank_for_10x_matrix_flop_reduction": 38,
|
|
"ranks": [
|
|
{
|
|
"rank": 32,
|
|
"matrix_flop_ratio": 0.08333333333333333,
|
|
"retained_squared_frobenius_fraction": 0.21607320186587586,
|
|
"best_relative_frobenius_error": 0.8853964073420019
|
|
},
|
|
{
|
|
"rank": 38,
|
|
"matrix_flop_ratio": 0.09895833333333333,
|
|
"retained_squared_frobenius_fraction": 0.24970456723248227,
|
|
"best_relative_frobenius_error": 0.866195955178456
|
|
},
|
|
{
|
|
"rank": 64,
|
|
"matrix_flop_ratio": 0.16666666666666666,
|
|
"retained_squared_frobenius_fraction": 0.37660846223056416,
|
|
"best_relative_frobenius_error": 0.7895514788596345
|
|
},
|
|
{
|
|
"rank": 128,
|
|
"matrix_flop_ratio": 0.3333333333333333,
|
|
"retained_squared_frobenius_fraction": 0.5991825635306294,
|
|
"best_relative_frobenius_error": 0.6331014424793002
|
|
},
|
|
{
|
|
"rank": 256,
|
|
"matrix_flop_ratio": 0.6666666666666666,
|
|
"retained_squared_frobenius_fraction": 0.8420078250935571,
|
|
"best_relative_frobenius_error": 0.3974822950855081
|
|
},
|
|
{
|
|
"rank": 768,
|
|
"matrix_flop_ratio": 2.0,
|
|
"retained_squared_frobenius_fraction": 1.0,
|
|
"best_relative_frobenius_error": 0.0
|
|
}
|
|
],
|
|
"cpu_seconds": 0.031133083000895567
|
|
},
|
|
{
|
|
"model": "laya-multilingual",
|
|
"weight": "encoder.layers.11.mlp.Wi.weight",
|
|
"shape": [
|
|
2304,
|
|
768
|
|
],
|
|
"checkpoint_dtype": "float16",
|
|
"matrix_sha256": "eafe0de2be1bb696d3f1b34c3ba4078e87452af32e5e158b262d41dbeb099553",
|
|
"method": "float64 Gram symmetric eigensolver on CPU; no randomized approximation",
|
|
"largest_singular_value": 18.566091230248347,
|
|
"smallest_singular_value": 0.3367071894969285,
|
|
"stable_rank": 13.288609038265905,
|
|
"rank_for_90_percent_squared_frobenius": 462,
|
|
"rank_for_99_percent_squared_frobenius": 697,
|
|
"rank_for_99_9_percent_squared_frobenius": 756,
|
|
"max_rank_for_10x_matrix_flop_reduction": 57,
|
|
"ranks": [
|
|
{
|
|
"rank": 32,
|
|
"matrix_flop_ratio": 0.05555555555555555,
|
|
"retained_squared_frobenius_fraction": 0.241568695956831,
|
|
"best_relative_frobenius_error": 0.8708796151266655
|
|
},
|
|
{
|
|
"rank": 57,
|
|
"matrix_flop_ratio": 0.09895833333333333,
|
|
"retained_squared_frobenius_fraction": 0.32877855704574305,
|
|
"best_relative_frobenius_error": 0.8192810524809279
|
|
},
|
|
{
|
|
"rank": 64,
|
|
"matrix_flop_ratio": 0.1111111111111111,
|
|
"retained_squared_frobenius_fraction": 0.3501691309713436,
|
|
"best_relative_frobenius_error": 0.8061208774300889
|
|
},
|
|
{
|
|
"rank": 128,
|
|
"matrix_flop_ratio": 0.2222222222222222,
|
|
"retained_squared_frobenius_fraction": 0.5088915744394367,
|
|
"best_relative_frobenius_error": 0.7007912853058058
|
|
},
|
|
{
|
|
"rank": 256,
|
|
"matrix_flop_ratio": 0.4444444444444444,
|
|
"retained_squared_frobenius_fraction": 0.7173341828595861,
|
|
"best_relative_frobenius_error": 0.5316632553980141
|
|
},
|
|
{
|
|
"rank": 768,
|
|
"matrix_flop_ratio": 1.3333333333333333,
|
|
"retained_squared_frobenius_fraction": 1.0,
|
|
"best_relative_frobenius_error": 0.0
|
|
}
|
|
],
|
|
"cpu_seconds": 0.036730707999595325
|
|
}
|
|
]
|
|
}
|