CoolFace
Modelpublic

GofAlpha/GoA_Chess_Small

sourceHugging Faceotherupdated 7mo agoView on Hugging Face
0likes
Model Card

GofAlpha/GoAChessSmall

A decoder-only transformer language model trained on Lichess standard chess games. Generates chess moves in standard algebraic notation (PGN).

Model Details

PropertyValue
Parameters51,544,049
Hidden size512
Layers8
Attention heads8
Context length1024 tokens
TokenizerGPT-2

Files

  • —model.safetensors — Model weights
  • —config.json — Architecture configuration
  • —generation_config.json — Default generation parameters
  • —tokenizer.json, vocab.json, merges.txt — GPT-2 tokenizer files

Usage

python
import torch
from safetensors.torch import load_file
from transformers import GPT2TokenizerFast

# Load tokenizer
tokenizer = GPT2TokenizerFast.from_pretrained("GofAlpha/GoA_Chess_Small")

# Load weights
state_dict = load_file("model.safetensors")

# Encode a chess opening
prompt = "1. e4 e5 2. Nf3"
input_ids = tokenizer.encode(prompt, return_tensors="pt")

Generation Parameters

ParameterDefault
temperature0.6
top_k10
top_p0.95
maxnewtokens1024

License

Copyright (c) G of Alpha LLC. All rights reserved.