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.

Automatically obtain organization in keras push_to_hub

See original GitHub issue

If I do this, my model gets pushed to osanseviero/test-osan6

push_to_hub_keras(model, "keras-io/test-osan6")

It would be great if we can automatically detect the organization. We can likely do it similar to https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/keras_mixin.py#L145-L146.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
LysandreJikcommented, Feb 4, 2022

I think that clarifies things significantly. An unfortunate behavior linked to this is that it hides the fact that there’s a clone/pull/push happening behind the scenes. Except it’s not really behind the scenes, as IIRC it takes place in the current working directory.

I think ideally this would work with http requests that push files (https://github.com/huggingface/huggingface_hub/pull/321), but these files can only be of 20GB.

Maybe 20GB is more than enough for what we’re looking for, however.

1reaction
Wauplincommented, Sep 30, 2022

Related to https://github.com/huggingface/huggingface_hub/issues/846 and solved in #847 . I’m closing this issue as well as git-based method is not the way to go anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keras callbacks - transformers. - Hugging Face
When training a Transformers model with Keras, there are some library-specific callbacks available to automate common tasks: ...
Read more >
The Push to Hub API (TensorFlow) - YouTube
Easily share your fine-tuned models on the Hugging Face Hub using the push to hub API.This video is part of the Hugging Face...
Read more >
Push to hub mixins that do not leverage git #847 - GitHub
This draft PR proposes a refactor of both mixins, ModelHubMixin and push_to_hub_keras, so that they do not leverage git under the hood.
Read more >
Deploy T5 11B for inference for less than $500 - philschmid
An Organization/User with an active plan and WRITE access to the model ... inference pipelines for ML Frameworks like Keras, Tensorflow, ...
Read more >
Question Answering with Hugging Face Transformers - Keras
We get a tokenizer that corresponds to the model architecture we want to use. ... Even better, the results are automatically cached by...
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