Skip to content

Commit

Permalink
Import from open_lm, no relative imports (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
achalddave authored Dec 9, 2023
1 parent 89e0824 commit 44e1f74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion open_lm/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from typing import List, Optional
from tqdm import tqdm

from .distributed import is_master
from open_lm.distributed import is_master


def remote_sync_s3(local_dir, remote_dir):
Expand Down
14 changes: 7 additions & 7 deletions open_lm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@

from open_lm.model import create_model
from open_lm.utils.transformers.hf_wrapper import create_wrapped_hf_model
from .data import get_data, get_wds_dataset
from .distributed import is_master, init_distributed_device, broadcast_object
from .logger import setup_logging
from .params import parse_args
from .scheduler import cosine_lr
from .train import train_one_epoch, evaluate
from .file_utils import (
from open_lm.data import get_data, get_wds_dataset
from open_lm.distributed import is_master, init_distributed_device, broadcast_object
from open_lm.logger import setup_logging
from open_lm.params import parse_args
from open_lm.scheduler import cosine_lr
from open_lm.train import train_one_epoch, evaluate
from open_lm.file_utils import (
pt_load,
check_exists,
start_sync_process,
Expand Down

0 comments on commit 44e1f74

Please sign in to comment.