Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deepspec/eval/base_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import torch
import torch.distributed as dist
from transformers import AutoTokenizer, DynamicCache
from transformers import DynamicCache

from deepspec.data.parser import encode_chat_messages
from deepspec.utils.sampling import (
Expand Down
1 change: 0 additions & 1 deletion deepspec/utils/distributed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import contextlib
import math
import os
import time
from datetime import timedelta
Expand Down
2 changes: 1 addition & 1 deletion scripts/data/prepare_target_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,6 @@ def main(local_rank: int):

if __name__ == "__main__":
if os.path.exists(".git"):
print(f"git status:", "\n\n".join(get_git_sha(detail_info=True)))
print("git status:", "\n\n".join(get_git_sha(detail_info=True)))
print("git diff:", get_git_diff())
torch.multiprocessing.spawn(main, nprocs=torch.cuda.device_count())
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def main(local_rank):

if __name__ == "__main__":
if os.path.exists(".git"):
print(f"git status:", "\n\n".join(get_git_sha(detail_info=True)))
print("git status:", "\n\n".join(get_git_sha(detail_info=True)))
print("git diff:", get_git_diff())
torch.multiprocessing.spawn(main, nprocs=torch.cuda.device_count())