|
Download README.md from Hakorr/Pena: direct link, hf CLI and curl.
- Browser
- Download file 6.94 kB
-
https://huggingface.co/Hakorr/Pena/resolve/main/README.md
- Command line
-
hf download hf://Hakorr/Pena/README.md
-
curl -L -o README.md https://huggingface.co/Hakorr/Pena/resolve/main/README.md
6.94 kB
| license: gpl-3.0 | |
| # Pena | |
| GGUF LoRA adapter for chess coaching. Pena adds chess-coaching fine-tuning. The base's not included. | |
| ## Base model | |
| Load `pena-lora.gguf` alongside the plain [Inkling-2-Mini-AD-IQ2_M.gguf](https://huggingface.co/AtomicChat/Inkling-2-Mini-GGUF/resolve/4f0c56af7e0c242e620be6394983d245b8c3fd27/Inkling-2-Mini-AD-IQ2_M.gguf). | |
| Do not pair this adapter with an already-uncensored base. The refusal-removal edit is already included in the adapter. | |
| ## Input format | |
| The custom A.C.A.S data covers plans, move explanations and comparisons, defense, tactics, positional and BinProp concepts, follow-up questions, game commentary, small talk and app help. It trains coaching responses grounded in supplied evidence, not a replacement chess search engine. | |
| Pena expects **chat messages containing a computed chess-facts packet**, not a FEN by itself. The format is `pcf/3p+pena-inkling-layout/1`. | |
| Send these messages in order: | |
| 1. **System:** the coach's instructions. | |
| 2. **System:** `Verified evidence:` followed by the PCF/3p board packet. | |
| 3. **User:** the current question, prefixed with `Player question:`. Keep the question-subject binding line when the input producer supplies one. | |
| For a follow-up, put the earlier user/assistant turns between messages 2 and 3. Let an Inkling-compatible runtime apply the base GGUF's chat template. Do not wrap the messages in Qwen/ChatML tokens yourself. | |
| ### Complete example | |
| This example has a White king on e1, a White pawn on e2 and a Black king on h8. White is to move. It contains the full current-board packet, generated by the A.C.A.S codec, with no engine search or invented scores. All values below are literal, so there are no missing variables to fill in. | |
| ```js | |
| const messages = [ | |
| { | |
| role: "system", | |
| content: "You are Pena, a chess coach. Use supplied evidence with exact actors and board frames. Cite only defined IDs. State when evidence is insufficient." | |
| }, | |
| { | |
| role: "system", | |
| content: `Verified evidence: | |
| C=now V=if H=past. Attacks!=safe PV!=forced O=omitted BINS absent=0. | |
| PCF/3p | |
| @F [C.status] C current - - w w - - - 0 1 0 0 0 | |
| @K C | |
| full 3 | |
| @I C | |
| [C.material] 1 0 1 1,0,0,0,0,1 0,0,0,0,0,1 | |
| @R C | |
| e1 wK @1 - - - e2 | |
| e2 wP @2 - e1 | |
| h8 bK @3 | |
| @G C | |
| e1 d1,d2,e2,f1,f2 | |
| e2 d3,f3 | |
| h8 g7,g8,h7 | |
| @L C | |
| e1 d1,d2,f1,f2 | |
| e2 e3,e4 | |
| h8 ~ | |
| @C C | |
| - | |
| @A C | |
| e1 d1,d2,f1,f2 07070400 | |
| e2 SAME 07080401 | |
| h8 SAME 07071014 | |
| @P C | |
| e2 110 e8 6 - - | |
| @S C | |
| d1 10 | |
| f1 10 | |
| d2 10 | |
| e2 10 | |
| f2 10 | |
| d3 1010 | |
| f3 1010 | |
| g7 01 | |
| h7 01 | |
| g8 01 | |
| @B C | |
| w 0 0 0 0 0 0 0 0 | |
| b -1 0 0 0 0 0 0 0 | |
| @BINS C | |
| w MAT | |
| b - | |
| @H C | |
| [Q1] location e2 wP | |
| [Q2] defense e2 - e1 | |
| @Y C | |
| [C.history] 1 0 0 0 0 1 8 | |
| @O 0 0 0 ? 0 0 10 1 0 0 0 0 0 0 0 0 0 0 ? ? 0 0 0` | |
| }, | |
| { | |
| role: "user", | |
| content: "CURRENT question-subject match: answerable.\nPlayer question: Is my pawn on e2 defended?" | |
| } | |
| ]; | |
| ``` | |
| A grounded answer could be: "Yes. Your king on e1 defends the pawn on e2. [Q2]" This illustrates the expected answer style, not a measured model response. | |
| ### Reading the packet | |
| `@R C` means "current-board piece relations follow". Each row has this order: | |
| ```text | |
| square piece entity enemyAttackers friendlyDefenders enemyTargets friendlyTargets | |
| ``` | |
| For example, `e2 wP @2 - e1` means a White pawn on e2, with stable piece ID `@2`, no enemy attackers and the king on e1 as its friendly defender. Missing trailing relation lists are known empty. `w`/`b` mean White/Black, and `P N B R Q K` mean pawn, knight, bishop, rook, queen and king. | |
| | Section | What it supplies | | |
| | --- | --- | | |
| | `@F` | Board/frame identity, whose turn it is, castling/en-passant rights, move counters and check/mate/stalemate flags | | |
| | `@K` | Coverage. `full 3` means all three pieces are included | | |
| | `@I` | Material totals and piece counts, not an engine evaluation | | |
| | `@R` / `@G` / `@L` | Piece relations, geometric controls and actual-turn legal moves | | |
| | `@C` / `@A` | Legal captures/local exchanges and activity/king-relative offsets | | |
| | `@P` | Pawn facts. `110` means passed, isolated, not doubled. `e8 6` is the promotion square and remaining ranks, not a promise of promotion in six moves | | |
| | `@S` | Counts of White/Black controls on squares, including pawn controls | | |
| | `@B` / `@BINS` | Heuristic profiles and binary motif flags. Unlisted BINS flags are false | | |
| | `@H` | Question-bound facts. `[Q2] defense e2 - e1` binds the pawn's defense to a citable reference | | |
| | `@Y` / `@O` | Recorded repetition/history information and evidence coverage/omissions | | |
| In packet cells, `-` means known empty, `?` means unknown, and `~` means not applicable. Boolean flags use `0`/`1`. `C` is the current board, `V` frames are conditional continuations and `H` frames are recorded history. | |
| Real positions need their own computed packets. Generate them with the matching [A.C.A.S](https://github.com/Psyyke/A.C.A.S) PCF input producer and codec rather than editing this example's numbers by hand. Packets with engine lines or history also carry their source-specific records. The training context limit was 8,192 tokens, including the target answer. | |
| ## Training | |
| This export comes from checkpoint step **570**. Trained on NVIDIA RTX PRO 6000 Blackwell Workstation Edition. | |
| | Item | Recorded value | | |
| | --- | --- | | |
| | Training examples | 9,111 | | |
| | Training dialogues / position groups | 4,933 / 3,973 | | |
| | Held-out validation / test examples | 486 / 500 | | |
| | Optimizer steps / examples per step | 570 / 16 | | |
| | Completed training | 9,120 example exposures, approximately one pass over the training split | | |
| | Tokens in one complete training-split pass | 60,570,576 sequence tokens, including 1,015,211 supervised target tokens | | |
| | LoRA training | Rank 16, alpha 32, dropout 0.05, learning rate 0.0001 | | |
| | GGUF adapter rank | 18 after including the rank-two refusal-removal edit | | |
| Training updated attention-projection adapters on the frozen OpenUncensored base. Only the final assistant target, including its role and end markers, received training loss. Earlier messages, including previous assistant replies, were masked. The validation and test splits were not used for gradient updates. | |
| ## Credits and terms | |
| - [Thinking Machines Lab](https://huggingface.co/thinkingmachines/Inkling-2-Mini/tree/7a67ae2314b44ef05c87fd1d4d311c58aaeb18f6): original Inkling 2 Mini model. | |
| - [AtomicChat](https://huggingface.co/AtomicChat/Inkling-2-Mini-GGUF/tree/4f0c56af7e0c242e620be6394983d245b8c3fd27): matching GGUF quantization. | |
| - [OpenUncensored](https://huggingface.co/OpenUncensored/Inkling-2-Mini-Uncensored/tree/748f78ee942acf376d4e11eac92f6c3034c84ddb): edited training base and refusal-removal modification. | |
| - **Ori Press and Alexander Golubev**: BinProp research and chess motifs used in Pena's concept evidence. [Explaining Chess and Go in Natural Language (2026)](https://arxiv.org/abs/2610.23166), [code and motif library](https://github.com/oripress/BinProp) (MIT). | |
| The Pena-specific contribution is licensed under GPLv3. |