Skip to content

GCI100 DisableGradientForModelEval #Python #DLG #RulesSpecifications - #384

Merged
dedece35 merged 4 commits into
green-code-initiative:mainfrom
cleophass:DisableGradientForModelEval
Jul 18, 2025
Merged

GCI100 DisableGradientForModelEval #Python #DLG #RulesSpecifications#384
dedece35 merged 4 commits into
green-code-initiative:mainfrom
cleophass:DisableGradientForModelEval

Conversation

@cleophass

Copy link
Copy Markdown
Contributor
  • Rule specifcations for GCI100 DisableGradientForModelEval
  • Definition Of Done checked ✅
  • Directly put GCI100 because it's absent from Rules.md

This is specific to deep learning in Python using PyTorch

cleophass and others added 2 commits May 15, 2025 17:36
Co-authored-by: DataLabGroupe-CreditAgricole <GITHUB.DATALABGROUPE@CREDIT-AGRICOLE-SA.FR>
Co-authored-by: DataLabGroupe-CreditAgricole <GITHUB.DATALABGROUPE@CREDIT-AGRICOLE-SA.FR>
Comment thread src/main/rules/GCI100/GCI100.json

== Conclusion

The rule is relevant. Wrapping inference in `torch.no_grad()`:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the "emissions CO2" is not so relevant for me ... or else I don't undertsand this graph ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the "emissions CO2" is not so relevant for me ... or else I don't undertsand this graph ?

indeed, the difference isn't big in terms of ratio, but since inference is an extremely greedy process for large models, the carbon delta is quite high !

cleophass and others added 2 commits July 7, 2025 14:38
Co-authored-by: DataLabGroupe-CreditAgricole <GITHUB.DATALABGROUPE@CREDIT-AGRICOLE-SA.FR>
@dedece35
dedece35 merged commit 8a95805 into green-code-initiative:main Jul 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants