Edit readme
Browse files
README.md
CHANGED
@@ -9,4 +9,22 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
+
This chatbot was created as part of the lab assignment in **ID2223 - Scalable Machine Learning**. The premise of the task was to finetune an existing model and to display it in the UI.
|
13 |
+
|
14 |
+
Our basemodel is **unsloth/Llama-3.2-3B-Instruct**. Our hyperparameters for the fine tuning were:
|
15 |
+
|
16 |
+
- r=4
|
17 |
+
- lora_alpha=8
|
18 |
+
- lora_dropout=0.8
|
19 |
+
|
20 |
+
Higher ranks or lower dropout rates led to massive overfitting which was explored through trial and error.
|
21 |
+
|
22 |
+
The datasource used for the fine tuning was a chess dataset containing chess games and their respective average elo. The dataset can be found [here](https://huggingface.co/datasets/pjarbas312/chessllm).
|
23 |
+
It roughly contains the same amount of data points as the FineTome 100k dataset.
|
24 |
+
|
25 |
+
The idea is to fine tune the model so that it can recognize chess games and make predictions on them. The base model tends to hallucinate when given a chess game not understanding the context whilst the fine tuned version recognizes the chess game and guesses the elo.
|
26 |
+
With chess gaining popularity and especially in the wake of the world chess championship it is a useful addition in our opinion.
|
27 |
+
|
28 |
+
As the fine tuning takes some time and GPUs are not always available we checkpoint the progress after a certain amount of steps enabling us to resume the training if it was stopped abruptly.
|
29 |
+
|
30 |
+
For the frontend we decided to use Gradio and its built-in components to display the chatbot. Additionally to the chatbot ui we integrated a chess chatbox which accepts chess games in the format displayed in the placeholder, as well as a chessboard which shows the moves that were played in that chess match. An example dataset containing chess moves can be found [here](https://huggingface.co/datasets/mlabonne/chessllm).
|