Skip to content

[Scripts] Add dense baseline evaluation scripts. #14

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

Merged
merged 12 commits into from
Apr 26, 2025

Conversation

SmingGuo
Copy link
Contributor

No description provided.

@SmingGuo SmingGuo marked this pull request as ready for review April 24, 2025 02:58
@SmingGuo SmingGuo closed this Apr 24, 2025
@SmingGuo SmingGuo reopened this Apr 24, 2025
@SmingGuo
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Microsoft"

Copy link
Collaborator

Choose a reason for hiding this comment

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

why eos_token_ids can be a list

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you clean up comments in the arguments

total_activate_count, total_original_count, overall_sparsity_ratio = calculate_overall_sparsity(all_batch_sparsitys_info)
print("Overall_sparsity: ", overall_sparsity_ratio)

with open(f"./completions_{args.rank}.json", 'w') as f:
Copy link
Collaborator

Choose a reason for hiding this comment

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

change output file name in the output folder instead of ./

"total_time": total_time,
}

with open(f"./others_{args.rank}.json", 'w') as f:
Copy link
Collaborator

Choose a reason for hiding this comment

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

change output file name in the output folder instead of ./

parser.add_argument("--attention_implementation", default="seer_sparse", choices=["seer_sparse", "oracle_sparse", "fa2", "sdpa"], type=str)
parser.add_argument("--use_batch_exist", action="store_true")
parser.add_argument("--attention_implementation", default="seer_sparse", choices=["seer_sparse", "seer_dense", "oracle_sparse", "fa2", "sdpa"], type=str)
parser.add_argument("--use_batch_exist", default=1, type=int)
Copy link
Collaborator

Choose a reason for hiding this comment

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

change the type to bool and use true and false instead of 0 1

examples = examples * args.repeat


with open(f"./completions_{args.rank}.json", 'r') as f:
Copy link
Collaborator

Choose a reason for hiding this comment

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

change the output dir of completion and others

@YizhaoGao YizhaoGao changed the title Dense eval [Scripts] Add dense baseline evaluation scripts. Apr 26, 2025
@YizhaoGao YizhaoGao merged commit 30252ca into microsoft:main Apr 26, 2025
3 checks 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