question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PiecewiseLinear dict support

See original GitHub issue

In ignite 0.2.1, PiecewiseLinear didn’t expect the optimizer to be strictly a sub-class of torch.optim.Optimizer and allowed generic parameter group dicts as well.

But it looks like in later versions, this generic support was withdrawn.

What’s the context behind this change?

I had been successfully using PiecewiseLinear from ignite 0.2.1 along with Microsoft’s DeepSpeed ZeRO optimizer, which isn’t strictly a sub-class of torch.optim.Optimizer and Microsoft addressed the reasons for this in their repo. However, due to some useful features in later versions of ignite, we decided to upgrade to a newer version of ignite (0.3 and later also 0.4). In the process of this upgrade, we realized PiecewiseLinear no longer works with the ZeRO optimizer.

It would be great if support for generic parameter group dicts is added back.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
g-karthikcommented, Jun 29, 2020

@vfdev-5 yes, I am using model_engine during training and model for evaluation, that’s correct. As for DDP, you can use the dist_init_required flag in initialize() for it.

1reaction
g-karthikcommented, Jun 26, 2020

@vfdev-5 Yes, deepspeed is just using torch.distributed with NCCL backend under the hood. I haven’t tried it for smaller models but there will be reduced memory footprint even with those, so you could train those smaller models with larger batch sizes and longer sequence lengths.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PIECEWISE LINEAR TOPOLOGY
This book consists of notes on lectures given at the Uni- versity of Chicago in the academic year 1966-67. My aim in these...
Read more >
Piecewise Linear Manifold Clustering - CUNY Academic Works
2.3 Piecewise linear manifold, constructed from three 1D bounded linear manifolds, as the “support” of the piecewise linear manifold cluster [82]. 22.
Read more >
How does a piecewise linear function handle values outside ...
Hi, I implement a piecewise linear function (viscosity versus temperature) to describe a material property. I include 10 points.
Read more >
Piecewise multilinear hierarchical sparse grid interpolation in ...
... We describe three possible piecewise multilinear interpolation schemes in detail and con - duct a numerical comparison Furthermore, ...
Read more >
(PDF) An efficient algorithm for the incremental construction of ...
In this paper the problem of finding piecewise linear boundaries between sets is considered and is applied for solving supervised data classification ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found