fix: remove manual rope parameters injection in PretrainedConfig (#23910)

This commit is contained in:
Jaybe
2026-06-19 17:41:51 +00:00
committed by GitHub
parent 2ad9a5b576
commit ca88b7f1d2
2 changed files with 13 additions and 27 deletions
@@ -480,6 +480,15 @@ class TestPatchRemovedSymbols(unittest.TestCase):
class TestPatchRopeParametersValidation(unittest.TestCase):
# -----------------------------------------------------------------------
# Test ``rope_theta`` injection into ``rope_scaling``.
#
# Upstream `transformers.PretrainedConfig` now natively handles this
# logic. While the manual injection patch has been removed, these
# test cases are retained to ensure regression testing of the
# configuration's injection behavior.
# -----------------------------------------------------------------------
def test_injects_rope_theta_into_rope_scaling(self):
config_dict = {
"model_type": "llama",