Skip to content

Commit

Permalink
🐛 Change Std import to avoid torch pin
Browse files Browse the repository at this point in the history
Signed-off-by: Evaline Ju <[email protected]>
  • Loading branch information
evaline-ju committed Apr 24, 2024
1 parent cb9a51a commit b608e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion caikit_nlp/toolkit/torch_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

# Third Party
from torch import cuda
from torch.distributed.launcher.api import LaunchConfig, Std
from torch.distributed.elastic.multiprocessing.api import Std
from torch.distributed.launcher.api import LaunchConfig
import torch.distributed as dist

# First Party
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"scipy>=1.8.1",
"sentence-transformers>=2.3.1,<2.4.0",
"tokenizers>=0.13.3",
"torch>=2.0.1,<2.3.0",
"torch>=2.0.1",
"tqdm>=4.65.0",
"transformers>=4.32.0",
"peft==0.6.0",
Expand Down

0 comments on commit b608e75

Please sign in to comment.