Add files using upload-large-folder tool
Browse files- tests/test_B/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc.323807 +0 -0
- tests/test_B/test_run.py +19 -4
- tests/test_C/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc +0 -0
- tests/test_C/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc.323676 +0 -0
- tests/test_C/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc.323807 +0 -0
tests/test_B/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc.323807
ADDED
|
File without changes
|
tests/test_B/test_run.py
CHANGED
|
@@ -40,6 +40,7 @@ _FAKE_ROW = {
|
|
| 40 |
}
|
| 41 |
|
| 42 |
_FAKE_CODE_INFO = {
|
|
|
|
| 43 |
"spatial_code_format": "explicit",
|
| 44 |
"input_selection": "selective",
|
| 45 |
"frame_count": 64,
|
|
@@ -50,15 +51,28 @@ _FAKE_CODE_INFO = {
|
|
| 50 |
|
| 51 |
|
| 52 |
def test_results_dir_for_matches_established_dimension_nesting():
|
| 53 |
-
root = harness_run.results_dir_for(
|
|
|
|
|
|
|
| 54 |
assert root == (
|
| 55 |
-
B.RESULTS_DIR / "qwen3.5-4b" / "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
)
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
def test_results_dir_for_honors_explicit_override(tmp_path):
|
| 60 |
root = harness_run.results_dir_for(
|
| 61 |
-
"qwen3.5-4b", "explicit", "relative", "no tracking", "selective", 16, tmp_path
|
| 62 |
)
|
| 63 |
assert root == tmp_path
|
| 64 |
|
|
@@ -79,7 +93,8 @@ def test_build_record_preserves_every_field_untruncated():
|
|
| 79 |
assert record["depth"] == "metric"
|
| 80 |
assert record["tracking"] == "tracking"
|
| 81 |
assert record["spatial_code_path"] == _FAKE_CODE_INFO["spatial_code_path"]
|
| 82 |
-
assert record["condition"] == "explicit:metric:tracking:selective:64"
|
|
|
|
| 83 |
assert record["vision_input_shapes"] == {"mm_token_type_ids": [1, 2558]}
|
| 84 |
assert record["generation_config"] == _FAKE_ANSWER["generation_config"]
|
| 85 |
assert record["metric"] == "MRA:.5:.95:.05"
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
_FAKE_CODE_INFO = {
|
| 43 |
+
"protocol": "extended",
|
| 44 |
"spatial_code_format": "explicit",
|
| 45 |
"input_selection": "selective",
|
| 46 |
"frame_count": 64,
|
|
|
|
| 51 |
|
| 52 |
|
| 53 |
def test_results_dir_for_matches_established_dimension_nesting():
|
| 54 |
+
root = harness_run.results_dir_for(
|
| 55 |
+
"qwen3.5-4b", "extended", "compact", "metric", "tracking", "uniform", 32
|
| 56 |
+
)
|
| 57 |
assert root == (
|
| 58 |
+
B.RESULTS_DIR / "qwen3.5-4b" / "extended" / "compact" / "metric" / "tracking"
|
| 59 |
+
/ "uniform" / "32"
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def test_results_dir_for_isolates_the_two_protocols():
|
| 64 |
+
base = harness_run.results_dir_for(
|
| 65 |
+
"qwen3.5-4b", "base", "compact", "metric", "tracking", "uniform", 32
|
| 66 |
+
)
|
| 67 |
+
extended = harness_run.results_dir_for(
|
| 68 |
+
"qwen3.5-4b", "extended", "compact", "metric", "tracking", "uniform", 32
|
| 69 |
)
|
| 70 |
+
assert base != extended
|
| 71 |
|
| 72 |
|
| 73 |
def test_results_dir_for_honors_explicit_override(tmp_path):
|
| 74 |
root = harness_run.results_dir_for(
|
| 75 |
+
"qwen3.5-4b", "base", "explicit", "relative", "no tracking", "selective", 16, tmp_path
|
| 76 |
)
|
| 77 |
assert root == tmp_path
|
| 78 |
|
|
|
|
| 93 |
assert record["depth"] == "metric"
|
| 94 |
assert record["tracking"] == "tracking"
|
| 95 |
assert record["spatial_code_path"] == _FAKE_CODE_INFO["spatial_code_path"]
|
| 96 |
+
assert record["condition"] == "extended:explicit:metric:tracking:selective:64"
|
| 97 |
+
assert record["protocol"] == "extended"
|
| 98 |
assert record["vision_input_shapes"] == {"mm_token_type_ids": [1, 2558]}
|
| 99 |
assert record["generation_config"] == _FAKE_ANSWER["generation_config"]
|
| 100 |
assert record["metric"] == "MRA:.5:.95:.05"
|
tests/test_C/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc
CHANGED
|
Binary files a/tests/test_C/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc and b/tests/test_C/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc differ
|
|
|
tests/test_C/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc.323676
ADDED
|
File without changes
|
tests/test_C/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc.323807
ADDED
|
File without changes
|