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

Fix create_meta function in cli.py #912

Merged
merged 2 commits into from
Jun 15, 2024
Merged

Fix create_meta function in cli.py #912

merged 2 commits into from
Jun 15, 2024

Conversation

lbourdois
Copy link
Contributor

Hello,

I followed the instructions provided in https://github.com/embeddings-benchmark/mteb/blob/main/docs/adding_a_model.md.
It turns out that at step "3. Add the frontmatter to model repository", when copying the metadata generated in the README.md, Hugging Face returns the following error:
image

After some investigation, I realized that this was because "s" was missing for "metrics" as well as a "-" before the "type:" contained in "metrics".
By adding them, everything works locally. So I'm taking the liberty of opening this PR to avoid this problem for others.

Have a nice day :)

Fix create_meta function
@KennethEnevoldsen
Copy link
Contributor

Wonderful thanks for the PR

@henilp105
Copy link
Contributor

@lbourdois Thanks for the PR, The tests are failing due to the tests/test_cli.py , to resolve them you would have to change line 11 in tests/create_meta/model_card.md and tests/create_meta/model_card_gold.md with metrics . (extra s)

@lbourdois
Copy link
Contributor Author

Thanks for the tip @henilp105, it's been propagated

Copy link
Contributor

@henilp105 henilp105 left a comment

Choose a reason for hiding this comment

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

Thanks @lbourdois , just run the make lint and then push a commit , so that it could be merged.

@KennethEnevoldsen KennethEnevoldsen enabled auto-merge (squash) June 15, 2024 11:19
@KennethEnevoldsen KennethEnevoldsen merged commit af365b7 into embeddings-benchmark:main Jun 15, 2024
6 of 7 checks passed
@KennethEnevoldsen
Copy link
Contributor

Pushing and linting in main

@lbourdois
Copy link
Contributor Author

Sorry I've been off for the last few days. Glad you could manage without me 🤗

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