File size: 653 Bytes
991c073 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
---
library_name: transformers
tags:
- chess
- llm-course
- chess-challenge
license: mit
---
# chess-littletestmodel
Chess model for LLM Course Challenge.
- **By**: [MDaytek](https://huggingface.co/MDaytek)
- **Params**: 790,560
- **Architecture**: GPT-2 with custom tokenizer
## Usage
The model uses a custom tokenizer. Load it with:
```python
from transformers import GPT2LMHeadModel, AutoConfig
import json
config = AutoConfig.from_pretrained("LLM-course/chess-littletestmodel")
model = GPT2LMHeadModel.from_pretrained("LLM-course/chess-littletestmodel", config=config)
# Load vocab
with open("vocab.json") as f:
vocab = json.load(f)
```
|