Skip to content

Commit

Permalink
fix: customize lora output file
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Mar 2, 2025
1 parent 82fc40d commit d37847d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bigcodebench/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,12 @@ def run_codegen(
if backend == "openai" and reasoning_effort and model.startswith("o1-") or model.startswith("o3-") or model.endswith("-reasoner"):
model = model + f"--{reasoning_effort}"

if lora_path:
model = model + f"--lora-{lora_path}"

if backend == "anthropic" and reasoning_budget and reasoning_beta:
model = model + f"--{reasoning_budget}-{reasoning_beta}"

if skip_prefill:
identifier = model.replace("/", "--") + "--skip_prefill" + f"--{revision}--bigcodebench{extra}-{split}--{backend}-{temperature}-{n_samples}-sanitized_calibrated.jsonl"
else:
Expand Down

0 comments on commit d37847d

Please sign in to comment.