Skip to content

Commit ac4239f

Browse files
committed
Adjusting GPU Batch Size
1 parent 849c1dc commit ac4239f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

py_css/models/baseline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import models.base as base_module
22
import models.T5Rewriter as t5_rewriter
33

4-
from typing import List, Tuple
4+
from typing import Tuple
55

66
import pandas as pd
77
import pyterrier as pt
88
from pyterrier_t5 import MonoT5ReRanker, DuoT5ReRanker
99

1010
import torch
1111

12-
BATCH_SIZE = 128 if torch.cuda.is_available() else 8
12+
BATCH_SIZE = 64 if torch.cuda.is_available() else 8
1313

1414

1515
class Baseline(base_module.Pipeline):

py_css/models/baseline_prf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import models.base as base_module
22
import models.T5Rewriter as t5_rewriter
33

4-
from typing import List, Tuple
4+
from typing import Tuple
55

66
import pandas as pd
77
import pyterrier as pt
88
from pyterrier_t5 import MonoT5ReRanker, DuoT5ReRanker
99

1010
import torch
1111

12-
BATCH_SIZE = 128 if torch.cuda.is_available() else 8
12+
BATCH_SIZE = 64 if torch.cuda.is_available() else 8
1313

1414

1515
class BaselinePRF(base_module.Pipeline):

0 commit comments

Comments
 (0)