Skip to content

Commit

Permalink
Merge branch 'parallel'
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdidc committed Aug 16, 2023
2 parents a2325b1 + 981cfeb commit 734f03b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
## History

### 1.5.0

* Custom classnames and templates
* support wds for captioning evaluation
* support imagenet-w
* support babel imagenet
* support chinese flickr30k/8k
* support sugar crepe (compositionality)
* support (optional) sharding evaluation based on rank, for parallel runs
* fix many issues

### 1.4.0

* Fix silent webdataset error-handling
Expand Down
2 changes: 1 addition & 1 deletion clip_benchmark/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def run(args):
if args.distributed:
local_rank, rank, world_size = world_info_from_env()
device = 'cuda:%d' % local_rank
torch.cuda.set_device(device)
else:
device = "cuda"
torch.cuda.set_device(device)
args.device = device
else:
args.device = "cpu"
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
torch>=1.8.1,<2
torchvision>=0.8.9,<2
torch>=1.8.1
torchvision>=0.8.9
tqdm>=2
scikit-learn>=1.0,<2
open_clip_torch>=0.2.1
Expand Down

0 comments on commit 734f03b

Please sign in to comment.