Skip to content

restructure plugins into data, metrics, models, benchmarks - #50

Merged
mschrimpf merged 15 commits into
mainfrom
mschrimpf/restructure_directories
Aug 31, 2022
Merged

mschrimpf merged 15 commits into
mainfrom
mschrimpf/restructure_directories

Conversation

@mschrimpf

Copy link
Copy Markdown
Member

No description provided.

* update plugin paths

* typo fix

* add bibtex

* unique namespace for plugins

* nix relative import

* update plugin name

* Update brainscore_language/benchmarks/pereira2018/benchmark.py

* Update brainscore_language/utils/plugins/test_plugins.py

* update plugin tests path

* add `models`

Co-authored-by: Martin Schrimpf <[email protected]>

* uplevel plugins

* reflect dir restructuring

* update plugins test instructions

* update paths

Co-authored-by: Katherine Fairchild <[email protected]>
Co-authored-by: Martin Schrimpf <[email protected]>
@mschrimpf
mschrimpf marked this pull request as ready for review August 24, 2022 15:55
# Conflicts:
#	brainscore_language/plugins/test_plugins.py
otherwise users might expect that the plugins/ folder contains the actual plugins
to avoid PermissionDenied error
@mschrimpf
mschrimpf requested a review from kvfairchild August 27, 2022 14:09

logger = logging.getLogger(__name__)

BIBTEX = """@article{pereira2018toward,

@kvfairchild kvfairchild Aug 31, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to add an extension (e.g. sphinxcontrib-bibtex) for generating plugin documentation from these? Maybe we should make BibTeX inclusion a plugin requirement?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooh if you know how to do that, that could be cool! :)

Not every data (etc) will be published, so I would not make it a requirement.

mschrimpf and others added 2 commits August 31, 2022 05:00
Co-authored-by: kvfairchild <[email protected]>
Co-authored-by: kvfairchild <[email protected]>
@mschrimpf
mschrimpf merged commit 3e6fff2 into main Aug 31, 2022
@mschrimpf
mschrimpf deleted the mschrimpf/restructure_directories branch August 31, 2022 17:09
mschrimpf added a commit that referenced this pull request Sep 1, 2022
mschrimpf added a commit that referenced this pull request Sep 2, 2022
* add specific gpt2 model instances

* restructure directories following #50

* adapt to #55
mschrimpf added a commit that referenced this pull request Oct 26, 2022
* restructure huggingface helper

* restructure Futrell2018

* remove __init__.py files to discourage direct imports

* restructure pereira2018

* restructure wikitext, fedorenko2016, and blank2014

* rename plugin pools to `<type>_registry`

`datasets` -> `data_registry`
`metrics` -> `metric_registry`
`benchmarks` -> `benchmark_registry`
`models` -> `model_registry`

* update plugin runner for directory restructure  (#52)

* update plugin paths

* typo fix

* add bibtex

* unique namespace for plugins

* nix relative import

* update plugin name

* Update brainscore_language/benchmarks/pereira2018/benchmark.py

* Update brainscore_language/utils/plugins/test_plugins.py

* update plugin tests path

* add `models`

Co-authored-by: Martin Schrimpf <[email protected]>

* uplevel plugins

* reflect dir restructuring

* update plugins test instructions

* update paths

Co-authored-by: Katherine Fairchild <[email protected]>
Co-authored-by: Martin Schrimpf <[email protected]>

* rename {data,metric,benchmark}.py --> __init__.py

* rename plugins -> plugin_management

otherwise users might expect that the plugins/ folder contains the actual plugins

* autoformat; fix `self.plugin_env_path`

* use `bash` to `run_plugin.sh`

to avoid PermissionDenied error

* nitty oxford comma

Co-authored-by: kvfairchild <[email protected]>
Co-authored-by: Katherine Fairchild <[email protected]>
mschrimpf added a commit that referenced this pull request Oct 26, 2022
* add specific gpt2 model instances

* restructure directories following #50

* adapt to #55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants