Open Scriptura
AI & ML interests
None defined yet.
OpenScriptura
Open LLMs for Protestant Theology โ any tradition, any language, built to last.
What is OpenScriptura
OpenScriptura is an open-source applied research project that fine-tunes open LLMs with Protestant theological corpus โ across all Protestant traditions and all languages.
The problem: Existing language models treat questions of faith with excessive neutrality or simply ignore the religious dimension. The CEFEAI benchmark demonstrated that all 27 frontier models tested in 2026 produce 0% predominantly religious responses to everyday ethical questions, with even the best model (Grok 4.20) ignoring religious perspective 70% of the time.
The solution: Tradition-specific fine-tuning with high-quality confessional corpus, a three-layer validation pipeline, and scientifically comparable evaluation via CEFEAI.
The scope: OpenScriptura serves the full breadth of Protestant Christianity โ Reformed, Lutheran, Anglican, Baptist, Methodist, Pentecostal, and beyond. Each tradition has its own confessional standards, its own dataset, and its own model variant. We start with Reformed theology in Brazilian Portuguese because that is where we started โ not because that is where we end.
Scientific Motivation
Base models โ CEFEAI Religious Representation (May 2026, 150 questions):
Grok 4.20 โโโโโโโโโโโโโโโโโโโโ 29.3% Any Representation
Mistral Large โโโโโโโโโโโโโโโโโโโโ 23.3%
GPT-5.4 โโโโโโโโโโโโโโโโโโโโ 17.3%
Qwen3-8B base โโโโโโโโโโโโโโโโโโโโ ~6.0% โ our starting point
Claude Opus 4.7 โโโโโโโโโโโโโโโโโโโโ 4.0%
Llama 4 Scout โโโโโโโโโโโโโโโโโโโโ 3.3%
Predominantly Religious: 0% across all 27 models tested.
OpenScriptura v0.1 target: โโโโโโโโโโโโโโโโโโโโ > 60%
Protestant Traditions
OpenScriptura is designed to serve the full breadth of Protestant Christianity. Each tradition is treated with fidelity to its own confessional standards โ there is no attempt to blend incompatible doctrines.
| Tradition | Primary Confessional Standards | Status |
|---|---|---|
| Reformed / Calvinist | Westminster Confession of Faith, Canons of Dort, Heidelberg Catechism, London Baptist Confession 1689 | ๐ v0.1 โ first release |
| Lutheran | Augsburg Confession (1530), Luther's Small & Large Catechisms, Formula of Concord | ๐ Planned |
| Anglican / Episcopal | Thirty-Nine Articles (1571), Book of Common Prayer | ๐ Planned |
| Baptist (Traditional) | Second London Confession (1689), New Hampshire Confession (1833), Baptist Faith & Message | ๐ Planned |
| Methodist / Wesleyan | Wesley's Articles of Religion, Methodist Discipline | ๐ Planned |
| Pentecostal | Assemblies of God Statement of Fundamental Truths | ๐ Planned |
| Congregationalist | Savoy Declaration (1658) | ๐ Planned |
| Other Protestant | Community contributions welcome | ๐ Open |
Note on tradition boundaries: Models are labeled clearly by tradition. A Reformed model will not speak as a Lutheran, and vice versa. Where traditions share common ground (e.g. justification by faith), datasets naturally overlap. Where they diverge (e.g. baptism, Lord's Supper, church governance), each tradition's dataset reflects its own confessional position.
Published Models
| Model | Base | Tradition | Language | CEFEAI RR | Download |
|---|---|---|---|---|---|
qwen3-8b-reformed-pt-br-v0.1 |
Qwen3-8B | Reformed | PT-BR | ๐ pending | HF Hub |
qwen3-8b-lutheran-en-v0.1 |
Qwen3-8B | Lutheran | EN | ๐ planned | โ |
gpt-oss-20b-v1.0 |
GPT-OSS 20B | Multi-tradition | Multilingual | ๐ planned | โ |
Model naming convention: openscriptura/{base}-{tradition}-{lang}-{version}
Repository Structure
openscriptura/
โโโ README.md
โโโ CONTRIBUTING.md
โโโ LICENSE # Apache 2.0
โโโ requirements.txt
โ
โโโ traditions/ # One folder per tradition
โ โโโ reformed/
โ โ โโโ data/
โ โ โ โโโ tier_c/ # Native Q&A โ catechisms
โ โ โ โ โโโ westminster_sc.jsonl
โ โ โ โ โโโ westminster_lc.jsonl
โ โ โ โ โโโ heidelberg.jsonl
โ โ โ โ โโโ canons_dort.jsonl
โ โ โ โโโ tier_b/ # Sermons and texts
โ โ โ โโโ tier_a/ # Structured doctrinal topics
โ โ โโโ configs/
โ โ โโโ confessions.yaml # WCF, Dort, LCF references
โ โโโ lutheran/
โ โ โโโ data/
โ โ โโโ configs/
โ โ โโโ confessions.yaml # Augsburg, Book of Concord
โ โโโ anglican/
โ โโโ baptist/
โ โโโ methodist/
โ โโโ pentecostal/
โ
โโโ data/
โ โโโ processed/
โ โโโ reformed-pt-br-v1.0/
โ โ โโโ train.jsonl # 4,800 examples (seed=42)
โ โ โโโ eval.jsonl # 600 examples
โ โ โโโ test.jsonl # 600 examples (holdout)
โ โ โโโ manifest.json # SHA-256 per split
โ โโโ lutheran-en-v1.0/
โ
โโโ scripts/
โ โโโ 00_cefeai_baseline.py
โ โโโ 01_extract_tier_c.py
โ โโโ 02_extract_tier_b.py
โ โโโ 03_confessional_judge.py # Tradition-aware judge
โ โโโ 04_merge_dataset.py
โ โโโ 05_train.py
โ โโโ 06_evaluate.py
โ โโโ 07_cefeai_eval.py
โ
โโโ configs/
โ โโโ exp_a.yaml # LR=2e-4, rank=32
โ โโโ exp_b.yaml # LR=2e-4, rank=64
โ โโโ exp_c.yaml # LR=1e-4, rank=32
โ โโโ exp_d.yaml # LR=1e-4, rank=64 (default)
โ
โโโ notebooks/
โ โโโ 01_baseline_analysis.ipynb
โ โโโ 02_dataset_eda.ipynb
โ โโโ 03_results_comparison.ipynb
โ
โโโ docs/
โโโ METHODOLOGY.md
โโโ THEOLOGICAL_STATEMENT.md
โโโ ADDING_A_TRADITION.md # Guide: how to add a new tradition
โโโ ADDING_A_LANGUAGE.md # Guide: how to add a new language
Quick Start
Requirements
Python 3.11+
CUDA 12.4+
GPU: RTX 4090 (24GB) minimum for experiments
A100 80GB recommended for final run
Installation
git clone https://github.com/openscriptura/qwen3-8b-reformed-pt-br-v0.1
cd openscriptura
pip install -r requirements.txt --break-system-packages
cp .env.example .env
# Edit .env with API keys (OpenRouter, HuggingFace)
Run CEFEAI baseline
# Cost: ~$0.29 | Time: ~2h
python scripts/00_cefeai_baseline.py --model qwen/qwen3-8b --benchmark rr
python scripts/00_cefeai_baseline.py --model qwen/qwen3-8b --benchmark cb
Build the dataset (Reformed PT-BR v0.1)
python scripts/01_extract_tier_c.py --tradition reformed
python scripts/02_extract_tier_b.py --tradition reformed --lang pt-BR
python scripts/03_confessional_judge.py --tradition reformed
python scripts/04_merge_dataset.py --tradition reformed --seed 42
Fine-tuning
# Free validation on Kaggle
python scripts/05_train.py --config configs/exp_d.yaml --tradition reformed --samples 500
# Full run โ RunPod Secure A100
python scripts/05_train.py --config configs/exp_d.yaml --tradition reformed --full
Dataset Schema (v1.0)
tradition and language are first-class fields. The same schema works for any Protestant tradition in any language:
{
"id": "os_reformed_c_wsc_001",
"instruction": "What is justification by faith alone?",
"input": "",
"output": "Justification is the forensic act by which God declares the sinner righteous...",
"source": "westminster_sc_q033",
"tier": "C",
"tradition": "reformed",
"confessional_ref": "WCF_11.1",
"language": "pt-BR",
"difficulty": "intermediate",
"annotation_model": "deepseek-v4-flash",
"validated_by": "gemini-flash-2",
"confidence": 0.94,
"confessional_score": 0.91,
"dataset_version": "v1.0",
"created_at": "2026-06-07"
}
tradition values: reformed ยท lutheran ยท anglican ยท baptist ยท methodist ยท pentecostal ยท congregationalist
language follows BCP 47: pt-BR ยท en ยท es ยท de ยท fr ยท etc.
Fine-tuning Configuration
# configs/exp_d.yaml โ default (OpenMed config D)
model:
name: Qwen/Qwen3-8B
load_in_4bit: true
bnb_4bit_quant_type: nf4
bnb_4bit_use_double_quant: true
lora:
r: 64
lora_alpha: 64
lora_dropout: 0.05
target_modules: [q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj]
training:
per_device_train_batch_size: 4
gradient_accumulation_steps: 4
num_train_epochs: 3
learning_rate: 1e-4
lr_scheduler_type: cosine
warmup_ratio: 0.05
bf16: true
max_seq_length: 2048
seed: 42
Cost per model variant: ~$11โ17 total (dataset generation + fine-tuning + evaluation).
Roadmap
Phase 1 โ Reformed Foundation
v0.1 Qwen3-8B ยท Reformed ยท PT-BR โ we are here
v0.2 GPT-OSS 20B ยท Reformed ยท PT-BR+EN
v0.3 Gemma 4 31B ยท Reformed ยท multilingual
Phase 2 โ Tradition Expansion
v1.0 Lutheran ยท EN (Book of Concord corpus)
v1.1 Anglican ยท EN (39 Articles + BCP)
v1.2 Baptist ยท EN + PT-BR
Phase 3 โ Community-Driven
v2.x Methodist, Pentecostal, Congregationalist
v2.x Spanish, German, indigenous languages
v3.0 Multi-tradition unified benchmark paper
Contributing
We welcome contributions across all Protestant traditions and languages.
New tradition: see docs/ADDING_A_TRADITION.md. You need: primary confessional standards, a seed corpus of at least 200 examples, and one person willing to do pastoral review.
New language: see docs/ADDING_A_LANGUAGE.md.
Dataset examples: open an issue with theological Q&A in any tradition and language. Include the confessional reference.
Doctrinal corrections: open an issue with the problematic example and the correct reference.
Code: issues labeled good first issue.
Citation
@misc{openscriptura2026,
title = {OpenScriptura: Open LLMs for Protestant Theology},
author = {OpenScriptura Contributors},
year = {2026},
howpublished = {\url{https://github.com/openscriptura/qwen3-8b-reformed-pt-br-v0.1}},
note = {Apache 2.0. Multi-tradition, language-agnostic pipeline.
Benchmarked against CEFEAI AllFaith Benchmark.}
}
License
Apache 2.0 โ see LICENSE. Free use including commercial. Attribution required.
Soli Deo Gloria
For the glory of God and the good of the Church โ in every tradition and every language.
HuggingFace ยท CEFEAI ยท Issues