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(configs): pin TRL_TASKS so dropping a task from the constant fails (#1862) (#2043)

Vincent Le3c4ef2199092
diff --git a/tests/test_shipped_configs_set_gradient_checkpointing.py b/tests/test_shipped_configs_set_gradient_checkpointing.py
index 1174e3aa..4b08e295 100644
--- a/tests/test_shipped_configs_set_gradient_checkpointing.py
+++ b/tests/test_shipped_configs_set_gradient_checkpointing.py
@@ -41,7 +41,11 @@ SHIPPED = _shipped_configs()
def test_every_trl_task_has_a_shipped_config():
- """Guard against a vacuous pass: the walk must reach configs for all five tasks."""
+ """Guard against a vacuous pass: the walk must reach configs for all five tasks.
+
+ The literal pins TRL_TASKS itself, so dropping a task from the constant fails here too.
+ """
+ assert TRL_TASKS == {"grpo", "ipo", "bco", "reward_model", "online_dpo"}
tasks = {yaml.safe_load(text)["task"] for _, text in SHIPPED}
assert tasks == TRL_TASKS