eaddario/imatrix-calibration

Dataset

64

stars

155

commits

2

linked in READMEs

May 5, 2026

updated

README

Importance Matrix Calibration Datasets

This repository provides calibration datasets used to generate importance matrices (imatrix), which are required to minimize errors when quantizing models with LLaMA C++.

The llama-imatrix program cannot handle parquet files directly and thus requires them to be converted into text format first. There are many ways to do this but a simple approach is to use DuckDB with the following command: duckdb -noheader -ascii -c "SELECT content FROM 'tools_micro.parquet';" > tools_micro.txt

Code calibration datasets

This dataset consists of cleaned and de-duplicated code prompts and is available in six sizes, ranging from huge (~ 200,000 lines equivalent to approx. 14.5M tokens), to micro (~ 6,200 lines and 2.4M tokens avg).

Original data sourced from Vezora/Open-Critic-GPT, OpenCoder-LLM/opc-sft-stage2, ise-uiuc/Magicoder-Evol-Instruct-110K, and Multilingual-Multimodal-NLP/McEval-Instruct

FileLanguageLines
code_hugeEnglish200,000
code_largeEnglish100,000
code_mediumEnglish50,000
code_smallEnglish25,000
code_tinyEnglish12,500
code_microEnglish6,250

Math calibration datasets

This dataset consists of cleaned and de-duplicated math prompts and is available in six sizes, ranging from huge (~ 200,000 lines equivalent to approx. 6 million), to micro (~ 6,250 lines and 0.9 million tokens avg).

Original data sourced from nvidia/OpenMathInstruct-2

FileLanguageLines
math_hugeEnglish200,000
math_largeEnglish100,000
math_mediumEnglish50,000
math_smallEnglish25,000
math_tinyEnglish12,500
math_microEnglish6,250

Tools calibration datasets

This dataset consists of cleaned and de-duplicated tool prompts and is available in six sizes, ranging from huge (~ 100,000 lines equivalent to approx. 10 million tokens), to micro (~ 3,100 lines and 1 million tokens).

Original data sourced from BitAgent/tool_calling and JungHun/Efficient_ToolCalling

FileLanguageLines
tools_hugeEnglish100,000
tools_largeEnglish50,000
tools_mediumEnglish25,000
tools_smallEnglish12,500
tools_tinyEnglish6,250
tools_microEnglish3,125

Language calibration datasets

This dataset consists of cleaned and de-duplicated text prompts for 18 different languages. Each language file is available in five sizes, ranging from large (~ 25,000 lines equivalent to approx. 725K tokens), to micro (~ 1,600 lines and 125K tokens avg).

Original data sourced from HuggingFaceFW/fineweb, HuggingFaceFW/fineweb-2, and Common Crawl

FileLanguageLines
text_ar_largeArabic25,000
text_ar_mediumArabic12,500
text_ar_smallArabic6,250
text_ar_tinyArabic3,125
text_ar_microArabic1,562
text_cn_largeChinese25,000
text_cn_mediumChinese12,500
text_cn_smallChinese6,250
text_cn_tinyChinese3,125
text_cn_microChinese1,562
text_de_largeGerman25,000
text_de_mediumGerman12,500
text_de_smallGerman6,250
text_de_tinyGerman3,125
text_de_microGerman1,562
text_en_largeEnglish25,000
text_en_mediumEnglish12,500
text_en_smallEnglish6,250
text_en_tinyEnglish3,125
text_en_microEnglish1,562
text_es_largeSpanish25,000
text_es_mediumSpanish12,500
text_es_smallSpanish6,250
text_es_tinySpanish3,125
text_es_microSpanish1,562
text_fr_largeFrench25,000
text_fr_mediumFrench12,500
text_fr_smallFrench6,250
text_fr_tinyFrench3,125
text_fr_microFrench1,562
text_hi_largeHindi25,000
text_hi_mediumHindi12,500
text_hi_smallHindi6,250
text_hi_tinyHindi3,125
text_hi_microHindi1,562
text_id_largeIndonesian24,999
text_id_mediumIndonesian12,500
text_id_smallIndonesian6,250
text_id_tinyIndonesian3,125
text_id_microIndonesian1,562
text_it_largeItalian25,000
text_it_mediumItalian12,500
text_it_smallItalian6,250
text_it_tinyItalian3,125
text_it_microItalian1,562
text_jp_largeJapanese25,000
text_jp_mediumJapanese12,500
text_jp_smallJapanese6,250
text_jp_tinyJapanese3,125
text_jp_microJapanese1,562
text_mm_largeBurmese25,000
text_mm_mediumBurmese12,500
text_mm_smallBurmese6,250
text_mm_tinyBurmese3,125
text_mm_microBurmese1,562
text_nl_largeDutch25,000
text_nl_mediumDutch12,500
text_nl_smallDutch6,250
text_nl_tinyDutch3,125
text_nl_microDutch1,562
text_ph_largeFilipino25,000
text_ph_mediumFilipino12,500
text_ph_smallFilipino6,250
text_ph_tinyFilipino3,125
text_ph_microFilipino1,562
text_pl_largePolish25,000
text_pl_mediumPolish12,500
text_pl_smallPolish6,250
text_pl_tinyPolish3,125
text_pl_microPolish1,562
text_pt_largePortuguese25,000
text_pt_mediumPortuguese12,500
text_pt_smallPortuguese6,250
text_pt_tinyPortuguese3,125
text_pt_microPortuguese1,562
text_ru_largeRussian25,000
text_ru_mediumRussian12,500
text_ru_smallRussian6,250
text_ru_tinyRussian3,125
text_ru_microRussian1,562
text_th_largeThai25,000
text_th_mediumThai12,500
text_th_smallThai6,250
text_th_tinyThai3,125
text_th_microThai1,562
text_vn_largeVietnamese25,000
text_vn_mediumVietnamese12,500
text_vn_smallVietnamese6,250
text_vn_tinyVietnamese3,125
text_vn_microVietnamese1,562

Language groups

In addition to single language files, the dataset includes randomized and files by language family/region and all languages in dataset

All languages (all)

European languages: English, French, German, Italian, Portuguese & Spanish (eur)

Germanic languages: Dutch, English & German (gem)

Romance languages: French, Italian, Portuguese & Spanish (roa)

Rest of World: Arabic, Chinese, Hindi & Japanese (row)

Southeast Asia languages: Burmese, Filipino, Indonesian, Thai & Vietnamese (sea)

Slavic languages: Polish & Russian (sla)

Math & Code calibration datasets

This dataset combines math and code prompts into single calibration files.

Tool, Math, Code and Language calibration datasets

This dataset combines tool, math, code and language prompts into single calibration files.

FileLanguageLines
combined_ar_hugeArabic100,000
combined_ar_largeArabic50,000
combined_ar_mediumArabic25,000
combined_ar_smallArabic12,500
combined_ar_tinyArabic6,248
combined_ar_microArabic3,124
combined_cn_hugeChinese100,000
combined_cn_largeChinese50,000
combined_cn_mediumChinese25,000
combined_cn_smallChinese12,500
combined_cn_tinyChinese6,248
combined_cn_microChinese3,124
combined_de_hugeGerman100,000
combined_de_largeGerman50,000
combined_de_mediumGerman25,000
combined_de_smallGerman12,500
combined_de_tinyGerman6,248
combined_de_microGerman3,124
combined_en_hugeEnglish99,999
combined_en_largeEnglish50,000
combined_en_mediumEnglish25,000
combined_en_smallEnglish12,500
combined_en_tinyEnglish6,248
combined_en_microEnglish3,124
combined_es_hugeSpanish100,000
combined_es_largeSpanish50,000
combined_es_mediumSpanish25,000
combined_es_smallSpanish12,500
combined_es_tinySpanish6,248
combined_es_microSpanish3,124
combined_fr_hugeFrench100,000
combined_fr_largeFrench50,000
combined_fr_mediumFrench25,000
combined_fr_smallFrench12,500
combined_fr_tinyFrench6,248
combined_fr_microFrench3,124
combined_hi_hugeHindi100,000
combined_hi_largeHindi50,000
combined_hi_mediumHindi25,000
combined_hi_smallHindi12,500
combined_hi_tinyHindi6,248
combined_hi_microHindi3,124
combined_id_hugeIndonesian99,999
combined_id_largeIndonesian50,000
combined_id_mediumIndonesian25,000
combined_id_smallIndonesian12,500
combined_id_tinyIndonesian6,248
combined_id_microIndonesian3,124
combined_it_hugeItalian100,000
combined_it_largeItalian50,000
combined_it_mediumItalian25,000
combined_it_smallItalian12,500
combined_it_tinyItalian6,248
combined_it_microItalian3,124
combined_jp_hugeJapanese100,000
combined_jp_largeJapanese50,000
combined_jp_mediumJapanese25,000
combined_jp_smallJapanese12,500
combined_jp_tinyJapanese6,248
combined_jp_microJapanese3,124
combined_mm_hugeBurmese100,000
combined_mm_largeBurmese50,000
combined_mm_mediumBurmese25,000
combined_mm_smallBurmese12,500
combined_mm_tinyBurmese6,248
combined_mm_microBurmese3,124
combined_nl_hugeDutch100,000
combined_nl_largeDutch50,000
combined_nl_mediumDutch25,000
combined_nl_smallDutch12,500
combined_nl_tinyDutch6,248
combined_nl_microDutch3,124
combined_ph_hugeFilipino100,000
combined_ph_largeFilipino49,999
combined_ph_mediumFilipino25,000
combined_ph_smallFilipino12,500
combined_ph_tinyFilipino6,248
combined_ph_microFilipino3,124
combined_pl_hugePolish100,000
combined_pl_largePolish50,000
combined_pl_mediumPolish25,000
combined_pl_smallPolish12,500
combined_pl_tinyPolish6,248
combined_pl_microPolish3,124
combined_pt_hugePortuguese100,000
combined_pt_largePortuguese50,000
combined_pt_mediumPortuguese25,000
combined_pt_smallPortuguese12,500
combined_pt_tinyPortuguese6,248
combined_pt_microPortuguese3,124
combined_ru_hugeRussian99,999
combined_ru_largeRussian50,000
combined_ru_mediumRussian25,000
combined_ru_smallRussian12,500
combined_ru_tinyRussian6,248
combined_ru_microRussian3,124
combined_th_hugeThai100,000
combined_th_largeThai50,000
combined_th_mediumThai25,000
combined_th_smallThai12,500
combined_th_tinyThai6,248
combined_th_microThai3,124
combined_vn_hugeVietnamese99,999
combined_vn_largeVietnamese50,000
combined_vn_mediumVietnamese25,000
combined_vn_smallVietnamese12,499
combined_vn_tinyVietnamese6,248
combined_vn_microVietnamese3,124

Tool, Math, Code and Language groups calibration datasets

In addition to single tool, math, code and language files, the dataset includes combined and randomized files by language family/region and all languages in dataset

All languages (all)

European languages: English, French, German, Italian, Portuguese & Spanish (eur)

Germanic languages: Dutch, English & German (gem)

Romance languages: French, Italian, Portuguese & Spanish (roa)

Rest of World: Arabic, Chinese, Hindi & Japanese (row)

Southeast Asia languages: Burmese, Filipino, Indonesian, Thai & Vietnamese (sea)

Slavic languages: Polish & Russian (sla)

Contributors

eaddario

155 commits

eaddario/imatrix-calibration

Dataset

64

stars

155

commits

2

linked in READMEs

May 5, 2026

updated

README

Importance Matrix Calibration Datasets

This repository provides calibration datasets used to generate importance matrices (imatrix), which are required to minimize errors when quantizing models with LLaMA C++.

The llama-imatrix program cannot handle parquet files directly and thus requires them to be converted into text format first. There are many ways to do this but a simple approach is to use DuckDB with the following command: duckdb -noheader -ascii -c "SELECT content FROM 'tools_micro.parquet';" > tools_micro.txt

Code calibration datasets

This dataset consists of cleaned and de-duplicated code prompts and is available in six sizes, ranging from huge (~ 200,000 lines equivalent to approx. 14.5M tokens), to micro (~ 6,200 lines and 2.4M tokens avg).

Original data sourced from Vezora/Open-Critic-GPT, OpenCoder-LLM/opc-sft-stage2, ise-uiuc/Magicoder-Evol-Instruct-110K, and Multilingual-Multimodal-NLP/McEval-Instruct

FileLanguageLines
code_hugeEnglish200,000
code_largeEnglish100,000
code_mediumEnglish50,000
code_smallEnglish25,000
code_tinyEnglish12,500
code_microEnglish6,250

Math calibration datasets

This dataset consists of cleaned and de-duplicated math prompts and is available in six sizes, ranging from huge (~ 200,000 lines equivalent to approx. 6 million), to micro (~ 6,250 lines and 0.9 million tokens avg).

Original data sourced from nvidia/OpenMathInstruct-2

FileLanguageLines
math_hugeEnglish200,000
math_largeEnglish100,000
math_mediumEnglish50,000
math_smallEnglish25,000
math_tinyEnglish12,500
math_microEnglish6,250

Tools calibration datasets

This dataset consists of cleaned and de-duplicated tool prompts and is available in six sizes, ranging from huge (~ 100,000 lines equivalent to approx. 10 million tokens), to micro (~ 3,100 lines and 1 million tokens).

Original data sourced from BitAgent/tool_calling and JungHun/Efficient_ToolCalling

FileLanguageLines
tools_hugeEnglish100,000
tools_largeEnglish50,000
tools_mediumEnglish25,000
tools_smallEnglish12,500
tools_tinyEnglish6,250
tools_microEnglish3,125

Language calibration datasets

This dataset consists of cleaned and de-duplicated text prompts for 18 different languages. Each language file is available in five sizes, ranging from large (~ 25,000 lines equivalent to approx. 725K tokens), to micro (~ 1,600 lines and 125K tokens avg).

Original data sourced from HuggingFaceFW/fineweb, HuggingFaceFW/fineweb-2, and Common Crawl

FileLanguageLines
text_ar_largeArabic25,000
text_ar_mediumArabic12,500
text_ar_smallArabic6,250
text_ar_tinyArabic3,125
text_ar_microArabic1,562
text_cn_largeChinese25,000
text_cn_mediumChinese12,500
text_cn_smallChinese6,250
text_cn_tinyChinese3,125
text_cn_microChinese1,562
text_de_largeGerman25,000
text_de_mediumGerman12,500
text_de_smallGerman6,250
text_de_tinyGerman3,125
text_de_microGerman1,562
text_en_largeEnglish25,000
text_en_mediumEnglish12,500
text_en_smallEnglish6,250
text_en_tinyEnglish3,125
text_en_microEnglish1,562
text_es_largeSpanish25,000
text_es_mediumSpanish12,500
text_es_smallSpanish6,250
text_es_tinySpanish3,125
text_es_microSpanish1,562
text_fr_largeFrench25,000
text_fr_mediumFrench12,500
text_fr_smallFrench6,250
text_fr_tinyFrench3,125
text_fr_microFrench1,562
text_hi_largeHindi25,000
text_hi_mediumHindi12,500
text_hi_smallHindi6,250
text_hi_tinyHindi3,125
text_hi_microHindi1,562
text_id_largeIndonesian24,999
text_id_mediumIndonesian12,500
text_id_smallIndonesian6,250
text_id_tinyIndonesian3,125
text_id_microIndonesian1,562
text_it_largeItalian25,000
text_it_mediumItalian12,500
text_it_smallItalian6,250
text_it_tinyItalian3,125
text_it_microItalian1,562
text_jp_largeJapanese25,000
text_jp_mediumJapanese12,500
text_jp_smallJapanese6,250
text_jp_tinyJapanese3,125
text_jp_microJapanese1,562
text_mm_largeBurmese25,000
text_mm_mediumBurmese12,500
text_mm_smallBurmese6,250
text_mm_tinyBurmese3,125
text_mm_microBurmese1,562
text_nl_largeDutch25,000
text_nl_mediumDutch12,500
text_nl_smallDutch6,250
text_nl_tinyDutch3,125
text_nl_microDutch1,562
text_ph_largeFilipino25,000
text_ph_mediumFilipino12,500
text_ph_smallFilipino6,250
text_ph_tinyFilipino3,125
text_ph_microFilipino1,562
text_pl_largePolish25,000
text_pl_mediumPolish12,500
text_pl_smallPolish6,250
text_pl_tinyPolish3,125
text_pl_microPolish1,562
text_pt_largePortuguese25,000
text_pt_mediumPortuguese12,500
text_pt_smallPortuguese6,250
text_pt_tinyPortuguese3,125
text_pt_microPortuguese1,562
text_ru_largeRussian25,000
text_ru_mediumRussian12,500
text_ru_smallRussian6,250
text_ru_tinyRussian3,125
text_ru_microRussian1,562
text_th_largeThai25,000
text_th_mediumThai12,500
text_th_smallThai6,250
text_th_tinyThai3,125
text_th_microThai1,562
text_vn_largeVietnamese25,000
text_vn_mediumVietnamese12,500
text_vn_smallVietnamese6,250
text_vn_tinyVietnamese3,125
text_vn_microVietnamese1,562

Language groups

In addition to single language files, the dataset includes randomized and files by language family/region and all languages in dataset

All languages (all)

European languages: English, French, German, Italian, Portuguese & Spanish (eur)

Germanic languages: Dutch, English & German (gem)

Romance languages: French, Italian, Portuguese & Spanish (roa)

Rest of World: Arabic, Chinese, Hindi & Japanese (row)

Southeast Asia languages: Burmese, Filipino, Indonesian, Thai & Vietnamese (sea)

Slavic languages: Polish & Russian (sla)

Math & Code calibration datasets

This dataset combines math and code prompts into single calibration files.

Tool, Math, Code and Language calibration datasets

This dataset combines tool, math, code and language prompts into single calibration files.

FileLanguageLines
combined_ar_hugeArabic100,000
combined_ar_largeArabic50,000
combined_ar_mediumArabic25,000
combined_ar_smallArabic12,500
combined_ar_tinyArabic6,248
combined_ar_microArabic3,124
combined_cn_hugeChinese100,000
combined_cn_largeChinese50,000
combined_cn_mediumChinese25,000
combined_cn_smallChinese12,500
combined_cn_tinyChinese6,248
combined_cn_microChinese3,124
combined_de_hugeGerman100,000
combined_de_largeGerman50,000
combined_de_mediumGerman25,000
combined_de_smallGerman12,500
combined_de_tinyGerman6,248
combined_de_microGerman3,124
combined_en_hugeEnglish99,999
combined_en_largeEnglish50,000
combined_en_mediumEnglish25,000
combined_en_smallEnglish12,500
combined_en_tinyEnglish6,248
combined_en_microEnglish3,124
combined_es_hugeSpanish100,000
combined_es_largeSpanish50,000
combined_es_mediumSpanish25,000
combined_es_smallSpanish12,500
combined_es_tinySpanish6,248
combined_es_microSpanish3,124
combined_fr_hugeFrench100,000
combined_fr_largeFrench50,000
combined_fr_mediumFrench25,000
combined_fr_smallFrench12,500
combined_fr_tinyFrench6,248
combined_fr_microFrench3,124
combined_hi_hugeHindi100,000
combined_hi_largeHindi50,000
combined_hi_mediumHindi25,000
combined_hi_smallHindi12,500
combined_hi_tinyHindi6,248
combined_hi_microHindi3,124
combined_id_hugeIndonesian99,999
combined_id_largeIndonesian50,000
combined_id_mediumIndonesian25,000
combined_id_smallIndonesian12,500
combined_id_tinyIndonesian6,248
combined_id_microIndonesian3,124
combined_it_hugeItalian100,000
combined_it_largeItalian50,000
combined_it_mediumItalian25,000
combined_it_smallItalian12,500
combined_it_tinyItalian6,248
combined_it_microItalian3,124
combined_jp_hugeJapanese100,000
combined_jp_largeJapanese50,000
combined_jp_mediumJapanese25,000
combined_jp_smallJapanese12,500
combined_jp_tinyJapanese6,248
combined_jp_microJapanese3,124
combined_mm_hugeBurmese100,000
combined_mm_largeBurmese50,000
combined_mm_mediumBurmese25,000
combined_mm_smallBurmese12,500
combined_mm_tinyBurmese6,248
combined_mm_microBurmese3,124
combined_nl_hugeDutch100,000
combined_nl_largeDutch50,000
combined_nl_mediumDutch25,000
combined_nl_smallDutch12,500
combined_nl_tinyDutch6,248
combined_nl_microDutch3,124
combined_ph_hugeFilipino100,000
combined_ph_largeFilipino49,999
combined_ph_mediumFilipino25,000
combined_ph_smallFilipino12,500
combined_ph_tinyFilipino6,248
combined_ph_microFilipino3,124
combined_pl_hugePolish100,000
combined_pl_largePolish50,000
combined_pl_mediumPolish25,000
combined_pl_smallPolish12,500
combined_pl_tinyPolish6,248
combined_pl_microPolish3,124
combined_pt_hugePortuguese100,000
combined_pt_largePortuguese50,000
combined_pt_mediumPortuguese25,000
combined_pt_smallPortuguese12,500
combined_pt_tinyPortuguese6,248
combined_pt_microPortuguese3,124
combined_ru_hugeRussian99,999
combined_ru_largeRussian50,000
combined_ru_mediumRussian25,000
combined_ru_smallRussian12,500
combined_ru_tinyRussian6,248
combined_ru_microRussian3,124
combined_th_hugeThai100,000
combined_th_largeThai50,000
combined_th_mediumThai25,000
combined_th_smallThai12,500
combined_th_tinyThai6,248
combined_th_microThai3,124
combined_vn_hugeVietnamese99,999
combined_vn_largeVietnamese50,000
combined_vn_mediumVietnamese25,000
combined_vn_smallVietnamese12,499
combined_vn_tinyVietnamese6,248
combined_vn_microVietnamese3,124

Tool, Math, Code and Language groups calibration datasets

In addition to single tool, math, code and language files, the dataset includes combined and randomized files by language family/region and all languages in dataset

All languages (all)

European languages: English, French, German, Italian, Portuguese & Spanish (eur)

Germanic languages: Dutch, English & German (gem)

Romance languages: French, Italian, Portuguese & Spanish (roa)

Rest of World: Arabic, Chinese, Hindi & Japanese (row)

Southeast Asia languages: Burmese, Filipino, Indonesian, Thai & Vietnamese (sea)

Slavic languages: Polish & Russian (sla)

Contributors

eaddario

155 commits