Showing
4 changed files
with
27 additions
and
4 deletions
... | @@ -46,10 +46,10 @@ Recommended Commit Message : Remove unused imports | ... | @@ -46,10 +46,10 @@ Recommended Commit Message : Remove unused imports |
46 | To solve this problem, use a new embedding called [`patch_type_embeddings`](https://github.com/graykode/commit-autosuggestions/blob/master/commit/model/diff_roberta.py#L40) that can distinguish added and deleted, just as the sample et al, 2019 (XLM) used language embeddeding. (1 for added, 2 for deleted.) | 46 | To solve this problem, use a new embedding called [`patch_type_embeddings`](https://github.com/graykode/commit-autosuggestions/blob/master/commit/model/diff_roberta.py#L40) that can distinguish added and deleted, just as the sample et al, 2019 (XLM) used language embeddeding. (1 for added, 2 for deleted.) |
47 | 47 | ||
48 | ### Language support | 48 | ### Language support |
49 | -| Language | Added | Diff | Data(Diff) | Weights | | 49 | +| Language | Added | Diff | Data(Only Diff) | Weights | |
50 | | :------------- | :---: | :---:| :---: | :---:| | 50 | | :------------- | :---: | :---:| :---: | :---:| |
51 | -| Python | ✅ | ✅ | [link](https://drive.google.com/drive/folders/1_8lQmzTH95Nc-4MKd1RP3x4BVc8tBA6W?usp=sharing) | [link](https://drive.google.com/drive/folders/1OwM7_FiLiwVJAhAanBPWtPw3Hz3Dszbh?usp=sharing) | | 51 | +| Python | ✅ | ✅ | [423k](https://drive.google.com/drive/folders/1_8lQmzTH95Nc-4MKd1RP3x4BVc8tBA6W?usp=sharing) | [Link](https://drive.google.com/drive/folders/1OwM7_FiLiwVJAhAanBPWtPw3Hz3Dszbh?usp=sharing) | |
52 | -| JavaScript | ⬜ | ⬜ | ⬜ | ⬜ | | 52 | +| JavaScript | ✅ | ✅ | [514k](https://drive.google.com/drive/folders/1-Hv0VZWSAGqs-ewNT6NhLKEqDH2oa1az?usp=sharing) | [Link](https://drive.google.com/drive/folders/1Jw8vXfxUXsfElga_Gi6e7Uhfc_HlmOuD?usp=sharing) | |
53 | | Go | ⬜ | ⬜ | ⬜ | ⬜ | | 53 | | Go | ⬜ | ⬜ | ⬜ | ⬜ | |
54 | | JAVA | ⬜ | ⬜ | ⬜ | ⬜ | | 54 | | JAVA | ⬜ | ⬜ | ⬜ | ⬜ | |
55 | | Ruby | ⬜ | ⬜ | ⬜ | ⬜ | | 55 | | Ruby | ⬜ | ⬜ | ⬜ | ⬜ | |
... | @@ -57,7 +57,7 @@ To solve this problem, use a new embedding called [`patch_type_embeddings`](http | ... | @@ -57,7 +57,7 @@ To solve this problem, use a new embedding called [`patch_type_embeddings`](http |
57 | * ✅ — Supported | 57 | * ✅ — Supported |
58 | * ⬜ - N/A ️ | 58 | * ⬜ - N/A ️ |
59 | 59 | ||
60 | -We plan to slowly conquer languages that are not currently supported. However, I also need to use expensive GPU instances of AWS or GCP to train about the above languages. Please do a simple sponsor for this! | 60 | +We plan to slowly conquer languages that are not currently supported. However, I also need to use expensive GPU instances of AWS or GCP to train about the above languages. Please do a simple sponsor for this! Add data is [CodeSearchNet dataset](https://drive.google.com/uc?id=1rd2Tc6oUWBo7JouwexW3ksQ0PaOhUr6h). |
61 | 61 | ||
62 | ### Quick Start | 62 | ### Quick Start |
63 | To run this project, you need a flask-based inference server (GPU) and a client (commit module). If you don't have a GPU, don't worry, you can use it through Google Colab. | 63 | To run this project, you need a flask-based inference server (GPU) and a client (commit module). If you don't have a GPU, don't worry, you can use it through Google Colab. | ... | ... |
docker/javascript/Dockerfile
0 → 100644
1 | +FROM nvcr.io/nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04 | ||
2 | +LABEL maintainer="nlkey2022@gmail.com" | ||
3 | + | ||
4 | +RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \ | ||
5 | + && DEBIAN_FRONTEND=noninteractive apt-get -qqy install curl python3-pip git \ | ||
6 | + && rm -rf /var/lib/apt/lists/* | ||
7 | + | ||
8 | +ARG PYTORCH_WHEEL="https://download.pytorch.org/whl/cu101/torch-1.6.0%2Bcu101-cp36-cp36m-linux_x86_64.whl" | ||
9 | +ARG ADDED_MODEL="1-F68ymKxZ-htCzQ8_Y9iHexs2SJmP5Gc" | ||
10 | +ARG DIFF_MODEL="1-39rmu-3clwebNURMQGMt-oM4HsAkbsf" | ||
11 | + | ||
12 | +RUN git clone https://github.com/graykode/commit-autosuggestions.git /app/commit-autosuggestions \ | ||
13 | + && cd /app/commit-autosuggestions | ||
14 | + | ||
15 | +WORKDIR /app/commit-autosuggestions | ||
16 | + | ||
17 | +RUN pip3 install ${PYTORCH_WHEEL} gdown | ||
18 | +RUN gdown https://drive.google.com/uc?id=${ADDED_MODEL} -O weight/javascript/added/ | ||
19 | +RUN gdown https://drive.google.com/uc?id=${DIFF_MODEL} -O weight/javascript/diff/ | ||
20 | + | ||
21 | +RUN pip3 install -r requirements.txt | ||
22 | + | ||
23 | +ENTRYPOINT ["python3", "app.py", "--load_model_path", "./weight/javascript/"] |
File moved
File moved
-
Please register or login to post a comment