Spaces:
Running on Zero
Running on Zero
Setup: uv Python 3.11 venv
Browse files177 unmodified lines178179180181182183184185186187188189190191177 unmodified linescommit_file.write_text(PINNED_COMMIT)env = {**os.environ, "PYTHONPATH": str(repo_dir / "src"), "PATH": os.environ["PATH"]}run([sys.executable, "-m", "pip", "install", "--no-cache-dir", "-e", str(repo_dir)],env=env)help_text = run([sys.executable, "-m", "trajpatch", "run-answer-ablation", "--help"],env=env).stdoutmissing = [f for f in CLAIM_FLAGS if f not in help_text]if missing:raise RuntimeError(f"claim-critical flags missing at pinned commit: {missing}")smoke = run([sys.executable, "-m", "trajpatch", "benchmark-locomo","--dataset-path", str(data_dir), "--subset", "multi_hop","--backbone-provider-kind", "mock", "--judge-provider-kind", "mock","--embedding-model", "hash-embedding", "--max-samples", "1",177 unmodified lines178179180181182183184185186187188189190191192193194195196197198177 unmodified linescommit_file.write_text(PINNED_COMMIT)env = {**os.environ, "PYTHONPATH": str(repo_dir / "src"), "PATH": os.environ["PATH"]}# TrajWiki requires Python >= 3.11; the Space runtime is 3.10. Build a 3.11# venv with uv (no root needed) and run all pipeline steps from it.run([sys.executable, "-m", "pip", "install", "--quiet", "uv"], env=env)run([sys.executable, "-m", "uv", "python", "install", "3.11"], env=env)run([sys.executable, "-m", "uv", "venv", "--python", "3.11", str(WORK / "venv")],env=env)py = str(WORK / "venv" / "bin" / "python")run([py, "-m", "uv", "pip", "install", "--no-cache-dir", "-e", str(repo_dir)],env=env)help_text = run([py, "-m", "trajpatch", "run-answer-ablation", "--help"],env=env).stdoutmissing = [f for f in CLAIM_FLAGS if f not in help_text]if missing:raise RuntimeError(f"claim-critical flags missing at pinned commit: {missing}")smoke = run([py, "-m", "trajpatch", "benchmark-locomo","--dataset-path", str(data_dir), "--subset", "multi_hop","--backbone-provider-kind", "mock", "--judge-provider-kind", "mock","--embedding-model", "hash-embedding", "--max-samples", "1",
executor_entrypoint.py+10-3