huggingface-hub 1.0.0rc5__tar.gz → 1.0.0rc7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huggingface-hub might be problematic. Click here for more details.
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/PKG-INFO +1 -3
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/pyproject.toml +2 -1
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/setup.py +4 -12
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/__init__.py +12 -1
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_commit_api.py +1 -5
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_jobs_api.py +1 -1
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_login.py +3 -3
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_snapshot_download.py +4 -3
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_upload_large_folder.py +2 -15
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_webhooks_server.py +1 -1
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/_cli_utils.py +1 -1
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/auth.py +0 -20
- huggingface_hub-1.0.0rc7/src/huggingface_hub/cli/cache.py +636 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/download.py +2 -2
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/repo.py +0 -7
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/upload.py +0 -8
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/community.py +16 -8
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/constants.py +10 -11
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/file_download.py +9 -61
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/hf_api.py +170 -126
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/hf_file_system.py +31 -6
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_client.py +1 -1
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/_async_client.py +1 -1
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/__init__.py +15 -2
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/_common.py +39 -0
- huggingface_hub-1.0.0rc7/src/huggingface_hub/inference/_providers/clarifai.py +13 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/lfs.py +3 -65
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/serialization/_torch.py +1 -1
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/__init__.py +0 -2
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_cache_manager.py +17 -42
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_http.py +25 -3
- huggingface_hub-1.0.0rc7/src/huggingface_hub/utils/_parsing.py +98 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_runtime.py +1 -14
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/PKG-INFO +1 -3
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/SOURCES.txt +2 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/requires.txt +3 -15
- huggingface_hub-1.0.0rc5/src/huggingface_hub/cli/cache.py +0 -379
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/LICENSE +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/MANIFEST.in +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/README.md +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/setup.cfg +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_commit_scheduler.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_inference_endpoints.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_local_folder.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_oauth.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_space_api.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_tensorboard_logger.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_webhooks_payload.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/__init__.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/hf.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/jobs.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/lfs.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/repo_files.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/system.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/cli/upload_large_folder.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/dataclasses.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/errors.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/fastai_utils.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/hub_mixin.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/__init__.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_common.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/__init__.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/__init__.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/audio_classification.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/audio_to_audio.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/base.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/chat_completion.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/depth_estimation.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/document_question_answering.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/feature_extraction.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/fill_mask.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_classification.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_segmentation.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_to_image.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_to_text.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/image_to_video.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/object_detection.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/question_answering.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/sentence_similarity.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/summarization.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/table_question_answering.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text2text_generation.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_classification.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_generation.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_to_audio.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_to_image.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_to_speech.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/text_to_video.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/token_classification.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/translation.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/video_classification.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/visual_question_answering.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/zero_shot_classification.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/zero_shot_image_classification.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_generated/types/zero_shot_object_detection.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/__init__.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/_cli_hacks.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/agent.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/cli.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/constants.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/mcp_client.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/types.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_mcp/utils.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/black_forest_labs.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/cerebras.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/cohere.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/fal_ai.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/featherless_ai.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/fireworks_ai.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/groq.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/hf_inference.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/hyperbolic.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/nebius.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/novita.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/nscale.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/openai.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/publicai.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/replicate.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/sambanova.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/scaleway.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/together.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/inference/_providers/zai_org.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/py.typed +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/repocard.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/repocard_data.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/serialization/__init__.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/serialization/_base.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/serialization/_dduf.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/templates/datasetcard_template.md +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/templates/modelcard_template.md +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_auth.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_cache_assets.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_chunk_utils.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_datetime.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_deprecation.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_dotenv.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_experimental.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_fixes.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_git_credential.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_headers.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_lfs.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_pagination.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_paths.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_safetensors.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_subprocess.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_telemetry.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_terminal.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_typing.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_validators.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_xet.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/_xet_progress_reporting.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/endpoint_helpers.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/insecure_hashlib.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/logging.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/sha.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/utils/tqdm.py +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/dependency_links.txt +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/entry_points.txt +0 -0
- {huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface_hub
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0rc7
|
|
4
4
|
Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
|
|
5
5
|
Home-page: https://github.com/huggingface/huggingface_hub
|
|
6
6
|
Author: Hugging Face, Inc.
|
|
@@ -23,11 +23,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
23
23
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
24
24
|
Requires-Python: >=3.9.0
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
|
-
Provides-Extra: cli
|
|
27
26
|
Provides-Extra: inference
|
|
28
27
|
Provides-Extra: oauth
|
|
29
28
|
Provides-Extra: torch
|
|
30
|
-
Provides-Extra: hf_transfer
|
|
31
29
|
Provides-Extra: fastai
|
|
32
30
|
Provides-Extra: hf_xet
|
|
33
31
|
Provides-Extra: mcp
|
|
@@ -14,8 +14,9 @@ unresolved-attribute = "ignore"
|
|
|
14
14
|
|
|
15
15
|
# Be tolerant with framework/typing edge-cases and runtime-validated code paths
|
|
16
16
|
unsupported-base = "ignore"
|
|
17
|
-
possibly-unbound-attribute = "ignore"
|
|
18
17
|
unsupported-operator = "ignore"
|
|
18
|
+
possibly-missing-attribute = "ignore"
|
|
19
|
+
possibly-missing-implicit-call = "ignore"
|
|
19
20
|
non-subscriptable = "ignore"
|
|
20
21
|
call-non-callable = "ignore"
|
|
21
22
|
|
|
@@ -17,9 +17,10 @@ install_requires = [
|
|
|
17
17
|
"filelock",
|
|
18
18
|
"fsspec>=2023.5.0",
|
|
19
19
|
"hf-xet>=1.1.3,<2.0.0; platform_machine=='x86_64' or platform_machine=='amd64' or platform_machine=='arm64' or platform_machine=='aarch64'",
|
|
20
|
+
"httpx>=0.23.0, <1",
|
|
20
21
|
"packaging>=20.9",
|
|
21
22
|
"pyyaml>=5.1",
|
|
22
|
-
"
|
|
23
|
+
"shellingham",
|
|
23
24
|
"tqdm>=4.42.1",
|
|
24
25
|
"typer-slim",
|
|
25
26
|
"typing-extensions>=3.7.4.3", # to be able to import TypeAlias
|
|
@@ -27,11 +28,6 @@ install_requires = [
|
|
|
27
28
|
|
|
28
29
|
extras = {}
|
|
29
30
|
|
|
30
|
-
extras["cli"] = [
|
|
31
|
-
"InquirerPy==0.3.4", # Note: installs `prompt-toolkit` in the background
|
|
32
|
-
"shellingham",
|
|
33
|
-
]
|
|
34
|
-
|
|
35
31
|
extras["inference"] = [
|
|
36
32
|
"aiohttp", # for AsyncInferenceClient
|
|
37
33
|
]
|
|
@@ -47,16 +43,13 @@ extras["torch"] = [
|
|
|
47
43
|
"torch",
|
|
48
44
|
"safetensors[torch]",
|
|
49
45
|
]
|
|
50
|
-
extras["hf_transfer"] = [
|
|
51
|
-
"hf_transfer>=0.1.4", # Pin for progress bars
|
|
52
|
-
]
|
|
53
46
|
extras["fastai"] = [
|
|
54
47
|
"toml",
|
|
55
48
|
"fastai>=2.4",
|
|
56
49
|
"fastcore>=1.3.27",
|
|
57
50
|
]
|
|
58
51
|
|
|
59
|
-
extras["hf_xet"] = ["hf-xet>=1.1.
|
|
52
|
+
extras["hf_xet"] = ["hf-xet>=1.1.3,<2.0.0"]
|
|
60
53
|
|
|
61
54
|
extras["mcp"] = [
|
|
62
55
|
"mcp>=1.8.0",
|
|
@@ -64,8 +57,7 @@ extras["mcp"] = [
|
|
|
64
57
|
] + extras["inference"]
|
|
65
58
|
|
|
66
59
|
extras["testing"] = (
|
|
67
|
-
extras["
|
|
68
|
-
+ extras["inference"]
|
|
60
|
+
extras["inference"]
|
|
69
61
|
+ extras["oauth"]
|
|
70
62
|
+ [
|
|
71
63
|
"jedi",
|
|
@@ -46,7 +46,7 @@ import sys
|
|
|
46
46
|
from typing import TYPE_CHECKING
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
__version__ = "1.0.0.
|
|
49
|
+
__version__ = "1.0.0.rc7"
|
|
50
50
|
|
|
51
51
|
# Alphabetical order of definitions is ensured in tests
|
|
52
52
|
# WARNING: any comment added in this dictionary definition will be lost when
|
|
@@ -111,6 +111,9 @@ _SUBMOD_ATTRS = {
|
|
|
111
111
|
"WebhooksServer",
|
|
112
112
|
"webhook_endpoint",
|
|
113
113
|
],
|
|
114
|
+
"cli._cli_utils": [
|
|
115
|
+
"typer_factory",
|
|
116
|
+
],
|
|
114
117
|
"community": [
|
|
115
118
|
"Discussion",
|
|
116
119
|
"DiscussionComment",
|
|
@@ -160,6 +163,7 @@ _SUBMOD_ATTRS = {
|
|
|
160
163
|
"GitRefs",
|
|
161
164
|
"HfApi",
|
|
162
165
|
"ModelInfo",
|
|
166
|
+
"Organization",
|
|
163
167
|
"RepoUrl",
|
|
164
168
|
"SpaceInfo",
|
|
165
169
|
"User",
|
|
@@ -213,6 +217,7 @@ _SUBMOD_ATTRS = {
|
|
|
213
217
|
"get_full_repo_name",
|
|
214
218
|
"get_inference_endpoint",
|
|
215
219
|
"get_model_tags",
|
|
220
|
+
"get_organization_overview",
|
|
216
221
|
"get_paths_info",
|
|
217
222
|
"get_repo_discussions",
|
|
218
223
|
"get_safetensors_metadata",
|
|
@@ -689,6 +694,7 @@ __all__ = [
|
|
|
689
694
|
"ObjectDetectionInput",
|
|
690
695
|
"ObjectDetectionOutputElement",
|
|
691
696
|
"ObjectDetectionParameters",
|
|
697
|
+
"Organization",
|
|
692
698
|
"PYTORCH_WEIGHTS_NAME",
|
|
693
699
|
"Padding",
|
|
694
700
|
"PyTorchModelHubMixin",
|
|
@@ -859,6 +865,7 @@ __all__ = [
|
|
|
859
865
|
"get_hf_file_metadata",
|
|
860
866
|
"get_inference_endpoint",
|
|
861
867
|
"get_model_tags",
|
|
868
|
+
"get_organization_overview",
|
|
862
869
|
"get_paths_info",
|
|
863
870
|
"get_repo_discussions",
|
|
864
871
|
"get_safetensors_metadata",
|
|
@@ -949,6 +956,7 @@ __all__ = [
|
|
|
949
956
|
"super_squash_history",
|
|
950
957
|
"suspend_scheduled_job",
|
|
951
958
|
"try_to_load_from_cache",
|
|
959
|
+
"typer_factory",
|
|
952
960
|
"unlike",
|
|
953
961
|
"update_collection_item",
|
|
954
962
|
"update_collection_metadata",
|
|
@@ -1117,6 +1125,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1117
1125
|
WebhooksServer, # noqa: F401
|
|
1118
1126
|
webhook_endpoint, # noqa: F401
|
|
1119
1127
|
)
|
|
1128
|
+
from .cli._cli_utils import typer_factory # noqa: F401
|
|
1120
1129
|
from .community import (
|
|
1121
1130
|
Discussion, # noqa: F401
|
|
1122
1131
|
DiscussionComment, # noqa: F401
|
|
@@ -1166,6 +1175,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1166
1175
|
GitRefs, # noqa: F401
|
|
1167
1176
|
HfApi, # noqa: F401
|
|
1168
1177
|
ModelInfo, # noqa: F401
|
|
1178
|
+
Organization, # noqa: F401
|
|
1169
1179
|
RepoUrl, # noqa: F401
|
|
1170
1180
|
SpaceInfo, # noqa: F401
|
|
1171
1181
|
User, # noqa: F401
|
|
@@ -1219,6 +1229,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1219
1229
|
get_full_repo_name, # noqa: F401
|
|
1220
1230
|
get_inference_endpoint, # noqa: F401
|
|
1221
1231
|
get_model_tags, # noqa: F401
|
|
1232
|
+
get_organization_overview, # noqa: F401
|
|
1222
1233
|
get_paths_info, # noqa: F401
|
|
1223
1234
|
get_repo_discussions, # noqa: F401
|
|
1224
1235
|
get_safetensors_metadata, # noqa: F401
|
|
@@ -503,11 +503,7 @@ def _upload_lfs_files(
|
|
|
503
503
|
except Exception as exc:
|
|
504
504
|
raise RuntimeError(f"Error while uploading '{operation.path_in_repo}' to the Hub.") from exc
|
|
505
505
|
|
|
506
|
-
if
|
|
507
|
-
logger.debug(f"Uploading {len(filtered_actions)} LFS files to the Hub using `hf_transfer`.")
|
|
508
|
-
for action in hf_tqdm(filtered_actions, name="huggingface_hub.lfs_upload"):
|
|
509
|
-
_wrapped_lfs_upload(action)
|
|
510
|
-
elif len(filtered_actions) == 1:
|
|
506
|
+
if len(filtered_actions) == 1:
|
|
511
507
|
logger.debug("Uploading 1 LFS file to the Hub")
|
|
512
508
|
_wrapped_lfs_upload(filtered_actions[0])
|
|
513
509
|
else:
|
|
@@ -30,7 +30,7 @@ class JobStage(str, Enum):
|
|
|
30
30
|
```py
|
|
31
31
|
assert JobStage.COMPLETED == "COMPLETED"
|
|
32
32
|
```
|
|
33
|
-
|
|
33
|
+
Possible values are: `COMPLETED`, `CANCELED`, `ERROR`, `DELETED`, `RUNNING`.
|
|
34
34
|
Taken from https://github.com/huggingface/moon-landing/blob/main/server/job_types/JobInfo.ts#L61 (private url).
|
|
35
35
|
"""
|
|
36
36
|
|
|
@@ -19,6 +19,8 @@ from getpass import getpass
|
|
|
19
19
|
from pathlib import Path
|
|
20
20
|
from typing import Optional
|
|
21
21
|
|
|
22
|
+
import typer
|
|
23
|
+
|
|
22
24
|
from . import constants
|
|
23
25
|
from .utils import (
|
|
24
26
|
ANSI,
|
|
@@ -244,8 +246,6 @@ def interpreter_login(*, skip_if_logged_in: bool = False) -> None:
|
|
|
244
246
|
logger.info("User is already logged in.")
|
|
245
247
|
return
|
|
246
248
|
|
|
247
|
-
from .cli.cache import _ask_for_confirmation_no_tui
|
|
248
|
-
|
|
249
249
|
print(_HF_LOGO_ASCII)
|
|
250
250
|
if get_token() is not None:
|
|
251
251
|
logger.info(
|
|
@@ -261,7 +261,7 @@ def interpreter_login(*, skip_if_logged_in: bool = False) -> None:
|
|
|
261
261
|
if os.name == "nt":
|
|
262
262
|
logger.info("Token can be pasted using 'Right-Click'.")
|
|
263
263
|
token = getpass("Enter your token (input will not be visible): ")
|
|
264
|
-
add_to_git_credential =
|
|
264
|
+
add_to_git_credential = typer.confirm("Add token as git credential?")
|
|
265
265
|
|
|
266
266
|
_login(token=token, add_to_git_credential=add_to_git_credential)
|
|
267
267
|
|
{huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_snapshot_download.py
RENAMED
|
@@ -403,9 +403,10 @@ def snapshot_download(
|
|
|
403
403
|
)
|
|
404
404
|
)
|
|
405
405
|
|
|
406
|
-
if constants.
|
|
407
|
-
# when using
|
|
408
|
-
# from the one
|
|
406
|
+
if constants.HF_XET_HIGH_PERFORMANCE and not dry_run:
|
|
407
|
+
# when using hf_xet high performance we don't want extra parallelism
|
|
408
|
+
# from the one hf_xet provides
|
|
409
|
+
# TODO: revisit this when xet_session is implemented
|
|
409
410
|
for file in filtered_repo_files:
|
|
410
411
|
_inner_hf_hub_download(file)
|
|
411
412
|
else:
|
{huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_upload_large_folder.py
RENAMED
|
@@ -27,7 +27,6 @@ from threading import Lock
|
|
|
27
27
|
from typing import TYPE_CHECKING, Any, Optional, Union
|
|
28
28
|
from urllib.parse import quote
|
|
29
29
|
|
|
30
|
-
from . import constants
|
|
31
30
|
from ._commit_api import CommitOperationAdd, UploadInfo, _fetch_upload_modes
|
|
32
31
|
from ._local_folder import LocalUploadFileMetadata, LocalUploadFilePaths, get_local_upload_paths, read_upload_metadata
|
|
33
32
|
from .constants import DEFAULT_REVISION, REPO_TYPES
|
|
@@ -199,16 +198,7 @@ def upload_large_folder_internal(
|
|
|
199
198
|
logger.info(f"Repo created: {repo_url}")
|
|
200
199
|
repo_id = repo_url.repo_id
|
|
201
200
|
# 2.1 Check if xet is enabled to set batch file upload size
|
|
202
|
-
|
|
203
|
-
is_xet_available()
|
|
204
|
-
and api.repo_info(
|
|
205
|
-
repo_id=repo_id,
|
|
206
|
-
repo_type=repo_type,
|
|
207
|
-
revision=revision,
|
|
208
|
-
expand="xetEnabled",
|
|
209
|
-
).xet_enabled
|
|
210
|
-
)
|
|
211
|
-
upload_batch_size = UPLOAD_BATCH_SIZE_XET if is_xet_enabled else UPLOAD_BATCH_SIZE_LFS
|
|
201
|
+
upload_batch_size = UPLOAD_BATCH_SIZE_XET if is_xet_available() else UPLOAD_BATCH_SIZE_LFS
|
|
212
202
|
|
|
213
203
|
# 3. List files to upload
|
|
214
204
|
filtered_paths_list = filter_repo_objects(
|
|
@@ -559,10 +549,7 @@ def _determine_next_job(status: LargeUploadStatus) -> Optional[tuple[WorkerJob,
|
|
|
559
549
|
return (WorkerJob.GET_UPLOAD_MODE, _get_n(status.queue_get_upload_mode, MAX_NB_FILES_FETCH_UPLOAD_MODE))
|
|
560
550
|
|
|
561
551
|
# 7. Preupload LFS file if at least `status.upload_batch_size` files
|
|
562
|
-
|
|
563
|
-
elif status.queue_preupload_lfs.qsize() >= status.upload_batch_size and (
|
|
564
|
-
status.nb_workers_preupload_lfs == 0 or not constants.HF_HUB_ENABLE_HF_TRANSFER
|
|
565
|
-
):
|
|
552
|
+
elif status.queue_preupload_lfs.qsize() >= status.upload_batch_size:
|
|
566
553
|
status.nb_workers_preupload_lfs += 1
|
|
567
554
|
logger.debug("Job: preupload LFS")
|
|
568
555
|
return (WorkerJob.PREUPLOAD_LFS, _get_n(status.queue_preupload_lfs, status.upload_batch_size))
|
{huggingface_hub-1.0.0rc5 → huggingface_hub-1.0.0rc7}/src/huggingface_hub/_webhooks_server.py
RENAMED
|
@@ -32,7 +32,7 @@ if is_fastapi_available():
|
|
|
32
32
|
from fastapi.responses import JSONResponse
|
|
33
33
|
else:
|
|
34
34
|
# Will fail at runtime if FastAPI is not available
|
|
35
|
-
FastAPI = Request = JSONResponse = None # type: ignore
|
|
35
|
+
FastAPI = Request = JSONResponse = None # type: ignore
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
_global_app: Optional["WebhooksServer"] = None
|
|
@@ -38,7 +38,7 @@ def get_hf_api(token: Optional[str] = None) -> "HfApi":
|
|
|
38
38
|
# Import here to avoid circular import
|
|
39
39
|
from huggingface_hub.hf_api import HfApi
|
|
40
40
|
|
|
41
|
-
return HfApi(token=token, library_name="
|
|
41
|
+
return HfApi(token=token, library_name="huggingface-cli", library_version=__version__)
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
#### TYPER UTILS
|
|
@@ -45,14 +45,6 @@ from ._cli_utils import TokenOpt, typer_factory
|
|
|
45
45
|
|
|
46
46
|
logger = logging.get_logger(__name__)
|
|
47
47
|
|
|
48
|
-
try:
|
|
49
|
-
from InquirerPy import inquirer
|
|
50
|
-
from InquirerPy.base.control import Choice
|
|
51
|
-
|
|
52
|
-
_inquirer_py_available = True
|
|
53
|
-
except ImportError:
|
|
54
|
-
_inquirer_py_available = False
|
|
55
|
-
|
|
56
48
|
|
|
57
49
|
auth_cli = typer_factory(help="Manage authentication (login, logout, etc.).")
|
|
58
50
|
|
|
@@ -89,18 +81,6 @@ def _select_token_name() -> Optional[str]:
|
|
|
89
81
|
logger.error("No stored tokens found. Please login first.")
|
|
90
82
|
return None
|
|
91
83
|
|
|
92
|
-
if _inquirer_py_available:
|
|
93
|
-
choices = [Choice(token_name, name=token_name) for token_name in token_names]
|
|
94
|
-
try:
|
|
95
|
-
return inquirer.select(
|
|
96
|
-
message="Select a token to switch to:",
|
|
97
|
-
choices=choices,
|
|
98
|
-
default=None,
|
|
99
|
-
).execute()
|
|
100
|
-
except KeyboardInterrupt:
|
|
101
|
-
logger.info("Token selection cancelled.")
|
|
102
|
-
return None
|
|
103
|
-
# if inquirer is not available, use a simpler terminal UI
|
|
104
84
|
print("Available stored tokens:")
|
|
105
85
|
for i, token_name in enumerate(token_names, 1):
|
|
106
86
|
print(f"{i}. {token_name}")
|