encode_question
APIBenchBenchmark
Gorilla: Large Language Model Connected with Massive APIs
<https://huggingface.co/datasets/gorilla-llm/APIBench>
.
Parameters:
- data_dir (str): The directory to save the data.
- save_to (str): The file to save the results.
- processes (int, optional): The number of processes to use. (default: :obj:
1
)
init
- data_dir (str): The directory to save the data.
- save_to (str): The file to save the results.
- processes (int, optional): The number of processes to use for parallel processing. (default: :obj:
1
)
download
load
- dataset_name (str): Name of the specific dataset to be loaded.
- force_download (bool, optional): Whether to force download the data. (default: :obj:
False
)
run
- agent (ChatAgent): The agent to run the benchmark. dataset_name (Literal[“huggingface”, “tensorflowhub”, “torchhub”]): The dataset to run the benchmark.
- randomize (bool, optional): Whether to randomize the data. (default: :obj:
False
) - subset (Optional[int], optional): The subset of data to run. (default: :obj:
None
)