File size: 3,938 Bytes
7897d61
8db1e0a
 
 
 
 
7897d61
8db1e0a
 
 
7897d61
 
8db1e0a
 
 
 
 
7897d61
8db1e0a
7897d61
8db1e0a
 
 
 
7897d61
8db1e0a
 
 
7897d61
8db1e0a
 
7897d61
8db1e0a
 
 
 
 
 
 
7897d61
8db1e0a
 
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
34
35
36
37
38
39
40
41
42
---
datasets:
- Mykes/rus_med_dialogues
language:
- ru
pipeline_tag: question-answering
tags:
- biology
- chemistry
- medical
---

## Supervised Fine-tuning of gemma-7b
I used unsloth lib, unsloth/gemma-7b-bnb-4bit, rus_med_dialogues dataset
10 epochs, 2560 training steps on 1 x RTX 4090
Training time was about 35 minutes
The Training Loss in the end was 0.0939

## Parameters:

`Unsloth: Fast Gemma patching release 2024.7`
`GPU: NVIDIA GeForce RTX 4090. Max memory: 23.643 GB. Platform = Linux.`
`Pytorch: 2.2.0+cu121. CUDA = 8.9. CUDA Toolkit = 12.1.`
`Bfloat16 = TRUE. FA [Xformers = 0.0.24. FA2 = True]`

### Example of answer before finetuning:
**input:**
*'<bos>Below is the context which is your conversation history and the last user question. Write a response according the context and question. ### Context: user: У меня появились прыщи на лице. Я уже несколько дней пользуюсь этим средством, но они не проходят. Что мне делать? assistant: Я понимаю, что это может быть неприятно. Прыщи - это очень распространенная проблема, и у многих людей возникают трудности с их лечением. Возможно, стоит обратиться к дерматологу или косметологу, чтобы они правильно диагностировали причину прыщей и назначили подходящее лечение. ### Question: А можно ли лечить прыщи народными средствами?`*

**output:**
`### Response: ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________'

### After 10 epochs:
**input**
*<bos>Below is the context which is your conversation history and the last user question. Write a response according the context and question.*
*### Context: user: Недавно мне делали операцию, а рана до сих пор не заживает? assistant: Я понимаю, что это может быть неприятно. Сколько времени прошло с момента операции.*
*### Question: Месяц. Это сильно плохо?*
**output:**
### Response: 1 месяц - это не так уж и много. В среднем раны заживают за 2-3 месяца. Но если Вы чувствуете сильную боль или не литров, обязательно обратитесь к своему хирургу для проверки.

# Disclaimer
The data provided is solely for research purposes. It may include inaccuracies, potentially harmful content, or biases, and we disclaim any responsibility for these issues. Users should assess the data's accuracy and appropriateness before utilizing it. The opinions and views represented in the data do not necessarily align with those of the author.