Skip to content

Conversation

cosmo3769
Copy link
Contributor

What does this PR do?

Related issue: #6891 for T2I Adapter Sdxl

Notebook link: test_model_card_template_t2i_adapter_sdxl.ipynb

Generated model card link: test-model-card-template-t2i-adapter-sdxl

Before submitting

Who can review?

@sayakpaul

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Nice, thanks for fixing the type-annotation as well.

@sayakpaul
Copy link
Member

Looks very nice!

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@sayakpaul sayakpaul merged commit 75aee39 into huggingface:main Feb 12, 2024
@Bhavay-2001
Copy link
Contributor

Hi @cosmo3769, can you please tell how did you build the ipynb notebook? Is there any template to follow? Thanks

@cosmo3769
Copy link
Contributor Author

cosmo3769 commented Feb 13, 2024

Hi @Bhavay-2001, I followed this notebook by @sayakpaul which he has mentioned in his PR here.

General steps I followed:

  • pip install your branch (wherever you have made changes in your training script).
  • import dependencies as required (generally it will be similar as given in the notebook).
  • copy your save_model_card() that you updated in your training script and paste it.
  • Then use some dummy data to call your save_model_card.
  • Also last step will require your HF_TOKEN which you can add in your secret in colab. This is required else it won't run.
  • This will create README.md file and some images.
  • Go to HF and create a new model with suitable name (test-model-card-template-script-name).
  • Upload all the files to HF generated in colab.
  • The README.md file when uploaded will generate the model card.
  • Also, upload your colab there as well.

Hope it helps!

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.

4 participants