MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / create_model

Function create_model

tests/unit/runtime/test_multiple_models.py:15–19  ·  view source on GitHub ↗
(config_dict)

Source from the content-addressed store, hash-verified

13
14
15def create_model(config_dict):
16 hidden_dim = 64
17 model = SimpleModel(hidden_dim)
18 model, _, _, _ = deepspeed.initialize(model=model, model_parameters=model.parameters(), config=config_dict)
19 return model
20
21
22def train_shared_loss(num_models, config_dict, dtype):

Callers 2

train_shared_lossFunction · 0.85
train_independent_lossFunction · 0.85

Calls 3

SimpleModelClass · 0.90
initializeMethod · 0.80
parametersMethod · 0.45

Tested by

no test coverage detected