Solace-2B / benchmarks /eq_bench_solace_2b.json
proman007's picture
Add EQ-Bench, held-out empathy PPL, and 24-case behavioral benchmarks
e964cec verified
Raw History Blame Contribute Delete
9.92 kB
{
"results": {
"eq_bench": {
"name": "eq_bench",
"alias": "eq_bench",
"sample_len": 171,
"eqbench,none": 53.71575730399311,
"eqbench_stderr,none": 2.4953288426178815,
"percent_parseable,none": 92.39766081871345,
"percent_parseable_stderr,none": 2.03272977443884
}
},
"group_subtasks": {},
"configs": {
"eq_bench": {
"task": "eq_bench",
"dataset_path": "pbevan11/EQ-Bench",
"validation_split": "validation",
"doc_to_text": "prompt",
"doc_to_target": "reference_answer_fullscale",
"unsafe_code": false,
"process_results": "def calculate_score_fullscale(docs, results):\n reference = ast.literal_eval(docs[\"reference_answer_fullscale\"])\n user = dict(re.findall(r\"(\\w+):\\s+(\\d+)\", results[0]))\n # First check that the emotions specified in the answer match those in the reference\n if len(user.items()) != 4:\n # print('! Error: 4 emotions were not returned')\n # print(user)\n return {\"eqbench\": 0, \"percent_parseable\": 0}\n emotions_dict = {}\n for emotion, _user_emotion_score in user.items():\n for i in range(1, 5):\n if emotion == reference[f\"emotion{i}\"]:\n emotions_dict[emotion] = True\n if len(emotions_dict) != 4:\n print(\"! Error: emotions did not match reference\")\n print(user)\n return {\"eqbench\": 0, \"percent_parseable\": 0}\n\n difference_tally = (\n 0 # Tally of differerence from reference answers for this question\n )\n\n # Iterate over each emotion in the user's answers.\n for emotion, user_emotion_score in user.items():\n # If this emotion is in the reference, calculate the difference between the user's score and the reference score.\n for i in range(1, 5):\n if emotion == reference[f\"emotion{i}\"]:\n d = abs(\n float(user_emotion_score) - float(reference[f\"emotion{i}_score\"])\n )\n # this will be a value between 0 and 10\n if d == 0:\n scaled_difference = 0\n elif d <= 5:\n # S-shaped scaling function\n # https://www.desmos.com/calculator\n # 6.5\\cdot\\ \\frac{1}{\\left(1\\ +\\ e^{\\left(-1.2\\cdot\\left(x-4\\right)\\right)}\\right)}\n scaled_difference = 6.5 * (1 / (1 + math.e ** (-1.2 * (d - 4))))\n\n else:\n scaled_difference = d\n difference_tally += scaled_difference\n\n # Inverting the difference tally so that the closer the answer is to reference, the higher the score.\n # The adjustment constant is chosen such that answering randomly produces a score of zero.\n adjust_const = 0.7477\n final_score = 10 - (difference_tally * adjust_const)\n final_score_percent = final_score * 10\n\n return {\"eqbench\": final_score_percent, \"percent_parseable\": 100}\n",
"description": "",
"target_delimiter": " ",
"fewshot_delimiter": "\n\n",
"fewshot_config": {
"sampler": "default",
"split": null,
"process_docs": null,
"fewshot_indices": null,
"samples": null,
"doc_to_text": "prompt",
"doc_to_choice": null,
"doc_to_target": "reference_answer_fullscale",
"gen_prefix": null,
"fewshot_delimiter": "\n\n",
"target_delimiter": " "
},
"num_fewshot": 0,
"metric_list": [
{
"metric": "eqbench",
"aggregation": "mean",
"higher_is_better": true
},
{
"metric": "percent_parseable",
"aggregation": "mean",
"higher_is_better": true
}
],
"output_type": "generate_until",
"generation_kwargs": {
"do_sample": false,
"temperature": 0.0,
"max_gen_toks": 80,
"until": [
"\n\n"
]
},
"repeats": 1,
"should_decontaminate": false,
"metadata": {
"version": 2.1,
"model": "Solace-2B-Q4_K_M",
"base_url": "http://127.0.0.1:8081/v1/chat/completions",
"num_concurrent": 1,
"max_retries": 3,
"config_source": "/usr/local/lib/python3.13/dist-packages/lm_eval/tasks/eq_bench/default.yaml"
}
}
},
"versions": {
"eq_bench": 2.1
},
"n-shot": {
"eq_bench": 0
},
"higher_is_better": {
"eq_bench": {
"eqbench": true,
"percent_parseable": true
}
},
"n-samples": {
"eq_bench": {
"original": 171,
"effective": 171
}
},
"config": {
"model": "local-chat-completions",
"model_args": {
"model": "Solace-2B-Q4_K_M",
"base_url": "http://127.0.0.1:8081/v1/chat/completions",
"num_concurrent": 1,
"max_retries": 3
},
"batch_size": 1,
"batch_sizes": [],
"device": "cuda:0",
"use_cache": null,
"limit": null,
"bootstrap_iters": 100000,
"gen_kwargs": {},
"random_seed": 0,
"numpy_seed": 1234,
"torch_seed": 1234,
"fewshot_seed": 1234
},
"git_hash": null,
"date": 1796136557.0279706,
"pretty_env_info": "PyTorch version: 2.14.1+cpu\nIs debug build: False\nCUDA used to build PyTorch: None\nROCM used to build PyTorch: N/A\n\nOS: Ubuntu 24.04.5 LTS (x86_64)\nGCC version: (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0\nClang version: Could not collect\nCMake version: version 3.31.10\nLibc version: glibc-2.39\n\nPython version: 3.13.18 (main, Oct 26 2026, 15:28:15) [GCC 13.3.0] (64-bit runtime)\nPython platform: Linux-6.6.159+-x86_64-with-glibc2.39\nIs CUDA available: False\nCUDA runtime version: No CUDA\nCUDA_MODULE_LOADING set to: N/A\nGPU models and configuration: No CUDA\nNvidia driver version: No CUDA\ncuDNN version: No CUDA\nIs XPU available: False\nHIP runtime version: N/A\nMIOpen runtime version: N/A\nIs XNNPACK available: False\nCaching allocator config: N/A\n\nCPU:\nArchitecture: x86_64\nCPU op-mode(s): 32-bit, 64-bit\nAddress sizes: 46 bits physical, 48 bits virtual\nByte Order: Little Endian\nCPU(s): 2\nOn-line CPU(s) list: 0,1\nVendor ID: GenuineIntel\nModel name: Intel(R) Xeon(R) CPU @ 2.20GHz\nCPU family: 6\nModel: 79\nThread(s) per core: 2\nCore(s) per socket: 1\nSocket(s): 1\nStepping: 0\nBogoMIPS: 4399.99\nFlags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt arat md_clear arch_capabilities\nHypervisor vendor: KVM\nVirtualization type: full\nL1d cache: 32 KiB (1 instance)\nL1i cache: 32 KiB (1 instance)\nL2 cache: 256 KiB (1 instance)\nL3 cache: 55 MiB (1 instance)\nNUMA node(s): 1\nNUMA node0 CPU(s): 0,1\nVulnerability Gather data sampling: Not affected\nVulnerability Indirect target selection: Vulnerable\nVulnerability Itlb multihit: Not affected\nVulnerability L1tf: Mitigation; PTE Inversion\nVulnerability Mds: Vulnerable; SMT Host state unknown\nVulnerability Meltdown: Vulnerable\nVulnerability Mmio stale data: Vulnerable\nVulnerability Reg file data sampling: Not affected\nVulnerability Retbleed: Vulnerable\nVulnerability Spec rstack overflow: Not affected\nVulnerability Spec store bypass: Vulnerable\nVulnerability Spectre v1: Vulnerable: __user pointer sanitization and usercopy barriers only; no swapgs barriers\nVulnerability Spectre v2: Vulnerable; IBPB: disabled; STIBP: disabled; PBRSB-eIBRS: Not affected; BHI: Vulnerable\nVulnerability Srbds: Not affected\nVulnerability Tsa: Not affected\nVulnerability Tsx async abort: Vulnerable\nVulnerability Vmscape: Not affected\n\nVersions of relevant libraries:\n[pip3] intel-cmplr-lib-ur==2025.3.3\n[pip3] intel-openmp==2025.3.3\n[pip3] mkl==2025.3.1\n[pip3] numpy==2.4.6\n[pip3] nvidia-nccl-cu13==2.32.3\n[pip3] onemkl-license==2025.3.1\n[pip3] optree==0.20.0\n[pip3] tbb==2022.3.1\n[pip3] tcmlib==1.6.0\n[pip3] torch==2.14.1+cpu\n[pip3] torchao==0.10.0\n[pip3] torchaudio==2.11.0+cpu\n[pip3] torchcodec==0.17.0+cpu\n[pip3] torchdata==0.11.0\n[pip3] torchsummary==1.5.1\n[pip3] torchtune==0.6.1\n[pip3] torchvision==0.29.1+cpu\n[pip3] umf==1.0.3\n[conda] Could not collect",
"transformers_version": "5.22.1",
"lm_eval_version": "0.4.13",
"upper_git_hash": null,
"task_hashes": {
"eq_bench": "960d84e532fa9164208072dbb7fe8a6a21917f222f5eab84bd175d123bff48c5"
},
"model_source": "local-chat-completions",
"model_name": "Solace-2B-Q4_K_M",
"model_name_sanitized": "Solace-2B-Q4_K_M",
"system_instruction": null,
"system_instruction_sha": null,
"fewshot_as_multiturn": true,
"chat_template": "",
"chat_template_sha": null,
"total_evaluation_time_seconds": "5289.858695991999"
}