Update README.md
Browse files
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
datasets:
|
4 |
-
-
|
5 |
-
name:
|
6 |
results:
|
7 |
- task: train
|
8 |
metrics:
|
@@ -28,7 +28,7 @@ See my [blog post](https://yp-edu.github.io/projects/training-gpt2-on-stockfish-
|
|
28 |
|
29 |
## Training Details
|
30 |
|
31 |
-
The model was trained during 1 epoch on the [
|
32 |
|
33 |
```json
|
34 |
{"prompt":"FEN: {fen}\nMOVE:", "completion": " {move}"}
|
@@ -66,8 +66,8 @@ def next_move(model, tokenizer, fen):
|
|
66 |
|
67 |
|
68 |
board = chess.Board()
|
69 |
-
model = AutoModelForCausalLM.from_pretrained("
|
70 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
71 |
tokenizer.pad_token = tokenizer.eos_token
|
72 |
for i in range(100):
|
73 |
fen = board.fen()
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
datasets:
|
4 |
+
- yp-edu/stockfish-debug
|
5 |
+
name: yp-edu/gpt2-stockfish-debug
|
6 |
results:
|
7 |
- task: train
|
8 |
metrics:
|
|
|
28 |
|
29 |
## Training Details
|
30 |
|
31 |
+
The model was trained during 1 epoch on the [yp-edu/stockfish-debug](https://huggingface.co/datasets/yp-edu/stockfish-debug) dataset (no hyperparameter tuning done). The samples are:
|
32 |
|
33 |
```json
|
34 |
{"prompt":"FEN: {fen}\nMOVE:", "completion": " {move}"}
|
|
|
66 |
|
67 |
|
68 |
board = chess.Board()
|
69 |
+
model = AutoModelForCausalLM.from_pretrained("yp-edu/gpt2-stockfish-debug")
|
70 |
+
tokenizer = AutoTokenizer.from_pretrained("yp-edu/gpt2-stockfish-debug") # or "gpt2"
|
71 |
tokenizer.pad_token = tokenizer.eos_token
|
72 |
for i in range(100):
|
73 |
fen = board.fen()
|