File size: 1,419 Bytes
34aa9f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language: en
license: mit
tags:
- chess
- transformer
- custom-architecture
pipeline_tag: robotics
---

# ChessDumb-2.5M (`dumbc`)

**ChessDumb-2.5M** is a hyper-expressive, ultra-compact Chess AI architecture designed for extreme representation capacity with only **1.69M parameters**.

## Key Features
- **DumbChessRetina**: Non-Euclidean grid folding with 4-axis directional convolutions and ray-tracing threat embeddings.
- **DumbAttention**: 4-way fused attention featuring Hadamard tensor braids, 3-body trinity tensor coupling, material differential biases, and dynamic temperature Softmax.
- **DumbFractalFFN**: Channel-shuffled polynomial interaction FFN.
- **DumbRecurrentEngine**: Virtual 15-layer deep thinking engine powered by a 5-layer parameter-reusing loop with step embeddings.

## Usage
```python
import torch
from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("YOUR_USERNAME/ChessDumb", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/ChessDumb", trust_remote_code=True)

# Dummy Forward Test
board = torch.randint(0, 14, (1, 64))
mat_diff = torch.randn(1, 64, 64)
mat_weights = torch.randn(1, 64)

outputs = model(board_state=board, mat_diff_matrix=mat_diff, material_weights=mat_weights)
print("Policy shape:", outputs["policy_matrix"].shape) # (1, 64, 64)
print("Value shape:", outputs["value_logits"].shape)   # (1, 3)

```