# Evaluating LLM models capacity for Fortran code development

**URL:** <https://fortran-lang.discourse.group/t/evaluating-llm-models-capacity-for-fortran-code-development/11334>\
**Category:** Uncategorized\
**Created:** [November 25, 2026, 11:23am UTC](https://fortran-lang.discourse.group/t/evaluating-llm-models-capacity-for-fortran-code-development/11334 "2026-11-25T11:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgeg](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/jorgeg/32/6835_2.png) [@jorgeg](https://fortran-lang.discourse.group/u/jorgeg)\
**Post date:** [November 25, 2026, 11:23am UTC](https://fortran-lang.discourse.group/t/evaluating-llm-models-capacity-for-fortran-code-development/11334/1 "2026-11-25T11:23:16Z")

</div>

A lot of people are writing code with LLMs however I don’t know if there’s any good benchmark out there for Fortran specifically. I wonder if we could hive-mind a benchmark that we can test with models - open source, private labs (OpenAI, Anthropic, etc.) so that newcomers to the language can see what models are there and which ones work the best.

My main interest is GPU programming with Fortran using OpenMP/OpenACC for data movement so I can put some examples down for this. But there are so many other areas that can be of interest (even also coArrays, etc.)

I propose a git repo where we start putting down tests/benchmarks for sample problems, expected behavior. Then based on “bad” behavior we can create community linters (maybe fortitude?) and skill files.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![suwesh081](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/suwesh081/32/7986_2.png) [@suwesh081](https://fortran-lang.discourse.group/u/suwesh081)\
**Post date:** [November 25, 2026, 11:43am UTC](https://fortran-lang.discourse.group/t/evaluating-llm-models-capacity-for-fortran-code-development/11334/2 "2026-11-25T11:43:42Z")

</div>

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