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

Function create_model

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

Source from the content-addressed store, hash-verified

12
13
14def create_model(config_dict):
15 hidden_dim = 64
16 model = SimpleModel(hidden_dim)
17 model, _, _, _ = deepspeed.initialize(model=model, model_parameters=model.parameters(), config=config_dict)
18 return model
19
20
21def 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