Add CLI support for running RecursiveMAS on custom prompts#18
Open
lamm-mit wants to merge 7 commits into
Open
Conversation
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
run_custom.py, a CLI entry point for running RecursiveMAS on user-provided prompts without modifying benchmark datasets.-q/--questionflags or.txt,.json,.jsonl, and.ndjsonfiles.math,choice, andcode, plus a new customreasoningmode for open-ended prompts, mapping each mode onto the existing RecursiveMAS inference pipelines and prompt/evaluationfamilies.
JSONLoutput, normalizes it into cleaner per-sample records, prints readable outputs, and optionally writes results with--output_jsonl.READMEwithrun_custom.pyin the project layout, a short component description, supported file formats, task guidance, and examples for direct prompts, file-based prompts, and collaboration-style comparisons.Example usage
python run_custom.py --style sequential_scaled --task reasoning \ -q "In materiomics, a material is studied across atomic, molecular, microstructural, and macroscopic scales. Explain how hierarchical structure can create toughness in bone while preserving stiffness." \ --device cudaValidation
python -m py_compile run_custom.pyTODO: Replace the current compatibility-layer implementation with a first-class custom dataset and inference API. The present runner intentionally reuses the existing benchmark-oriented inference path so that custom prompts behave consistently with the current RecursiveMAS pipelines, but a dedicated custom inference endpoint would make this workflow cleaner, easier to maintain, and less dependent on runtime adaptation.