Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Higher scores = more reliable data for decision-making.
- **[Crowdsourcing Guide](docs/CROWDSOURCING.md)** - Community data collection
- **[Developer Setup (Windows-first)](docs/DEV_SETUP.md)** - VS Code tasks, environment setup, and daily workflow
- **[Simulation Pipeline Spec](docs/SIMULATION_PIPELINE.md)** - Research-grade direction + CLI scaffold
- **[GR801 SoC Simulation (Standalone)](docs/GR801_SIMULATION.md)** - Run the GR801 demo without touching the main pipeline

## 🏗️ Architecture Overview

Expand Down
38 changes: 38 additions & 0 deletions docs/GR801_SIMULATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# GR801 Simulation (Standalone)

This repo includes a lightweight simulation scaffold for a GR801 radiation-hardened AI SoC.

It is **standalone** and does **not** run the Rural Mapper data pipeline, does **not** touch `data/`, and does **not** require any external credentials.
Comment on lines +3 to +5

Copilot AI Feb 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description/title say this change “adds gr801_simulation_framework.py”, but the PR diff shown here only adds docs/GR801_SIMULATION.md and a README link. If the framework file is intended to be part of this PR, it looks like it’s missing from the changeset (or the PR description should be updated to match what’s actually being changed).

Copilot uses AI. Check for mistakes.

## Run the demo

From the repo root (Windows PowerShell):

```powershell
.\.venv\Scripts\python.exe gr801_simulation_framework.py
```

This runs a short “radiation tolerance” sanity pass and then a mission simulation using the toy models.

Copilot AI Feb 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc says the script runs a “short” mission simulation, but the current demo entrypoint runs simulate_gr801_mission() with a 12-hour mission and dt=0.1 (hundreds of thousands of steps/inferences), which likely won’t feel short in practice. Consider adjusting the wording or documenting expected runtime and how to shorten the run.

Suggested change
This runs a short “radiation tolerance” sanity pass and then a mission simulation using the toy models.
This runs a quick “radiation tolerance” sanity pass and then a longer mission simulation using the toy models. By default, the demo simulates a multi‑hour mission with a small timestep, so it may take a while to finish. To shorten the run (for example, for faster experimentation), edit `gr801_simulation_framework.py` to reduce the mission duration and/or increase the timestep before running the script.

Copilot uses AI. Check for mistakes.

## Use it from Python

```python
import numpy as np
import gr801_simulation_framework as gr

system = gr.GR801System(environment=gr.RadiationEnvironment.LEO)

# Advance simulation time (does not affect the Rural Mapper pipeline)
system.execute_timestep(dt=0.1)

model = gr.NeuralNetworkModel.get_preset_model(gr.AIWorkload.IMAGE_CLASSIFICATION)
input_data = np.random.standard_normal((1, *model.input_shape)).astype(np.float32)
result = system.run_inference(gr.AIWorkload.IMAGE_CLASSIFICATION, input_data)
print(result["estimated_accuracy"], result["result"].shape)
```

## Notes

- The “4GB DDR” is modeled as a sparse paged address space to avoid allocating multi‑GB arrays.
- CPU cycles and memory scrubbing are batched to keep the simulation fast in Python.
- This is a simulation scaffold, not a hardware-accurate model.