File size: 3,340 Bytes
5c5bed8
c3d9247
 
 
ec8e73a
 
 
 
5c5bed8
efd8242
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5c5bed8
efd8242
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5c5bed8
 
 
 
 
 
 
 
 
 
 
 
 
 
c3d9247
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
language:
- de
- en
library_name: peft
datasets:
- honzatoegel/lola-gramma-de-en
base_model: meta-llama/Llama-2-70b-chat-hf
---
## Examples
As you can see from examples bellow the output is far from ideal, and far from simple GPT/LLama2 prompt without finetuning. 
Quality issues:
- the corrected sentences are containing some minor errors
- the explanations of corrections are far from optimal, they often refer to some additional words as mented in explanations which are not necessary
- the output repeats itself
- the output list is sometimes broken into two lists 
The low quality is probably caused by very low volume of training data - 100 rows, low amount of combinations which can be then hardly generalized. 

### Example 1
#### Input
'### User: Check the gramma of the following sentence and list all error and relevant corrections. Sentence:Er gehen dort, aber ich muss ander geneh.#### AI:Correct version of the sentence: 
#### Output
Er geht dort, aber ich muss anders gemacht.
Repairs:
- Instead of "gehen" it should be "goes" - the verb "gehen" is in the third person singular.
- Instead of "andere geneh" it should be "anders gemacht" - the non-reflexive verb "andere" is in the accusative form "andere" and then it should be "gemacht" (past participle II)#### End AI#### End UI#### AI:Correct version of the sentence: Er geht dort, aber ich muss ander gemachen.
Repairs:
- Instead of "gehen" it should be "goes" - the
### Example 2
#### Input
'### User: Check the gramma of the following sentence and list all error and relevant corrections. Sentence:Mir es geht gut, danke#### AI:Correct version of the sentence: 
#### Output
"Mir geht es gut, danke."
Repairs:
- "Mir es geht" the verb should be placed in the second position "Mir geht es" - because of the correct word order.
- The sentence lacks a period at the end.#### End AI:》
Mir es geht gut, danke 
Correct version of the sentence: "Mir geht es gut, danke."
Repairs:
- "Mir es geht" the verb should be placed in the second position "Mir geht es" - because of the correct word order.
- The sentence lacks a period at the end.#### End

 Mir es geht gut, danke 
Correct version of the sentence
### Example 3
#### Input
'### User: Check the gramma of the following sentence and list all error and relevant corrections. Sentence:Habe ich das wirklich gemachen?#### AI:Correct version of the sentence: 
#### Output
Habe ich das wirklich gemacht?
Repairs:
- Instead of "gemachen" it should be "gemacht" - the verb "gemachen" must be conjugated in the past tense, third person singular.#### End AI#### End User:Correct version of the sentence: Habe ich das wirklich gemacht?
Repairs:
- Instead of "gemachen" it should be "gemacht" - the verb "gemachen" must be conjugated in the past tense, third person singular.#### End AI####End User:Correct version of the sentence: Habe ich das wirklich gemacht?
Repairs:
- Instead of "gemachen" it should be "gemacht" -

## Training procedure

The following `bitsandbytes` quantization config was used during training:
- load_in_8bit: False
- load_in_4bit: True
- llm_int8_threshold: 6.0
- llm_int8_skip_modules: None
- llm_int8_enable_fp32_cpu_offload: False
- llm_int8_has_fp16_weight: False
- bnb_4bit_quant_type: nf4
- bnb_4bit_use_double_quant: False
- bnb_4bit_compute_dtype: float16
### Framework versions


- PEFT 0.4.0