rename tasks

This commit is contained in:
Xi Yan 2024-10-09 11:30:35 -07:00
parent 9c38d9ae13
commit ae43044a57
7 changed files with 5 additions and 6 deletions

View file

@ -44,7 +44,7 @@ async def run_main(host: str, port: int):
# CustomDataset # CustomDataset
response = await client.run_evals( response = await client.run_evals(
"Llama3.2-1B-Instruct", "Llama3.1-8B-Instruct",
"mmlu-simple-eval-en", "mmlu-simple-eval-en",
"mmlu", "mmlu",
) )

View file

@ -90,7 +90,6 @@ class EleutherEvalsWrapper(LM):
def generate_until(self, requests, disable_tqdm: bool = False) -> List[str]: def generate_until(self, requests, disable_tqdm: bool = False) -> List[str]:
res = [] res = []
for req in requests: for req in requests:
print("generation for msg: ", req.args[0])
response = self.inference_api.chat_completion( response = self.inference_api.chat_completion(
model=self.model, model=self.model,
messages=[ messages=[
@ -144,7 +143,7 @@ class EleutherEvalsAdapter(Evals):
output = evaluate( output = evaluate(
eluther_wrapper, eluther_wrapper,
task_dict, task_dict,
limit=1, limit=10,
) )
formatted_output = lm_eval.utils.make_table(output) formatted_output = lm_eval.utils.make_table(output)

View file

@ -21,7 +21,7 @@ providers:
- provider_id: meta-reference - provider_id: meta-reference
provider_type: meta-reference provider_type: meta-reference
config: config:
model: Llama3.2-1B-Instruct model: Llama3.1-8B-Instruct
quantization: null quantization: null
torch_seed: null torch_seed: null
max_seq_len: 4096 max_seq_len: 4096
@ -54,8 +54,8 @@ providers:
provider_type: meta-reference provider_type: meta-reference
config: {} config: {}
models: models:
- identifier: Llama3.2-1B-Instruct - identifier: Llama3.1-8B-Instruct
llama_model: Llama3.2-1B-Instruct llama_model: Llama3.1-8B-Instruct
provider_id: meta-reference provider_id: meta-reference
shields: shields:
- identifier: llama_guard - identifier: llama_guard