File size: 1,252 Bytes
c29ede7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
library_name: pytorch
tags:
  - rubiks-cube
  - reinforcement-learning
  - deepcubea
  - pytorch
pipeline_tag: other
---

# DeepCube — Cube3 (3×3×3) cost-to-go network

PyTorch weights for a DeepCubeA-style cost-to-go network that solves the 3×3×3 Rubik's cube via weighted A\*.

- **Input**: one-hot encoded cube state (324 dims = 54 stickers × 6 colors)
- **Output**: scalar cost-to-go estimate (predicted moves to solved state)
- **Architecture**: MLP — see `deepcube/model.py` in the source repo
- **Training**: Approximate Value Iteration on random scrambles (see `train.ipynb`)
- **Source code**: https://github.com/ac1982/deepcube

## Files

- `deepcube_cube3.pt` — final weights (keys: `net`, `cfg`, `loss_hist`, `elapsed`)

## Usage

```python
from huggingface_hub import hf_hub_download
from deepcube.model import load_checkpoint

ckpt_path = hf_hub_download("alexever/deepcube-cube3", "deepcube_cube3.pt")
model, cfg = load_checkpoint(ckpt_path)
```

Or via the bundled server, which auto-loads from `checkpoints/deepcube_cube3.pt`:

```bash
huggingface-cli download alexever/deepcube-cube3 deepcube_cube3.pt \
    --local-dir checkpoints
python -m deepcube.server
```

## License

MIT — see source repository.