-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compute the carbon footprint of our pipeline for each baseline #46
Comments
For this task should I submit the code or the results? In the meantime, I've installed the package and I'm working on implementing it. Also, the project is still not available on SharePoint for me, I've contacted Dr. Brunet and he has granted me an extension on the contract for the time being. |
@Sharjeeliv I already submitted the project and we're waiting for Dr. Kobti to confirm the project. You can follow up from Dr. Kobti as well. |
Update: Reviewing git and GitHub |
Update
To-Do
Notes
(1) https://learntocodetogether.com/create-your-first-pull-request/ |
@Sharjeeliv |
Hi Sir, |
@Sharjeeliv |
Update
|
Update
|
@Sharjeeliv |
I've opened a pr for this feature. The pipeline is not working for me, but since the feature has been done for some time and successfully tested on earlier versions, it seemed best to open the pr for review. |
Hi @Sharjeeliv
Line 162 in 4e032be
Let me know if you need more info on this. |
Update
def run(tml_baselines, gel_baselines, run_desc):
for t in tml_baselines:
for g in gel_baselines:
tracker = EmissionsTracker() # We want to reset the tracker on each iteration to get the emission of each combination
tracker.start()
try:
cmn.logger.info(f'Running pipeline for {t} and {g} ....')
baseline = f'{run_desc}/{t}.{g}'
with open('ParamsTemplate.py') as f:
params_str = f.read()
new_params_str = params_str.replace('@baseline', baseline).replace('@tml_method', t).replace(
'@gel_method', g)
with open('Params.py', 'w') as f:
f.write(new_params_str)
importlib.reload(Params)
main()
except:
cmn.logger.info(traceback.format_exc())
finally:
emissions: float = tracker.stop()
cmn.logger.info(f'Pipeline Emissions for {t} - {g}: {emissions}')
cmn.logger.info('\n\n\n') |
@Sharjeeliv |
Yep, this was tested to work for all Gensim combinations, it does not work with Mallet (it has issues running bat file on macOS, I have not found a solution yet). Soroush recommended that I make it work for Gensim, and he'll test it out for Mallet. |
@Sharjeeliv thanks. |
@Sharjeeliv Thank you for pr. |
Due to multiple merge conflicts, I added these lines to main.py manually. Co-Authored-By: Sharjeel Mustafa <sharjeeliv@gmail.com>
@hosseinfani, Thanks, @Sharjeeliv |
@Sharjeeliv
When you're done with the installation of seera, as we briefly talked about carbon footprint of models, start this task. We want to know what is the carbon footprint of each baseline (topic modeling by graph embedding)
Here is the helpful link to find the library that calculates carbon footprint of a model:
https://twitter.com/ZetaVector/status/1547916747507871744?s=20&t=MZWEJDzLVUSx0hOKpQC5-Q
The text was updated successfully, but these errors were encountered: