Skip to content

Profiling improvements#1931

Merged
regisss merged 7 commits into
huggingface:mainfrom
HabanaAI:dev/ugolowicz/new-profiling
Jul 10, 2025
Merged

Profiling improvements#1931
regisss merged 7 commits into
huggingface:mainfrom
HabanaAI:dev/ugolowicz/new-profiling

Conversation

@ugolowic
Copy link
Copy Markdown
Collaborator

  • Refactor HabanaProfile so that it can be used more than once
  • Add option for the user to collect profiling in GaudiTrainer's eval
  • In text-generation, user can now select whether a profiling step means generating one token or one sequence
  • Added integration and unit tests for HabanaProfile

@github-actions
Copy link
Copy Markdown

The code quality check failed, please run make style.

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@ugolowic ugolowic force-pushed the dev/ugolowicz/new-profiling branch from b76bb15 to 1289ede Compare April 14, 2025 09:09
@emascarenhas
Copy link
Copy Markdown
Contributor

@ugolowic , Please resolve conflicts as they come up.

@ugolowic ugolowic force-pushed the dev/ugolowicz/new-profiling branch from 1289ede to 4e1d69b Compare April 24, 2025 07:53
ugolowic added 4 commits May 8, 2025 09:52
Profiling can be started more than once, at different points
in the course of running an example, e.g. both during training
and during evaluation.

Signed-off-by: Urszula Golowicz <urszula.golowicz@intel.com>
Update arguments, examples, and classes to enable using profiling
in both train and eval stage of a run.

Signed-off-by: Urszula Golowicz <urszula.golowicz@intel.com>
Signed-off-by: Urszula Golowicz <urszula.golowicz@intel.com>
Add the option to profile whole sequences in text-generation.
Use --profile_whole_sequences boolean arg to enable it.

Signed-off-by: Urszula Golowicz <urszula.golowicz@intel.com>
@ugolowic ugolowic force-pushed the dev/ugolowicz/new-profiling branch from 4e1d69b to 018158a Compare May 8, 2025 06:57
@libinta libinta added the run-test Run CI for PRs from external contributors label May 21, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 4, 2025

The code quality check failed, please run make style.

@astachowiczhabana
Copy link
Copy Markdown
Collaborator

Fixed merge conflicts, @emascarenhas @regisss can you please approve?

Comment thread Makefile
Comment thread tests/test_habana_profiler_integration.py Outdated
astachowiczhabana added a commit to HabanaAI/optimum-habana-fork that referenced this pull request Jul 8, 2025
astachowiczhabana added a commit to HabanaAI/optimum-habana-fork that referenced this pull request Jul 8, 2025
astachowiczhabana added a commit that referenced this pull request Jul 8, 2025
@regisss regisss merged commit 052624e into huggingface:main Jul 10, 2025
2 of 4 checks passed
astachowiczhabana added a commit that referenced this pull request Sep 10, 2025
Signed-off-by: Urszula Golowicz <urszula.golowicz@intel.com>
Co-authored-by: Adam Stachowicz <astachowicz@habana.ai>
Co-authored-by: Adam Stachowicz <105052242+astachowiczhabana@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-test Run CI for PRs from external contributors synapse1.22

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants