question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The model_card_template is not included in the library

See original GitHub issue

Running the training colab fails when pushing to the Hub with

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/diffusers/utils/model_card_template.md'

Doing

!ls /usr/local/lib/python3.7/dist-packages/diffusers/utils/

gives

dummy_transformers_and_inflect_and_unidecode_objects.py  logging.py
dummy_transformers_objects.py				 __pycache__
__init__.py

Iirc, if you want a markdown file to be included you need to have include_package_data=True in the setup.py file. Actually I see this is actually done 🤔

cc @anton-l @nateraw

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
patrickvonplatencommented, Jul 25, 2022

Answered in the thread internally - if we decide to go ahead with jinja and the huggingface_hub then happy to keep the same logic here until it’s fully available in the hub

2reactions
osansevierocommented, Jul 25, 2022

Note that in hugginface_hub jinja will be an optional dependency, not a required install

Read more comments on GitHub >

github_iconTop Results From Across the Web

Model Cards - Hugging Face
What are Model Cards? Model cards are files that accompany the models and provide handy information. Under the hood, model cards are simple...
Read more >
Introducing the Model Card Toolkit for Easier ... - Google AI Blog
Here is an example of the completed Model Card from the Colab tutorial, which leverages the MCT and the provided UI template.
Read more >
Card template library - Anaplan Technical Documentation
Create a set of cards, formatted for your brand or theme, so you can then create pages using pre-formatted cards. You then configure...
Read more >
jacopotagliabue/dag-card-is-the-new-model-card - GitHub
Template -based generation of DAG cards from Metaflow classes, inspired by Google cards for machine learning models.
Read more >
Google Cloud Model Cards
... which is why model cards are aimed at experts and non-experts alike. Developers can use them to design applications that emphasize a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found