-
Notifications
You must be signed in to change notification settings - Fork 8
[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
Conversation
@microsoft-github-policy-service agree company="Microsoft" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
eval/reasoning_tasks/eval.py
Outdated
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: |
There was a problem hiding this comment.
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 ./
eval/reasoning_tasks/eval.py
Outdated
"total_time": total_time, | ||
} | ||
|
||
with open(f"./others_{args.rank}.json", 'w') as f: |
There was a problem hiding this comment.
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 ./
eval/reasoning_tasks/eval.py
Outdated
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) |
There was a problem hiding this comment.
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
eval/reasoning_tasks/get_results.py
Outdated
examples = examples * args.repeat | ||
|
||
|
||
with open(f"./completions_{args.rank}.json", 'r') as f: |
There was a problem hiding this comment.
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
No description provided.