Skip to content

Commit ed4dcea

Browse files
committed
Mark on Batch Size
1 parent 97ff98b commit ed4dcea

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,11 @@ CodeBert_CodeToText_Experiment_0_1 | ./entrypoint.sh: line 200: syntax error: u
9595
This is due to windows changing the line-breaks / file encodings. Thanks windows.
9696
**Easy Solution**: run `dos2unix entrypoint.sh` and rebuild the container.
9797
Its might easier/faster to pull the image from this repository, or you have to [edit the entrypoint to be compatible with windows](https://askubuntu.com/questions/966488/how-do-i-fix-r-command-not-found-errors-running-bash-scripts-in-wsl).
98+
99+
```
100+
xxx | RuntimeError: CUDA out of memory. Tried to allocate 62.00 MiB (GPU 0; 12.00 GiB total capacity; 10.57 GiB already allocated; 0 bytes free; 10.71 GiB reserved in total by PyTorch)
101+
```
102+
103+
This happens in old Pytorch versions.
104+
105+
Reduce batch size. To the best of my knowledge, nothing else can be done about this in old pytorch versions.

docker-compose-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ services:
77
- ./dataset/java/:/dataset:ro
88
- ./compose_output:/experiment/output
99
environment:
10-
epochs: 5
10+
epochs: 10
1111
lang: python
1212
train_file: /dataset/train.jsonl
1313
valid_file: /dataset/valid.jsonl
1414
test_file: /dataset/test.jsonl
15-
batch_size: 16
15+
batch_size: 8
1616
oom_kill_disable: true
1717
deploy:
1818
resources:

0 commit comments

Comments
 (0)