Co-authored-by: Ke Bao <ISPObaoke@163.com>
This commit is contained in:
@@ -11,13 +11,13 @@ class TestPrepareServerArgs(unittest.TestCase):
|
||||
"--model-path",
|
||||
"model_path",
|
||||
"--json-model-override-args",
|
||||
'{"rope_scaling": {"factor": 2.0, "type": "linear"}}',
|
||||
'{"rope_scaling": {"factor": 2.0, "rope_type": "linear"}}',
|
||||
]
|
||||
)
|
||||
self.assertEqual(server_args.model_path, "model_path")
|
||||
self.assertEqual(
|
||||
json.loads(server_args.json_model_override_args),
|
||||
{"rope_scaling": {"factor": 2.0, "type": "linear"}},
|
||||
{"rope_scaling": {"factor": 2.0, "rope_type": "linear"}},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user