MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / test_list_avail_args

Function test_list_avail_args

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

Source from the content-addressed store, hash-verified

2import torch
3
4def test_list_avail_args():
5 a = BaseModel.list_avail_args()
6 assert a.parse_args([]).num_layers == 24
7 from sat.model import GLMModel
8 a = GLMModel.list_avail_args()
9 assert hasattr(a.parse_args([]), 'gpt_infill_prob')
10
11def test_model_get_args():
12 from sat.model import GLMModel

Callers 1

test_base_model.pyFile · 0.85

Calls 1

list_avail_argsMethod · 0.80

Tested by

no test coverage detected