DrishtiSharma
commited on
Commit
•
e91a408
1
Parent(s):
5f30059
End of training
Browse files
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama2
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: codellama/CodeLlama-7b-hf
|
9 |
+
model-index:
|
10 |
+
- name: codellama-7b-text-to-sql
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# codellama-7b-text-to-sql
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.4224
|
22 |
+
- Rouge Scores: {'rouge1': 0.9523274691414706, 'rouge2': 0.8974742261714255, 'rougeL': 0.9171288478946306, 'rougeLsum': 0.9523427810006704}
|
23 |
+
- Bleu Scores: [0.9655707421980068, 0.9566701190306537, 0.9459215028465041, 0.9346533822146271]
|
24 |
+
- Gen Len: 138.6233
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- learning_rate: 0.0002
|
44 |
+
- train_batch_size: 2
|
45 |
+
- eval_batch_size: 2
|
46 |
+
- seed: 42
|
47 |
+
- gradient_accumulation_steps: 2
|
48 |
+
- total_train_batch_size: 4
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: cosine
|
51 |
+
- lr_scheduler_warmup_ratio: 0.03
|
52 |
+
- num_epochs: 3
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge Scores | Bleu Scores | Gen Len |
|
57 |
+
|:-------------:|:-----:|:-----:|:---------------:|:---------------------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------:|:--------:|
|
58 |
+
| 0.4229 | 1.0 | 4800 | 0.4162 | {'rouge1': 0.9506510098188024, 'rouge2': 0.8949972495187106, 'rougeL': 0.9142255494550289, 'rougeLsum': 0.9506551339456668} | [0.9637759028147137, 0.9546609970402782, 0.9437656479747901, 0.9323669423057117] | 138.6233 |
|
59 |
+
| 0.3314 | 2.0 | 9600 | 0.4004 | {'rouge1': 0.9524326989909003, 'rouge2': 0.8987509624898048, 'rougeL': 0.9179414410323365, 'rougeLsum': 0.9524550499725172} | [0.9652102001679345, 0.9563139443363083, 0.9456856232691524, 0.9345677892198804] | 138.6233 |
|
60 |
+
| 0.2666 | 3.0 | 14400 | 0.4224 | {'rouge1': 0.9523274691414706, 'rouge2': 0.8974742261714255, 'rougeL': 0.9171288478946306, 'rougeLsum': 0.9523427810006704} | [0.9655707421980068, 0.9566701190306537, 0.9459215028465041, 0.9346533822146271] | 138.6233 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- PEFT 0.7.2.dev0
|
66 |
+
- Transformers 4.36.2
|
67 |
+
- Pytorch 2.1.2+cu121
|
68 |
+
- Datasets 2.16.1
|
69 |
+
- Tokenizers 0.15.2
|