samuel grahame commited on
Commit
71242c5
·
1 Parent(s): 536b127

Publish final v17a weights, runnable source and final results

Browse files

Finished no-training experiment. Includes the exact 1,000,000,000-byte checkpoint, matching custom PyTorch runtime, checksums, GitHub source links and measured limitations. Useful open-ended chat was not achieved.

Files changed (7) hide show
  1. .gitattributes +1 -0
  2. LICENSE +21 -0
  3. README.md +158 -0
  4. SHA256SUMS.txt +6 -0
  5. config.json +0 -0
  6. manifest.json +64 -0
  7. runtime.zip +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ weights.f32 filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SamG-Coder
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md CHANGED
@@ -1,3 +1,161 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ language:
4
+ - en
5
+ tags:
6
+ - pytorch
7
+ - experimental
8
+ - untrained
9
+ - neural-circuits
10
+ - analytically-constructed
11
+ - custom-architecture
12
+ model_name: direct-weight-chat v17a
13
  ---
14
+
15
+ # direct-weight-chat v17a
16
+
17
+ **Finished experiment: analytically constructed neural weights, with no training.**
18
+
19
+ > **We did not achieve useful, open-ended chat under these constraints.**
20
+ > This is a research artifact with narrow, compiled capabilities. It is not a
21
+ > general-purpose language assistant. v17a is the final checkpoint; the experiment
22
+ > ended on 4 November 2026.
23
+
24
+ This repository contains the final **250,000,000-parameter float32 checkpoint**
25
+ (exactly **1,000,000,000 weight bytes**), its matching configuration, and the
26
+ Python source needed to run it. The parameters were written analytically through
27
+ reusable neural-circuit compilation. There was no gradient training, pretrained
28
+ tensor transfer, distillation or downloaded training dataset.
29
+
30
+ **Most parameters are zero:** 995,905 are nonzero (0.398362%). All parameters belong
31
+ to named transformer tensors; the raw file contains no size-padding trailer.
32
+ Parameter count and compressed file size are not measures of conversational ability.
33
+
34
+ ## Source code and complete experiment
35
+
36
+ - [GitHub repository](https://github.com/SamG-Coder/direct-weight-chat)
37
+ - [Final README and conclusion](https://github.com/SamG-Coder/direct-weight-chat#final-outcome)
38
+ - [Every version's test results](https://github.com/SamG-Coder/direct-weight-chat/blob/main/results/README.md)
39
+ - [Frozen v17a source](https://github.com/SamG-Coder/direct-weight-chat/tree/83a2f03afa98075286e7ec82b3e5c53f29cd4ceb/versions/autoregressive_v17a)
40
+ - [Architecture](https://github.com/SamG-Coder/direct-weight-chat/blob/main/ARCHITECTURE.md)
41
+ - [Research log and failures](https://github.com/SamG-Coder/direct-weight-chat/blob/main/RESEARCH_LOG.md)
42
+ - [Fresh-download release verification](https://github.com/SamG-Coder/direct-weight-chat/blob/main/results/publication-v0.9.json)
43
+
44
+ The `runtime.zip` in this model repository includes the matching Python runtime,
45
+ compiler source, verification code and license. It is provided here so that
46
+ the model can be run without separately cloning GitHub. This is a **custom
47
+ PyTorch runtime**, not a Transformers `AutoModel` checkpoint or a GGUF model.
48
+ There is no hosted inference service attached to this upload.
49
+
50
+ ## What it can do in the tested grammar
51
+
52
+ - Generate tokens through a normal transformer forward pass and output head.
53
+ - Use facts supplied in the current conversation, including unfamiliar entity
54
+ names, explicit negation and later corrections.
55
+ - Answer restricted questions about attributes and relationships, including
56
+ bounded category inheritance and simple Boolean query combinations.
57
+ - Apply signed, ground `If ... then ...` rules through at most three links along
58
+ one latest-rule path; missing premises can result in `I do not know.`.
59
+ - Perform bounded two-operand signed addition/subtraction. The intended operand
60
+ range is -999 to 999; this is not a general expression parser.
61
+
62
+ Inference uses tokenization, tensor operations, KV caching, argmax selection and
63
+ detokenization. It has no Python answer engine, response-selection fallback,
64
+ complete-answer bank or weight updates. The restricted language grammar and
65
+ atomic facts are nevertheless manually authored and compiled into weights.
66
+ Token-by-token output does not establish language understanding.
67
+
68
+ ## Final results and limitations
69
+
70
+ | Measured suite | CPU | CUDA |
71
+ |---|---:|---:|
72
+ | Long conversation replay | 31/31 | 31/31 |
73
+ | Ground conditional development | 269/293 | 269/293 |
74
+ | Rule-position development | 160/162 | 160/162 |
75
+ | Fresh rule-position combinations after source freeze | 160/162 | 160/162 |
76
+ | Additional scope/dialogue guards | 29/36 | 29/36 |
77
+ | Alternative proof-search baseline | **29/104** | **29/104** |
78
+
79
+ The 36 matched CUDA regression suites total 5,959/6,105, with no output changes
80
+ from v16c. Historical suites repeat structures. Fresh combinations use known,
81
+ author-designed generators; these are not independent tests of general language
82
+ understanding. Exact outputs and timings are linked above, including failures.
83
+
84
+ **Unsupported or unreliable:** useful general conversation, unrestricted English,
85
+ creative writing, code generation, general knowledge, multiplication/division,
86
+ longer proof chains, searching alternative proofs, variable binding, compound
87
+ rule premises and open answers derived from rules. Some unsupported paraphrases
88
+ can be misread as assertions and produce false positives. An abstention on a
89
+ creative request is not successful creative generation.
90
+
91
+ The practical goal was not met. This experiment does not prove mathematical
92
+ impossibility for every conceivable architecture. It preserves what this
93
+ particular direct-construction attempt achieved and where it failed.
94
+
95
+ ## Download and run
96
+
97
+ Download the files with the Hugging Face CLI, or use the Files tab. Downloading
98
+ is a separate publication step; construction and inference run offline.
99
+
100
+ ```bash
101
+ hf download samfromlife/direct-weight-chat-v17a --local-dir direct-weight-chat-v17a
102
+ cd direct-weight-chat-v17a
103
+ python -m zipfile -e runtime.zip .
104
+ python -m chat1gb_autoregressive.chat --model-dir . --device auto
105
+ ```
106
+
107
+ Use an environment with **PyTorch already installed**. NumPy is also needed for
108
+ rebuilding weights, but not for inference. Original verification used Python
109
+ 3.11.9 and PyTorch 2.8.0+cu128 on an RTX 5080, with separate CPU runs. Construction
110
+ used NumPy 2.5.3. CPU inference is supported. The runtime blocks outbound Python
111
+ socket connections at the application level; it is not an OS firewall.
112
+
113
+ The chat command keeps context between turns. `/reset` clears context; `/quit`
114
+ exits. The fixed window is 5,048 tokens, with 128 dynamic vocabulary slots for
115
+ unfamiliar spellings. Reset the conversation if either capacity is exhausted.
116
+
117
+ For one prompt:
118
+
119
+ ```bash
120
+ python -m chat1gb_autoregressive.chat --model-dir . --device cpu --prompt "149 - 370"
121
+ ```
122
+
123
+ Or load the same runtime from Python after extracting `runtime.zip`:
124
+
125
+ ```python
126
+ from chat1gb_autoregressive.engine import Model
127
+
128
+ model = Model(directory=".", device="auto")
129
+ print(model.generate("A kelv can fly. What can a kelv do?")["text"])
130
+ print(model.generate("A kelv cannot fly. Can kelv fly?")["text"])
131
+ ```
132
+
133
+ These calls execute the uploaded weights. No model or dataset download occurs
134
+ inside the runtime. The illustrative prompts are restricted examples, not
135
+ evidence that arbitrary conversation works.
136
+
137
+ ## Integrity and provenance
138
+
139
+ `SHA256SUMS.txt` records file hashes. `manifest.json` records exact layout,
140
+ construction metadata and source hashes. The raw `weights.f32` SHA-256 is:
141
+
142
+ ```text
143
+ 5cc52f3793a1546c620195c110a7d1c3a2f8d3417cb72f193003589b16e8e0d2
144
+ ```
145
+
146
+ The tensor runtime SHA-256 is:
147
+
148
+ ```text
149
+ f56d29cd23ba2b3018c4ba6a7ad6928dcb28c437e213929802aa4cba90329e10
150
+ ```
151
+
152
+ The frozen compiler reproduces the exact raw/config hashes. Existing integrity
153
+ checks and ablations passed on CPU and CUDA. v17a stabilizes rule-phase flags
154
+ before sharp attention; restoring the older gate recreates a measured CPU failure.
155
+
156
+ Human and AI-assistant prior knowledge entered the authored algorithms and
157
+ atomic facts. “No pretrained weights” does not mean the design was created
158
+ without prior knowledge. No pretrained tensor values were transferred.
159
+
160
+ MIT licensed. This model is provided for inspection and reproducible experiments,
161
+ not for factual advice or deployment as a dependable assistant.
SHA256SUMS.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ 56df33d5842a0d3a1351dae78732c01589bde1ce55a33868f9d13dec171bee91 config.json
2
+ fe0b20ff40201e73a266d3fd499156eab0752ad1fc0f7f8558c24f347dc740c2 LICENSE
3
+ e3fccfcc1d786ab58de68bf1741043f27ca9db4db4282a7e9c7d4d018ae21955 manifest.json
4
+ c32c72e7f71c306398feec49f5020d8fe4d728b1bb7bc24dbc811c09986f6625 README.md
5
+ 3055fdd384183827681bcecc40322f593a6481b572f95d48448315fe1c7f0854 runtime.zip
6
+ 5cc52f3793a1546c620195c110a7d1c3a2f8d3417cb72f193003589b16e8e0d2 weights.f32
config.json ADDED
The diff for this file is too large to render. See raw diff
 
manifest.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "created_utc": "2026-11-03T17:55:07.332107+00:00",
3
+ "parameter_count": 250000000,
4
+ "weight_bytes": 1000000000,
5
+ "padding_bytes": 0,
6
+ "nonzero_parameters": 995905,
7
+ "nonzero_fraction": 0.00398362,
8
+ "training_steps": 0,
9
+ "optimizer_steps": 0,
10
+ "pretrained_weights_used": false,
11
+ "internet_used": false,
12
+ "random_initialization_used": false,
13
+ "complete_response_bank": false,
14
+ "construction": "analytically compiled token-level circuits inside a causal transformer",
15
+ "relu_units_used_per_block": [
16
+ 890,
17
+ 3300,
18
+ 2773,
19
+ 1914,
20
+ 708,
21
+ 519,
22
+ 706,
23
+ 519,
24
+ 706,
25
+ 519,
26
+ 595,
27
+ 132,
28
+ 240,
29
+ 71,
30
+ 3997,
31
+ 70,
32
+ 28,
33
+ 70
34
+ ],
35
+ "atomic_entity_records": 40,
36
+ "sha256": {
37
+ "weights.f32": "5cc52f3793a1546c620195c110a7d1c3a2f8d3417cb72f193003589b16e8e0d2",
38
+ "config.json": "56df33d5842a0d3a1351dae78732c01589bde1ce55a33868f9d13dec171bee91"
39
+ },
40
+ "source_sha256": {
41
+ "build.py": "5e513cc0c3e198cf141a213cdc0f956eb22be23a83ddd6c598d27526d76db2ef",
42
+ "spec.py": "c480f5abd4e36602d7ccd5ce1a4d5fcf6784af862743acab034b99e576ef9eb2",
43
+ "knowledge.py": "b7cd8bd0c584d36c11c068266016d24a92f3259816dcc94bcfb4b45f5ea4c4fd",
44
+ "offline.py": "61d7321c6c08717b53fb5627a48ff9c243e59ee4719845d4f974cd0e6384cc57"
45
+ },
46
+ "build_seconds": 1.5678349000227172,
47
+ "limitations": [
48
+ "Sparse directly programmed circuits; most standard transformer connections remain zero.",
49
+ "Small authored lexicon and fact vocabulary; general language understanding is unproven.",
50
+ "New input words are represented by fixed pointer-token slots.",
51
+ "Arithmetic circuit is intended for two signed operands with magnitudes no greater than 999.",
52
+ "Object-specific truth questions and logical negation support seven predicates under a limited inversion grammar.",
53
+ "Proposition composition uses three-valued reductions for homogeneous AND or OR; mixed-operator syntax and arbitrary requests remain unsupported.",
54
+ "Shared AND assertion objects use clause-local neural subject/predicate/polarity binding with a bounded grammar.",
55
+ "Coordinated objects are committed at a following boundary token; question/directive clauses are excluded from assertions.",
56
+ "Local lookbacks use bounded periodic address features; broader semantic accuracy still requires separate context tests.",
57
+ "Fact coordinates are saturated before proposition retrieval to reduce numeric magnitude bias between assertion paths.",
58
+ "Assertion subject/predicate retrieval separates recency selection from neural clause validation to limit coordinate-error amplification.",
59
+ "Ground single-premise implications support at most three backward links through the latest matching rule; alternate proof search and variables are unsupported.",
60
+ "Rule-phase flags use saturating Boolean gates before high-gain candidate ranking; arbitrary numeric/context robustness is not established.",
61
+ "Compound conditional premises, disjunctive assertions, multiple-parent traversal and unrestricted sentence generation remain unsupported.",
62
+ "Prompt facts use limited syntactic patterns; no weight updates occur during a conversation."
63
+ ]
64
+ }
runtime.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3055fdd384183827681bcecc40322f593a6481b572f95d48448315fe1c7f0854
3
+ size 108481