huggingface-hub 0.35.1__tar.gz → 0.35.2__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.

Files changed (176) hide show
  1. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/PKG-INFO +1 -1
  2. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/__init__.py +1 -1
  3. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/hf_file_system.py +38 -21
  4. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_client.py +1 -1
  5. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/_async_client.py +1 -1
  6. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/__init__.py +5 -0
  7. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/_common.py +1 -0
  8. huggingface_hub-0.35.2/src/huggingface_hub/inference/_providers/zai_org.py +17 -0
  9. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub.egg-info/PKG-INFO +1 -1
  10. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub.egg-info/SOURCES.txt +1 -0
  11. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/LICENSE +0 -0
  12. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/MANIFEST.in +0 -0
  13. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/README.md +0 -0
  14. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/pyproject.toml +0 -0
  15. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/setup.cfg +0 -0
  16. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/setup.py +0 -0
  17. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_commit_api.py +0 -0
  18. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_commit_scheduler.py +0 -0
  19. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_inference_endpoints.py +0 -0
  20. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_jobs_api.py +0 -0
  21. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_local_folder.py +0 -0
  22. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_login.py +0 -0
  23. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_oauth.py +0 -0
  24. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_snapshot_download.py +0 -0
  25. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_space_api.py +0 -0
  26. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_tensorboard_logger.py +0 -0
  27. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_upload_large_folder.py +0 -0
  28. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_webhooks_payload.py +0 -0
  29. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/_webhooks_server.py +0 -0
  30. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/__init__.py +0 -0
  31. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/_cli_utils.py +0 -0
  32. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/auth.py +0 -0
  33. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/cache.py +0 -0
  34. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/download.py +0 -0
  35. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/hf.py +0 -0
  36. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/jobs.py +0 -0
  37. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/lfs.py +0 -0
  38. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/repo.py +0 -0
  39. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/repo_files.py +0 -0
  40. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/system.py +0 -0
  41. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/upload.py +0 -0
  42. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/cli/upload_large_folder.py +0 -0
  43. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/__init__.py +0 -0
  44. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/_cli_utils.py +0 -0
  45. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/delete_cache.py +0 -0
  46. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/download.py +0 -0
  47. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/env.py +0 -0
  48. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/huggingface_cli.py +0 -0
  49. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/lfs.py +0 -0
  50. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/repo.py +0 -0
  51. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/repo_files.py +0 -0
  52. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/scan_cache.py +0 -0
  53. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/tag.py +0 -0
  54. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/upload.py +0 -0
  55. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/upload_large_folder.py +0 -0
  56. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/user.py +0 -0
  57. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/commands/version.py +0 -0
  58. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/community.py +0 -0
  59. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/constants.py +0 -0
  60. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/dataclasses.py +0 -0
  61. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/errors.py +0 -0
  62. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/fastai_utils.py +0 -0
  63. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/file_download.py +0 -0
  64. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/hf_api.py +0 -0
  65. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/hub_mixin.py +0 -0
  66. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/__init__.py +0 -0
  67. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_common.py +0 -0
  68. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/__init__.py +0 -0
  69. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/__init__.py +0 -0
  70. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/audio_classification.py +0 -0
  71. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/audio_to_audio.py +0 -0
  72. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +0 -0
  73. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/base.py +0 -0
  74. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/chat_completion.py +0 -0
  75. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/depth_estimation.py +0 -0
  76. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/document_question_answering.py +0 -0
  77. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/feature_extraction.py +0 -0
  78. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/fill_mask.py +0 -0
  79. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/image_classification.py +0 -0
  80. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/image_segmentation.py +0 -0
  81. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/image_to_image.py +0 -0
  82. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/image_to_text.py +0 -0
  83. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/image_to_video.py +0 -0
  84. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/object_detection.py +0 -0
  85. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/question_answering.py +0 -0
  86. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/sentence_similarity.py +0 -0
  87. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/summarization.py +0 -0
  88. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/table_question_answering.py +0 -0
  89. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/text2text_generation.py +0 -0
  90. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/text_classification.py +0 -0
  91. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/text_generation.py +0 -0
  92. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/text_to_audio.py +0 -0
  93. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/text_to_image.py +0 -0
  94. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/text_to_speech.py +0 -0
  95. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/text_to_video.py +0 -0
  96. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/token_classification.py +0 -0
  97. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/translation.py +0 -0
  98. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/video_classification.py +0 -0
  99. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/visual_question_answering.py +0 -0
  100. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/zero_shot_classification.py +0 -0
  101. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/zero_shot_image_classification.py +0 -0
  102. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_generated/types/zero_shot_object_detection.py +0 -0
  103. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_mcp/__init__.py +0 -0
  104. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_mcp/_cli_hacks.py +0 -0
  105. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_mcp/agent.py +0 -0
  106. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_mcp/cli.py +0 -0
  107. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_mcp/constants.py +0 -0
  108. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_mcp/mcp_client.py +0 -0
  109. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_mcp/types.py +0 -0
  110. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_mcp/utils.py +0 -0
  111. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/black_forest_labs.py +0 -0
  112. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/cerebras.py +0 -0
  113. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/cohere.py +0 -0
  114. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/fal_ai.py +0 -0
  115. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/featherless_ai.py +0 -0
  116. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/fireworks_ai.py +0 -0
  117. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/groq.py +0 -0
  118. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/hf_inference.py +0 -0
  119. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/hyperbolic.py +0 -0
  120. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/nebius.py +0 -0
  121. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/novita.py +0 -0
  122. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/nscale.py +0 -0
  123. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/openai.py +0 -0
  124. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/publicai.py +0 -0
  125. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/replicate.py +0 -0
  126. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/sambanova.py +0 -0
  127. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/scaleway.py +0 -0
  128. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference/_providers/together.py +0 -0
  129. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/inference_api.py +0 -0
  130. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/keras_mixin.py +0 -0
  131. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/lfs.py +0 -0
  132. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/py.typed +0 -0
  133. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/repocard.py +0 -0
  134. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/repocard_data.py +0 -0
  135. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/repository.py +0 -0
  136. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/serialization/__init__.py +0 -0
  137. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/serialization/_base.py +0 -0
  138. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/serialization/_dduf.py +0 -0
  139. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/serialization/_tensorflow.py +0 -0
  140. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/serialization/_torch.py +0 -0
  141. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/templates/datasetcard_template.md +0 -0
  142. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/templates/modelcard_template.md +0 -0
  143. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/__init__.py +0 -0
  144. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_auth.py +0 -0
  145. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_cache_assets.py +0 -0
  146. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_cache_manager.py +0 -0
  147. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_chunk_utils.py +0 -0
  148. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_datetime.py +0 -0
  149. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_deprecation.py +0 -0
  150. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_dotenv.py +0 -0
  151. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_experimental.py +0 -0
  152. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_fixes.py +0 -0
  153. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_git_credential.py +0 -0
  154. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_headers.py +0 -0
  155. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_hf_folder.py +0 -0
  156. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_http.py +0 -0
  157. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_lfs.py +0 -0
  158. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_pagination.py +0 -0
  159. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_paths.py +0 -0
  160. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_runtime.py +0 -0
  161. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_safetensors.py +0 -0
  162. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_subprocess.py +0 -0
  163. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_telemetry.py +0 -0
  164. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_typing.py +0 -0
  165. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_validators.py +0 -0
  166. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_xet.py +0 -0
  167. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/_xet_progress_reporting.py +0 -0
  168. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/endpoint_helpers.py +0 -0
  169. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/insecure_hashlib.py +0 -0
  170. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/logging.py +0 -0
  171. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/sha.py +0 -0
  172. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub/utils/tqdm.py +0 -0
  173. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub.egg-info/dependency_links.txt +0 -0
  174. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub.egg-info/entry_points.txt +0 -0
  175. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/src/huggingface_hub.egg-info/requires.txt +0 -0
  176. {huggingface_hub-0.35.1 → huggingface_hub-0.35.2}/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: 0.35.1
3
+ Version: 0.35.2
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.
@@ -46,7 +46,7 @@ import sys
46
46
  from typing import TYPE_CHECKING
47
47
 
48
48
 
49
- __version__ = "0.35.1"
49
+ __version__ = "0.35.2"
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
@@ -386,6 +386,7 @@ class HfFileSystem(fsspec.AbstractFileSystem):
386
386
  refresh: bool = False,
387
387
  revision: Optional[str] = None,
388
388
  expand_info: bool = False,
389
+ maxdepth: Optional[int] = None,
389
390
  ):
390
391
  resolved_path = self.resolve_path(path, revision=revision)
391
392
  path = resolved_path.unresolve()
@@ -405,19 +406,25 @@ class HfFileSystem(fsspec.AbstractFileSystem):
405
406
  if recursive:
406
407
  # Use BFS to traverse the cache and build the "recursive "output
407
408
  # (The Hub uses a so-called "tree first" strategy for the tree endpoint but we sort the output to follow the spec so the result is (eventually) the same)
409
+ depth = 2
408
410
  dirs_to_visit = deque(
409
- [path_info for path_info in cached_path_infos if path_info["type"] == "directory"]
411
+ [(depth, path_info) for path_info in cached_path_infos if path_info["type"] == "directory"]
410
412
  )
411
413
  while dirs_to_visit:
412
- dir_info = dirs_to_visit.popleft()
413
- if dir_info["name"] not in self.dircache:
414
- dirs_not_in_dircache.append(dir_info["name"])
415
- else:
416
- cached_path_infos = self.dircache[dir_info["name"]]
417
- out.extend(cached_path_infos)
418
- dirs_to_visit.extend(
419
- [path_info for path_info in cached_path_infos if path_info["type"] == "directory"]
420
- )
414
+ depth, dir_info = dirs_to_visit.popleft()
415
+ if maxdepth is None or depth <= maxdepth:
416
+ if dir_info["name"] not in self.dircache:
417
+ dirs_not_in_dircache.append(dir_info["name"])
418
+ else:
419
+ cached_path_infos = self.dircache[dir_info["name"]]
420
+ out.extend(cached_path_infos)
421
+ dirs_to_visit.extend(
422
+ [
423
+ (depth + 1, path_info)
424
+ for path_info in cached_path_infos
425
+ if path_info["type"] == "directory"
426
+ ]
427
+ )
421
428
 
422
429
  dirs_not_expanded = []
423
430
  if expand_info:
@@ -436,6 +443,9 @@ class HfFileSystem(fsspec.AbstractFileSystem):
436
443
  or common_prefix in chain(dirs_not_in_dircache, dirs_not_expanded)
437
444
  else self._parent(common_prefix)
438
445
  )
446
+ if maxdepth is not None:
447
+ common_path_depth = common_path[len(path) :].count("/")
448
+ maxdepth -= common_path_depth
439
449
  out = [o for o in out if not o["name"].startswith(common_path + "/")]
440
450
  for cached_path in self.dircache:
441
451
  if cached_path.startswith(common_path + "/"):
@@ -448,6 +458,7 @@ class HfFileSystem(fsspec.AbstractFileSystem):
448
458
  refresh=True,
449
459
  revision=revision,
450
460
  expand_info=expand_info,
461
+ maxdepth=maxdepth,
451
462
  )
452
463
  )
453
464
  else:
@@ -460,9 +471,10 @@ class HfFileSystem(fsspec.AbstractFileSystem):
460
471
  repo_type=resolved_path.repo_type,
461
472
  )
462
473
  for path_info in tree:
474
+ cache_path = root_path + "/" + path_info.path
463
475
  if isinstance(path_info, RepoFile):
464
476
  cache_path_info = {
465
- "name": root_path + "/" + path_info.path,
477
+ "name": cache_path,
466
478
  "size": path_info.size,
467
479
  "type": "file",
468
480
  "blob_id": path_info.blob_id,
@@ -472,7 +484,7 @@ class HfFileSystem(fsspec.AbstractFileSystem):
472
484
  }
473
485
  else:
474
486
  cache_path_info = {
475
- "name": root_path + "/" + path_info.path,
487
+ "name": cache_path,
476
488
  "size": 0,
477
489
  "type": "directory",
478
490
  "tree_id": path_info.tree_id,
@@ -480,7 +492,9 @@ class HfFileSystem(fsspec.AbstractFileSystem):
480
492
  }
481
493
  parent_path = self._parent(cache_path_info["name"])
482
494
  self.dircache.setdefault(parent_path, []).append(cache_path_info)
483
- out.append(cache_path_info)
495
+ depth = cache_path[len(path) :].count("/")
496
+ if maxdepth is None or depth <= maxdepth:
497
+ out.append(cache_path_info)
484
498
  return out
485
499
 
486
500
  def walk(self, path: str, *args, **kwargs) -> Iterator[Tuple[str, List[str], List[str]]]:
@@ -547,19 +561,22 @@ class HfFileSystem(fsspec.AbstractFileSystem):
547
561
  Returns:
548
562
  `Union[List[str], Dict[str, Dict[str, Any]]]`: List of paths or dict of file information.
549
563
  """
550
- if maxdepth:
551
- return super().find(
552
- path, maxdepth=maxdepth, withdirs=withdirs, detail=detail, refresh=refresh, revision=revision, **kwargs
553
- )
564
+ if maxdepth is not None and maxdepth < 1:
565
+ raise ValueError("maxdepth must be at least 1")
554
566
  resolved_path = self.resolve_path(path, revision=revision)
555
567
  path = resolved_path.unresolve()
556
568
  try:
557
- out = self._ls_tree(path, recursive=True, refresh=refresh, revision=resolved_path.revision, **kwargs)
569
+ out = self._ls_tree(
570
+ path, recursive=True, refresh=refresh, revision=resolved_path.revision, maxdepth=maxdepth, **kwargs
571
+ )
558
572
  except EntryNotFoundError:
559
573
  # Path could be a file
560
- if self.info(path, revision=revision, **kwargs)["type"] == "file":
561
- out = {path: {}}
562
- else:
574
+ try:
575
+ if self.info(path, revision=revision, **kwargs)["type"] == "file":
576
+ out = {path: {}}
577
+ else:
578
+ out = {}
579
+ except FileNotFoundError:
563
580
  out = {}
564
581
  else:
565
582
  if not withdirs:
@@ -130,7 +130,7 @@ class InferenceClient:
130
130
  Note: for better compatibility with OpenAI's client, `model` has been aliased as `base_url`. Those 2
131
131
  arguments are mutually exclusive. If a URL is passed as `model` or `base_url` for chat completion, the `(/v1)/chat/completions` suffix path will be appended to the URL.
132
132
  provider (`str`, *optional*):
133
- Name of the provider to use for inference. Can be `"black-forest-labs"`, `"cerebras"`, `"cohere"`, `"fal-ai"`, `"featherless-ai"`, `"fireworks-ai"`, `"groq"`, `"hf-inference"`, `"hyperbolic"`, `"nebius"`, `"novita"`, `"nscale"`, `"openai"`, `publicai`, `"replicate"`, `"sambanova"`, `"scaleway"` or `"together"`.
133
+ Name of the provider to use for inference. Can be `"black-forest-labs"`, `"cerebras"`, `"cohere"`, `"fal-ai"`, `"featherless-ai"`, `"fireworks-ai"`, `"groq"`, `"hf-inference"`, `"hyperbolic"`, `"nebius"`, `"novita"`, `"nscale"`, `"openai"`, `publicai`, `"replicate"`, `"sambanova"`, `"scaleway"`, `"together"` or `"zai-org"`.
134
134
  Defaults to "auto" i.e. the first of the providers available for the model, sorted by the user's order in https://hf.co/settings/inference-providers.
135
135
  If model is a URL or `base_url` is passed, then `provider` is not used.
136
136
  token (`str`, *optional*):
@@ -118,7 +118,7 @@ class AsyncInferenceClient:
118
118
  Note: for better compatibility with OpenAI's client, `model` has been aliased as `base_url`. Those 2
119
119
  arguments are mutually exclusive. If a URL is passed as `model` or `base_url` for chat completion, the `(/v1)/chat/completions` suffix path will be appended to the URL.
120
120
  provider (`str`, *optional*):
121
- Name of the provider to use for inference. Can be `"black-forest-labs"`, `"cerebras"`, `"cohere"`, `"fal-ai"`, `"featherless-ai"`, `"fireworks-ai"`, `"groq"`, `"hf-inference"`, `"hyperbolic"`, `"nebius"`, `"novita"`, `"nscale"`, `"openai"`, `publicai`, `"replicate"`, `"sambanova"`, `"scaleway"` or `"together"`.
121
+ Name of the provider to use for inference. Can be `"black-forest-labs"`, `"cerebras"`, `"cohere"`, `"fal-ai"`, `"featherless-ai"`, `"fireworks-ai"`, `"groq"`, `"hf-inference"`, `"hyperbolic"`, `"nebius"`, `"novita"`, `"nscale"`, `"openai"`, `publicai`, `"replicate"`, `"sambanova"`, `"scaleway"`, `"together"` or `"zai-org"`.
122
122
  Defaults to "auto" i.e. the first of the providers available for the model, sorted by the user's order in https://hf.co/settings/inference-providers.
123
123
  If model is a URL or `base_url` is passed, then `provider` is not used.
124
124
  token (`str`, *optional*):
@@ -41,6 +41,7 @@ from .replicate import ReplicateImageToImageTask, ReplicateTask, ReplicateTextTo
41
41
  from .sambanova import SambanovaConversationalTask, SambanovaFeatureExtractionTask
42
42
  from .scaleway import ScalewayConversationalTask, ScalewayFeatureExtractionTask
43
43
  from .together import TogetherConversationalTask, TogetherTextGenerationTask, TogetherTextToImageTask
44
+ from .zai_org import ZaiConversationalTask
44
45
 
45
46
 
46
47
  logger = logging.get_logger(__name__)
@@ -65,6 +66,7 @@ PROVIDER_T = Literal[
65
66
  "sambanova",
66
67
  "scaleway",
67
68
  "together",
69
+ "zai-org",
68
70
  ]
69
71
 
70
72
  PROVIDER_OR_POLICY_T = Union[PROVIDER_T, Literal["auto"]]
@@ -170,6 +172,9 @@ PROVIDERS: Dict[PROVIDER_T, Dict[str, TaskProviderHelper]] = {
170
172
  "conversational": TogetherConversationalTask(),
171
173
  "text-generation": TogetherTextGenerationTask(),
172
174
  },
175
+ "zai-org": {
176
+ "conversational": ZaiConversationalTask(),
177
+ },
173
178
  }
174
179
 
175
180
 
@@ -35,6 +35,7 @@ HARDCODED_MODEL_INFERENCE_MAPPING: Dict[str, Dict[str, InferenceProviderMapping]
35
35
  "sambanova": {},
36
36
  "scaleway": {},
37
37
  "together": {},
38
+ "zai-org": {},
38
39
  }
39
40
 
40
41
 
@@ -0,0 +1,17 @@
1
+ from typing import Any, Dict
2
+
3
+ from huggingface_hub.inference._providers._common import BaseConversationalTask
4
+
5
+
6
+ class ZaiConversationalTask(BaseConversationalTask):
7
+ def __init__(self):
8
+ super().__init__(provider="zai-org", base_url="https://api.z.ai")
9
+
10
+ def _prepare_headers(self, headers: Dict, api_key: str) -> Dict[str, Any]:
11
+ headers = super()._prepare_headers(headers, api_key)
12
+ headers["Accept-Language"] = "en-US,en"
13
+ headers["x-source-channel"] = "hugging_face"
14
+ return headers
15
+
16
+ def _prepare_route(self, mapped_model: str, api_key: str) -> str:
17
+ return "/api/paas/v4/chat/completions"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 0.35.1
3
+ Version: 0.35.2
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.
@@ -134,6 +134,7 @@ src/huggingface_hub/inference/_providers/replicate.py
134
134
  src/huggingface_hub/inference/_providers/sambanova.py
135
135
  src/huggingface_hub/inference/_providers/scaleway.py
136
136
  src/huggingface_hub/inference/_providers/together.py
137
+ src/huggingface_hub/inference/_providers/zai_org.py
137
138
  src/huggingface_hub/serialization/__init__.py
138
139
  src/huggingface_hub/serialization/_base.py
139
140
  src/huggingface_hub/serialization/_dduf.py