# Evaluating LLM models capacity for Fortran code development

> Source: <https://fortran-lang.discourse.group/t/evaluating-llm-models-capacity-for-fortran-code-development/11334#post_2>
> Published: 2026-11-25 11:43:42+00:00

**Recommendation:** Evaluate Fortran coding agents on fortbench's 20 real public-project issues with deterministic build and test verification rather than on generated snippets alone.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

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.

I did a web search and i found some early efforts in these areas:

**Existing Benchmarks:**

- **[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) ]
- **HeCBench-Fortran-OMP** : Specifically targets OpenMP GPU offloading benchmarks, which aligns closely with your interest in OpenMP/OpenACC data movement.

**Datasets for Fine-Tuning (Fortran Output):**

- **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) ]
- **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** .
