Views
No views yet
best_move = argmax(scores)1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4# Load base model
5base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
6tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
7
8# Load LoRA adapter
9model = PeftModel.from_pretrained(base_model, "SBellilty/llm-chess-agent-v1")
10
11# Use with the official challenge environment
12# See: https://github.com/AIcrowd/global-chess-challenge-2025-starter-kit