Downloads · 30 days
55
4% of all-time downloads
jrahn/yolochess_mlm_azure-cloud-35
yolochess_mlm_azure-cloud-35 is a fill-mask model from jrahn. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as mit.
This model with 66M parameters is pre-trained from scratch with Masked Language Modeling on Chess Positions in FEN format. It is supposed to be used for downstream fine-tuning, e.g. Text Classification for human moves.
Downloads · 30 days
55
4% of all-time downloads
All-time downloads
1.4K
Public
Parameters
65.8M
527 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin263 MB · 50%
From the Hugging Face model README
This model with 66M parameters is pre-trained from scratch with Masked Language Modeling on Chess Positions in FEN format.
It is supposed to be used for downstream fine-tuning, e.g. Text Classification for human moves.
This model is pre-trained from scratch with Masked Language Modeling on Chess Positions in FEN format.
It is supposed to be used for downstream fine-tuning, e.g. Text Classification for human moves.
Anything other than Chess Positions in standard FEN format.
n/a
n/a
Use the code below to get started with the model.
from transformers import AutoModelForMaskedLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("jrahn/yolochess_mlm_azure-cloud-35")
model = AutoModelForMaskedLM.from_pretrained("jrahn/yolochess_mlm_azure-cloud-35")
from transformers import pipeline
pipe = pipeline("fill-mask", "jrahn/yolochess_mlm_azure-cloud-35")
pipe("6k1/8/8/1pB3[MASK]P/1P3P2/8/8/8 w - - 1 74")
Masked Language Modeling objective with 15% masked token ratio.
Tokenize data["train"]["fen"] with max-length padding to 200 tokens with default distilbert-base-cased tokenizer.
Inefficient: Most of the vocab is never observed in FEN, wasting embedding parameters.
The sequence length / pos embedding size of model and sequence length of data preprocessing leads to lots of padding and wasted parameters. FENs should be shorter than 90 characters.
Experiments with reduced max-length in tokenization show performance gains.
Training for 172500 steps at batch-size 128 (22M examples, 1 epoch) took ~10 hrs on 1x RTX 4090, using 20GB VRAM, with final MLM-loss: 0.2567.
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
Distilbert, Masked Language Modeling