@@ -2,10 +2,9 @@
|
|||||||
-r requirements-freqai.txt
|
-r requirements-freqai.txt
|
||||||
|
|
||||||
# Required for freqai-rl
|
# Required for freqai-rl
|
||||||
torch==2.1.2; python_version < '3.12'
|
torch==2.2.1
|
||||||
#until these branches will be released we can use this
|
gymnasium==0.29.1
|
||||||
gymnasium==0.29.1; python_version < '3.12'
|
stable_baselines3==2.2.1
|
||||||
stable_baselines3==2.2.1; python_version < '3.12'
|
sb3_contrib>=2.2.1
|
||||||
sb3_contrib>=2.0.0a9; python_version < '3.12'
|
|
||||||
# Progress bar for stable-baselines3 and sb3-contrib
|
# Progress bar for stable-baselines3 and sb3-contrib
|
||||||
tqdm==4.66.2
|
tqdm==4.66.2
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ def is_arm() -> bool:
|
|||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def patch_torch_initlogs(mocker) -> None:
|
def patch_torch_initlogs(mocker) -> None:
|
||||||
|
|
||||||
if is_mac() and not is_arm():
|
if is_mac():
|
||||||
# Mock torch import completely
|
# Mock torch import completely
|
||||||
import sys
|
import sys
|
||||||
import types
|
import types
|
||||||
@@ -41,7 +41,7 @@ def patch_torch_initlogs(mocker) -> None:
|
|||||||
module_name = 'torch'
|
module_name = 'torch'
|
||||||
mocked_module = types.ModuleType(module_name)
|
mocked_module = types.ModuleType(module_name)
|
||||||
sys.modules[module_name] = mocked_module
|
sys.modules[module_name] = mocked_module
|
||||||
elif not is_py12():
|
else:
|
||||||
mocker.patch("torch._logging._init_logs")
|
mocker.patch("torch._logging._init_logs")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ def can_run_model(model: str) -> None:
|
|||||||
if is_arm() and "Catboost" in model:
|
if is_arm() and "Catboost" in model:
|
||||||
pytest.skip("CatBoost is not supported on ARM.")
|
pytest.skip("CatBoost is not supported on ARM.")
|
||||||
|
|
||||||
if is_pytorch_model and is_mac() and not is_arm():
|
if is_pytorch_model and is_mac():
|
||||||
pytest.skip("Reinforcement learning / PyTorch module not available on intel based Mac OS.")
|
pytest.skip("Reinforcement learning / PyTorch module not available on intel based Mac OS.")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user