File size: 2,240 Bytes
6aa3b1b
 
 
 
 
 
 
 
0d68f34
 
 
6aa3b1b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0d68f34
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
language:
- en
pipeline_tag: text-generation
tags:
- text-generation
- hodge
- ternary
base_model:
- EncryptidSystems/Hodge-5
- openai/gpt-oss-120b
---

# Hodge-5.1

Hodge-5.1 is a ternarized causal language model. The linear layers are Hodge linear, quantized offline. The base is Hodge-5. The source mixed into it is gpt-oss. Topology stays on the base, so the output depth is 36 layers.

Layers 0–29 keep the Hodge-5 dense projections. The mix stored the leftover as extra digit planes. About 2,100 of those planes are in this file and not in Hodge-5o. On the body their scale is 0, so they add nothing to the matmul, and they still occupy a full plane in memory. The checkpoint is 5.68 GB. gptrun reads 3,338 tensors. Hodge-5o reads 1,244 tensors from a 4.06 GB file.

Layers 30–35 are the tail. The tail gate scale is about 0.0003, against body gate scales around 2, so that feed-forward is shut. Tail attention still runs. Layer 35 carries an output plane at scale 0.40 on a primary scale of 0.14. That plane is not in Hodge-5o. The head reads the residual after it.


## Model

| | |
| --- | --- |
| hidden size | 2560 |
| layers | 36 |
| intermediate size | 6912 |
| attention heads | 20 |
| key-value heads | 5 |
| head size | 128 |
| vocabulary | 563206 |
| context length | 4096 |
| rope theta | 500000 |
| activation | relu2 |
| local experts in the file | 128 |
| experts per token in the file | 4 |
| embeddings | tied |
| weight dtype | packed ternary, bfloat16 scale |
| bos token id | 128000 |
| eos token ids | 128001, 128009 |

The checkpoint also stores a quaternary expert chart beside the dense gate. The dense `mlp.gate_proj` block is the relu2 path. A runtime that adds the chart on top of that gate mixes a second feed-forward into the residual.

## Weights

`hodge-5.1.bnz.ternary.safetensors`

## Chat

Each turn is a role line closed by `<|eot_id|>`. Generation starts at `Assistant: `.

```
User: Where was the federal district placed?<|eot_id|>Assistant:
```

## Sampling

`generation_config.json` samples with temperature 0.6 and top-p 0.9. The length cap is 4096.

## Run

gptrun loads the ternary safetensors beside `config.json` and `tokenizer.json`.

```
gptrun run --config hodge-5.1.bnz.yaml
```