forked from Kolkir/code2seq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (32 loc) · 983 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.8'
services:
code2seq_comments:
build:
context: ""
dockerfile: Dockerfile
image: ciselab/code2seq:latest
volumes:
# source on local machine: place in container
- ./models:/app/code2seq/models
- ./datasets/codesearchnet/raw:/app/code2seq/datasets/codesearchnet/raw:ro
- ./datasets/codesearchnet/preprocessed:/app/code2seq/datasets/codesearchnet/preprocessed:rw
environment:
dataset: "codesearchnet"
variant: "comments"
# Preprocessing variables
preprocess: true
includeComments: true
excludeStopwords: true
useTfidf: false
numberOfTfidfKeywords: "50"
# Training variables
train: true
# There has to ba an existing model for the following to work
continueTrainingFromCheckpoint: false
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]