Skip to content

changes for Colab tutorial - #271

Merged
Deathn0t merged 2 commits into
developfrom
tutorial-tuning
Feb 7, 2025
Merged

changes for Colab tutorial#271
Deathn0t merged 2 commits into
developfrom
tutorial-tuning

Conversation

@bretteiffert

Copy link
Copy Markdown
Contributor

initial changes to tutorial source for Colab

@codecov

codecov Bot commented Feb 6, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.04%. Comparing base (b82c83c) to head (00c0c4c).
Report is 34 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #271      +/-   ##
===========================================
+ Coverage    41.64%   42.04%   +0.39%     
===========================================
  Files          125      125              
  Lines         8321     8311      -10     
  Branches      1359     1367       +8     
===========================================
+ Hits          3465     3494      +29     
+ Misses        4542     4494      -48     
- Partials       314      323       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

evaluator = Evaluator.create(
run,
method="ray",
method="thread",

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.

an if statement can be used here to check:

  • if device = cuda then method = thread, num_workers = 1 (unless we find out that multiple trainings can be run in parallel on the same gpu!)
  • if device = cpu then checp multiprocessing.cpu_count() and set method="ray", num_cpus=... based ont the cpu_count(), num_cpus_per_task=1.

@Deathn0t Deathn0t left a comment

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.

Check my comment, we need to have the code adapted for local and colab all once. so if cuda is not available we can use multiple cores.

@bretteiffert

bretteiffert commented Feb 6, 2025

Copy link
Copy Markdown
Contributor Author

@Deathn0t agree with your comments.

still needing to be solved - why the gpu implementation is slow

…umpy conversions, adding download of pre-computed results, added install command for notebooks
@Deathn0t
Deathn0t merged commit 64b25a5 into develop Feb 7, 2025
@Deathn0t
Deathn0t deleted the tutorial-tuning branch February 7, 2025 10:57
Deathn0t added a commit that referenced this pull request Feb 17, 2025
* simplifying the decentralized search (#260)

* updating readme with license badge

* fixing checkout of tutorial in docs build

* Add uv installation page in documentation (#263)

* Add uv installation page

* Clean up comments for pip install

* updated quickstart on landing page

* adding refs to tutorials and examples

* updated landing page and installation page

* updating install titles

* updating title

* updated quick start introduction

* updated index

* updating license

* updating license badge in README

* updating authors, maintainers in toml

* updated description in toml

* add dropdown functionnality in sphinx gallery

* updating experimental design search example

* updating examples, including intersphinx

* add files for examples, update gitignore

* removing api.rst from exclude_patterns

* update intersphinx config

* adding AutoDEUQ example, adding torch and configspace to intersphinx

* updating autodeuq example

* changes for Colab tutorial (#271)

* changes for colab tutorial

* adapted code for cuda/cpu using ray evaluator, simplifying to_torch/numpy conversions, adding download of pre-computed results, added install command for notebooks

---------

Co-authored-by: Brett Eiffert <eiffertbc@ornl.gov>
Co-authored-by: Deathn0t <romainegele@gmail.com>

* adding rm command to cleanup results in example

* Add a Facility Guides section (#265)

* updated autodeuq tutorial

* update version to 0.9.2

---------

Co-authored-by: Gavin Wiggins <6828967+wigging@users.noreply.github.com>
Co-authored-by: Brett Eiffert <brettceiffert@gmail.com>
Co-authored-by: Brett Eiffert <eiffertbc@ornl.gov>
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