Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Create pull_request_template.md #13

Merged
merged 5 commits into from
Jul 15, 2024
Merged

Conversation

jlkravitz
Copy link
Collaborator

This is the template for PRs, for us and for the outside world (to, e.g., add models and tasks). MTEB has a dataset and task checklist. For reference, below is the template they use.


Checklist

  • Run tests locally to make sure nothing is broken using make test.
  • Run the formatter to format the code using make lint.

Adding datasets checklist

Reason for dataset addition: ...

  • I have run the following models on the task (adding the results to the pr). These can be run using the mteb -m {model_name} -t {task_name} command.
    • sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
    • intfloat/multilingual-e5-small
  • I have checked that the performance is neither trivial (both models gain close to perfect scores) nor random (both models gain close to random scores).
  • If the dataset is too big (e.g. >2048 examples), considering using self.stratified_subsampling() under dataset_transform()
  • I have filled out the metadata object in the dataset file (find documentation on it here).
  • Run tests locally to make sure nothing is broken using make test.
  • Run the formatter to format the code using make lint.

Adding a model checklist

  • I have filled out the ModelMeta object to the extent possible
  • I have ensured that my model can be loaded using
    • mteb.get_model(model_name, revision_id) and
    • mteb.get_model_meta(model_name, revision_id)
  • I have tested the implementation works on a representative set of tasks.

@jlkravitz jlkravitz changed the title chore: Create pull_request_template.md docs: Create pull_request_template.md Jul 11, 2024
Copy link
Contributor

@scopello scopello left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@jlkravitz
Copy link
Collaborator Author

jlkravitz commented Jul 15, 2024 via email

Copy link
Contributor

@ninjha01 ninjha01 left a comment

Choose a reason for hiding this comment

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

Two thoughts:

  1. This is totally a nit, but do we care about all of these distinctions? On my end, all I care about is breaking change/non breaking change + motivation for the PR.
- [ ] Bugfix
- [ ] Feature (e.g., including new dataset or model)
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:

Perhaps contradictorily, I'd like to have a section for the reviewer to go through:

[ ] CI passes
[ ] docs updated
[ ] manual spotcheck
  1. Perhaps off topic, but should we have a separate template for the actual results submission? Or could we fold that into this? I can create an issue and take this on if we think it's a good idea.

@jlkravitz
Copy link
Collaborator Author

Two thoughts:

  1. This is totally a nit, but do we care about all of these distinctions? On my end, all I care about is breaking change/non breaking change + motivation for the PR.
- [ ] Bugfix
- [ ] Feature (e.g., including new dataset or model)
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:

Perhaps contradictorily, I'd like to have a section for the reviewer to go through:

[ ] CI passes
[ ] docs updated
[ ] manual spotcheck
  1. Perhaps off topic, but should we have a separate template for the actual results submission? Or could we fold that into this? I can create an issue and take this on if we think it's a good idea.

On 1, I think my thought is that I would like to appropriately tag the commit, and these correspond 1:1 with the conventional commit standard. I'm open to changing them or making them more aligned with this project, though. Thoughts?

Imo, CI passes: that's automated and required to merge.
docs updated: added
manual spotcheck: not sure if this adds anything?

On 2, I think we could fold into this. It seems like it can get annoying to have multiple PR templates. I'll merge this, and then we can iterate on it if that works!

@ninjha01
Copy link
Contributor

ninjha01 commented Jul 15, 2024 via email

@jlkravitz jlkravitz merged commit 6c7b831 into main Jul 15, 2024
2 checks passed
@jlkravitz jlkravitz deleted the jlkravitz-pr-template branch July 15, 2024 20:03
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.

3 participants