lyffseba commited on
Commit
bbcc069
·
verified ·
1 Parent(s): a38d81a

xai-studies: monorepo mirror + catalog (sync)

Browse files
Files changed (10) hide show
  1. CHECKLIST.md +6 -34
  2. CITATION.cff +3 -6
  3. GITHUB_README.md +41 -79
  4. NOTICE +14 -18
  5. OFFLINE.md +16 -26
  6. README.md +33 -110
  7. START_HERE.md +33 -36
  8. dissertation/README.md +11 -18
  9. index.html +32 -39
  10. studies/README.md +6 -13
CHECKLIST.md CHANGED
@@ -1,36 +1,8 @@
1
- # Ready-to-study checklist
2
 
3
- Use once after clone / pull.
 
 
 
4
 
5
- ## Content
6
-
7
- - [ ] `START_HERE.md` · `README.md` · `index.html` · `LICENSE`
8
- - [ ] Inkling: `book/00-map.md` · `derived/SPEC.md` · `reference/hub/config.json` · `modular_inkling.py`
9
- - [ ] Kimi K3: `book/00-map.md` · `derived/SPEC.md` · `reference/facts.json` · blog txt
10
- - [ ] Compare · glossary · `dissertation/main.ipynb`
11
-
12
- ## Offline tooling
13
-
14
- ```bash
15
- cd ~/lyff/xai && make test # or: python3 studies/run.py test
16
- ```
17
-
18
- Expect: `validate OK` ×2 · `package check OK` · `✓ test passed`.
19
-
20
- ## Airplane
21
-
22
- - [ ] Wi‑Fi off · `open index.html` works
23
- - [ ] Inkling SPEC + modular sources open
24
- - [ ] Kimi SPEC + facts + blog open
25
- - [ ] Dissertation notebook opens
26
-
27
- No pip / HF login / API keys needed to **read**.
28
-
29
- ## Public mirrors (optional)
30
-
31
- - [ ] https://lyffseba-xai.static.hf.space
32
- - [ ] https://huggingface.co/datasets/lyffseba/xai-studies
33
-
34
- ## Out of scope (on purpose)
35
-
36
- Product apps (`bet`, `iberian-rugs`, …) · optional Mojo MSc port · old deleted study clones.
 
1
+ # checklist
2
 
3
+ - [ ] START_HERE · index.html · model packages · dissertation
4
+ - [ ] `make test` → ✓ test passed
5
+ - [ ] airplane: Inkling SPEC + modular · Kimi facts + blog
6
+ - [ ] optional: HF portal · dataset
7
 
8
+ Out of scope: product apps.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CITATION.cff CHANGED
@@ -1,18 +1,15 @@
1
  cff-version: 1.2.0
2
- message: "If you use these study notes, please cite as below."
3
- title: "xai — offline research monorepo (Inkling, Kimi K3, MSc)"
4
  authors:
5
  - family-names: "lyffseba"
6
  given-names: "Sebæ"
7
  version: "2026-07-17"
8
  date-released: "2026-07-17"
9
  url: "https://github.com/lyffseba/xai"
10
- repository-code: "https://github.com/lyffseba/xai"
11
  license: Apache-2.0
12
  keywords:
 
13
  - mixture-of-experts
14
- - transformers
15
  - inkling
16
  - kimi-k3
17
- - research-notes
18
- - offline
 
1
  cff-version: 1.2.0
2
+ message: "If you use these notes, cite as below."
3
+ title: "xai (explainable AI) — offline research notes (Inkling, Kimi K3, MSc)"
4
  authors:
5
  - family-names: "lyffseba"
6
  given-names: "Sebæ"
7
  version: "2026-07-17"
8
  date-released: "2026-07-17"
9
  url: "https://github.com/lyffseba/xai"
 
10
  license: Apache-2.0
11
  keywords:
12
+ - explainable-ai
13
  - mixture-of-experts
 
14
  - inkling
15
  - kimi-k3
 
 
GITHUB_README.md CHANGED
@@ -1,107 +1,69 @@
1
  # xai
2
 
3
- Personal research monorepo for frontier open-model studies and an MSc dissertation.
4
- **Offline-complete.** Python stdlib tooling. No pip. No network required to read or validate.
 
 
5
 
6
  | | |
7
  |---|---|
8
- | **Start** | [START_HERE.md](START_HERE.md) · local [index.html](index.html) |
9
- | **GitHub** | [lyffseba/xai](https://github.com/lyffseba/xai) *(canonical, private)* |
10
- | **HF portal** | [spaces/lyffseba/xai](https://huggingface.co/spaces/lyffseba/xai) · [static host](https://lyffseba-xai.static.hf.space) |
11
- | **HF dataset** | [datasets/lyffseba/xai-studies](https://huggingface.co/datasets/lyffseba/xai-studies) |
12
-
13
- ---
14
 
15
- ## Models
16
 
17
- | ID | Package | Status | Total | Active | Context | Experts | Notes |
18
- |---|---|---|---|---|---|---|---|
19
- | **inkling** | [studies/models/inkling](studies/models/inkling/) | weights public | 975B | 41B | 1M | 6/256+2 shared | relative PE · SWA/global · image+audio · [Hub](https://huggingface.co/thinkingmachines/Inkling) |
20
- | **kimi-k3** | [studies/models/kimi-k3](studies/models/kimi-k3/) | API live · weights pending | 2.8T | undisclosed | 1M | 16/896 | KDA + AttnRes · Stable LatentMoE · [blog](https://www.kimi.com/blog/kimi-k3) |
21
 
22
- Cross-read: [Inkling vs Kimi K3](studies/shared/comparisons/inkling-vs-kimi-k3.md) · live table: [studies/derived/DASHBOARD.md](studies/derived/DASHBOARD.md)
23
 
24
- ---
25
 
26
- ## Dissertation
27
-
28
- [dissertation/](dissertation/) — image-based music genre classification from vinyl covers (CNN + Concept Whitening).
29
- Notebook: [main.ipynb](dissertation/main.ipynb) · public archive: [msc-dissertation](https://github.com/lyffseba/msc-dissertation)
30
-
31
- ---
32
-
33
- ## Repository layout
34
 
35
  ```
36
- xai/
37
- ├── START_HERE.md # offline study launchpad
38
- ├── index.html # local face (file://)
39
- ├── studies/
40
- │ ├── models/inkling/ # book · code-study · derived · reference (Hub + transformers)
41
- │ ├── models/kimi-k3/ # book · code-study · derived · facts.json · blog/docs
42
- │ ├── shared/ # glossary · comparison
43
- │ ├── derived/ # monorepo dashboard + STATUS.json
44
- │ └── run.py # offline validate (stdlib)
45
- ├── dissertation/ # MSc notebook
46
- └── hf/ # HF Space + Dataset package + publish scripts
47
  ```
48
 
49
- Each model package: `book/` narrative · `code-study/` implementation · `reference/` → primary sources · `derived/` → generated (do not hand-edit).
50
-
51
- ---
52
 
53
- ## Commands
54
 
55
- ```bash
56
- make test # offline validate both models
57
- python3 studies/run.py test # same, no make
58
- make check # re-derive from local sources
59
- make refresh MODEL=inkling # online only — re-fetch Hub/web
60
- make refresh MODEL=kimi-k3
61
  ```
62
 
63
- | Mode | What |
64
- |---|---|
65
- | **Offline** | `make test` / `make check` · read all markdown + vendored `reference/` |
66
- | **Online** | `make refresh MODEL=…` only |
67
-
68
- Details: [OFFLINE.md](OFFLINE.md) · curriculum: [studies/STUDY.md](studies/STUDY.md) · glossary: [studies/shared/GLOSSARY.md](studies/shared/GLOSSARY.md)
69
-
70
- ---
71
-
72
- ## Principles
73
-
74
- 1. **Source-driven** — numbers from Hub config, official blogs/docs, or papers; never invented.
75
- 2. **Derived is generated** — `make derive` / `make check` rebuilds SPECs; hand-edit books only.
76
- 3. **Offline first** — airplane-safe study tree; network is optional refresh.
77
- 4. **Honest gaps** — K3 active params, layer tables, etc. tracked in `open_questions.md`.
78
-
79
- ---
80
-
81
- ## Sync mirrors (GitHub + Hugging Face)
82
 
83
- Canonical tree is this repo. One command updates **all** public/private mirrors:
84
 
85
- ```bash
86
- make sync
87
- # or: bash hf/sync.sh
 
 
88
  ```
89
 
90
- | Target | URL |
91
- |---|---|
92
- | GitHub | https://github.com/lyffseba/xai |
93
- | HF Space | https://huggingface.co/spaces/lyffseba/xai |
94
- | Static | https://lyffseba-xai.static.hf.space |
95
- | Dataset | https://huggingface.co/datasets/lyffseba/xai-studies |
96
-
97
- See [hf/README.md](hf/README.md) · [PUSH.md](PUSH.md)
98
 
99
- ---
 
100
 
101
- ## License
102
 
103
- Study notes and tooling: [Apache-2.0](LICENSE).
104
- Vendored upstream snapshots keep their original licenses — see [NOTICE](NOTICE).
105
 
106
  ---
107
 
 
1
  # xai
2
 
3
+ **xai** = **explainable AI**.
4
+
5
+ Personal offline monorepo: study notes on frontier open models + an MSc on interpretable vision.
6
+ Source-driven. Stdlib validation. No pip. No network required to read or test.
7
 
8
  | | |
9
  |---|---|
10
+ | start | [START_HERE.md](START_HERE.md) · [index.html](index.html) |
11
+ | GitHub | [lyffseba/xai](https://github.com/lyffseba/xai) (canonical) |
12
+ | portal | [spaces/lyffseba/xai](https://huggingface.co/spaces/lyffseba/xai) |
13
+ | dataset | [datasets/lyffseba/xai-studies](https://huggingface.co/datasets/lyffseba/xai-studies) |
 
 
14
 
15
+ ## what is here
16
 
17
+ | id | package | status | total | active | ctx | experts |
18
+ |---|---|---|---|---|---|---|
19
+ | inkling | [studies/models/inkling](studies/models/inkling/) | weights public | 975B | 41B | 1M | 6/256+2 |
20
+ | kimi-k3 | [studies/models/kimi-k3](studies/models/kimi-k3/) | API live · weights pending | 2.8T | undisclosed | 1M | 16/896 |
21
 
22
+ [compare](studies/shared/comparisons/inkling-vs-kimi-k3.md) · [dashboard](studies/derived/DASHBOARD.md) · [glossary](studies/shared/GLOSSARY.md)
23
 
24
+ **MSc** — [dissertation/](dissertation/) vinyl-cover genre (CNN + Concept Whitening) · [main.ipynb](dissertation/main.ipynb)
25
 
26
+ ## quick start
 
 
 
 
 
 
 
27
 
28
  ```
29
+ make test
30
+ # or
31
+ python3 studies/run.py test
 
 
 
 
 
 
 
 
32
  ```
33
 
34
+ Expect ` test passed`. Then open [START_HERE.md](START_HERE.md).
 
 
35
 
36
+ ## layout
37
 
38
+ ```
39
+ studies/models/<id>/{book,code-study,reference,derived,scripts}
40
+ studies/shared/ glossary · comparison
41
+ studies/run.py offline validate (stdlib)
42
+ dissertation/ MSc notebook
43
+ hf/ Space + Dataset package
44
  ```
45
 
46
+ - `reference/` primary sources (Hub, blogs, papers)
47
+ - `derived/` — generated SPECs (do not hand-edit)
48
+ - `book/` / `code-study/` narrative + walkthrough
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
+ ## commands
51
 
52
+ ```
53
+ make test # offline validate
54
+ make check # re-derive from local sources
55
+ make refresh MODEL=inkling # online re-fetch
56
+ make sync # push GitHub + HF
57
  ```
58
 
59
+ ## what this is not
 
 
 
 
 
 
 
60
 
61
+ Not a training framework, not a weight host, not affiliated with Thinking Machines or Moonshot.
62
+ Secondary blogs are never sole authority for architecture numbers.
63
 
64
+ ## license
65
 
66
+ Study notes: [Apache-2.0](LICENSE). Upstream snapshots keep original licenses — [NOTICE](NOTICE).
 
67
 
68
  ---
69
 
NOTICE CHANGED
@@ -1,24 +1,20 @@
1
- xai — personal research notes (offline monorepo)
2
- ================================================
 
 
3
 
4
  Copyright 2026 Sebæ / lyffseba
5
- Study notes & tooling: Apache-2.0 (see LICENSE)
6
 
7
- Layout
8
- studies/ model handbooks + vendored primary sources
9
- dissertation/ MSc notebook
10
- hf/ Hugging Face Space + Dataset package
11
 
12
- Commands
13
- make test / python3 studies/run.py test offline, stdlib only
14
- make refresh MODEL=<id> — optional, needs network
15
 
16
- Upstream
17
- Vendored Hub configs, transformers sources, blog/docs extracts, and papers
18
- retain their original licenses and copyrights. Do not relicense upstream
19
- material. Prefer official URLs when online.
20
 
21
- Mirrors
22
- GitHub: https://github.com/lyffseba/xai
23
- Space: https://huggingface.co/spaces/lyffseba/xai
24
- Dataset: https://huggingface.co/datasets/lyffseba/xai-studies
 
1
+ xai — personal research notes
2
+ =============================
3
+
4
+ xai = explainable AI
5
 
6
  Copyright 2026 Sebæ / lyffseba
7
+ Study notes & tooling: Apache-2.0 (LICENSE)
8
 
9
+ studies/ model handbooks + vendored primary sources
10
+ dissertation/ MSc notebook
11
+ hf/ static Space + dataset package
 
12
 
13
+ make test · python3 studies/run.py test — offline, stdlib
14
+ make sync GitHub + HF
 
15
 
16
+ Vendored Hub configs, transformers, blogs/docs, papers keep original licenses.
 
 
 
17
 
18
+ GitHub: https://github.com/lyffseba/xai
19
+ Space: https://huggingface.co/spaces/lyffseba/xai
20
+ Dataset: https://huggingface.co/datasets/lyffseba/xai-studies
 
OFFLINE.md CHANGED
@@ -1,43 +1,33 @@
1
  # Offline
2
 
3
- Airplane mode. No network. No pip.
4
 
5
- ## Read
6
 
7
- 1. Open `index.html` in any browser (`file://…/xai/index.html`)
8
- 2. Or open markdown under `studies/` and `dissertation/`
9
 
10
- ## Verify tooling
11
 
12
- ```bash
13
- cd ~/lyff/xai
14
  make test
15
- # or without make:
16
  python3 studies/run.py test
17
  ```
18
 
19
- Both re-validate local packages and rebuild the dashboard from vendored sources.
20
- They must not touch the network.
21
-
22
- ## What is local
23
 
24
- | Path | Contents |
25
  |---|---|
26
- | `studies/models/inkling/reference/` | Hub config, card, chat template, full transformers sources |
27
- | `studies/models/kimi-k3/reference/` | facts.json, blog text, API docs, K2.6 config, KDA abstract |
28
- | `studies/*/derived/` | generated specs (rebuild offline with `make check`) |
29
- | `dissertation/main.ipynb` | MSc notebook |
30
 
31
- ## Online only
32
 
33
- ```bash
34
- make refresh MODEL=inkling # re-pull Hub / web
35
  make refresh MODEL=kimi-k3
 
36
  ```
37
 
38
- Skip these on a plane.
39
-
40
- ## Requirements
41
-
42
- - Python ≥ 3.10 (stdlib: `json`, `pathlib`, `re`, `subprocess`)
43
- - optional: `make`
 
1
  # Offline
2
 
3
+ Airplane. No network. No pip.
4
 
5
+ ## read
6
 
7
+ `index.html` or markdown under `studies/` · `dissertation/`.
 
8
 
9
+ ## verify
10
 
11
+ ```
 
12
  make test
 
13
  python3 studies/run.py test
14
  ```
15
 
16
+ ## local
 
 
 
17
 
18
+ | path | contents |
19
  |---|---|
20
+ | `studies/models/inkling/reference/` | Hub config + transformers |
21
+ | `studies/models/kimi-k3/reference/` | facts.json + blog/docs |
22
+ | `studies/*/derived/` | generated SPECs |
23
+ | `dissertation/main.ipynb` | MSc (TF/Keras to run) |
24
 
25
+ ## online
26
 
27
+ ```
28
+ make refresh MODEL=inkling
29
  make refresh MODEL=kimi-k3
30
+ make sync
31
  ```
32
 
33
+ Python 3.10 stdlib. Optional: `make`.
 
 
 
 
 
README.md CHANGED
@@ -5,14 +5,11 @@ language:
5
  - en
6
  tags:
7
  - research
8
- - study-notes
9
  - moe
10
  - inkling
11
  - kimi-k3
12
- - transformers
13
  - offline
14
- - architecture
15
- - mixture-of-experts
16
  task_categories:
17
  - other
18
  size_categories:
@@ -20,136 +17,62 @@ size_categories:
20
  configs:
21
  - config_name: catalog
22
  data_files: catalog/models.csv
23
- dataset_info:
24
- features:
25
- - name: id
26
- dtype: string
27
- - name: display_name
28
- dtype: string
29
- - name: org
30
- dtype: string
31
- - name: status
32
- dtype: string
33
- - name: total_params
34
- dtype: string
35
- - name: active_params
36
- dtype: string
37
- - name: context_tokens
38
- dtype: int64
39
- - name: experts
40
- dtype: string
41
- - name: hub
42
- dtype: string
43
- - name: api_model_id
44
- dtype: string
45
- - name: path
46
- dtype: string
47
- - name: notes
48
- dtype: string
49
- splits:
50
- - name: catalog
51
- num_examples: 2
52
  ---
53
 
54
- # Dataset Card: xai-studies
55
 
56
- **Offline study packages** mirrored from the private research monorepo [lyffseba/xai](https://github.com/lyffseba/xai): Inkling, Kimi K3, and an MSc dissertation notebook.
57
 
58
- | Resource | URL |
59
  |---|---|
60
- | **Canonical (private)** | [github.com/lyffseba/xai](https://github.com/lyffseba/xai) |
61
- | **Browse portal** | [spaces/lyffseba/xai](https://huggingface.co/spaces/lyffseba/xai) |
62
- | **This dataset** | full `studies/` + `dissertation/` + offline tooling |
63
 
64
- ## Dataset Description
65
 
66
- ### Summary
67
-
68
- This is a **documentation and source-snapshot dataset**, not a training corpus. It packages:
69
-
70
- - Narrative handbooks (`book/`)
71
- - Implementation walkthroughs (`code-study/`)
72
- - Generated specs (`derived/`)
73
- - Vendored primary sources (`reference/`) — Hub configs, transformers modules, official docs/blog extracts
74
- - Offline validation scripts (`studies/run.py`, package validators)
75
-
76
- ### Supported tasks
77
-
78
- - Architecture study / literature-style notes
79
- - Offline reproducibility of claims against vendored sources
80
- - Curriculum for comparing MoE / long-context design choices
81
-
82
- ### Languages
83
-
84
- English (study notes).
85
 
86
- ## Dataset Structure
87
 
88
- ### Catalog split (viewer)
89
 
90
- [`catalog/models.csv`](catalog/models.csv) — one row per model package (also [`catalog/registry.json`](catalog/registry.json)).
91
 
92
- | id | display_name | status | total_params | active_params | context_tokens | experts |
93
  |---|---|---|---|---|---|---|
94
  | inkling | Inkling | weights_public | 975B | 41B | 1048576 | 6/256+2 shared |
95
- | kimi-k3 | Kimi K3 | api_live_weights_pending | 2.8T | *(empty)* | 1048576 | 16/896 |
96
 
97
- ### Full tree
98
 
99
  ```
100
- catalog/ machine-readable index
101
- studies/
102
- models/inkling/ book, code-study, derived, Hub + transformers sources
103
- models/kimi-k3/ book, code-study, derived, facts.json, blog/docs, papers
104
- shared/ glossary, comparison
105
- derived/ monorepo dashboard + STATUS.json
106
- run.py offline validate (stdlib only)
107
- dissertation/ MSc notebook + README
108
- START_HERE.md launchpad
109
  ```
110
 
111
- ## How to use
112
-
113
- ```bash
114
- # after downloading this dataset
115
- python3 studies/run.py test
116
- # stdlib only — no pip, no network
117
- ```
118
-
119
- Then read `START_HERE.md` or open the [Space portal](https://huggingface.co/spaces/lyffseba/xai).
120
-
121
- ### Facts (do not invent beyond sources)
122
-
123
- - **Inkling:** ~975B / 41B active · 6/256 + 2 shared · relative PE · hybrid SWA/global · image+audio · 1M ctx
124
- - **Kimi K3:** 2.8T · Stable LatentMoE 16/896 · KDA + AttnRes · vision/video · 1M ctx · active params undisclosed · weights ETA 2026-07-27
125
-
126
- ## Source data
127
-
128
- | Package | Primary sources |
129
- |---|---|
130
- | Inkling | [thinkingmachines/Inkling](https://huggingface.co/thinkingmachines/Inkling) Hub config + transformers `models/inkling` |
131
- | Kimi K3 | [kimi.com/blog/kimi-k3](https://www.kimi.com/blog/kimi-k3), platform.kimi.ai docs, [arXiv:2510.26692](https://arxiv.org/abs/2510.26692), K2.6 Hub config |
132
-
133
- ## Limitations
134
 
135
- - Not a training or eval set of model outputs.
136
- - Kimi K3 structural detail is incomplete until weights / tech report.
137
- - Vendored upstream text may be incomplete extracts; prefer official URLs when online.
138
- - Study notes are personal research — not affiliated with Thinking Machines or Moonshot.
139
 
140
- ## License
141
 
142
- - **Study notes & tooling in this package:** Apache-2.0
143
- - **Vendored upstream snapshots:** retain original licenses (see `NOTICE` and upstream headers)
144
 
145
- ## Citation
146
 
147
  ```bibtex
148
  @misc{lyffseba_xai_studies,
149
- title = {xai-studies: Offline research notes on Inkling and Kimi K3},
150
- author = {lyffseba},
151
- year = {2026},
152
- howpublished = {\url{https://huggingface.co/datasets/lyffseba/xai-studies}},
153
- note = {Companion Space: https://huggingface.co/spaces/lyffseba/xai}
154
  }
155
  ```
 
5
  - en
6
  tags:
7
  - research
8
+ - explainable-ai
9
  - moe
10
  - inkling
11
  - kimi-k3
 
12
  - offline
 
 
13
  task_categories:
14
  - other
15
  size_categories:
 
17
  configs:
18
  - config_name: catalog
19
  data_files: catalog/models.csv
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  ---
21
 
22
+ # xai-studies
23
 
24
+ **xai** = **explainable AI**. Offline mirror of [lyffseba/xai](https://github.com/lyffseba/xai).
25
 
26
+ | | |
27
  |---|---|
28
+ | GitHub | [lyffseba/xai](https://github.com/lyffseba/xai) |
29
+ | portal | [spaces/lyffseba/xai](https://huggingface.co/spaces/lyffseba/xai) |
 
30
 
31
+ ## use
32
 
33
+ ```
34
+ python3 studies/run.py test
35
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
+ No pip. No network.
38
 
39
+ ## catalog
40
 
41
+ [`catalog/models.csv`](catalog/models.csv)
42
 
43
+ | id | name | status | total | active | ctx | experts |
44
  |---|---|---|---|---|---|---|
45
  | inkling | Inkling | weights_public | 975B | 41B | 1048576 | 6/256+2 shared |
46
+ | kimi-k3 | Kimi K3 | api_live_weights_pending | 2.8T | | 1048576 | 16/896 |
47
 
48
+ ## contents
49
 
50
  ```
51
+ catalog/
52
+ studies/models/inkling|kimi-k3/ book · code-study · reference · derived
53
+ studies/shared/
54
+ studies/run.py
55
+ dissertation/
56
+ START_HERE.md
 
 
 
57
  ```
58
 
59
+ ## facts
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
+ - Inkling: ~975B / 41B · 6/256+2 · relative PE · SWA/global · image+audio · 1M
62
+ - Kimi K3: 2.8T · 16/896 · KDA+AttnRes · 1M · active undisclosed · weights ETA 2026-07-27
 
 
63
 
64
+ ## limitations
65
 
66
+ Not a training corpus. Not affiliated with Thinking Machines or Moonshot.
67
+ K3 structure incomplete until weights/tech report. Upstream extracts keep original licenses.
68
 
69
+ ## citation
70
 
71
  ```bibtex
72
  @misc{lyffseba_xai_studies,
73
+ title = {xai-studies: offline notes on Inkling and Kimi K3},
74
+ author = {lyffseba},
75
+ year = {2026},
76
+ url = {https://huggingface.co/datasets/lyffseba/xai-studies}
 
77
  }
78
  ```
START_HERE.md CHANGED
@@ -1,53 +1,50 @@
1
  # START HERE
2
 
3
- Airplane mode OK. No network. No pip. Python ≥ 3.10 stdlib only.
4
 
5
- ## 60-second orientation
6
 
7
- | | |
8
- |---|---|
9
- | **Local face** | open [`index.html`](index.html) |
10
- | **This path** | markdown under `studies/` + `dissertation/` |
11
- | **Public portal** | [HF Space](https://huggingface.co/spaces/lyffseba/xai) · [static](https://lyffseba-xai.static.hf.space) |
12
- | **Full mirror** | [HF Dataset](https://huggingface.co/datasets/lyffseba/xai-studies) |
13
- | **Verify once** | `make test` or `python3 studies/run.py test` → expect `✓ test passed` |
14
-
15
- ---
16
 
17
- ## What to study
18
 
19
- | Track | Path | Why first |
20
- |---|---|---|
21
- | **Inkling** | [`studies/models/inkling/`](studies/models/inkling/) | Public weights + vendored transformers sources |
22
- | **Kimi K3** | [`studies/models/kimi-k3/`](studies/models/kimi-k3/) | Live API + KDA theory; weights pending (~July 27) |
23
- | **Compare** | [`studies/shared/comparisons/inkling-vs-kimi-k3.md`](studies/shared/comparisons/inkling-vs-kimi-k3.md) | Long-ctx / MoE / product bets |
24
- | **MSc** | [`dissertation/main.ipynb`](dissertation/main.ipynb) | Vinyl-cover genre CNN + Concept Whitening |
25
 
26
- ---
27
 
28
- ## Suggested order (~1–2 days)
29
 
30
- 1. **Map** [STUDY.md](studies/STUDY.md) · [DASHBOARD.md](studies/derived/DASHBOARD.md) · [GLOSSARY.md](studies/shared/GLOSSARY.md)
31
- 2. **Inkling deep** — book `00` → `derived/SPEC.md` → arch `01` → code-study with `reference/transformers-inkling/modular_inkling.py`
32
- 3. **Kimi K3 deep** — book `00` → `derived/SPEC.md` + `lineage.md` KDA notes + API protocol → limitations / open questions
33
- 4. **Compare** re-read comparison; answer the three questions at the bottom of [STUDY.md](studies/STUDY.md)
34
- 5. **Dissertation** [dissertation/README.md](dissertation/README.md) then run the notebook when you have data
 
35
 
36
- ---
37
 
38
- ## Facts (do not invent beyond these)
 
 
 
 
39
 
40
- - **Inkling:** ~975B / 41B active · 6/256 + 2 shared · relative PE (not RoPE) · hybrid SWA/global · image+audio · 1M ctx
41
- - **Kimi K3:** 2.8T · Stable LatentMoE 16/896 · KDA + AttnRes · vision/video · 1M ctx · active params **undisclosed** · weights ETA **2026-07-27**
42
 
43
- ---
 
44
 
45
- ## Offline vs online
46
 
47
- | Offline | Online only |
48
  |---|---|
49
- | `make test` / `python3 studies/run.py test` | `make refresh MODEL=inkling` |
50
- | `make check` (re-derive from local sources) | `make refresh MODEL=kimi-k3` |
51
- | Read all markdown + vendored `reference/` | Hub / blog re-fetch |
52
 
53
- [OFFLINE.md](OFFLINE.md) · keep GH+HF synced → `make sync` ([PUSH.md](PUSH.md)) · checklist → [CHECKLIST.md](CHECKLIST.md)
 
1
  # START HERE
2
 
3
+ **xai** = **explainable AI**. Offline. No pip. Python ≥ 3.10 stdlib.
4
 
5
+ ## open
6
 
7
+ 1. [index.html](index.html)
8
+ 2. markdown under `studies/` · `dissertation/`
9
+ 3. public portal: [spaces/lyffseba/xai](https://huggingface.co/spaces/lyffseba/xai)
 
 
 
 
 
 
10
 
11
+ ## prove it works
12
 
13
+ ```
14
+ make test
15
+ # or
16
+ python3 studies/run.py test
17
+ ```
 
18
 
19
+ → `✓ test passed` (no network).
20
 
21
+ ## study
22
 
23
+ | | path | why |
24
+ |---|---|---|
25
+ | Inkling | [studies/models/inkling/](studies/models/inkling/) | public weights + vendored transformers |
26
+ | Kimi K3 | [studies/models/kimi-k3/](studies/models/kimi-k3/) | live API + KDA; weights ~2026-07-27 |
27
+ | compare | [inkling-vs-kimi-k3](studies/shared/comparisons/inkling-vs-kimi-k3.md) | long-ctx / MoE bets |
28
+ | MSc | [dissertation/main.ipynb](dissertation/main.ipynb) | Concept Whitening |
29
 
30
+ ## order (~1–2 days)
31
 
32
+ 1. map — [STUDY.md](studies/STUDY.md) · [DASHBOARD](studies/derived/DASHBOARD.md) · [GLOSSARY](studies/shared/GLOSSARY.md)
33
+ 2. Inkling — book `00` → SPEC → arch → `modular_inkling.py`
34
+ 3. Kimi K3 — book `00` → SPEC → lineage → KDA → API → limits
35
+ 4. compare again
36
+ 5. dissertation when data is ready
37
 
38
+ ## facts (do not invent)
 
39
 
40
+ - **Inkling:** ~975B / 41B · 6/256+2 · relative PE · SWA/global · image+audio · 1M
41
+ - **Kimi K3:** 2.8T · 16/896 · KDA+AttnRes · vision/video · 1M · active undisclosed · weights ETA 2026-07-27
42
 
43
+ ## offline vs online
44
 
45
+ | offline | online |
46
  |---|---|
47
+ | `make test` / `make check` | `make refresh MODEL=` |
48
+ | read `reference/` | Hub / blog re-fetch |
 
49
 
50
+ [OFFLINE.md](OFFLINE.md) · mirrors: `make sync`
dissertation/README.md CHANGED
@@ -1,24 +1,17 @@
1
- # Image-Based Music Genre Classification Using CNNs
2
 
3
- **Study home (this monorepo):** [lyffseba/xai](https://github.com/lyffseba/xai) `dissertation/`
4
- **Public citable archive:** [msc-dissertation](https://github.com/lyffseba/msc-dissertation) (notes + notebook live in xai)
5
 
6
- MSc work: classify music genres from **vinyl album covers** with CNNs. Two models — batch-norm baseline and **Concept Whitening** for interpretability. CW improves feature transparency without a large accuracy loss.
7
 
8
- ## Offline study
 
 
9
 
10
- Part of the research monorepo with Inkling / Kimi K3. Launchpad: [../START_HERE.md](../START_HERE.md). No network required to **read** the notebook.
11
 
12
- ## Run
 
 
13
 
14
- 1. Open [main.ipynb](main.ipynb)
15
- 2. Point dataset paths at your local image data
16
- 3. Run all cells (needs TensorFlow / Keras when executing — not offline-stdlib like `studies/`)
17
-
18
- ## Related (not merged)
19
-
20
- | Tree | Role |
21
- |---|---|
22
- | This folder | Canonical notebook + study notes for the MSc |
23
- | `~/lyff/mojo-music-genre-classifier/` | Optional Mojo/MAX port of the same task (product/experiment, separate) |
24
- | GitHub `msc-dissertation` | Public archive; point homepage at xai |
 
1
+ # MSc genre from vinyl covers
2
 
3
+ Part of [lyffseba/xai](https://github.com/lyffseba/xai) (**xai** = explainable AI).
 
4
 
5
+ CNNs on album art: baseline + Concept Whitening.
6
 
7
+ - [main.ipynb](main.ipynb)
8
+ - public: [msc-dissertation](https://github.com/lyffseba/msc-dissertation)
9
+ - start: [../START_HERE.md](../START_HERE.md)
10
 
11
+ ## run
12
 
13
+ 1. open notebook
14
+ 2. set local image paths
15
+ 3. run (needs TensorFlow/Keras)
16
 
17
+ Optional Mojo port is outside this repo.
 
 
 
 
 
 
 
 
 
 
index.html CHANGED
@@ -3,47 +3,41 @@
3
  <head>
4
  <meta charset="utf-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <meta name="description" content="xai — offline research monorepo: Inkling, Kimi K3, MSc dissertation (lyffseba)">
7
  <title>xai</title>
8
  <style>
9
- :root { --fg:#111; --muted:#444; --line:#bbb; --link:#00c; }
10
- body { font-family: Times, "Times New Roman", serif; margin: 0; color: var(--fg); line-height: 1.4; }
11
- .wrap { max-width: 44em; margin: 0 auto; padding: 1.4em 1.2em 2.5em; }
12
- h1 { font-size: 1.35em; font-weight: normal; margin: 0 0 0.35em; }
13
- h2 { font-size: 1.05em; font-weight: normal; margin: 1.25em 0 0.4em; border-bottom: 1px solid var(--line); padding-bottom: 0.12em; }
14
  p { margin: 0.5em 0; }
15
- a { color: var(--link); }
16
- hr { border: none; border-top: 1px solid var(--line); margin: 1.1em 0; }
17
- .meta { color: var(--muted); font-size: 0.95em; }
18
- .nav a { margin-right: 0.75em; white-space: nowrap; }
19
- code { font-size: 0.88em; }
20
- table { border-collapse: collapse; width: 100%; font-size: 0.93em; margin: 0.5em 0; }
21
- th, td { text-align: left; padding: 0.28em 0.5em 0.28em 0; border-bottom: 1px solid #ddd; vertical-align: top; }
22
- th { font-weight: normal; color: var(--muted); }
23
- ul { margin: 0.4em 0 0.7em 1.15em; padding: 0; }
24
- pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82em; background: #f6f6f6; border: 1px solid #e2e2e2; padding: 0.65em 0.75em; overflow-x: auto; }
25
  </style>
26
  </head>
27
  <body>
28
- <div class="wrap">
29
 
30
  <h1>xai</h1>
31
- <p class="meta">offline research monorepo · lyffseba</p>
32
- <p class="nav meta">
33
  <a href="START_HERE.md">START HERE</a>
34
  <a href="studies/derived/DASHBOARD.md">status</a>
35
- <a href="studies/STUDY.md">study path</a>
36
  <a href="OFFLINE.md">offline</a>
37
- <a href="https://huggingface.co/spaces/lyffseba/xai">HF portal</a>
38
- <a href="https://huggingface.co/datasets/lyffseba/xai-studies">HF dataset</a>
39
- </p>
40
 
41
  <hr>
42
 
43
  <table>
44
- <tr><th>ID</th><th>Name</th><th>Status</th><th>Total</th><th>Active</th><th>Ctx</th><th>Experts</th></tr>
45
  <tr>
46
- <td><code>inkling</code></td>
47
  <td><a href="studies/models/inkling/">Inkling</a></td>
48
  <td>weights public</td>
49
  <td>975B</td>
@@ -52,7 +46,7 @@
52
  <td>6/256+2</td>
53
  </tr>
54
  <tr>
55
- <td><code>kimi-k3</code></td>
56
  <td><a href="studies/models/kimi-k3/">Kimi K3</a></td>
57
  <td>API live · weights pending</td>
58
  <td>2.8T</td>
@@ -64,33 +58,32 @@
64
 
65
  <p>
66
  <a href="studies/models/inkling/">Inkling</a> —
67
- Thinking Machines open MoE · relative PE · hybrid SWA/global · image+audio ·
68
  Hub config + transformers under <code>reference/</code>.
69
  </p>
70
  <p>
71
  <a href="studies/models/kimi-k3/">Kimi K3</a> —
72
- Moonshot 2.8T Stable LatentMoE · KDA + AttnRes · vision/video ·
73
- <code>facts.json</code> + blog/docs local · weights ETA 2026-07-27.
74
  </p>
75
  <p>
76
- <a href="studies/shared/comparisons/inkling-vs-kimi-k3.md">Compare</a> ·
77
- <a href="dissertation/">MSc dissertation</a>
78
- (<a href="dissertation/main.ipynb">main.ipynb</a> · vinyl covers · CNN + Concept Whitening)
79
  </p>
80
 
81
- <h2>Verify</h2>
 
82
  <pre>make test
83
- # or
84
  python3 studies/run.py test</pre>
85
- <p class="meta">stdlib only · no pip · no network · expect <code>✓ test passed</code></p>
86
 
87
  <p class="meta">
88
- <a href="studies/shared/GLOSSARY.md">Glossary</a> ·
89
- <a href="CHECKLIST.md">Checklist</a> ·
90
- <a href="https://github.com/lyffseba/xai">GitHub</a> ·
91
  last update: 2026-07-17
92
  </p>
93
 
94
- </div>
95
  </body>
96
  </html>
 
3
  <head>
4
  <meta charset="utf-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
 
6
  <title>xai</title>
7
  <style>
8
+ body { font-family: Times, "Times New Roman", serif; margin: 1.5em; max-width: 42em; line-height: 1.35; }
9
+ h1 { font-size: 1.25em; font-weight: normal; margin: 0 0 0.5em 0; }
 
 
 
10
  p { margin: 0.5em 0; }
11
+ a { color: #00c; }
12
+ hr { border: none; border-top: 1px solid #999; margin: 1.1em 0; }
13
+ .meta { color: #333; font-size: 0.95em; }
14
+ nav a { margin-right: 0.85em; }
15
+ code { font-size: 0.9em; }
16
+ table { border-collapse: collapse; width: 100%; font-size: 0.95em; margin: 0.5em 0; }
17
+ th, td { text-align: left; padding: 0.2em 0.5em 0.2em 0; border-bottom: 1px solid #ddd; vertical-align: top; }
18
+ th { font-weight: normal; color: #333; }
19
+ pre { font-family: monospace; font-size: 0.85em; }
 
20
  </style>
21
  </head>
22
  <body>
 
23
 
24
  <h1>xai</h1>
25
+ <p class="meta">xai = explainable AI · offline research notes · lyffseba</p>
26
+ <nav class="meta">
27
  <a href="START_HERE.md">START HERE</a>
28
  <a href="studies/derived/DASHBOARD.md">status</a>
29
+ <a href="studies/STUDY.md">study</a>
30
  <a href="OFFLINE.md">offline</a>
31
+ <a href="https://huggingface.co/spaces/lyffseba/xai">HF</a>
32
+ <a href="https://huggingface.co/datasets/lyffseba/xai-studies">dataset</a>
33
+ </nav>
34
 
35
  <hr>
36
 
37
  <table>
38
+ <tr><th>id</th><th>name</th><th>status</th><th>total</th><th>active</th><th>ctx</th><th>experts</th></tr>
39
  <tr>
40
+ <td>inkling</td>
41
  <td><a href="studies/models/inkling/">Inkling</a></td>
42
  <td>weights public</td>
43
  <td>975B</td>
 
46
  <td>6/256+2</td>
47
  </tr>
48
  <tr>
49
+ <td>kimi-k3</td>
50
  <td><a href="studies/models/kimi-k3/">Kimi K3</a></td>
51
  <td>API live · weights pending</td>
52
  <td>2.8T</td>
 
58
 
59
  <p>
60
  <a href="studies/models/inkling/">Inkling</a> —
61
+ Thinking Machines MoE · relative PE · SWA/global · image+audio ·
62
  Hub config + transformers under <code>reference/</code>.
63
  </p>
64
  <p>
65
  <a href="studies/models/kimi-k3/">Kimi K3</a> —
66
+ 2.8T LatentMoE · KDA+AttnRes · vision/video ·
67
+ <code>facts.json</code> local · weights ETA 2026-07-27.
68
  </p>
69
  <p>
70
+ <a href="studies/shared/comparisons/inkling-vs-kimi-k3.md">compare</a> ·
71
+ <a href="dissertation/">MSc</a>
72
+ (<a href="dissertation/main.ipynb">main.ipynb</a> · vinyl · CNN + Concept Whitening)
73
  </p>
74
 
75
+ <hr>
76
+
77
  <pre>make test
 
78
  python3 studies/run.py test</pre>
79
+ <p class="meta">stdlib · no pip · no network · expect ✓ test passed</p>
80
 
81
  <p class="meta">
82
+ <a href="studies/shared/GLOSSARY.md">glossary</a> ·
83
+ <a href="https://github.com/lyffseba/xai">github</a> ·
84
+ <code>make sync</code> ·
85
  last update: 2026-07-17
86
  </p>
87
 
 
88
  </body>
89
  </html>
studies/README.md CHANGED
@@ -1,27 +1,20 @@
1
  # studies
2
 
3
- Source-driven model notes. Offline. Stdlib Python only.
4
 
5
- ## Packages
6
-
7
- - [inkling](models/inkling/) ~975B / 41B, 1M, image+audio
8
- - [kimi-k3](models/kimi-k3/) — 2.8T, 16/896 MoE, KDA, 1M
9
- - [compare](shared/comparisons/inkling-vs-kimi-k3.md)
10
- - [status](derived/DASHBOARD.md) · [path](STUDY.md) · [glossary](shared/GLOSSARY.md)
11
-
12
- ## Commands
13
 
14
  ```
15
  make test
16
  python3 run.py test
17
  make check
18
- make refresh MODEL=inkling # online
19
  ```
20
 
21
- ## Layout
22
-
23
  ```
24
  models/<id>/{book,code-study,reference,derived,scripts}
25
  ```
26
 
27
- `reference/` = primary sources. `derived/` = generated (do not hand-edit).
 
1
  # studies
2
 
3
+ Source-driven model notes for **xai** (xai = explainable AI). Offline. Stdlib only.
4
 
5
+ - [inkling](models/inkling/) — 975B/41B · 1M · image+audio
6
+ - [kimi-k3](models/kimi-k3/) — 2.8T · 16/896 · KDA · 1M
7
+ - [compare](shared/comparisons/inkling-vs-kimi-k3.md) · [status](derived/DASHBOARD.md) · [path](STUDY.md) · [glossary](shared/GLOSSARY.md)
 
 
 
 
 
8
 
9
  ```
10
  make test
11
  python3 run.py test
12
  make check
13
+ make refresh MODEL=inkling
14
  ```
15
 
 
 
16
  ```
17
  models/<id>/{book,code-study,reference,derived,scripts}
18
  ```
19
 
20
+ `reference/` = primary sources. `derived/` = generated.