Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
__pycache__
*.pyc
.pytest_cache
results
.jetskicli

13 changes: 13 additions & 0 deletions evalbench/evalbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
None,
"Path to a suite configuration file to run multiple experiments.",
)
flags.declare_key_flag('experiment_config')


def eval(experiment_config: str):
Expand Down Expand Up @@ -208,6 +209,18 @@ def main(argv: Sequence[str]):

def run():
"""Starting function for the uvx package entrypoint."""
# Fix absl help output when run via uvx/launcher
if '__main__' in sys.modules:
main_module = sys.modules['__main__']
if main_module.__doc__ and 'exec' in main_module.__doc__:
main_module.__doc__ = sys.modules[__name__].__doc__
# Clean up sys.argv[0] to hide the full temporary path
sys.argv[0] = os.path.basename(sys.argv[0])
# Register key flags for __main__ and sys.argv[0] so they show up in launcher's short help
flags.FLAGS.register_key_flag_for_module('__main__', flags.FLAGS['experiment_config'])
flags.FLAGS.register_key_flag_for_module('__main__', flags.FLAGS['suite_config'])
flags.FLAGS.register_key_flag_for_module(sys.argv[0], flags.FLAGS['experiment_config'])
flags.FLAGS.register_key_flag_for_module(sys.argv[0], flags.FLAGS['suite_config'])
app.run(main)


Expand Down
3 changes: 2 additions & 1 deletion evalbench_service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -
WORKDIR /evalbench
COPY pyproject.toml uv.lock ./
COPY viewer/pyproject.toml viewer/
RUN uv sync --frozen
RUN uv sync --frozen --all-packages
COPY . .
RUN uv sync --frozen --all-packages

# Create a non-root user for Claude Code. It refuses
# --dangerously-skip-permissions when running as root.
Expand Down
2 changes: 1 addition & 1 deletion viewer/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
023d150
dbfbafa
Loading