Views
No views yet
kaupane/lichess-2023-01-stockfish-annotated (depth18 split)| Metric | ChessFormer-RL (8th ckpt) | ChessFormer-SL (20th ckpt) |
|---|---|---|
| Action Loss | 1.8329 | 1.6985 |
| Value Loss | 0.0501 | 0.0407 |
| Invalid Loss | 0.0484 | 0.0303 |
1pip install torch transformers huggingface_hub chess
2# Download model.py from this repository1import torch
2from model import ChessFormerModel
3
4# Load model
5model = ChessFormerModel.from_pretrained("kaupane/ChessFormer-RL")
6model.eval()
7
8# This is an intermediate checkpoint - performance will be lower than ChessFormer-SL1# This checkpoint can serve as initialization for RL experiments
2from train_rl import RLTrainer
3
4# Load checkpoint for RL training continuation
5trainer = RLTrainer(
6 model=model,
7 # ... other hyperparameters
8)
9trainer.resume("path/to/checkpoint", from_sl_checkpoint=True)