From c9878ef98f904f586a4cbfb36ffe6b2c47c049b6 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Wed, 29 Jul 2026 22:39:23 +0000 Subject: [PATCH] Fase 5: puertas 2-4 - permitir results filename configurable via env var Para reusar los scripts de Fase 4 contra el endpoint NVFP4 nuevo sin sobreescribir los resultados de Fase 4 (data/gate{2,3,4}_results.json, ya commiteados como baseline de comparacion). Default sin cambios cuando la env var no esta seteada. --- scripts/32_gate2_toolcalls.py | 2 +- scripts/33_gate3_adherencia.py | 2 +- scripts/34_gate4_e2e.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/32_gate2_toolcalls.py b/scripts/32_gate2_toolcalls.py index f642267..50585b1 100644 --- a/scripts/32_gate2_toolcalls.py +++ b/scripts/32_gate2_toolcalls.py @@ -32,7 +32,7 @@ import requests REPO_ROOT = Path(__file__).resolve().parent.parent HOLDOUT_PATH = REPO_ROOT / "data" / "holdout_prompts.jsonl" -RESULTS_PATH = REPO_ROOT / "data" / "gate2_results.json" +RESULTS_PATH = REPO_ROOT / "data" / os.environ.get("GATE2_RESULTS_FILENAME", "gate2_results.json") BASE_URL = os.environ.get("VLLM_EVAL_URL", "http://localhost:8001") MODEL_NAME = os.environ.get("VLLM_EVAL_MODEL", "qwen3.6-35b-a3b-mcp-bf16") diff --git a/scripts/33_gate3_adherencia.py b/scripts/33_gate3_adherencia.py index 95c0a4d..14dc129 100644 --- a/scripts/33_gate3_adherencia.py +++ b/scripts/33_gate3_adherencia.py @@ -27,7 +27,7 @@ from pathlib import Path import requests REPO_ROOT = Path(__file__).resolve().parent.parent -RESULTS_PATH = REPO_ROOT / "data" / "gate3_results.json" +RESULTS_PATH = REPO_ROOT / "data" / os.environ.get("GATE3_RESULTS_FILENAME", "gate3_results.json") EVAL_URL = os.environ.get("VLLM_EVAL_URL", "http://localhost:8001") EVAL_MODEL = os.environ.get("VLLM_EVAL_MODEL", "qwen3.6-35b-a3b-mcp-bf16") diff --git a/scripts/34_gate4_e2e.py b/scripts/34_gate4_e2e.py index 640f68a..965bea6 100644 --- a/scripts/34_gate4_e2e.py +++ b/scripts/34_gate4_e2e.py @@ -32,7 +32,7 @@ import requests REPO_ROOT = Path(__file__).resolve().parent.parent SCHEMAS_DIR = REPO_ROOT / "data" / "schemas" -RESULTS_PATH = REPO_ROOT / "data" / "gate4_results.json" +RESULTS_PATH = REPO_ROOT / "data" / os.environ.get("GATE4_RESULTS_FILENAME", "gate4_results.json") EVAL_URL = os.environ.get("VLLM_EVAL_URL", "http://localhost:8001") EVAL_MODEL = os.environ.get("VLLM_EVAL_MODEL", "qwen3.6-35b-a3b-mcp-bf16")