CoolFace
Modelpublic

Weidows/laya-multilingual-FP8

sourceHugging Faceapache-2.0updated 18h agoView on Hugging Face
1likes
Model Card

laya-multilingual FP8 (E4M3 per-row)

FP8 quantization of convaiinnovations/laya-multilingual (Apache-2.0). 101 2-D Linear weights in E4M3 with per-row fp32 scales; norms/biases, token embeddings and temperature kept fp16/fp32. 519 MB vs 644 MB original.

Verified (real eval, not weight distance)

XNLI validation, 100 samples x 5 languages, byte-identical questions, fp32 vs fp8:

langfp32 accfp8 accdecision agreementmean conf drift
en0.9300.9200.9900.009
zh0.8500.8300.9600.016
ar0.8300.8301.0000.022
hi0.6500.6600.9800.024
es0.8200.8100.9900.015

Accuracy deltas are within +/-0.02 sample noise; decisions agree on 96-100%.

[image]

Use

python
from load_fp8 import load_fp8
agent = load_fp8("Weidows/laya-multilingual-FP8", device="cuda")
res = agent.predict(
    {"body": "Invoice 4411 charged twice, refund please."},
    {"department": {"type": "choice", "instructions": "Which team?",
                    "criteria": {"billing": "invoices, payments, refunds",
                                 "technical": "bugs and outages", "sales": "pricing"}}},
)
print(res["answers"]["department"]["choice"])

Files: model_fp8.safetensors + fp8_scales.json (per-row scales) + load_fp8.py. encoder/, tokenizer/, rl_agent_config.json are unchanged originals.