Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
dialog
chess
gpt-2
conversational
text-generation-inference
Run this model with HF Jobs
Run DedeProGames/dialochess on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/DedeProGames/dialochess. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/DedeProGames/dialochess on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/DedeProGames/dialochess. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/DedeProGames/dialochess. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use DedeProGames/dialochess with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DedeProGames/dialochess with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DedeProGames/dialochess") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DedeProGames/dialochess") model = AutoModelForCausalLM.from_pretrained("DedeProGames/dialochess", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DedeProGames/dialochess with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DedeProGames/dialochess" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DedeProGames/dialochess", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DedeProGames/dialochess
- SGLang
How to use DedeProGames/dialochess with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "DedeProGames/dialochess" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DedeProGames/dialochess", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "DedeProGames/dialochess" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DedeProGames/dialochess", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DedeProGames/dialochess with Docker Model Runner:
docker model run hf.co/DedeProGames/dialochess
Update README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354---library_name: transformerslicense: mitbase_model: microsoft/DialoGPT-smalltags:- generated_from_trainermodel-index:- name: dialochessresults: []---<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># dialochessThis model is a fine-tuned version of [microsoft/DialoGPT-small](https://huggingface.co/microsoft/DialoGPT-small) on an unknown dataset.## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: cosine- num_epochs: 1- mixed_precision_training: Native AMP### Training results### Framework versions- Transformers 4.52.4- Pytorch 2.7.1+cu118- Datasets 3.6.0- Tokenizers 0.21.1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110---library_name: transformerslicense: mitbase_model: microsoft/DialoGPT-smalltags:- generated_from_trainer- dialog- chess- gpt-2model-index:- name: dialochessresults: []---# Model card: **dialochess****Short description**`dialochess` is a conversational model derived from `microsoft/DialoGPT-small` and fine-tuned for chess-related dialog and play. It was trained using the dataset referenced by the trainer (see *Training data* below) and configured to interact in chess play/analysis settings such as the Hugging Face Space `mlabonne/chessllm`.---## Model details- **Model type:** GPT-2 / DialoGPT-small family (causal, autoregressive)- **Base model:** `microsoft/DialoGPT-small`- **Fine-tuned name:** `dialochess`- **License:** MIT- **Libraries & versions used during training (reported by trainer):**- Transformers 4.52.4- PyTorch 2.7.1+cu118- Datasets 3.6.0- Tokenizers 0.21.1---## Model description`dialochess` is a fine-tuned conversational transformer intended to produce chess-relevant dialogue: move suggestions, commentary, brief explanations of positions, and to play short games against other AIs. The model remains an autoregressive language model (not a dedicated chess engine) and generates text tokens that may include algebraic moves, evaluation phrases, and natural-language commentary.---## Intended uses & limitations**Intended uses**- Research and experimentation in conversational chess agents.- Integration into chat-based chess interfaces for move suggestions and commentary.- Generating sample game dialogues or annotated move lists for educational/demo purposes.- Fine-tuning baseline for further chess-specific language-model work.**Not suitable for**- Replacing a dedicated chess engine for precise tactical calculation (e.g., Stockfish, Leela).- High-stakes or competitive play where rigorous move correctness and deep search are required.- Any medical, legal, financial, or safety-critical advice — it's a domain-specific conversational model and may hallucinate or produce incorrect information.**Limitations**- May hallucinate moves, annotations, or claims about positions.- Performance is dependent on the quality and diversity of the fine-tuning dataset (see *Training and evaluation data*).- No official evaluation metrics were included in the automatically-generated card. Users should validate with specific benchmarks (perplexity, move-accuracy, Elo/win-rate against baselines).---## Training and evaluation data- **Dataset (provided by the trainer):** The fine-tuning dataset referenced in the trainer materials and available in the provided Colab notebook:`https://colab.research.google.com/drive/11UjbfajCzphe707_V7PD-2e5WIzyintf`(This link was included by the trainer. Please review the Colab to inspect dataset sources, composition, license, and any preprocessing steps.)- **Source / provenance:** The model was trained to interact with or play against other AIs in the Hugging Face Space `mlabonne/chessllm`. See the space here: `https://huggingface.co/spaces/mlabonne/chessllm`.- **Data filtering & cleaning:** Not provided in the auto-generated metadata. It is recommended to include details about tokenization choices, any filtering of illegal moves or metadata removal, and train/validation splits.- **Privacy & licenses:** The original trainer metadata did not list dataset license(s). Verify that any third-party game logs, PGN files, or scraped content used for training are permitted under their licenses before public redistribution.---## Training procedure**Hyperparameters (as reported):**- learning_rate: 5e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- optimizer: AdamW (betas=(0.9, 0.999), eps=1e-08)- lr_scheduler_type: cosine- num_epochs: 1- mixed_precision_training: Native AMP**Notes**- The model was fine-tuned from `microsoft/DialoGPT-small`. The training ran for 1 epoch (per provided metadata). For improved performance, consider longer training, larger datasets, and careful evaluation/early stopping.- No detailed training logs or evaluation metrics were included in the auto-generated card; add validation loss curves, perplexity, and any chess-specific metrics (move prediction accuracy, legality rate, win-rate vs baseline) to the card if available.---## Evaluation & recommended metricsNo evaluation results were included in the auto-generated card. To assess quality, we recommend reporting:- **Perplexity** on a held-out validation set.- **Move accuracy**: fraction of model-predicted moves that match the recorded moves in a test PGN corpus.- **Legal-move rate**: fraction of generated moves that are legal given the position.- **Win-rate / Elo proxy**: Play matches against a fixed baseline agent and report win/draw/loss and Elo-like estimates.- **Human preference / qualitative eval**: human raters judge helpfulness, fluency, and chess correctness in dialog samples.If you want, run a small evaluation pipeline and paste the results here so this section can be updated.---## Safety & biases- The model can generate incorrect or misleading chess content. Verify generated moves with a chess engine before acting on them.- As an autoregressive language model, it may reproduce biases or toxic language present in the training data. Use standard moderation / filtering if deploying publicly.- Avoid exposing the model as a canonical authority on chess positions or instructing users to rely on it without verification.---
README.md+110-54