-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tests and remove multimodal inference
- Loading branch information
Малахов Алексей Павлович
committed
Aug 26, 2024
1 parent
ac4948e
commit c140cbe
Showing
5 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
from pathlib import Path | ||
# from pathlib import Path | ||
|
||
import pytest | ||
from typer.testing import CliRunner | ||
# import pytest | ||
# from typer.testing import CliRunner | ||
|
||
from tests.constants import FIXTURES_PATH | ||
from turbo_alignment.cli import app | ||
from turbo_alignment.settings.pipelines.inference.multimodal import ( | ||
MultimodalInferenceExperimentSettings, | ||
) | ||
# from tests.constants import FIXTURES_PATH | ||
# from turbo_alignment.cli import app | ||
# from turbo_alignment.settings.pipelines.inference.multimodal import ( | ||
# MultimodalInferenceExperimentSettings, | ||
# ) | ||
|
||
runner = CliRunner() | ||
# runner = CliRunner() | ||
|
||
|
||
@pytest.mark.parametrize( | ||
'config_path', | ||
[ | ||
FIXTURES_PATH / 'configs/inference/multimodal/llama_llava_clip_pickle.json', | ||
], | ||
) | ||
def test_multimodal_inference_mlp_with_preprocessing(config_path: Path): | ||
result = runner.invoke( | ||
app, ['inference_multimodal', '--inference_settings_path', str(config_path)], catch_exceptions=False | ||
) | ||
assert result.exit_code == 0 | ||
assert MultimodalInferenceExperimentSettings.parse_file(config_path).save_path.is_dir() | ||
# @pytest.mark.parametrize( | ||
# 'config_path', | ||
# [ | ||
# FIXTURES_PATH / 'configs/inference/multimodal/llama_llava_clip_pickle.json', | ||
# ], | ||
# ) | ||
# def test_multimodal_inference_mlp_with_preprocessing(config_path: Path): | ||
# result = runner.invoke( | ||
# app, ['inference_multimodal', '--inference_settings_path', str(config_path)], catch_exceptions=False | ||
# ) | ||
# assert result.exit_code == 0 | ||
# assert MultimodalInferenceExperimentSettings.parse_file(config_path).save_path.is_dir() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters