`model.onnx` ships in fp32 and the tagger runs
model.onnx ships in fp32 and the tagger runs up to five passes per sentence. did u try dynamic int8 on the encoder for the windows app, and does it move the 416 fixed / 0 made worse on the gold set? with a 5000 label head im curious if the $KEEP margin gets thinner after quantizing and the 2 false alarms on the 4000 tatoeba sentences go up
hey @guicybercode , thx for the question. Short answer: no, and I don't have numbers, so I won't guess at them.
The published model.onnx is fp32 and every figure on the card (416 fixed / 0 made worse, 2 of 4 000 Tatoeba sentences) was measured on that file. I have not run dynamic int8 on this model, so I can't tell you whether the gold score moves or the false alarms go up.
Why fp32 so far: the model runs on the CPU inside a desktop app, where about 430 MB of memory and 15β35 ms per sentence are acceptable, and the app unloads a langauge after ten minutes idle. The models are trained for precision first (a missed error costs less than a wrong correction), so I have not traded any of that for size.
Your intuition about the margin is the right thing to look at. On correct text $KEEP normally wins by a wide margin, and the wrong corrections sit at the low-confidence end, so quantisation noise would matter exactly on the close calls. Whether that shows up as more false alarms, fewer fixes, or neither is something only a measurement will say. If it does thin the margin, the decoder has a knob for it: min_error_prob (see quickstart.py) drops any edit the model is not sure enough of, at some cost in recall. The newer releases already ship with their own value for it.
Where int8 would make sense is a device where 430 MB is too much: a phone, a browser tab, a small box. A file about a quarter of the size may be a fair trade there, provided it is scored on the same checks first. I would not publish one before that.
It is on the backlog. The published models are being retrained one at a time with an improved recipe (English is done, Italian is in training, Portuguese follows), and measuring an int8 build against the same checks fits best after this model's retrain, so the numbers describe the version people will actually use.
let's catch up and test this once we have the model trained on the new recipe
thanks, fp32 on desktop makes sense with ~430 MB and 15-35 ms per sentence. good to know about min_error_prob, that's the knob I'd try first if int8 thins the $KEEP margin. I'll wait for the pt retrain and look at int8 after that