MCPcopy Create free account
hub / github.com/apple/axlearn / DummyDevice

Class DummyDevice

axlearn/common/utils_test.py:1601–1606  ·  view source on GitHub ↗

Mock device for testing.

Source from the content-addressed store, hash-verified

1599
1600 def test_two_per_param_scales(self):
1601 def config_fn():
1602 trainer_cfg = SpmdTrainer.default_config()
1603 trainer_cfg.model = Linear.default_config().set(
1604 name="test_model", input_dim=3, output_dim=2
1605 )
1606 l2_per_param_scale = config_for_function(optimizers.per_param_scale_by_path).set(
1607 description="l2_regularizer_scale",
1608 scale_by_path=[
1609 (".*bias.*", 0),

Callers 2

Calls

no outgoing calls

Tested by 2