Skip to content

Commit

Permalink
Updated the version (#65)
Browse files Browse the repository at this point in the history
* changed the version
* Update trainer.py
  • Loading branch information
BAAI-OpenPlatform authored Jul 8, 2022
1 parent 4c2eb17 commit 3e66bf8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions flagai/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,9 @@ def get_dataloader(self, dataset, collate_fn, shuffle=False):
shuffle=shuffle)
else:
if self.env_type == 'deepspeed+mpu':
# num_replicas = self.world_size // mpu.get_model_parallel_world_size(
# )
# rank = self.rank // mpu.get_model_parallel_world_size()
# rank = mpu.get_model_parallel_rank()
rank = mpu.get_model_parallel_src_rank()

sampler = torch.utils.data.distributed.DistributedSampler(
dataset,
# num_replicas=num_replicas,
rank=rank,
shuffle=shuffle)
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="flagai",
version="v1.1.1",
version="v1.1.2",
description="FlagAI aims to help researchers and developers to freely train and test large-scale models for NLP tasks.",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 3e66bf8

Please sign in to comment.