{"slug": "evaluating-llm-models-capacity-for-fortran-code-development", "title": "Evaluating LLM models capacity for Fortran code development", "summary": "A community discussion calls for a dedicated Fortran coding benchmark and a curated fine-tuning dataset for coding LLMs, citing existing efforts including fortbench, a reproducible SWE-bench-style benchmark that tests whether LLM agents can fix 20 real issues from public Fortran projects using deterministic build/test verification. The post also points to HeCBench-Fortran-OMP for OpenMP GPU offloading, an OpenMP-annotated code dataset of roughly 77k HPC source files, paired C++/Fortran datasets CodeRosetta and HPC-Fortran-Cpp, FortranCodeGen-3B-SynthData with about 600 unit-tested MBPP-style Fortran tasks, and taeukkang/fortran-llm prompt-to-Fortran instruction pairs, plus the Fortran split of The Stack v2 and StarCoderData.", "body_md": "Yes, I think we should have a Fortran coding benchmark, as well as a dataset curated for finetuning or training of coding LLMs for Fortran code development.\n\nI did a web search and i found some early efforts in these areas:\n\n**Existing Benchmarks:**\n\n- **[fortbench](https://www.google.com/goto?url=CAESYQHEIkXXUYX6f5mmbc9ctrWEdrY6sm0UXPerR9-nrMDM6ctDP9rfy1kxaHT6D84MJyFvucmyDsK28D6CMUnHeYBiGzGZzCzgaCUTDObzzyl2vfYmBFqt7DzDnT_inUeFCgs)** (also discussed in another thread here): A reproducible, SWE-bench-style benchmark that tests whether LLM agents can fix 20 real issues from public Fortran projects using deterministic build/test verification. [[1](https://www.google.com/goto?url=CAESYQHEIkXXUYX6f5mmbc9ctrWEdrY6sm0UXPerR9-nrMDM6ctDP9rfy1kxaHT6D84MJyFvucmyDsK28D6CMUnHeYBiGzGZzCzgaCUTDObzzyl2vfYmBFqt7DzDnT_inUeFCgs) ]\n- **HeCBench-Fortran-OMP** : Specifically targets OpenMP GPU offloading benchmarks, which aligns closely with your interest in OpenMP/OpenACC data movement.\n\n**Datasets for Fine-Tuning (Fortran Output):**\n\n- **HPC & OpenMP:** There is a large OpenMP-Annotated Code Dataset (~77k HPC source files mapping loop contexts to OpenMP directives), as well as paired C++/Fortran datasets like[CodeRosetta](https://www.google.com/goto?url=CAESdwHEIkXXrCkd2hFL1dpCsn7thLDkc3g55jAELtsAJX6SBlvwRXBuspawCMZjNZX_xtfIMjJE7FJjYYmhvbvGkdS0wILak88Dwb6aCHXAYTpgYCKLzV_BzzZNHz6JhHiP89KE1YqlbiFNt7LXYtCr77iP-uOp_tE5) and[HPC-Fortran-Cpp](https://www.google.com/goto?url=CAESWwHEIkXXDS1SPglHlrFKYavT93VGc-zCc_lgSj5CZkgcAWmz64ZmbPhiivyKJjuDRbANtnWhsbrZ-ArvfCU9V_r5sVdEL-DK-FVxAvTKIGyJQG6lXeGp4irbEEs) . [[1](https://www.google.com/goto?url=CAESoAEBxCJF15k1-RynNoA2bmyOz7atqQBEKpd4psV2f-Ti4avU6TlZQd1eANixHUgRn6flvDuW77N7eC1uc3Bhp7KQDIcmoSRGlULUCBJ1ipz9YAD79hc_8t4x62YzanEMSVL1TBsQ4cYtLs-tUJdpR_iUji3FGfeWXOvdxFDzeXdN1AEd8n_ChLPLT45q5Ud91YJTTAZDeykocEdEXqMjCOgM) ,[2](https://www.google.com/goto?url=CAESWwHEIkXXDS1SPglHlrFKYavT93VGc-zCc_lgSj5CZkgcAWmz64ZmbPhiivyKJjuDRbANtnWhsbrZ-ArvfCU9V_r5sVdEL-DK-FVxAvTKIGyJQG6lXeGp4irbEEs) ,[3](https://www.google.com/goto?url=CAES3wEBxCJF1xBCRfp8GarcaH3PJBnWX0gXJl_D96Tb53jTaD3L3lcZCHsLNE4DHFqMZZmo5879fZxcH2MpOdNOeUcL37mmhX_S8QWIKtvck9kwPyBIETLQkdnm6YraSYLT-hYQXgNUz_Sbb9fmGfHmsI_clf2iy7SLtiYuK5JNlTvNXEaL5Odb5iTBeCvTNYnY9ZUs6Nzy-bX4g76It5Qi2BBMJaXLL23IDwyGz8hati9ObX9f4r-Q9GcS2rc8IJ0s6l6S1RRb-Z_d91M7d1971Dcto7cxOb86edPPrq6PP-Qt) ]\n- **General Fortran Generation:**[FortranCodeGen-3B-SynthData](https://www.google.com/goto?url=CAEScwHEIkXX7w0shKoPEc4VqouFTQiIENho7FYzRTk_NDK0lsnsLXPUpaJtRIFNliYPYkmUJ8BINKcSQCYKbfDxnVN3E_JnQrMp72EDbflbiaap_0hBNok2O1RtaYcmD1_J9dQaIKc9PNqWBjX5SGnFdqfJXGA) (~600 unit-tested MBPP-style tasks in Fortran) and[taeukkang/fortran-llm](https://www.google.com/goto?url=CAESYAHEIkXX5O-vybw6tWCU4dyV680TaZPB2T-r5EBnJYRG6EKpvxZaXld-4hxpbzaJWgBvWeKWy2Mz0hopmKl59N-3CuRrDzmXiIyHbauXysTwCtYFiu2uqmrKOxZ6SP5dYw) provide prompt-to-Fortran instruction pairs, alongside raw filtered corpora like the Fortran split of**The Stack v2** /**StarCoderData** .", "url": "https://wpnews.pro/news/evaluating-llm-models-capacity-for-fortran-code-development", "canonical_source": "https://fortran-lang.discourse.group/t/evaluating-llm-models-capacity-for-fortran-code-development/11334#post_2", "published_at": "2026-11-25 11:43:42+00:00", "updated_at": "2026-11-25 11:47:50.360580+00:00", "lang": "en", "topics": ["large-language-models", "ai-research"], "entities": ["fortbench", "HeCBench-Fortran-OMP", "CodeRosetta", "HPC-Fortran-Cpp", "FortranCodeGen-3B-SynthData", "taeukkang/fortran-llm", "The Stack v2", "StarCoderData"], "also_reported_by": [], "takeaway": "fortbench evaluates LLM agents on fixing 20 real issues from public Fortran projects with deterministic build/test verification, while FortranCodeGen-3B-SynthData offers about 600 unit-tested MBPP-style Fortran tasks for measuring prompt-to-code ability.", "recommendation": {"advice": "Evaluate Fortran coding agents on fortbench's 20 real public-project issues with deterministic build and test verification rather than on generated snippets alone.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/evaluating-llm-models-capacity-for-fortran-code-development", "markdown": "https://wpnews.pro/news/evaluating-llm-models-capacity-for-fortran-code-development.md", "text": "https://wpnews.pro/news/evaluating-llm-models-capacity-for-fortran-code-development.txt", "jsonld": "https://wpnews.pro/news/evaluating-llm-models-capacity-for-fortran-code-development.jsonld"}}