Skip to content

armgit / Soup

Public Imported from GitHub
0

Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.

test: parametrize over sorted sets so every xdist worker collects the same ids (#1670)

Alpamys Makazhan7c661ac33c48
diff --git a/tests/test_v0430_part_a.py b/tests/test_v0430_part_a.py
index 66c0561a..09c81cf3 100644
--- a/tests/test_v0430_part_a.py
+++ b/tests/test_v0430_part_a.py
@@ -82,7 +82,7 @@ class TestRequiredTrackerPackage:
class TestIsNewV043Tracker:
- @pytest.mark.parametrize("name", list(NEW_TRACKERS_V0_43))
+ @pytest.mark.parametrize("name", sorted(NEW_TRACKERS_V0_43))
def test_true_for_v043(self, name):
assert is_new_v0_43_tracker(name) is True
diff --git a/tests/test_v0430_part_b.py b/tests/test_v0430_part_b.py
index f60101ed..69857c52 100644
--- a/tests/test_v0430_part_b.py
+++ b/tests/test_v0430_part_b.py
@@ -149,7 +149,7 @@ class TestRougeLScore:
class TestComputeNlgMetric:
- @pytest.mark.parametrize("metric", list(NLG_METRICS))
+ @pytest.mark.parametrize("metric", sorted(NLG_METRICS))
def test_dispatch(self, metric):
score = compute_nlg_metric(metric, ["a b c"], ["a b c"])
assert 0.0 <= score <= 1.0
@@ -461,7 +461,7 @@ class TestTournament:
# ----------------- Benchmarks v0.43 -----------------
class TestBenchmarksV043:
- @pytest.mark.parametrize("name", list(NEW_BENCHMARKS_V0_43))
+ @pytest.mark.parametrize("name", sorted(NEW_BENCHMARKS_V0_43))
def test_recognised(self, name):
assert is_v0_43_benchmark(name) is True
meta = benchmark_metadata(name)