fix: remove manual rope parameters injection in PretrainedConfig (#23910)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user