Vers3Dynamics Civil Reactor Expert 3B

A local learning workspace for civil reactor physics: explore concepts, calculate with units, and inspect the assumptions behind an answer.

Start with the CPU-only learning app below. It includes authored lessons and simplified physics calculations. Optional model mode adds explanations from Qwen2.5-3B-Instruct with this LoRA adapter.

Release status: The published adapter is a five-step training validation artifact. Improved setup, presentation, and calculation routing do not make it a validated expert model. No improvement over the base model is established.

Get started ยท Setup & troubleshooting ยท What to expect ยท Evaluation ยท Research details

Civil Reactor learning workspace

Start here

You need Python 3.10+ and Git for learning mode. No GPU, API key, or account is needed. Learning mode does not load language-model weights.

git clone https://huggingface.co/ciaochris/Vers3Dynamics-Civil-Reactor-Expert-3B
cd Vers3Dynamics-Civil-Reactor-Expert-3B
python -m venv .venv

Activate the environment:

System Command
Windows PowerShell .venv\Scripts\Activate.ps1
macOS / Linux source .venv/bin/activate

Then install and launch:

python -m pip install -e .
python -m examples.chat_app

Open http://127.0.0.1:8019 in your browser. Keep the terminal running; press Ctrl+C to stop.

The app includes guided lesson buttons, example calculations, replies to clarification questions, copyable answers, downloadable conversation records, and a mobile layout. It labels authored lessons, calculated results, and model-generated explanations separately.

If PowerShell prevents activation, use .venv\Scripts\python.exe in place of python in the install and launch commands. See the setup guide for other common problems.

Choose your mode

Mode What you get What you need
Learning app โ€” start here Four authored lessons, supported calculations, comparisons, explicit missing-input questions Python, NumPy and SciPy; CPU only
Model app โ€” optional The same calculation routing plus generated explanations from the published 3B adapter PyTorch, Transformers, PEFT, Accelerate, the base model and adapter; substantially more RAM
Local API Supported calculations through an OpenAI-style chat endpoint The base installation for grounded; inference dependencies for transformers
Research tools Training, dataset auditing, routing studies and evaluation scripts See research details

Learning mode is a finite lesson library and calculator, not a general chatbot. Unknown explanation questions receive a clear capability message. The model page's example prompts do not imply a hosted inference service.

The browser app retains a pending clarification for the next reply. After a completed answer, include the full context in a new question. It does not provide general conversational memory.

Try these questions

Goal Question
Understand a concept Why do delayed neutrons matter?
Learn about xenon Why can xenon rise after a power reduction?
Learn units What do pcm and dollars mean?
Convert units Convert -145 pcm to dollars with beta_eff=0.0065.
Compare textbook cases Compare the reactor period for 50 and 100 pcm.
Calculate feedback Compute Doppler feedback in pcm: alpha_f = -1.7 pcm/K, fuel rise 23 K.

For the conversion example, the expected result is approximately -0.223077 dollars. The engine uses the stated beta_eff. Calculations show their assumptions and source; this is a worked educational example, not a plant-specific prediction.

Quickstart: Transformers + PEFT

For open-ended conceptual explanations, install the inference extra and start model mode:

python -m pip install -e ".[inference]"
python -m examples.chat_app --backend transformers

The first run downloads the base model and adapter from Hugging Face. Subsequent runs can use cached files. CPU inference is supported but can be slow; CUDA uses half precision when available. This path does not require bitsandbytes. Allow several GB for downloads and substantially more memory than learning mode; exact memory depends on hardware, prompt length, and runtime. See hardware and installation guidance.

For a single prompt directly through Transformers:

python examples/infer_transformers.py --prompt "Explain delayed neutrons."

Direct inference does not use the calculation router. Use the browser app or grounded endpoint for supported numeric questions.

Quickstart: Local Guarded Endpoint

python examples/serve_local_endpoint.py --backend grounded --port 8017

In a second terminal with the same environment:

python examples/call_local_endpoint.py --url http://127.0.0.1:8017/v1/chat/completions --prompt "Convert -145 pcm to dollars with beta_eff=0.0065."

grounded is the default. guarded-template is only an echo-style test fixture. The API is a small local compatibility example, not a complete implementation of streaming, tool calling, authentication, or general chat memory.

What This Is

A PEFT LoRA adapter for Qwen/Qwen2.5-3B-Instruct, packaged with educational calculation engines and local interfaces. The adapter requires that base model. The learning app works without either.

What This Is Not

A complete standalone checkpoint, a converged fine-tune, a benchmarked expert system, or a validated reactor operating tool. Separate experiments with other base models are not evidence about this adapter.

Intended Use

Civil reactor physics education, simplified point kinetics, xenon/iodine concepts, decay heat fundamentals, reactivity units, and non-operational safeguards material-balance reasoning.

Out-of-Scope Use

Real plant operating decisions, emergency response, licensing or compliance judgments, weapons assistance, enrichment/separation recipes, safeguards evasion, sabotage, or cyber exploitation.

Safety Scope Table

Area Supported educational use Outside this app's scope
Reactor physics Concepts and simplified calculations Plant procedures or safety-critical control
Safeguards Material-balance and uncertainty education Evasion or tampering
Cyber-physical systems High-level defensive concepts in model mode Intrusion or exploit instructions

The included keyword filter is limited. Passing a filter does not validate an answer or establish deployment safety.

Model Architecture

Property Published root adapter
Base model Qwen/Qwen2.5-3B-Instruct
Adapter LoRA, rank 4, alpha 8, dropout 0.05
Target modules q_proj, v_proj
Training QLoRA SFT; five optimizer steps
Language English

Training Data Overview

The root adapter used expanded_training_examples.jsonl (36 examples). The later recommended dataset, tinker_training_examples_v2.jsonl (697 examples), was audited against the engines. It was not used to retrain the root adapter. The legacy dataset has known defects. See datasets.json and the audit.

Training Procedure

Published weights came from a hardware-bounded five-step pipeline validation run. Training configuration and reproducibility details are in the research reference and training guide.

Evaluation Methodology

The repository includes 15 numeric regression prompts, a 180-prompt safety/quality suite, routing evaluations, and tests of user journeys. Numeric checks compare against engine outputs within stated tolerances. These check the application and calculations; they do not establish the root adapter's quality.

python -m pip install -e ".[dev]"
python -m pytest tests/test_chat_app.py tests/test_grounded_serving.py -q
python eval_numeric_correctness.py --self-check

See end-user verification for the tests actually run in this update. No base-versus-adapter improvement is claimed.

Safety Evaluation Methodology

The historical held-out keyword-filter result was 19/36 disallowed prompts caught (53%), with 0/54 allowed prompts blocked. This measures a filter, not model safety. See evaluation details and AUDIT.md.

Limitations and Failure Modes

  • Model prose can contain incorrect facts, arithmetic, units, or citations.
  • The parser recognizes supported phrasing and units, not arbitrary natural language.
  • Physics engines use simplified educational assumptions. Inspect these with each result.
  • Learning mode answers only its authored lessons and supported computations.
  • Local conversations expire after an hour of inactivity or a server restart.
  • The app keeps conversation history in the current browser tab, with pending clarification text held temporarily in server memory. It does not save chats to disk. Reloading clears the visible conversation; use Export to keep it.
  • The root weights remain unevaluated against the base model. This update does not retrain them.

File Inventory

File Purpose
examples/chat_app.py Local browser app
examples/web/ Browser interface assets
civil_decision/learning.py Authored lessons and readable result formatting
docs/getting-started.md Setup, modes, troubleshooting
civil_tools.py Calculation schemas and engine wrappers
civil_decision/ Routing, validation and provenance
docs/model-reference.md Technical audit, training and evaluation details
tests/ Regression and user journey checks

Reproducibility

python -m pytest tests/ -q
python expand_dataset.py --check
python audit_training_data.py
python eval_numeric_correctness.py --self-check

Citation and Attribution

Christopher Woodyard, Vers3Dynamics Civil Reactor Expert 3B (2026). See CITATION.cff. The adapter inherits the Qwen Research License; repository code has its own LICENSE.

Vers3Dynamics Project Note

An independent research project for inspectable civil reactor education and computation. Report reproducible problems in the Community tab, including the mode, prompt, expected result, and actual result.

Disclaimer

This model is for education, research prototyping, and safeguards reasoning demonstrations only. It is not a validated engineering tool or a source of operational guidance.

Downloads last month
126
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for ciaochris/Vers3Dynamics-Civil-Reactor-Expert-3B

Base model

Qwen/Qwen2.5-3B
Adapter
(1,533)
this model