Closed dolaameng closed 3 months ago
To help you debug the type error in python 3.7 and 3.9, you can pass the -v
flag to ./docker-hatch
to run using a specific Python version: https://github.com/Kaggle/kagglehub?tab=readme-ov-file#running-hatch-commands-inside-docker
Changes:
gcs_upload.py
for simplicity (let me know if this better be in a separate PR):_upload_file_or_folder
ignore_patterns
formodel_upload
models.DEFAULT_IGNORE_PATTERNS
DEFAULT_IGNORE_PATTERNS
+ignore_patterns
(user provided). This is consistent with hf api (https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4854)FIX=354710562 Tested (end to end)
Local model structure
Upload command:
kagglehub.model_upload("limakaggle/testignore/pytorch/2", "/tmp/ignoremodel", ignore_patterns=["original/", ".gitattribute"])
Uploaded model