fenchri commited on
Commit
efd0e4e
1 Parent(s): 7aa8b70

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - huawei-noah/python_text2code
4
+ tags:
5
+ - python
6
+ - code
7
+ ---
8
+
9
+ # Model Card for pangu-CodeCLM-full-300m
10
+
11
+ - **Repository:** https://github.com/huawei-noah/noah-research/tree/master/NLP/text2code_mrpt
12
+ - **Paper:** https://aclanthology.org/2024.eacl-long.72.pdf
13
+
14
+ ## Model Description
15
+
16
+ This model is a PanGu-Alpha model further trained on text-to-code pairs
17
+ collected from public github repositories.
18
+ Training was performed with the CodeCLM objective, i.e. causal language modeling calculating loss only over code tokens and full embedding separation (all tokens are asssigned different embeddings).
19
+
20
+ In order to use the model, first download it from the hub and have a look at the [evaluation section](https://github.com/huawei-noah/noah-research/blob/master/NLP/text2code_mrpt/README.md#evaluation).
21
+
22
+
23
+ ## Citation [optional]
24
+
25
+ **BibTeX:**
26
+
27
+ ```html
28
+ @inproceedings{christopoulou-etal-2024-text,
29
+ title = "Text-to-Code Generation with Modality-relative Pre-training",
30
+ author = "Christopoulou, Fenia and
31
+ Zhang, Guchun and
32
+ Lampouras, Gerasimos",
33
+ editor = "Graham, Yvette and
34
+ Purver, Matthew",
35
+ booktitle = "Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers)",
36
+ month = mar,
37
+ year = "2024",
38
+ address = "St. Julian{'}s, Malta",
39
+ publisher = "Association for Computational Linguistics",
40
+ url = "https://aclanthology.org/2024.eacl-long.72",
41
+ pages = "1194--1208",
42
+ abstract = "Large pre-trained language models have recently been expanded and applied to programming language tasks with great success, often through further pre-training of a strictly-natural language model{--}where training sequences typically contain both natural and (linearised) programming language. Such approaches effectively map both modalities of the sequence into the same embedding space. However, programming language keywords (e.g. {``}while{''}) often have very strictly defined semantics. As such, transfer learning from their natural language usage may not necessarily be beneficial to their code application and vise versa. Assuming an already pre-trained language model, in this work we investigate how sequence tokens can be adapted and represented differently, depending on which modality they belong to, and to the ultimate benefit of the downstream task. We experiment with separating embedding spaces between modalities during further model pre-training with modality-relative training objectives. We focus on text-to-code generation and observe consistent improvements across two backbone models and two test sets, measuring pass@$k$ and a novel incremental variation.",
43
+ }
44
+ ```
45
+
46
+ ## Model Card Authors [optional]
47
+
48
+ [Fenia Christopoulou](mailto:efstathia.christopoulou@huawei.com)
49
+