File size: 1,189 Bytes
181987c
 
 
 
 
 
 
 
 
 
 
 
4bcf778
7284a50
181987c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- en
pipeline_tag: text-generation
tags:
- text-generation
- hodge
base_model:
- google/gemma-4-31B-it
- meta-llama/Llama-3.2-3B-Instruct
- google/vaultgemma-1b
- openai/gpt-oss-120b
- microsoft/bitnet-b1.58-2B-4T-gguf
license: mit
---
# Hodge-5

Hodge-4o is a ternarized causal language model. The linear layers are Hodge linear, quantized offline.

## Model

| | |
| --- | --- |
| hidden size | 2560 |
| layers | 30 |
| intermediate size | 6912 |
| attention heads | 20 |
| key-value heads | 5 |
| head size | 128 |
| vocabulary | 514307 |
| context length | 4096 |
| rope theta | 500000 |
| activation | relu2 |
| embeddings | tied |
| weight dtype | bfloat16 |
| bos token id | 128000 |
| eos token ids | 128001, 128009 |

## Weights

`hodge-5.bnz`

## Chat

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

## Sampling

`generation_config.json` samples with temperature 0.6 and top-p 0.9. The length cap is 4096. A desk run uses temperature 0.7.

## Run

ModelRun loads this directory. The catalog points `model` at `hodge-4o.bnz`, beside `config.json` and `tokenizer.json`.

```
modelrun run -temp 0.7 --config hodge-4o.bnz.yaml
```