File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ source $(dirname "$0")/env_setup.sh
6
6
7
7
setup_build_env
8
8
install_core_all_tests
9
+ python3 -m pip install ray_lightning==0.2.0 # TODO Change this line once we support ray_lightning 0.3.0
9
10
10
11
cd core/
11
12
python3 -m pytest --junitxml=results.xml --runslow tests
Original file line number Diff line number Diff line change 49
49
50
50
tests_require = [
51
51
'pytest' ,
52
- 'ray_lightning>=0.2.0,<0.3.0' , # test ray lightning resource calculation
52
+ # TODO(Re-enable ray_lightning once it released 0.3.0) 'ray_lightning>=0.2.0,<0.3.0'
53
53
]
54
54
55
55
all_requires = []
Original file line number Diff line number Diff line change 30
30
'torch>=1.9,<1.13' ,
31
31
'torchvision<0.14.0' ,
32
32
'torchtext<0.14.0' ,
33
- 'fairscale>=0.4.5,<0.5.0 ' ,
33
+ 'fairscale>=0.4.5,<=0.4.6 ' ,
34
34
'scikit-image>=0.19.1,<0.20.0' ,
35
35
'smart_open>=5.2.1,<5.3.0' ,
36
36
'pytorch_lightning>=1.6.0,<1.7.0' ,
Original file line number Diff line number Diff line change @@ -1121,7 +1121,8 @@ def _top_k_average(
1121
1121
best_k_models_yaml_path = os .path .join (save_path , BEST_K_MODELS_FILE )
1122
1122
if os .path .exists (best_k_models_yaml_path ):
1123
1123
with open (best_k_models_yaml_path , "r" ) as f :
1124
- best_k_models = yaml .load (f , Loader = yaml .Loader )
1124
+ best_k_models = yaml .safe_load (f )
1125
+
1125
1126
else :
1126
1127
# In some cases, the training ends up too early (e.g., due to time_limit) so that there is
1127
1128
# no saved best_k model checkpoints. In that scenario, we won't perform any model averaging.
You can’t perform that action at this time.
0 commit comments