forked from EleutherAI/lm-evaluation-harness
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: reproduce reported jcommonsenseqa scores with preferred templates
- Loading branch information
Showing
6 changed files
with
110 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
models/cyberagent/cyberagent-open-calm-3b/harness.jcqa-1.2.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MODEL_ARGS="pretrained=cyberagent/open-calm-3b,device_map=auto,torch_dtype=auto,load_in_8bit=True,low_cpu_mem_usage=True" | ||
TASK="jcommonsenseqa-1.2-0.2" | ||
python main.py --model hf-causal --model_args $MODEL_ARGS --tasks $TASK --num_fewshot "3" --device "cuda" --output_path "models/cyberagent/cyberagent-open-calm-3b/result.jcqa-1.2.json" |
24 changes: 24 additions & 0 deletions
24
models/cyberagent/cyberagent-open-calm-3b/result.jcqa-1.2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"results": { | ||
"jcommonsenseqa-1.2-0.2": { | ||
"acc": 0.7819481680071493, | ||
"acc_stderr": 0.012349459533393274, | ||
"acc_norm": 0.7184986595174263, | ||
"acc_norm_stderr": 0.01345031058785413 | ||
} | ||
}, | ||
"versions": { | ||
"jcommonsenseqa-1.2-0.2": 1.2 | ||
}, | ||
"config": { | ||
"model": "hf-causal", | ||
"model_args": "pretrained=cyberagent/open-calm-3b,device_map=auto,torch_dtype=auto,load_in_8bit=True", | ||
"num_fewshot": 3, | ||
"batch_size": null, | ||
"device": "cuda", | ||
"no_cache": false, | ||
"limit": null, | ||
"bootstrap_iters": 100000, | ||
"description_dict": {} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
models/rinna/rinna-japanese-gpt-neox-3.6b-instruction-ppo/harness.jcqa-1.2.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MODEL_ARGS="pretrained=rinna/japanese-gpt-neox-3.6b-instruction-ppo,use_fast=False,device_map=auto,torch_dtype=auto" | ||
TASK="jcommonsenseqa-1.2-0.4" | ||
python main.py --model hf-causal --model_args $MODEL_ARGS --tasks $TASK --num_fewshot "3" --device "cuda" --output_path "models/rinna/rinna-japanese-gpt-neox-3.6b-instruction-ppo/result.jcqa-1.2.json" |
24 changes: 24 additions & 0 deletions
24
models/rinna/rinna-japanese-gpt-neox-3.6b-instruction-ppo/result.jcqa-1.2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"results": { | ||
"jcommonsenseqa-1.2-0.4": { | ||
"acc": 0.7408400357462019, | ||
"acc_stderr": 0.0131046454633739, | ||
"acc_norm": 0.6863270777479893, | ||
"acc_norm_stderr": 0.013876603522158385 | ||
} | ||
}, | ||
"versions": { | ||
"jcommonsenseqa-1.2-0.4": 1.2 | ||
}, | ||
"config": { | ||
"model": "hf-causal", | ||
"model_args": "pretrained=rinna/japanese-gpt-neox-3.6b-instruction-ppo,use_fast=False,device_map=auto,torch_dtype=auto", | ||
"num_fewshot": 3, | ||
"batch_size": null, | ||
"device": "cuda", | ||
"no_cache": false, | ||
"limit": null, | ||
"bootstrap_iters": 100000, | ||
"description_dict": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
models/stabilityai/stabilityai-japanese-stablelm-base-alpha-7b/harness.jcqa-1.2.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -eu | ||
MODEL_ARGS="pretrained=stabilityai/japanese-stablelm-base-alpha-7b,use_fast=False,trust_remote_code=True,device_map=auto,torch_dtype=auto,load_in_8bit=True,low_cpu_mem_usage=True" | ||
TASK="jcommonsenseqa-1.2-0.2" | ||
NUM_FEW_SHOTS="3" | ||
python main.py \ | ||
--model hf-causal \ | ||
--model_args $MODEL_ARGS \ | ||
--tasks $TASK \ | ||
--num_fewshot $NUM_FEW_SHOTS \ | ||
--device "cuda" \ | ||
--output_path "models/stablelm/stablelm-ja-base-alpha-7b/result.jcqa-1.2.json" |