Nero10578 commited on
Commit
334ddef
1 Parent(s): 7393edc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -41
README.md CHANGED
@@ -9,63 +9,55 @@ This is a fine tune of Mistral-7B-v0.1 on a very limited range of Sundanese lang
9
  This is a learning project for me where I just wanted to see if it's possible to teach a model a new language that it does not inherently support with just a QLora fine tune. It won't only speak sundanese but it just adds sundanese capability to the model that is to me impressive for the limited data and short amount of training time.
10
 
11
  Datasets used:
12
- Sundanese sources from this repo. Cleaned and deduped myself.
13
- https://github.com/w11wo/nlp-datasets
14
-
15
- Training Hyperparameters:
16
- load_in_4bit: true
17
- adapter: qlora
18
- sequence_len: 1024
19
- lora_r: 8
20
- lora_alpha: 32
21
- lora_dropout: 0.05
22
- lora_target_linear: true
23
- lora_fan_in_fan_out:
24
- lora_target_modules:
25
- - gate_proj
26
- - down_proj
27
- - up_proj
28
- - q_proj
29
- - v_proj
30
- - k_proj
31
- - o_proj
32
-
33
- gradient_accumulation_steps: 2
34
- micro_batch_size: 16
35
- num_epochs: 2
36
- optimizer: adamw_bnb_8bit
37
- lr_scheduler: cosine
38
- learning_rate: 0.0002
39
 
40
  Hardware/Software used:
41
- Windows WSL2
42
- Axolotl
43
- RTX 4090 24GB
44
 
45
  Parameters for example chat:
46
- temperature: 0.5
47
- top_p: 0.9
48
- top_k: 20
49
- repetition_penalty: 1.05
50
 
51
  Character for example chat:
52
- Context:
53
  Di handap ieu obrolan dina basa Sunda antara User jeung AI. Ieu te percakapan bahasa sunda jeung AI Large Language Model nu nga bantu jelema. AI ngan ngabales ku basa sunda. AI na jago ngajawab pertanyaan nu hese jeung mere saran. AI nuturkeun kahayang User.
54
- Greeting:
55
  Naon anu abdi tiasa ngabantosan anjeun?
56
 
57
  Example chat:
58
- AI
59
  Naon anu abdi tiasa ngabantosan anjeun?
60
 
61
- You
62
  pang jelaskeun naon balapan mobil formula 1 te
63
 
64
- AI
65
  Formula 1 mangrupa salah sahiji kompetisi mobil anu diadegkeun taun 1946, anu dipingpin ku Fédération Internationale de l'Automobile (FIA). Kompetisi ieu dilaksanakeun unggal usum ti bulan Maret nepi ka Nopémber. Balapan Formula 1 biasana dilakukeun di laporan anu panjangna kurang leuwih 5-7 km, anu mana mobil-mobil anu parigel dibawa ku tim-tim anu aya di dunia.
66
 
67
- You
68
  Ai fernando alonso te saha? Pang terangkeun
69
 
70
- AI
71
  Fernando Alonso nyaéta saorang pembalap asal Spanyol anu lahir tanggal 29 Juli 1981 di Oviedo, Asturias, Spanyol. Anjeuna mimiti karir profesionalna di taun 1999, nalika anjeuna meunang gelar juara GP2 Series taun 2000. Dina taun 2001, Alonso mimiti maén di Formula One, nalika anjeuna ditandatanganan kontrak ku Tim Minardi. Tapi, sabada dua kali balapan, anjeuna diganti ku Alexander Wurz. Taun 2003, Alonso ganti tim ka Tim Renault, anu mana anjeuna bisa nyitak rékor anyar minangka pembalap paling umurna anu bisa meunang podium di Grand Prix Monaco. Podium éta ogé jadi hiji-hijina podium anu didamel ku Alonso di musim 2003.
 
9
  This is a learning project for me where I just wanted to see if it's possible to teach a model a new language that it does not inherently support with just a QLora fine tune. It won't only speak sundanese but it just adds sundanese capability to the model that is to me impressive for the limited data and short amount of training time.
10
 
11
  Datasets used:
12
+ Sundanese sources from this repo that I cleaned, deduped and turned into raw corpus completion in jsonl format.
13
+ - https://github.com/w11wo/nlp-datasets
14
+
15
+ Training Hyperparameters are determined from trial and error multiple times and inspired by the Chinese LLaMa-Alpaca finetune
16
+ - https://github.com/ymcui/Chinese-LLaMA-Alpaca/wiki/Training-Details#preparation-vocabulary-expansion
17
+
18
+ - load_in_4bit: true
19
+ - adapter: qlora
20
+ - sequence_len: 1024
21
+ - lora_r: 8
22
+ - lora_alpha: 32
23
+ - lora_dropout: 0.05
24
+ - lora_target_modules: gate_proj, down_proj, up_proj, q_proj, v_proj, k_proj, o_proj
25
+ - gradient_accumulation_steps: 2
26
+ - micro_batch_size: 16
27
+ - num_epochs: 2
28
+ - optimizer: adamw_bnb_8bit
29
+ - lr_scheduler: cosine
30
+ - learning_rate: 0.0002
 
 
 
 
 
 
 
 
31
 
32
  Hardware/Software used:
33
+ - Windows WSL2
34
+ - Axolotl
35
+ - RTX 4090 24GB
36
 
37
  Parameters for example chat:
38
+ - temperature: 0.5
39
+ - top_p: 0.9
40
+ - top_k: 20
41
+ - repetition_penalty: 1.05
42
 
43
  Character for example chat:
44
+ - Context:
45
  Di handap ieu obrolan dina basa Sunda antara User jeung AI. Ieu te percakapan bahasa sunda jeung AI Large Language Model nu nga bantu jelema. AI ngan ngabales ku basa sunda. AI na jago ngajawab pertanyaan nu hese jeung mere saran. AI nuturkeun kahayang User.
46
+ - Greeting:
47
  Naon anu abdi tiasa ngabantosan anjeun?
48
 
49
  Example chat:
50
+ - AI:
51
  Naon anu abdi tiasa ngabantosan anjeun?
52
 
53
+ - You:
54
  pang jelaskeun naon balapan mobil formula 1 te
55
 
56
+ - AI:
57
  Formula 1 mangrupa salah sahiji kompetisi mobil anu diadegkeun taun 1946, anu dipingpin ku Fédération Internationale de l'Automobile (FIA). Kompetisi ieu dilaksanakeun unggal usum ti bulan Maret nepi ka Nopémber. Balapan Formula 1 biasana dilakukeun di laporan anu panjangna kurang leuwih 5-7 km, anu mana mobil-mobil anu parigel dibawa ku tim-tim anu aya di dunia.
58
 
59
+ - You:
60
  Ai fernando alonso te saha? Pang terangkeun
61
 
62
+ - AI:
63
  Fernando Alonso nyaéta saorang pembalap asal Spanyol anu lahir tanggal 29 Juli 1981 di Oviedo, Asturias, Spanyol. Anjeuna mimiti karir profesionalna di taun 1999, nalika anjeuna meunang gelar juara GP2 Series taun 2000. Dina taun 2001, Alonso mimiti maén di Formula One, nalika anjeuna ditandatanganan kontrak ku Tim Minardi. Tapi, sabada dua kali balapan, anjeuna diganti ku Alexander Wurz. Taun 2003, Alonso ganti tim ka Tim Renault, anu mana anjeuna bisa nyitak rékor anyar minangka pembalap paling umurna anu bisa meunang podium di Grand Prix Monaco. Podium éta ogé jadi hiji-hijina podium anu didamel ku Alonso di musim 2003.