Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vpj committed May 3, 2022
1 parent dd30185 commit 821f247
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/neox/evaluation/dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""

import torch
from labml.logger import inspect
from torch import nn

from neox.evaluation import run_eval_harness
Expand All @@ -29,4 +28,4 @@ def forward(self, x: torch.Tensor):


if __name__ == '__main__':
inspect(run_eval_harness(DummyModel(50_432), 'dummy', ['lambada']), _expand=True, _n=-1)
print(run_eval_harness(DummyModel(50_432), 'dummy', ['lambada']))
3 changes: 1 addition & 2 deletions src/neox/evaluation/half_precision.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import torch
from labml import monit
from labml.logger import inspect
from torch import nn

from neox.evaluation import run_eval_harness
Expand All @@ -12,4 +11,4 @@
with monit.section('Sequential'):
model = nn.Sequential(*layers).half().to(torch.device('cuda:0'))

inspect(run_eval_harness(model, 'half_precision', []), _expand=True, _n=-1)
print(run_eval_harness(model, 'half_precision', []))
3 changes: 1 addition & 2 deletions src/neox/evaluation/pipeline_parallel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fairscale
import torch
from labml import monit
from labml.logger import inspect
from torch import nn

from neox.evaluation import run_eval_harness
Expand All @@ -25,4 +24,4 @@
devices=devices,
chunks=4)

inspect(run_eval_harness(model, 'pipeline_parallel', []), _expand=True, _n=-1)
print(run_eval_harness(model, 'pipeline_parallel', []))

0 comments on commit 821f247

Please sign in to comment.