saridormi commited on
Commit
7e21cbb
β€’
1 Parent(s): d4e7701

Add model card

Browse files
Files changed (1) hide show
  1. README.md +56 -0
README.md CHANGED
@@ -1,3 +1,59 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - code
5
+ - en
6
+ datasets:
7
+ - saridormi/commit-chronicle
8
+ tags:
9
+ - code
10
+ - commit_message_generation
11
  ---
12
+
13
+ # CMG/CMC: CodeT5 (with history)
14
+
15
+ This is the checkpoint for [CodeT5](https://huggingface.co/Salesforce/codet5-base) model, fine-tuned for the commit message generation (and/or completion) task as part of the paper "From Commit Message Generation to History-Aware Commit Message Completion", ASE 2023.
16
+
17
+ ## Details
18
+
19
+ > πŸ” For further details, please refer to:
20
+ > * **Paper**: TODO
21
+ > * **Repository**: [https://github.com/JetBrains-Research/commit_message_generation](https://github.com/JetBrains-Research/commit_message_generation)
22
+
23
+
24
+ * This model is based on [`Salesforce/codet5-base`](https://huggingface.co/Salesforce/codet5-base) checkpoint from πŸ“œ [CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation](https://aclanthology.org/2021.emnlp-main.685/).
25
+ * This model was trained with commit diffs as well as WITH commit message history.
26
+ * This model was trained on the CommitChronicle dataset introduced in our study.
27
+ * Our hyperparameter setting is mostly based on πŸ“œ [RACE: Retrieval-augmented Commit Message Generation](https://aclanthology.org/2022.emnlp-main.372/).
28
+ The exact values are provided below:
29
+
30
+ | Hyperparameter | Value |
31
+ |:--------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------:|
32
+ | Encoder context max length | 512 |
33
+ | Decoder context max length | 512 |
34
+ | Number of training epochs | 1 |
35
+ | Batch size | 32 |
36
+ | Optimizer | [AdamW](https://pytorch.org/docs/1.12/generated/torch.optim.AdamW.html?highlight=adamw#torch.optim.AdamW) |
37
+ | Warmup | [Linear](https://huggingface.co/docs/transformers/v4.21.3/en/main_classes/optimizer_schedules#transformers.get_linear_schedule_with_warmup) |
38
+ | Number of warmup steps | 100 |
39
+ | Peak learning rate | 0.00002 |
40
+
41
+
42
+ ## Available checkpoints
43
+
44
+ We also released checkpoints for other models fine-tuned as part of our study.
45
+
46
+ * Models trained *with commit message history*:
47
+ * **CodeT5:** πŸ€— [`JetBrains-Research/cmg-codet5-with-history`](https://huggingface.co/JetBrains-Research/cmg-codet5-with-history) (this model)
48
+ * **CodeReviewer:** πŸ€— [`JetBrains-Research/cmg-codereviewer-with-history`](https://huggingface.co/JetBrains-Research/cmg-codereviewer-with-history)
49
+ * **RACE:** πŸ€— [`JetBrains-Research/cmg-race-with-history`](https://huggingface.co/JetBrains-Research/cmg-race-with-history)
50
+ * Models trained *without commit message history*:
51
+ * **CodeT5:** πŸ€— [`JetBrains-Research/cmg-codet5-without-history`](https://huggingface.co/JetBrains-Research/cmg-codet5-without-history)
52
+ * **CodeReviewer:** πŸ€— [`JetBrains-Research/cmg-codereviewer-without-history`](https://huggingface.co/JetBrains-Research/cmg-codereviewer-without-history)
53
+ * **RACE:** πŸ€— [`JetBrains-Research/cmg-race-without-history`](https://huggingface.co/JetBrains-Research/cmg-race-without-history)
54
+
55
+ ## Citation
56
+
57
+ ```
58
+ TODO
59
+ ```