ka
commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
license_name: none
|
| 4 |
-
license_link: LICENSE
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: none
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- chess
|
| 9 |
+
- alpaca
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
Made on the basis of lichess player profile. Not recommended for use.
|
| 13 |
+
|
| 14 |
+
Uploaded to train claudia_bot for its LLM-based chess engine.
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
system_msg = (
|
| 18 |
+
“You are a chess engine. Only respond with one legal move in UCI format.”
|
| 19 |
+
)
|
| 20 |
+
user_msg = (
|
| 21 |
+
f “FEN: {fen}\n”
|
| 22 |
+
f “Legal moves: {legal_moves_str}{n}”
|
| 23 |
+
f “{metadata}\n\n.”
|
| 24 |
+
“Pick the single best move from the list. Output only the UCI (no explanation).”
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
payload = {
|
| 28 |
+
“messages": [
|
| 29 |
+
{ “role”: “system”, ‘content’: system_msg }
|
| 30 |
+
{ “role”: “user”, ‘content’: user_msg},
|
| 31 |
+
],
|
| 32 |
+
{ “mode”: “instruct”,
|
| 33 |
+
“instruction_template": ‘Alpaca’,
|
| 34 |
+
“max_new_tokens": 10,
|
| 35 |
+
“temperature": 0.05,
|
| 36 |
+
“top_p": 1.0,
|
| 37 |
+
# “stop”: [“\n”]
|
| 38 |
+
}
|