Views
No views yet
frozen-checkpoint-step-0005000 from qrk-labs/dabe-stage-b-gpt2-0_5b-stage-a.1{
2 "arc_easy": 2251,
3 "commonsenseqa": 9741,
4 "dolly": 15011,
5 "oasst1": 34795,
6 "openbookqa": 4957,
7 "tinystories_lm_mix": 3000,
8 "winogrande": 40398
9}1<|endoftext|>Instruction:
2{instruction}
3
4Input:
5{optional input}
6
7Answer:
8{response}<|endoftext|>| Task | Split | Metric | Value | Examples |
|---|---|---|---|---|
| hellaswag | validation | accuracy_norm | 0.2584 | 10042 |
| openbookqa | validation | accuracy_norm | 0.2480 | 500 |
| winogrande | validation | accuracy_norm | 0.5012 | 1267 |
| commonsenseqa | validation | accuracy_norm | 0.2621 | 1221 |
| arc_easy | validation | accuracy_norm | 0.3351 | 570 |
| lambada | test | next_word_exact_match | 0.0968 | 5153 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "qrk-labs/dabe-stage-b-gpt2-0_5b-instruct-sft"
4tok = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(model_id)
6
7prompt = "<|endoftext|>Instruction:\nWrite a short thank-you note to a teacher.\n\nAnswer:\n"
8inputs = tok(prompt, return_tensors="pt")
9out = model.generate(**inputs, max_new_tokens=80, do_sample=False, pad_token_id=tok.eos_token_id)
10print(tok.decode(out[0]))