Skip to content
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

Helper script for profiling #68

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

adobrzyniewicz-habana
Copy link

Create helper scripts for profiling

To capture a single forward to profiler file run:
python3 hpu-utils/profile_forward.py --model-path "/mnt/weka/data/pytorch/llama2/Llama-2-7b-chat-hf/"

Sample run using custom flags:
python3 hpu-utils/profile_forward.py --model-path "/mnt/weka/data/pytorch/llama2/Llama-2-70b-chat-hf/" --num-cards 8 --output-path "./llama_70b_output.json.gz" --batch-size 256

All flags:
--model-path
--num-cards
--phase
--data-type
--output-path
--block-size
--batch-size
--seq-len
--steps

@madamczykhabana madamczykhabana changed the base branch from habana_main to habana_next July 1, 2024 06:27
Copy link

@madamczykhabana madamczykhabana left a comment

Choose a reason for hiding this comment

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

LGTM

@madamczykhabana madamczykhabana merged commit 566bdd2 into habana_next Jul 1, 2024
@adobrzyniewicz-habana adobrzyniewicz-habana deleted the single_forward_profiling branch February 6, 2025 07:47
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