Repository navigation
|
There are several R-18 Chinese snippets in the calibration data, but none in English. Would they affect calibration negatively? You may review the relevant hashtags with grep (has some false positives not in Chinese): jq . oqe_calibration_data.json | grep -Eo '^ *"(#[^ ]* )+' |
Replies: 2 comments
|
The snippets can affect calibration if their tokens are sampled. Whether they hurt the quantized model depends on the effect on its weights. oQe samples fixed-length token windows and uses their activations to build the importance matrix. Hashtags get no special treatment. Calibration loader To isolate the effect, replace the flagged text with ordinary Chinese of about the same token length, then compare held-out Chinese perplexity at the same quantization settings. |
|
@l2dy Those entries came from That dataset also put unsafe Q&A into the English part, so I replaced both in 6bfbe19 with Chinese Wikipedia and OpenAssistant oasst2 text of the same token length, which keeps the category balance. The data file hash is part of the imatrix cache key, so the next oQe run will collect a new imatrix. |
@l2dy Those entries came from
Orion-zhen/mixed-exl-calibrationon Hugging Face. All of themixedandencategories and about half ofcodewere sampled from it, and I didn't screen its contents well enough. With a Qwen tokenizer the adult text was about 10% of the tokens in the default 128-sample draw, so I think it did affect the importance values.That dataset also put unsafe Q&A into the English part, so I replaced both in 6bfbe19 with Chinese Wikipedia and OpenAssistant oasst2 text of the same token length, which keeps the category balance. The data file hash is part of the imatrix cache key, so the next oQe run will collect a new imatrix.