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
Update README.md
Browse files59 unmodified lines6061626364656659 unmodified lines# Get the best movemove = model.get_move_from_fen_no_thinking(fen, T=0.1, device=device)print(f"Predicted move: {move}")```## Requirements59 unmodified lines6061626364656667686970717273747576777879808159 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 value analysisvalue_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}")```## Requirements
README.md+16-1