|
Download README.md from EncryptidSystems/hodge-5o: direct link, hf CLI and curl.
- Browser
- Download file 2.22 kB
-
https://huggingface.co/EncryptidSystems/hodge-5o/resolve/main/README.md
- Command line
-
hf download hf://EncryptidSystems/hodge-5o/README.md
-
curl -L -o README.md https://huggingface.co/EncryptidSystems/hodge-5o/resolve/main/README.md
2.22 kB
| language: | |
| - en | |
| pipeline_tag: text-generation | |
| tags: | |
| - text-generation | |
| - hodge | |
| - ternary | |
| base_model: | |
| - openai/gpt-oss-120b | |
| - EncryptidSystems/Hodge-5 | |
| # Hodge-5o | |
| Hodge-5o is a ternarized causal language model. The linear layers are Hodge linear, quantized offline. A second pass rewrote attention on a Hodge-5.1 base, with Hodge-5 as the source. The dense feed-forward body through layer 29 was left in place. | |
| The second pass changed query, key, and output on layers 1, 3, 23, and 24, and it changed the attention that still runs on layers 30–35. Those key residuals are large enough to change which tokens the layer attends to. Layer 35 does not carry the extra output plane that Hodge-5.1 stores at scale 0.40. In direct runs. | |
| ## 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 | | |
| Layers 0–29 are the Hodge-5 body. Layers 30–35 are the tail. The tail gate scale is about 0.0003. Tail attention still adds into the residual the head reads. | |
| 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-5o.bnz.ternary.safetensors` is the checkpoint, about 4.06 GB. gptrun reads 1,244 tensors from it. Hodge-5.1 is the same body with about 2,100 extra digit planes, and that file is 5.68 GB. | |
| ## 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-5o.bnz.yaml | |
| ``` |