huggingface_hub icon indicating copy to clipboard operation
huggingface_hub copied to clipboard

ArchLinux cant push models ! atleast on keras

Open sneedgers opened this issue 1 year ago • 6 comments

Describe the bug

push_to_hub_keras(model,"stufuf333")

and the error I get Traceback (most recent call last): File "/run/aistuff/ai_thing2.py", line 215, in push_to_hub_keras(model,"sneedger") File "/home/ori/.local/lib/python3.10/site-packages/huggingface_hub/keras_mixin.py", line 373, in push_to_hub_keras repo = Repository( File "/home/ori/.local/lib/python3.10/site-packages/huggingface_hub/repository.py", line 504, in init raise ValueError( ValueError: If not specifying clone_from, you need to pass Repository a valid git clone.

git lfs has issues??

Reproduction

No response

Logs

No response

System Info

Archlinux
python 3.10

sneedgers avatar Aug 06 '22 21:08 sneedgers

Hi there! Thanks for reporting!

Do you have a reproducible example? I just tried this in a Colab and it worked well https://colab.research.google.com/drive/1D46OEKDmvMwAieCVcShO1kKdqZsF4JeE?usp=sharing

osanseviero avatar Aug 08 '22 07:08 osanseviero

(cc @merveenoyan )

osanseviero avatar Aug 08 '22 07:08 osanseviero

Hey @sneedgers, thanks for opening an issue! As @osanseviero was mentioning, we'll need a reproducible code example in order to help you out. Please provide the version of your tools, especially the version of huggingface_hub as this is what's important. Thanks.

LysandreJik avatar Aug 08 '22 08:08 LysandreJik

Hi there! Thanks for reporting!

Do you have a reproducible example? I just tried this in a Colab and it worked well https://colab.research.google.com/drive/1D46OEKDmvMwAieCVcShO1kKdqZsF4JeE?usp=sharing

dev version from github.

sneedgers avatar Aug 09 '22 09:08 sneedgers

@sneedgers Hello there! Can you please put a code snippet here for us to reproduce your problem?

merveenoyan avatar Aug 09 '22 14:08 merveenoyan

Push a model. Read again my issue

sneedgers avatar Aug 12 '22 13:08 sneedgers

@sneedgers sorry if we didn't solve your issue here but we are really missing a part. Did you try the colab from @osanseviero's comment https://github.com/huggingface/huggingface_hub/issues/968#issuecomment-1207747180 ? If the colab is also working for you then we would need more context (e.g. a real code snippet) to see what could cause your error. In general it's good to isolate the problem in a short example if you don't want to share your full code.

Otherwise, I will just close this issue as unresolved.

Wauplin avatar Aug 26 '22 14:08 Wauplin

I'll be closing this issue since no reproducible code is given.

merveenoyan avatar Sep 06 '22 16:09 merveenoyan