Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agent-husky/Husky-v1
/ functions
Functions
85 in github.com/agent-husky/Husky-v1
⨍
Functions
85
◇
Types & classes
5
↓ 26 callers
Method
get_status_file_path
(self, step_idx: int, question_idx: int, tool: str)
husky/run_husky.py:151
↓ 23 callers
Function
write_json_safe
(data, file_path, max_retries=5, retry_delay=3)
husky/utils.py:43
↓ 20 callers
Function
wait_for_file
(file_path, timeout=36000)
husky/run_husky.py:83
↓ 14 callers
Method
get_remain_indices_path
(self, step_idx: int)
husky/run_husky.py:148
↓ 12 callers
Method
search
(self, query: str, use_date=False)
husky/search.py:79
↓ 9 callers
Function
extract_number_gsm8k
(output_string)
husky/eval_husky.py:62
↓ 9 callers
Function
read_json_safe
(file_path, max_retries=5, retry_delay=3)
husky/utils.py:34
↓ 8 callers
Method
generate
(self, inputs, max_new_tokens=None, sampling_params=None)
husky/generator.py:148
↓ 6 callers
Function
extract_answer
(pred_str, exhaust=False)
husky/math_utils.py:207
↓ 5 callers
Function
normalize_answer
(s)
husky/eval_husky.py:21
↓ 5 callers
Function
strip_string
(string)
husky/math_utils.py:65
↓ 4 callers
Function
compute_exact_match_score
(prediction, ground_truth)
husky/eval_husky.py:37
↓ 4 callers
Function
compute_f1_score
(prediction, ground_truth)
husky/eval_husky.py:40
↓ 4 callers
Function
symbolic_equal
(a, b)
husky/math_utils.py:1027
↓ 3 callers
Function
_parse
(s)
husky/math_utils.py:909
↓ 3 callers
Function
chat_completions_with_backoff
(**kwargs)
husky/generator.py:26
↓ 3 callers
Function
eval_math
(item, pred_key='prediction', prec=1e-3)
husky/math_utils.py:391
↓ 3 callers
Function
extract_program_output
extract output between the last ```output\n...\n```
husky/math_utils.py:194
↓ 3 callers
Function
is_digit
(num)
husky/math_utils.py:876
↓ 3 callers
Function
parse_digits
(num)
husky/math_utils.py:860
↓ 2 callers
Function
_fix_a_slash_b
(string)
husky/math_utils.py:36
↓ 2 callers
Function
_fix_fracs
(string)
husky/math_utils.py:4
↓ 2 callers
Function
_fix_sqrt
(string)
husky/math_utils.py:53
↓ 2 callers
Function
_fix_tan
(string)
husky/math_utils.py:59
↓ 2 callers
Function
extract_boxed_answers
(text)
husky/math_utils.py:177
↓ 2 callers
Function
extract_last_single_answer
(question, reasoning, task)
husky/math_utils.py:260
↓ 2 callers
Function
extract_math_answer
(question, reasoning, task)
husky/math_utils.py:244
↓ 2 callers
Function
extract_number_math
(string)
husky/eval_husky.py:73
↓ 2 callers
Function
extract_sat_few_shot_answer
(question, reasoning, task)
husky/math_utils.py:293
↓ 2 callers
Method
get_code_indices_path
(self, step_idx: int)
husky/run_husky.py:142
↓ 2 callers
Method
get_search_indices_path
(self, step_idx: int)
husky/run_husky.py:145
↓ 2 callers
Function
is_correct
(item, pred_key='prediction', prec=1e-3)
husky/math_utils.py:351
↓ 2 callers
Function
math_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
husky/math_utils.py:925
↓ 2 callers
Function
read_jsonl
(file_path)
husky/utils.py:18
↓ 2 callers
Function
wait_for_files
(file_path_list, timeout=36000)
husky/run_husky.py:91
↓ 1 callers
Method
__init_model__
(self, model_id, model_config, num_gpus=1)
husky/run_husky.py:127
↓ 1 callers
Function
batch_list
(input_list, batch_size)
husky/utils.py:11
↓ 1 callers
Function
call_with_timeout
(func, *args, timeout=5, **kwargs)
husky/math_utils.py:1057
↓ 1 callers
Function
completions_with_backoff
(**kwargs)
husky/generator.py:22
↓ 1 callers
Function
eval_last_single_answer
(item, pred_key='prediction', prec=1e-3)
husky/math_utils.py:417
↓ 1 callers
Function
evaluate_husky
(dataset_name, root_dir, save_dir)
husky/eval_husky.py:81
↓ 1 callers
Function
extract_answer
(output_str: str)
husky/run_husky.py:64
↓ 1 callers
Function
extract_program
extract the program after "```python", and before "```"
husky/math_utils.py:758
↓ 1 callers
Function
extract_tool_and_step
(input_string)
husky/run_husky.py:72
↓ 1 callers
Method
init_dataset
(self, dataset)
husky/run_husky.py:130
↓ 1 callers
Function
load_data
(dataset_name, subtask="")
husky/run_husky.py:99
↓ 1 callers
Function
loop_generate
(inputs, model: LLM, sampling_params)
husky/generator.py:29
↓ 1 callers
Function
lower
(text)
husky/eval_husky.py:32
↓ 1 callers
Function
parse_args
()
husky/run_husky.py:40
↓ 1 callers
Function
parse_args
()
husky/eval_husky.py:13
↓ 1 callers
Method
process_result
(self, result, use_date=False)
husky/search.py:43
↓ 1 callers
Method
process_scoreboard
(self, sports_results)
husky/search.py:23
↓ 1 callers
Function
remove_articles
(text)
husky/eval_husky.py:22
↓ 1 callers
Function
remove_punc
(text)
husky/eval_husky.py:28
↓ 1 callers
Method
run
(self, batch_size=32, max_iterations=6)
husky/run_husky.py:154
↓ 1 callers
Function
simplify_answer
(answer, convert_to_str=False)
husky/utils.py:88
↓ 1 callers
Function
white_space_fix
(text)
husky/eval_husky.py:25
Method
__init__
(self, model_id, model_config, root_dir, save_dir, use_action=False, use_code=False, use_math=False, use_reaso
husky/run_husky.py:108
Method
__init__
(self, text)
husky/generator.py:41
Method
__init__
(self, model_id, hyperparam_info)
husky/generator.py:48
Method
__init__
(self, model_id, hyperparam_info, sampling_params=None, use_fast_tokenizer=True, num_gpus=1)
husky/generator.py:125
Method
__init__
(self, answer_only=False, top_k=1)
husky/search.py:14
Function
add_to_file
(output_data, output_path)
husky/utils.py:6
Function
extract_agieval_gaokao_mathcloze_few_shot_cot_test
(question, reasoning, task)
husky/math_utils.py:272
Function
extract_agieval_gaokao_mathqa_few_shot_cot_test
(question, reasoning, task)
husky/math_utils.py:283
Function
extract_cmath_few_shot_test
(question, reasoning, task)
husky/math_utils.py:322
Function
extract_gsm_few_shot_cot_answer
(question, reasoning, task)
husky/math_utils.py:263
Function
extract_math_few_shot_cot_answer
(question, reasoning, task)
husky/math_utils.py:255
Function
extract_minif2f_isabelle
(question, reasoning, task)
husky/math_utils.py:317
Function
extract_mmlu_stem
(question, reasoning, task)
husky/math_utils.py:312
Function
extract_number
(output)
husky/utils.py:129
Function
extract_number_gsm8k
(output_string)
husky/utils.py:169
Function
extract_number_math
(string)
husky/utils.py:180
Function
extract_ocwcourses_few_shot_answer
(question, reasoning, task)
husky/math_utils.py:301
Method
generate
(self, inputs: list[str], max_new_tokens=None)
husky/generator.py:52
Function
last_boxed_only_string
(string)
husky/utils.py:52
Function
math_equal_process
(param)
husky/math_utils.py:1023
Function
normalize_prediction
(prediction)
husky/math_utils.py:881
Function
parse_ground_truth
(example: Dict[str, Any], data_name)
husky/math_utils.py:778
Function
parse_question
(example, data_name)
husky/math_utils.py:819
Function
postprocess_search_solution
(solution_text)
husky/utils.py:140
Function
remove_boxed
(s)
husky/utils.py:79
Function
run_execute
(executor, result, prompt_type, execute=False)
husky/math_utils.py:843
Function
symbolic_equal_process
(a, b, output_queue)
husky/math_utils.py:1052
Function
table2str
(table: list[list[str]])
husky/search.py:4