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.

Unified freezing interface

See original GitHub issue

🚀 Feature request

We can freeze the backbone of individual models by finding the field name of the backbone (e.g., bert in BertForSequenceClassification) and setting .requires_grad. However, because the name of this field differs for different models, I don’t think there’s currently an easy way to do this that works for all models. This contradicts the philosophy that AutoModel(ForXXX) should hide all the implementation details.

Ideally, we can pass a trainable_backbone flag in the config or to the __init__ function directly that controls this behavior.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
LysandreJikcommented, Oct 6, 2021

I think the two are separate issues - let’s start with this issue! Feel free to go ahead and open a PR @shabie.

0reactions
ZhaofengWucommented, Oct 11, 2021

Yes, this method does solve my problem – thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

unified/readme.md at main · unifiedjs/unified - GitHub
interface for parsing, inspecting, transforming, and serializing content through syntax trees - unified/readme.md at main · unifiedjs/unified.
Read more >
Unified Soil Freezing Characteristic for Variably‐Saturated ...
Some researchers hold the opinion that the ice-water interface is spherical when freezing but cylindrical when thawing (Anderson et al., ...
Read more >
USC Freezes - PowerEdge Hardware General - Dell
I have a r710, I want to update the system, but the USC Freezes. ... 1 Go to ftp.dell.com and download the file...
Read more >
Dynamics 365 Sales Forum - Column Headings in Unified ...
Yes, I could freeze column headings in list view in my Dynamics 365 Unified Interface. My version is 9.1.0000.0288 online sandbox. It seems...
Read more >
SEMI EDA/Interface A Standards Overview - Cimetrix
Each freeze identifies a specific version of the individual EDA standards that equipment suppliers and IC makers use as a unified set to...
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