Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,61 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: apache-2.0
|
5 |
+
datasets:
|
6 |
+
- nov3630/Data4RLCoder
|
7 |
+
---
|
8 |
+
|
9 |
+
# Model Card for RLRetriever
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
# Model Details
|
14 |
+
|
15 |
+
## Model Description
|
16 |
+
RLRetriever is a retriever for repository-level code completion which disregard seemingly useful yet ultimately unhelpful reference code snippets, focusing on those more likely to contribute to accurate code generation.
|
17 |
+
|
18 |
+
- **Developed by:** Sun Yat-sen University & Huawei Cloud Computing Technologies Co., Ltd.
|
19 |
+
- **Shared by [Optional]:** Hugging Face
|
20 |
+
- **Model type:** Feature Engineering
|
21 |
+
- **Language(s) (NLP):** en
|
22 |
+
- **License:** Apache-2.0
|
23 |
+
- **Related Models:**
|
24 |
+
- **Parent Model:** RoBERTa
|
25 |
+
- **Resources for more information:**
|
26 |
+
- [Associated Paper](https://arxiv.org/abs/2407.19487)
|
27 |
+
|
28 |
+
|
29 |
+
# Citation
|
30 |
+
|
31 |
+
|
32 |
+
**BibTeX:**
|
33 |
+
```
|
34 |
+
@misc{wang2024rlcoderreinforcementlearningrepositorylevel,
|
35 |
+
title={RLCoder: Reinforcement Learning for Repository-Level Code Completion},
|
36 |
+
author={Yanlin Wang and Yanli Wang and Daya Guo and Jiachi Chen and Ruikai Zhang and Yuchi Ma and Zibin Zheng},
|
37 |
+
year={2024},
|
38 |
+
eprint={2407.19487},
|
39 |
+
archivePrefix={arXiv},
|
40 |
+
primaryClass={cs.SE},
|
41 |
+
url={https://arxiv.org/abs/2407.19487},
|
42 |
+
}
|
43 |
+
```
|
44 |
+
|
45 |
+
|
46 |
+
# How to Get Started with the Model
|
47 |
+
|
48 |
+
Use the code below to get started with the model.
|
49 |
+
|
50 |
+
<details>
|
51 |
+
<summary> Click to expand </summary>
|
52 |
+
|
53 |
+
```python
|
54 |
+
from transformers import AutoTokenizer, AutoModel
|
55 |
+
|
56 |
+
tokenizer = AutoTokenizer.from_pretrained("nov3630/RLRetriever")
|
57 |
+
|
58 |
+
model = AutoModel.from_pretrained("nov3630/RLRetriever")
|
59 |
+
|
60 |
+
```
|
61 |
+
</details>
|