tinygptossmoe3m / mxfp4_packing_test_vector.json
shibatch's picture
Upload folder using huggingface_hub
2129f51 verified
Raw
History Blame Contribute Delete
902 Bytes
{
"description": "Canonical low-nibble-first E2M1 and E8M0 packing vector",
"quantizer": "triton_kernels.numerics_details.mxfp.downcast_to_mxfp_torch",
"triton_revision": "9e1e203f64752cf99abf0e44286231c5d5df7e76",
"rounding_mode": "DequantScaleRoundingMode.ROUND_DOWN",
"block_size": 32,
"input_float32": [
0.0, 0.5, 1.0, 1.5, 2.0, 3.0, 4.0, 6.0,
-0.0, -0.5, -1.0, -1.5, -2.0, -3.0, -4.0, -6.0,
0.0, 0.5, 1.0, 1.5, 2.0, 3.0, 4.0, 6.0,
-0.0, -0.5, -1.0, -1.5, -2.0, -3.0, -4.0, -6.0
],
"packed_uint8_decimal": [
16, 50, 84, 118, 152, 186, 220, 254,
16, 50, 84, 118, 152, 186, 220, 254
],
"packed_uint8_hex": [
"10", "32", "54", "76", "98", "ba", "dc", "fe",
"10", "32", "54", "76", "98", "ba", "dc", "fe"
],
"scale_uint8_decimal": [127],
"scale_exponent_after_bias": [0],
"nibble_rule": "input[2*i] is bits 0..3; input[2*i+1] is bits 4..7"
}