Downloads · 30 days
29
4% of all-time downloads
Zual/chess_char
chess_char is a text generation model from Zual. Use it when you need the model to write or continue text. The card lists the license as mit.
[](https://github.com/l-pommeret/chesschartest) [](https://colab.research.google.com/drive/129J3E6uJASrDLH7TsgOzFdSjAtvNPVRY?usp=sharing)
Downloads · 30 days
29
4% of all-time downloads
All-time downloads
735
Public
Parameters
25.8M
515 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors103 MB · 100%
From the Hugging Face model README
Zual/chess_char is a GPT-2 based model trained to generate chess games in PGN (Portable Game Notation) format. It treats chess moves as a language modeling task, learning to predict the next character in a PGN sequence.
This model is intended for research purposes to study the capabilities of Transformer models in learning structured, rule-based systems (like Chess) purely from observational data.
Primary Use Case: Generating valid PGN chess game continuations from a given prefix.
You can use this model directly with the Hugging Face transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Zual/chess_char"
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True)
# Note: The model uses a custom tokenizer which should be loaded via the repository scripts
# or by following the instructions in the GitHub repo.
For a complete inference example with the custom tokenizer, please refer to the GitHub repository.
The model was trained on a dataset of standard chess games from Lichess (rated 2000+, September 2016 dump).
The model was trained with the following configuration:
The model's performance is evaluated based on: