Run this model with HF Jobs
Run Maxlegrec/ChessBot 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 to fine-tune https://huggingface.co/Maxlegrec/ChessBot. 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/Maxlegrec/ChessBot 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.
Instructions to use Maxlegrec/ChessBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maxlegrec/ChessBot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Maxlegrec/ChessBot", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Maxlegrec/ChessBot", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload ChessBot Chess model
Browse filesFiles changed (2)
- .gitignoreAdded+125
- README.md+1-17
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125# Python cache files__pycache__/*.py[cod]*$py.class
# Distribution / packaging.Pythonbuild/develop-eggs/dist/downloads/eggs/.eggs/lib/lib64/parts/sdist/var/wheels/*.egg-info/.installed.cfg*.eggMANIFEST
# PyInstaller*.manifest*.spec
# Installer logspip-log.txtpip-delete-this-directory.txt
# Unit test / coverage reportshtmlcov/.tox/.nox/.coverage.coverage.*.cachenosetests.xmlcoverage.xml*.cover.hypothesis/.pytest_cache/
# Translations*.mo*.pot
# Django stuff:*.loglocal_settings.pydb.sqlite3
# Flask stuff:instance/.webassets-cache
# Scrapy stuff:.scrapy
# Sphinx documentationdocs/_build/
# PyBuildertarget/
# Jupyter Notebook.ipynb_checkpoints
# IPythonprofile_default/ipython_config.py
# pyenv.python-version
# celery beat schedule filecelerybeat-schedule
# SageMath parsed files*.sage.py
# Environments.env.venvenv/venv/ENV/env.bak/venv.bak/
# Spyder project settings.spyderproject.spyproject
# Rope project settings.ropeproject
# mkdocs documentation/site
# mypy.mypy_cache/.dmypy.jsondmypy.json
# Pyre type checker.pyre/
# IDE.vscode/.idea/*.swp*.swo*~
# OS.DS_Store.DS_Store?._*.Spotlight-V100.Trashesehthumbs.dbThumbs.db 43 unmodified lines444546474849505152535455565758596061626364656643 unmodified lines# Get the best movemove = model.get_move_from_fen_no_thinking(fen, T=0.1, device=device)print(f"Policy-based move: {move}")# Get the best move using valuevalue_move = model.get_best_move_value(fen, T=0, device=device)print(f"Value-based move: {value_move}")# Get position evaluationposition_value = model.get_position_value(fen, device=device)print(f"Position value [black_win, draw, white_win]: {position_value}")# Get move probabilitiesprobs = model.get_move_from_fen_no_thinking(fen, T=1, device=device, return_probs=True)top_moves = sorted(probs.items(), key=lambda x: x[1], reverse=True)[:5]print("Top 5 moves:")for move, prob in top_moves:print(f" {move}: {prob:.4f}")```## Requirements43 unmodified lines4445464748495043 unmodified lines# Get the best movemove = model.get_move_from_fen_no_thinking(fen, T=0.1, device=device)print(f"Predicted move: {move}")```## Requirements
.gitignoreAdded+125
README.md+1-17