MCPcopy Index your code
hub / github.com/OpenDriveLab/ReSim / test_model_get_args

Function test_model_get_args

SwissArmyTransformer/tests/test_base_model.py:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 assert hasattr(a.parse_args([]), 'gpt_infill_prob')
10
11def test_model_get_args():
12 from sat.model import GLMModel
13 args = GLMModel.get_args()
14 assert args.num_layers == 24
15 print(args)
16 args = GLMModel.get_args(num_layers=2)
17 assert args.num_layers == 2
18
19def test_model_from_pretrained():
20 from sat.model import RobertaModel, AutoModel

Callers

nothing calls this directly

Calls 2

get_argsMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected