Skip to content

add push_to_hub support 🤗#2

Closed
Linoy Tsaban (linoytsaban) wants to merge 4 commits intoLightricks:mainfrom
linoytsaban:main
Closed

add push_to_hub support 🤗#2
Linoy Tsaban (linoytsaban) wants to merge 4 commits intoLightricks:mainfrom
linoytsaban:main

Conversation

@linoytsaban
Copy link
Contributor

Congrats on the release, awesome work! 🎉
I added some smol changes to support automatic uploading of the weights to the hub, I think it can be great for discoverability of trained loras by the community :)

Copy link
Member

@ofirbb Ofir Bibi (ofirbb) left a comment

Choose a reason for hiding this comment

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

Nice hook into making stuff public easily.

# Upload artifacts to hub if enabled
if cfg.hub.push_to_hub:
repo_id = cfg.hub.hub_model_id or Path(cfg.output_dir).name
repo_id = create_repo(token=cfg.hub.hub_token, repo_id=repo_id, exist_ok=True)
Copy link
Member

Choose a reason for hiding this comment

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

Please add the base model parameter here.
You can either point to the general LTXV repo or go finegrain amd allow the user to set a specific version. Either works for me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added a model card now :), wdyt?

Harel Cain (harelc) pushed a commit that referenced this pull request Mar 25, 2025
Add latent decoding script, add image support
adjust `save_model_card` to include inference examples
@matanby
Copy link
Collaborator

matanby commented May 20, 2025

Thanks, Linoy Tsaban (@linoytsaban)! Naomi ken korem (@Naomi-Ken-Korem) has made slight adjustments to your changes and merged them in #28.

@matanby matanby closed this May 20, 2025
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

Comments