# wildpino/siliconllm architecture

> Architecture diagram of the GitHub repository wildpino/siliconllm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wildpino/siliconllm
- Repository: https://github.com/wildpino/siliconllm

## Overview

The repository presents Silicon Entropy Engine as a CPU-oriented research project, while the sampled runtime is a byte-oriented SEE3 compression codec. Its principal user workflow is invoking the CLI to encode, audit, or decode files; encoding combines prediction and compression helpers under the codec. The tree also includes current checkpoint evaluation and Kaggle run-management scripts. README evidence is truncated, and several compressor relationships are supported by the SOURCE INDEX imports rather than complete call-site excerpts.

Main entry points: [`archive/compressor/src/see_codec.c`](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/see_codec.c) (Codec core), [`scripts/kaggle_run.py`](https://github.com/wildpino/siliconllm/blob/SirProjects/scripts/kaggle_run.py) (Kaggle run manager), [`archive/compressor/see.c`](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/see.c) (SEE command), [`archive/compressor/src/silicon_entropy.c`](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/silicon_entropy.c) (SEE predictor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_codec["SEE3 codec"]
  node_cli["SEE command<br/>[see.c]"]
  node_codec_core["Codec core<br/>[see_codec.c]"]
  node_archive_format["Archive format<br/>[see_codec.h]"]
  node_range_coder["Range coder<br/>[range_coder.c]"]
end

subgraph group_prediction["Prediction engines"]
  node_entropy["SEE predictor<br/>[silicon_entropy.c]"]
  node_wave_state["V0 wave state<br/>[silicon_v0.c]"]
  node_moe["Expert mixer<br/>[moe_engine.c]"]
  node_regime["Regime prior<br/>[regime_prior.c]"]
  node_lz_topn["Top-N LZ<br/>[lz_topn.c]"]
  node_token_lz["Token LZ<br/>[tok_lz.c]"]
  node_span_lz["Span LZ<br/>[span_lz.c]"]
end

subgraph group_research["Research operations"]
  node_evaluator["Canonical evaluator<br/>[canonical_eval.py]"]
  node_run_manager["Kaggle run manager<br/>[kaggle_run.py]"]
  node_kaggle_ops["Kaggle operations<br/>[kaggle_ops.py]"]
end

node_user(("CLI user"))
node_kaggle["Kaggle service"]
node_file["Input/output files"]

node_user -->|"invokes"| node_cli
node_cli -->|"dispatches"| node_codec_core
node_codec_core -->|"uses format"| node_archive_format
node_codec_core -->|"uses coder"| node_range_coder
node_codec_core -->|"uses predictor"| node_entropy
node_codec_core -->|"mixes experts"| node_moe
node_codec_core -->|"uses prior"| node_regime
node_codec_core -->|"uses dictionary"| node_lz_topn
node_codec_core -->|"uses token LZ"| node_token_lz
node_codec_core -->|"uses span LZ"| node_span_lz
node_entropy -->|"updates state"| node_wave_state
node_token_lz -->|"uses table"| node_lz_topn
node_codec_core -.->|"reads and writes"| node_file
node_user -.->|"runs evaluation"| node_evaluator
node_run_manager -->|"uses operations"| node_kaggle_ops
node_run_manager -.->|"uploads and starts"| node_kaggle

click node_cli "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/see.c"
click node_codec_core "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/see_codec.c"
click node_archive_format "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/see_codec.h"
click node_range_coder "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/range_coder.c"
click node_entropy "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/silicon_entropy.c"
click node_wave_state "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/silicon_v0.c"
click node_moe "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/moe_engine.c"
click node_regime "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/regime_prior.c"
click node_lz_topn "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/lz_topn.c"
click node_token_lz "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/tok_lz.c"
click node_span_lz "https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/span_lz.c"
click node_evaluator "https://github.com/wildpino/siliconllm/blob/SirProjects/scripts/canonical_eval.py"
click node_run_manager "https://github.com/wildpino/siliconllm/blob/SirProjects/scripts/kaggle_run.py"
click node_kaggle_ops "https://github.com/wildpino/siliconllm/blob/SirProjects/scripts/kaggle_ops.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_codec_core,node_archive_format,node_range_coder,node_user toneBlue
class node_entropy,node_wave_state,node_moe,node_regime,node_lz_topn,node_token_lz,node_span_lz toneAmber
class node_evaluator,node_run_manager,node_kaggle_ops toneMint
class node_kaggle,node_file toneIndigo
```

## Components

### SEE3 codec

- [SEE command](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/see.c): `archive/compressor/see.c`
- [Codec core](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/see_codec.c): `archive/compressor/src/see_codec.c`
- [Archive format](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/see_codec.h): `archive/compressor/src/see_codec.h`
- [Range coder](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/range_coder.c): `archive/compressor/src/range_coder.c`

### Prediction engines

- [SEE predictor](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/silicon_entropy.c): `archive/compressor/src/silicon_entropy.c`
- [V0 wave state](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/silicon_v0.c): `archive/compressor/src/silicon_v0.c`
- [Expert mixer](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/moe_engine.c): `archive/compressor/src/moe_engine.c`
- [Regime prior](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/regime_prior.c): `archive/compressor/src/regime_prior.c`
- [Top-N LZ](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/lz_topn.c): `archive/compressor/src/lz_topn.c`
- [Token LZ](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/tok_lz.c): `archive/compressor/src/tok_lz.c`
- [Span LZ](https://github.com/wildpino/siliconllm/blob/SirProjects/archive/compressor/src/span_lz.c): `archive/compressor/src/span_lz.c`

### Research operations

- [Canonical evaluator](https://github.com/wildpino/siliconllm/blob/SirProjects/scripts/canonical_eval.py): `scripts/canonical_eval.py`
- [Kaggle run manager](https://github.com/wildpino/siliconllm/blob/SirProjects/scripts/kaggle_run.py): `scripts/kaggle_run.py`
- [Kaggle operations](https://github.com/wildpino/siliconllm/blob/SirProjects/scripts/kaggle_ops.py): `scripts/kaggle_ops.py`

### Other components

- **CLI user**
- **Kaggle service**
- **Input/output files**

## Connections

- CLI user → SEE command: invokes (evidence: `archive/compressor/see.c`)
- SEE command → Codec core: dispatches (evidence: `archive/compressor/see.c`)
- Codec core → Archive format: uses format (evidence: `archive/compressor/src/see_codec.c`)
- Codec core → Range coder: uses coder (evidence: `archive/compressor/src/see_codec.c`)
- Codec core → SEE predictor: uses predictor (evidence: `archive/compressor/src/see_codec.c`)
- Codec core → Expert mixer: mixes experts (evidence: `archive/compressor/src/see_codec.c`)
- Codec core → Regime prior: uses prior (evidence: `archive/compressor/src/see_codec.c`)
- Codec core → Top-N LZ: uses dictionary (evidence: `archive/compressor/src/see_codec.c`)
- Codec core → Token LZ: uses token LZ (evidence: `archive/compressor/src/see_codec.c`)
- Codec core → Span LZ: uses span LZ (evidence: `archive/compressor/src/see_codec.c`)
- SEE predictor → V0 wave state: updates state (evidence: `archive/compressor/src/silicon_entropy.c`)
- Token LZ → Top-N LZ: uses table (evidence: `archive/compressor/src/tok_lz.c`)
- Codec core → Input/output files: reads and writes
- CLI user → Canonical evaluator: runs evaluation
- Kaggle run manager → Kaggle operations: uses operations (evidence: `scripts/kaggle_run.py`)
- Kaggle run manager → Kaggle service: uploads and starts (evidence: `scripts/kaggle_run.py`)
