{
  "results": {
    "code_instruct": {
      "pass_at_1,n=1": 0.770508826583593,
      "pass_at_1_stderr,n=1": 0.013547264970313243,
      "alias": "code_instruct"
    },
    "humaneval_greedy_instruct": {
      "alias": " - humaneval_greedy_instruct",
      "pass_at_1,n=1": 0.823170731707317,
      "pass_at_1_stderr,n=1": 0.029883277857485988
    },
    "humaneval_plus_greedy_instruct": {
      "alias": " - humaneval_plus_greedy_instruct",
      "pass_at_1,n=1": 0.7621951219512195,
      "pass_at_1_stderr,n=1": 0.033346454086653404
    },
    "mbpp_plus_0shot_instruct": {
      "alias": " - mbpp_plus_0shot_instruct",
      "pass_at_1,n=1": 0.7751322751322751,
      "pass_at_1_stderr,n=1": 0.02150209607822914
    },
    "mbpp_sanitized_0shot_instruct": {
      "alias": " - mbpp_sanitized_0shot_instruct",
      "pass_at_1,n=1": 0.7354085603112841,
      "pass_at_1_stderr,n=1": 0.027569713464529938
    }
  },
  "groups": {
    "code_instruct": {
      "pass_at_1,n=1": 0.770508826583593,
      "pass_at_1_stderr,n=1": 0.013547264970313243,
      "alias": "code_instruct"
    }
  },
  "group_subtasks": {
    "code_instruct": [
      "mbpp_sanitized_0shot_instruct",
      "mbpp_plus_0shot_instruct",
      "humaneval_greedy_instruct",
      "humaneval_plus_greedy_instruct"
    ]
  },
  "configs": {
    "humaneval_greedy_instruct": {
      "task": "humaneval_greedy_instruct",
      "tag": "coding",
      "dataset_path": "openai/openai_humaneval",
      "test_split": "test",
      "process_docs": "def process_docs_w_chat_template(dataset: datasets.Dataset) -> datasets.Dataset:\n    def _process_doc(doc: dict) -> dict:\n        out_doc = doc.copy()\n        out_doc[\"input_final_prompt\"] = apply_chat_template(doc)\n        return out_doc\n    processed_doc = dataset.map(_process_doc)\n    # # take the first 10 to debug\n    # processed_doc = processed_doc.select(range(10))\n    return processed_doc\n",
      "doc_to_text": "def doc_to_text(doc: dict) -> str:\n    return doc[\"input_final_prompt\"]\n",
      "doc_to_target": "def build_references(doc):\n    return doc[\"test\"] + \"\\n\" + f\"check({doc['entry_point']})\"\n",
      "description": "",
      "target_delimiter": " ",
      "fewshot_delimiter": "\n\n",
      "num_fewshot": 0,
      "metric_list": [
        {
          "metric": "def pass_at_1(references, predictions):\n    pass_at_k = initialize_metrics_modules(module=\"code_eval\")  # huggingface code_eval module is not thread safe, so we need to initialize it in each function call\n    return pass_at_k.compute(\n        references=references,\n        predictions=predictions,\n        k=[1],\n        num_workers=16,\n    )[0][\"pass@1\"]\n",
          "aggregation": "mean",
          "higher_is_better": true
        }
      ],
      "output_type": "generate_until",
      "generation_kwargs": {
        "until": [
          "```",
          "\nclass",
          "\ndef",
          "\n#",
          "\nif",
          "\nprint",
          "<|eot_id|>",
          "<|start_header_id|>user<|end_header_id|>",
          "</s>",
          "<|im_end|>"
        ],
        "do_sample": false,
        "temperature": 0.0
      },
      "repeats": 1,
      "filter_list": [
        {
          "name": "n=1",
          "filter": [
            {
              "function": "custom",
              "filter_fn": "<function build_predictions at 0x7b3670f5ab00>"
            }
          ]
        }
      ],
      "should_decontaminate": false,
      "metadata": {
        "version": 1.0
      }
    },
    "humaneval_plus_greedy_instruct": {
      "task": "humaneval_plus_greedy_instruct",
      "tag": "coding",
      "dataset_path": "evalplus/humanevalplus",
      "test_split": "test",
      "process_docs": "def process_docs_w_chat_template(dataset: datasets.Dataset) -> datasets.Dataset:\n    def _process_doc(doc: dict) -> dict:\n        out_doc = doc.copy()\n        out_doc[\"input_final_prompt\"] = apply_chat_template(doc)\n        return out_doc\n    processed_doc = dataset.map(_process_doc)\n    # # take the first 10 to debug\n    # processed_doc = processed_doc.select(range(10))\n    return processed_doc\n",
      "doc_to_text": "def doc_to_text(doc: dict) -> str:\n    return doc[\"input_final_prompt\"]\n",
      "doc_to_target": "def build_references(doc):\n    return doc[\"test\"] + \"\\n\" + f\"check({doc['entry_point']})\"\n",
      "description": "",
      "target_delimiter": " ",
      "fewshot_delimiter": "\n\n",
      "num_fewshot": 0,
      "metric_list": [
        {
          "metric": "def pass_at_1(references, predictions):\n    pass_at_k = initialize_metrics_modules(module=\"code_eval\")  # huggingface code_eval module is not thread safe, so we need to initialize it in each function call\n    return pass_at_k.compute(\n        references=references,\n        predictions=predictions,\n        k=[1],\n        num_workers=16,\n    )[0][\"pass@1\"]\n",
          "aggregation": "mean",
          "higher_is_better": true
        }
      ],
      "output_type": "generate_until",
      "generation_kwargs": {
        "until": [
          "```",
          "\nclass",
          "\ndef",
          "\n#",
          "\nif",
          "\nprint",
          "<|eot_id|>",
          "<|start_header_id|>user<|end_header_id|>",
          "</s>",
          "<|im_end|>"
        ],
        "do_sample": false,
        "temperature": 0.0
      },
      "repeats": 1,
      "filter_list": [
        {
          "name": "n=1",
          "filter": [
            {
              "function": "custom",
              "filter_fn": "<function build_predictions at 0x7b36711317e0>"
            }
          ]
        }
      ],
      "should_decontaminate": false,
      "metadata": {
        "version": 1.0
      }
    },
    "mbpp_plus_0shot_instruct": {
      "task": "mbpp_plus_0shot_instruct",
      "tag": "coding",
      "dataset_path": "evalplus/mbppplus",
      "test_split": "test",
      "process_docs": "def process_docs_w_chat_template(dataset: datasets.Dataset) -> datasets.Dataset:\n    def _process_doc(doc: dict) -> dict:\n        # mbpp full have column named text instead of prompt, while mbpp sanitized have prompt column, so make it consistent with prompt column\n        if \"prompt\" not in doc and \"text\" in doc:\n            doc[\"prompt\"] = doc[\"text\"]\n        doc[\"input_final_prompt\"] = apply_chat_template(doc)\n        if getattr(doc, \"is_fewshot\", None) is not None:\n            doc[\"is_fewshot\"] = True\n        return doc\n    processed_doc = dataset.map(_process_doc)\n    # # take the first 10 to debug\n    # processed_doc = processed_doc.select(range(10))\n    return processed_doc\n",
      "doc_to_text": "def doc_to_text(doc: dict) -> str:\n    return doc[\"input_final_prompt\"]\n",
      "doc_to_target": "{% if is_fewshot is defined %}{{code}}{% else %}{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}{% endif %}",
      "description": "",
      "target_delimiter": "\n",
      "fewshot_delimiter": "\n\n",
      "num_fewshot": 0,
      "metric_list": [
        {
          "metric": "def pass_at_1(references, predictions):\n    pass_at_k = initialize_metrics_modules(module=\"code_eval\")  # huggingface code_eval module is not thread safe, so we need to initialize it in each function call\n    return pass_at_k.compute(\n        references=references,\n        predictions=predictions,\n        k=[1],\n        num_workers=16,\n    )[0][\"pass@1\"]\n",
          "aggregation": "mean",
          "higher_is_better": true
        }
      ],
      "output_type": "generate_until",
      "generation_kwargs": {
        "until": [
          "<|eot_id|>",
          "<|start_header_id|>user<|end_header_id|>",
          "</s>",
          "<|im_end|>"
        ],
        "do_sample": false,
        "temperature": 0.0
      },
      "repeats": 1,
      "filter_list": [
        {
          "name": "n=1",
          "filter": [
            {
              "function": "custom",
              "filter_fn": "<function build_predictions at 0x7b3671030dc0>"
            }
          ]
        }
      ],
      "should_decontaminate": false,
      "metadata": {
        "version": 1.0
      }
    },
    "mbpp_sanitized_0shot_instruct": {
      "task": "mbpp_sanitized_0shot_instruct",
      "tag": "coding",
      "dataset_path": "google-research-datasets/mbpp",
      "dataset_name": "sanitized",
      "test_split": "test",
      "process_docs": "def process_docs_w_chat_template(dataset: datasets.Dataset) -> datasets.Dataset:\n    def _process_doc(doc: dict) -> dict:\n        # mbpp full have column named text instead of prompt, while mbpp sanitized have prompt column, so make it consistent with prompt column\n        if \"prompt\" not in doc and \"text\" in doc:\n            doc[\"prompt\"] = doc[\"text\"]\n        doc[\"input_final_prompt\"] = apply_chat_template(doc)\n        if getattr(doc, \"is_fewshot\", None) is not None:\n            doc[\"is_fewshot\"] = True\n        return doc\n    processed_doc = dataset.map(_process_doc)\n    # # take the first 10 to debug\n    # processed_doc = processed_doc.select(range(10))\n    return processed_doc\n",
      "doc_to_text": "def doc_to_text(doc: dict) -> str:\n    return doc[\"input_final_prompt\"]\n",
      "doc_to_target": "{% if is_fewshot is defined %}{{code}}{% else %}{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}{% endif %}",
      "description": "",
      "target_delimiter": "\n",
      "fewshot_delimiter": "\n\n",
      "num_fewshot": 0,
      "metric_list": [
        {
          "metric": "def pass_at_1(references, predictions):\n    pass_at_k = initialize_metrics_modules(module=\"code_eval\")  # huggingface code_eval module is not thread safe, so we need to initialize it in each function call\n    return pass_at_k.compute(\n        references=references,\n        predictions=predictions,\n        k=[1],\n        num_workers=16,\n    )[0][\"pass@1\"]\n",
          "aggregation": "mean",
          "higher_is_better": true
        }
      ],
      "output_type": "generate_until",
      "generation_kwargs": {
        "until": [
          "<|eot_id|>",
          "<|start_header_id|>user<|end_header_id|>",
          "</s>",
          "<|im_end|>"
        ],
        "do_sample": false,
        "temperature": 0.0
      },
      "repeats": 1,
      "filter_list": [
        {
          "name": "n=1",
          "filter": [
            {
              "function": "custom",
              "filter_fn": "<function build_predictions at 0x7b3670626a70>"
            }
          ]
        }
      ],
      "should_decontaminate": false,
      "metadata": {
        "version": 1.0
      }
    }
  },
  "versions": {
    "code_instruct": 1.0,
    "humaneval_greedy_instruct": 1.0,
    "humaneval_plus_greedy_instruct": 1.0,
    "mbpp_plus_0shot_instruct": 1.0,
    "mbpp_sanitized_0shot_instruct": 1.0
  },
  "n-shot": {
    "humaneval_greedy_instruct": 0,
    "humaneval_plus_greedy_instruct": 0,
    "mbpp_plus_0shot_instruct": 0,
    "mbpp_sanitized_0shot_instruct": 0
  },
  "higher_is_better": {
    "code_instruct": {
      "pass_at_1": true
    },
    "humaneval_greedy_instruct": {
      "pass_at_1": true
    },
    "humaneval_plus_greedy_instruct": {
      "pass_at_1": true
    },
    "mbpp_plus_0shot_instruct": {
      "pass_at_1": true
    },
    "mbpp_sanitized_0shot_instruct": {
      "pass_at_1": true
    }
  },
  "n-samples": {
    "mbpp_sanitized_0shot_instruct": {
      "original": 257,
      "effective": 257
    },
    "mbpp_plus_0shot_instruct": {
      "original": 378,
      "effective": 378
    },
    "humaneval_greedy_instruct": {
      "original": 164,
      "effective": 164
    },
    "humaneval_plus_greedy_instruct": {
      "original": 164,
      "effective": 164
    }
  },
  "config": {
    "model": "ControlLLMWrapper",
    "model_args": {
      "pretrained": "/shared/user/fine-tune/coach/model/llama3-checkpoint-sft-padding-opencoder-concat-hybrid-dlerp8-no-divloss/checkpoint-21000",
      "dtype": "bfloat16",
      "trust_remote_code": true,
      "tensor_parallel_size": 1,
      "gpu_memory_utilization": 0.6,
      "data_parallel_size": 8,
      "max_model_len": 8192,
      "enable_prefix_caching": false,
      "add_bos_token": true,
      "seed": 42,
      "register_model": "/shared/user/fine-tune/coach/model/llama3-checkpoint-sft-padding-opencoder-concat-hybrid-dlerp8-no-divloss/checkpoint-21000"
    },
    "batch_size": 8,
    "batch_sizes": [],
    "device": null,
    "use_cache": null,
    "limit": null,
    "bootstrap_iters": 100000,
    "gen_kwargs": null,
    "random_seed": 0,
    "numpy_seed": 1234,
    "torch_seed": 1234,
    "fewshot_seed": 1234
  },
  "git_hash": null,
  "date": 1734336958.0679302,
  "pretty_env_info": "PyTorch version: 2.4.0+cu118\nIs debug build: False\nCUDA used to build PyTorch: 11.8\nROCM used to build PyTorch: N/A\n\nOS: CBL-Mariner/Linux (x86_64)\nGCC version: (GCC) 11.2.0\nClang version: Could not collect\nCMake version: version 3.21.4\nLibc version: glibc-2.35\n\nPython version: 3.10.14 (main, Jul 14 2024, 22:24:12) [GCC 11.2.0] (64-bit runtime)\nPython platform: Linux-5.15.164.1-1.cm2-x86_64-with-glibc2.35\nIs CUDA available: True\nCUDA runtime version: 11.8.89\nCUDA_MODULE_LOADING set to: LAZY\nGPU models and configuration: \nGPU 0: NVIDIA A100-SXM4-80GB\nGPU 1: NVIDIA A100-SXM4-80GB\nGPU 2: NVIDIA A100-SXM4-80GB\nGPU 3: NVIDIA A100-SXM4-80GB\nGPU 4: NVIDIA A100-SXM4-80GB\nGPU 5: NVIDIA A100-SXM4-80GB\nGPU 6: NVIDIA A100-SXM4-80GB\nGPU 7: NVIDIA A100-SXM4-80GB\n\nNvidia driver version: 550.54.15\ncuDNN version: Probably one of the following:\n/usr/lib/libcudnn.so.8.9.5\n/usr/lib/libcudnn_adv_infer.so.8.9.5\n/usr/lib/libcudnn_adv_train.so.8.9.5\n/usr/lib/libcudnn_cnn_infer.so.8.9.5\n/usr/lib/libcudnn_cnn_train.so.8.9.5\n/usr/lib/libcudnn_ops_infer.so.8.9.5\n/usr/lib/libcudnn_ops_train.so.8.9.5\nHIP runtime version: N/A\nMIOpen runtime version: N/A\nIs XNNPACK available: True\n\nCPU:\nArchitecture:                         x86_64\nCPU op-mode(s):                       32-bit, 64-bit\nAddress sizes:                        48 bits physical, 48 bits virtual\nByte Order:                           Little Endian\nCPU(s):                               256\nOn-line CPU(s) list:                  0-255\nVendor ID:                            AuthenticAMD\nModel name:                           AMD EPYC 7763 64-Core Processor\nCPU family:                           25\nModel:                                1\nThread(s) per core:                   2\nCore(s) per socket:                   64\nSocket(s):                            2\nStepping:                             1\nFrequency boost:                      enabled\nCPU max MHz:                          3529.0520\nCPU min MHz:                          1500.0000\nBogoMIPS:                             4900.22\nFlags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 invpcid_single hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca\nVirtualization:                       AMD-V\nL1d cache:                            4 MiB (128 instances)\nL1i cache:                            4 MiB (128 instances)\nL2 cache:                             64 MiB (128 instances)\nL3 cache:                             512 MiB (16 instances)\nNUMA node(s):                         8\nNUMA node0 CPU(s):                    0-15,128-143\nNUMA node1 CPU(s):                    16-31,144-159\nNUMA node2 CPU(s):                    32-47,160-175\nNUMA node3 CPU(s):                    48-63,176-191\nNUMA node4 CPU(s):                    64-79,192-207\nNUMA node5 CPU(s):                    80-95,208-223\nNUMA node6 CPU(s):                    96-111,224-239\nNUMA node7 CPU(s):                    112-127,240-255\nVulnerability Gather data sampling:   Not affected\nVulnerability Itlb multihit:          Not affected\nVulnerability L1tf:                   Not affected\nVulnerability Mds:                    Not affected\nVulnerability Meltdown:               Not affected\nVulnerability Mmio stale data:        Not affected\nVulnerability Reg file data sampling: Not affected\nVulnerability Retbleed:               Not affected\nVulnerability Spec rstack overflow:   Mitigation; safe RET, no microcode\nVulnerability Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl and seccomp\nVulnerability Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization\nVulnerability Spectre v2:             Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected\nVulnerability Srbds:                  Not affected\nVulnerability Tsx async abort:        Not affected\n\nVersions of relevant libraries:\n[pip3] flake8==7.1.1\n[pip3] flash-attn==2.6.3+cu118torch2.4cxx11abifalse\n[pip3] mypy-extensions==1.0.0\n[pip3] numpy==1.24.3\n[pip3] torch==2.4.0+cu118\n[pip3] torch-tb-profiler==0.4.1\n[pip3] torchsummary==1.5.1\n[pip3] torchvision==0.19.0+cu118\n[pip3] triton==3.0.0\n[conda] Could not collect",
  "transformers_version": "4.46.2",
  "upper_git_hash": null,
  "tokenizer_pad_token": [
    "<PAD>",
    "128256"
  ],
  "tokenizer_eos_token": [
    "<|eot_id|>",
    "128009"
  ],
  "tokenizer_bos_token": [
    "<|begin_of_text|>",
    "128000"
  ],
  "eot_token_id": 128009,
  "max_length": 8192
}