Add Xarena spreadsheet benchmark package - #55
Draft
370025263 wants to merge 1 commit into
Draft
Conversation
| ) | ||
| worker = AlfworldWorker(config, seed, base_env, gamefile) | ||
| result_q.put((True, "ready")) | ||
| except BaseException: |
| else: | ||
| raise ValueError(f"Unknown ALFWorld worker command: {cmd}") | ||
| result_q.put((True, result)) | ||
| except BaseException: |
| for line in f: | ||
| try: | ||
| existing.append(json.loads(line)) | ||
| except Exception: |
| try: | ||
| import torch | ||
| _torch_tensor = torch.Tensor | ||
| except ImportError: |
| try: | ||
| from skillopt.envs.alfworld.adapter import ALFWorldAdapter | ||
| _ENV_REGISTRY["alfworld"] = ALFWorldAdapter | ||
| except ImportError: |
| try: | ||
| from skillopt.envs.searchqa.adapter import SearchQAAdapter | ||
| _ENV_REGISTRY["searchqa"] = SearchQAAdapter | ||
| except ImportError: |
| try: | ||
| from skillopt.envs.livemathematicianbench.adapter import LiveMathematicianBenchAdapter | ||
| _ENV_REGISTRY["livemathematicianbench"] = LiveMathematicianBenchAdapter | ||
| except ImportError: |
| try: | ||
| from skillopt.envs.babyvision.adapter import BabyVisionAdapter | ||
| _ENV_REGISTRY["babyvision"] = BabyVisionAdapter | ||
| except ImportError: |
| try: | ||
| from skillopt.envs.spreadsheetbench.adapter import SpreadsheetBenchAdapter | ||
| _ENV_REGISTRY["spreadsheetbench"] = SpreadsheetBenchAdapter | ||
| except ImportError: |
| try: | ||
| from skillopt.envs.mmrb.adapter import MMRBAdapter | ||
| _ENV_REGISTRY["mmrb"] = MMRBAdapter | ||
| except ImportError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
benchmark/spreadsheet_xarenawith an Xarena-compatible xskill algorithm imageXarena contract
The algorithm image writes:
build.shcopies the current xskill checkout into the Docker build context, so this MR branch is what gets installed into the image.Verification
bash -n benchmark/spreadsheet_xarena/algo_app/build.shbash -n benchmark/spreadsheet_xarena/algo_app/entrypoint_train.shbash -n benchmark/spreadsheet_xarena/dataset/prepare_data_root.shDEST=/tmp/xskill-data-root-test ZIP_PATH=/tmp/xskill-compete.head bash benchmark/spreadsheet_xarena/dataset/prepare_data_root.shextracted 100 tasksDATA_ROOT=/tmp/xskill-data-root-test TAG=draft-check-nodata PUSH=0 bash benchmark/spreadsheet_xarena/algo_app/build.shxskill serve --help,/data/dataset.json,/data/spreadsheet, and train/val split counts verified