thomasw21
commited on
Commit
·
69b5d09
1
Parent(s):
227ad5d
Use a lot bigger batch size
Browse files
pmd.py
CHANGED
|
@@ -93,9 +93,11 @@ class DatasetsLoader(BaseLoader):
|
|
| 93 |
self.dataset_name = dataset_name
|
| 94 |
self.config_name = config_name
|
| 95 |
self.num_proc = num_proc
|
| 96 |
-
# In order to not have memory explode we define a batch size per proc
|
| 97 |
-
self.batch_size_per_proc = batch_size // self.num_proc
|
| 98 |
-
assert self.batch_size_per_proc >= 1
|
|
|
|
|
|
|
| 99 |
|
| 100 |
@abstractmethod
|
| 101 |
def cast_to_pmd_features(self, row: Dict) -> List[Dict[str, Any]]:
|
|
|
|
| 93 |
self.dataset_name = dataset_name
|
| 94 |
self.config_name = config_name
|
| 95 |
self.num_proc = num_proc
|
| 96 |
+
# # In order to not have memory explode we define a batch size per proc
|
| 97 |
+
# self.batch_size_per_proc = batch_size // self.num_proc
|
| 98 |
+
# assert self.batch_size_per_proc >= 1
|
| 99 |
+
|
| 100 |
+
self.batch_size_per_proc = batch_size
|
| 101 |
|
| 102 |
@abstractmethod
|
| 103 |
def cast_to_pmd_features(self, row: Dict) -> List[Dict[str, Any]]:
|