Added few naming changes
Browse files- Readme.md +0 -0
- model_core/dataloader.py +1 -1
- scripts/train.py +2 -2
Readme.md
DELETED
|
Binary file (7.89 kB)
|
|
|
model_core/dataloader.py
CHANGED
|
@@ -3,7 +3,7 @@ import numpy as np
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
#Data loader
|
| 6 |
-
class
|
| 7 |
def __init__(self, B, T, process_rank, num_processes, split, master_process):
|
| 8 |
self.B = B
|
| 9 |
self.T = T
|
|
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
#Data loader
|
| 6 |
+
class DataLoader_1:
|
| 7 |
def __init__(self, B, T, process_rank, num_processes, split, master_process):
|
| 8 |
self.B = B
|
| 9 |
self.T = T
|
scripts/train.py
CHANGED
|
@@ -3,9 +3,9 @@ import os
|
|
| 3 |
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
| 4 |
|
| 5 |
from model_core.training import train_memgpt
|
| 6 |
-
from model_core.dataloader import
|
| 7 |
|
| 8 |
if __name__ == "__main__":
|
| 9 |
config_path = "configs/config.json"
|
| 10 |
print("Training starter")
|
| 11 |
-
train_memgpt(config_path=config_path,dataloader_class=
|
|
|
|
| 3 |
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
| 4 |
|
| 5 |
from model_core.training import train_memgpt
|
| 6 |
+
from model_core.dataloader import DataLoader_1
|
| 7 |
|
| 8 |
if __name__ == "__main__":
|
| 9 |
config_path = "configs/config.json"
|
| 10 |
print("Training starter")
|
| 11 |
+
train_memgpt(config_path=config_path,dataloader_class=DataLoader_1)
|