@huggingface/tasks 0.10.17 → 0.10.18

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.
package/dist/index.cjs CHANGED
@@ -4769,9 +4769,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4769
4769
  docsUrl: "https://huggingface.co/docs/hub/adapters",
4770
4770
  snippets: adapters,
4771
4771
  filter: true,
4772
- countDownloads: {
4773
- term: { path: "adapter_config.json" }
4774
- }
4772
+ countDownloads: `path:"adapter_config.json"`
4775
4773
  },
4776
4774
  allennlp: {
4777
4775
  prettyLabel: "AllenNLP",
@@ -4788,9 +4786,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4788
4786
  docsUrl: "https://huggingface.co/docs/hub/asteroid",
4789
4787
  snippets: asteroid,
4790
4788
  filter: true,
4791
- countDownloads: {
4792
- term: { path: "pytorch_model.bin" }
4793
- }
4789
+ countDownloads: `path:"pytorch_model.bin"`
4794
4790
  },
4795
4791
  audiocraft: {
4796
4792
  prettyLabel: "Audiocraft",
@@ -4804,7 +4800,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4804
4800
  repoName: "audioseal",
4805
4801
  repoUrl: "https://github.com/facebookresearch/audioseal",
4806
4802
  filter: false,
4807
- countDownloads: { wildcard: { path: "*.pth" } },
4803
+ countDownloads: "path_extension:pt",
4808
4804
  snippets: audioseal
4809
4805
  },
4810
4806
  bertopic: {
@@ -4819,9 +4815,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4819
4815
  repoName: "big_vision",
4820
4816
  repoUrl: "https://github.com/google-research/big_vision",
4821
4817
  filter: false,
4822
- countDownloads: {
4823
- wildcard: { path: "*.npz" }
4824
- }
4818
+ countDownloads: `path_extension:"npz"`
4825
4819
  },
4826
4820
  bm25s: {
4827
4821
  prettyLabel: "BM25S",
@@ -4829,17 +4823,15 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4829
4823
  repoUrl: "https://github.com/xhluca/bm25s",
4830
4824
  snippets: bm25s,
4831
4825
  filter: false,
4832
- countDownloads: {
4833
- term: { path: "params.index.json" }
4834
- }
4826
+ countDownloads: `path:"params.index.json"`
4835
4827
  },
4836
4828
  chat_tts: {
4837
4829
  prettyLabel: "ChatTTS",
4838
4830
  repoName: "ChatTTS",
4839
4831
  repoUrl: "https://github.com/2noise/ChatTTS.git",
4832
+ snippets: chattts,
4840
4833
  filter: false,
4841
- countDownloads: { term: { path: "asset/GPT.pt" } },
4842
- snippets: chattts
4834
+ countDownloads: `path:"asset/GPT.pt"`
4843
4835
  },
4844
4836
  diffusers: {
4845
4837
  prettyLabel: "Diffusers",
@@ -4862,18 +4854,14 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4862
4854
  docsUrl: "https://aphp.github.io/edsnlp/latest/",
4863
4855
  filter: false,
4864
4856
  snippets: edsnlp,
4865
- countDownloads: {
4866
- wildcard: { path: "*/config.cfg" }
4867
- }
4857
+ countDownloads: `path_filename:"config" AND path_extension:"cfg"`
4868
4858
  },
4869
4859
  elm: {
4870
4860
  prettyLabel: "ELM",
4871
4861
  repoName: "elm",
4872
4862
  repoUrl: "https://github.com/slicex-ai/elm",
4873
4863
  filter: false,
4874
- countDownloads: {
4875
- wildcard: { path: "*/slicex_elm_config.json" }
4876
- }
4864
+ countDownloads: `path_filename:"slicex_elm_config" AND path_extension:"json"`
4877
4865
  },
4878
4866
  espnet: {
4879
4867
  prettyLabel: "ESPnet",
@@ -4904,9 +4892,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4904
4892
  repoUrl: "https://fasttext.cc/",
4905
4893
  snippets: fasttext,
4906
4894
  filter: true,
4907
- countDownloads: {
4908
- wildcard: { path: "*.bin" }
4909
- }
4895
+ countDownloads: `path_extension:"bin"`
4910
4896
  },
4911
4897
  flair: {
4912
4898
  prettyLabel: "Flair",
@@ -4915,16 +4901,14 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4915
4901
  docsUrl: "https://huggingface.co/docs/hub/flair",
4916
4902
  snippets: flair,
4917
4903
  filter: true,
4918
- countDownloads: {
4919
- term: { path: "pytorch_model.bin" }
4920
- }
4904
+ countDownloads: `path:"pytorch_model.bin"`
4921
4905
  },
4922
4906
  "gemma.cpp": {
4923
4907
  prettyLabel: "gemma.cpp",
4924
4908
  repoName: "gemma.cpp",
4925
4909
  repoUrl: "https://github.com/google/gemma.cpp",
4926
4910
  filter: false,
4927
- countDownloads: { wildcard: { path: "*.sbs" } }
4911
+ countDownloads: `path_extension:"sbs"`
4928
4912
  },
4929
4913
  gliner: {
4930
4914
  prettyLabel: "GLiNER",
@@ -4932,26 +4916,20 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4932
4916
  repoUrl: "https://github.com/urchade/GLiNER",
4933
4917
  snippets: gliner,
4934
4918
  filter: false,
4935
- countDownloads: {
4936
- term: { path: "gliner_config.json" }
4937
- }
4919
+ countDownloads: `path:"gliner_config.json"`
4938
4920
  },
4939
4921
  grok: {
4940
4922
  prettyLabel: "Grok",
4941
4923
  repoName: "Grok",
4942
4924
  repoUrl: "https://github.com/xai-org/grok-1",
4943
4925
  filter: false,
4944
- countDownloads: {
4945
- terms: { path: ["ckpt/tensor00000_000", "ckpt-0/tensor00000_000"] }
4946
- }
4926
+ countDownloads: `path:"ckpt/tensor00000_000" OR path:"ckpt-0/tensor00000_000"`
4947
4927
  },
4948
4928
  "hunyuan-dit": {
4949
4929
  prettyLabel: "HunyuanDiT",
4950
4930
  repoName: "HunyuanDiT",
4951
4931
  repoUrl: "https://github.com/Tencent/HunyuanDiT",
4952
- countDownloads: {
4953
- terms: { path: ["pytorch_model_ema.pt", "pytorch_model_distill.pt"] }
4954
- }
4932
+ countDownloads: `path:"pytorch_model_ema.pt" OR path:"pytorch_model_distill.pt"`
4955
4933
  },
4956
4934
  keras: {
4957
4935
  prettyLabel: "Keras",
@@ -4960,7 +4938,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4960
4938
  docsUrl: "https://huggingface.co/docs/hub/keras",
4961
4939
  snippets: keras,
4962
4940
  filter: true,
4963
- countDownloads: { term: { path: "saved_model.pb" } }
4941
+ countDownloads: `path:"saved_model.pb"`
4964
4942
  },
4965
4943
  "keras-nlp": {
4966
4944
  prettyLabel: "KerasNLP",
@@ -4986,7 +4964,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4986
4964
  docsUrl: "https://huggingface.co/docs/hub/ml-agents",
4987
4965
  snippets: mlAgents,
4988
4966
  filter: true,
4989
- countDownloads: { wildcard: { path: "*.onnx" } }
4967
+ countDownloads: `path_extension:"onnx"`
4990
4968
  },
4991
4969
  mlx: {
4992
4970
  prettyLabel: "MLX",
@@ -5002,7 +4980,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5002
4980
  docsUrl: "https://huggingface.co/docs/hub/mlx-image",
5003
4981
  snippets: mlxim,
5004
4982
  filter: false,
5005
- countDownloads: { term: { path: "model.safetensors" } }
4983
+ countDownloads: `path:"model.safetensors"`
5006
4984
  },
5007
4985
  nemo: {
5008
4986
  prettyLabel: "NeMo",
@@ -5010,7 +4988,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5010
4988
  repoUrl: "https://github.com/NVIDIA/NeMo",
5011
4989
  snippets: nemo,
5012
4990
  filter: true,
5013
- countDownloads: { wildcard: { path: "*.nemo" } }
4991
+ countDownloads: `path_extension:"nemo" OR path:"model_config.yaml"`
5014
4992
  },
5015
4993
  open_clip: {
5016
4994
  prettyLabel: "OpenCLIP",
@@ -5018,7 +4996,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5018
4996
  repoUrl: "https://github.com/mlfoundations/open_clip",
5019
4997
  snippets: open_clip,
5020
4998
  filter: true,
5021
- countDownloads: { wildcard: { path: "*pytorch_model.bin" } }
4999
+ countDownloads: `path_extension:"bin" AND path_filename:*pytorch_model`
5022
5000
  },
5023
5001
  paddlenlp: {
5024
5002
  prettyLabel: "paddlenlp",
@@ -5027,9 +5005,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5027
5005
  docsUrl: "https://huggingface.co/docs/hub/paddlenlp",
5028
5006
  snippets: paddlenlp,
5029
5007
  filter: true,
5030
- countDownloads: {
5031
- term: { path: "model_config.json" }
5032
- }
5008
+ countDownloads: `path:"model_config.json"`
5033
5009
  },
5034
5010
  peft: {
5035
5011
  prettyLabel: "PEFT",
@@ -5037,9 +5013,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5037
5013
  repoUrl: "https://github.com/huggingface/peft",
5038
5014
  snippets: peft,
5039
5015
  filter: true,
5040
- countDownloads: {
5041
- term: { path: "adapter_config.json" }
5042
- }
5016
+ countDownloads: `path:"adapter_config.json"`
5043
5017
  },
5044
5018
  "pyannote-audio": {
5045
5019
  prettyLabel: "pyannote.audio",
@@ -5060,7 +5034,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5060
5034
  repoName: "recurrentgemma",
5061
5035
  repoUrl: "https://github.com/google-deepmind/recurrentgemma",
5062
5036
  filter: false,
5063
- countDownloads: { term: { path: "tokenizer.model" } }
5037
+ countDownloads: `path:"tokenizer.model"`
5064
5038
  },
5065
5039
  "sample-factory": {
5066
5040
  prettyLabel: "sample-factory",
@@ -5069,7 +5043,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5069
5043
  docsUrl: "https://huggingface.co/docs/hub/sample-factory",
5070
5044
  snippets: sampleFactory,
5071
5045
  filter: true,
5072
- countDownloads: { term: { path: "cfg.json" } }
5046
+ countDownloads: `path:"cfg.json"`
5073
5047
  },
5074
5048
  "sentence-transformers": {
5075
5049
  prettyLabel: "sentence-transformers",
@@ -5093,9 +5067,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5093
5067
  repoUrl: "https://github.com/scikit-learn/scikit-learn",
5094
5068
  snippets: sklearn,
5095
5069
  filter: true,
5096
- countDownloads: {
5097
- term: { path: "sklearn_model.joblib" }
5098
- }
5070
+ countDownloads: `path:"sklearn_model.joblib"`
5099
5071
  },
5100
5072
  spacy: {
5101
5073
  prettyLabel: "spaCy",
@@ -5104,9 +5076,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5104
5076
  docsUrl: "https://huggingface.co/docs/hub/spacy",
5105
5077
  snippets: spacy,
5106
5078
  filter: true,
5107
- countDownloads: {
5108
- wildcard: { path: "*.whl" }
5109
- }
5079
+ countDownloads: `path_extension:"whl"`
5110
5080
  },
5111
5081
  "span-marker": {
5112
5082
  prettyLabel: "SpanMarker",
@@ -5123,16 +5093,14 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5123
5093
  docsUrl: "https://huggingface.co/docs/hub/speechbrain",
5124
5094
  snippets: speechbrain,
5125
5095
  filter: true,
5126
- countDownloads: {
5127
- term: { path: "hyperparams.yaml" }
5128
- }
5096
+ countDownloads: `path:"hyperparams.yaml"`
5129
5097
  },
5130
5098
  "stable-audio-tools": {
5131
5099
  prettyLabel: "Stable Audio Tools",
5132
5100
  repoName: "stable-audio-tools",
5133
5101
  repoUrl: "https://github.com/Stability-AI/stable-audio-tools.git",
5134
5102
  filter: false,
5135
- countDownloads: { term: { path: "model.safetensors" } },
5103
+ countDownloads: `path:"model.safetensors"`,
5136
5104
  snippets: stable_audio_tools
5137
5105
  },
5138
5106
  "diffusion-single-file": {
@@ -5140,9 +5108,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5140
5108
  repoName: "diffusion-single-file",
5141
5109
  repoUrl: "https://github.com/comfyanonymous/ComfyUI",
5142
5110
  filter: false,
5143
- countDownloads: {
5144
- wildcard: { path: "*.safetensors" }
5145
- }
5111
+ countDownloads: `path_extension:"safetensors"`
5146
5112
  },
5147
5113
  "stable-baselines3": {
5148
5114
  prettyLabel: "stable-baselines3",
@@ -5151,9 +5117,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5151
5117
  docsUrl: "https://huggingface.co/docs/hub/stable-baselines3",
5152
5118
  snippets: stableBaselines3,
5153
5119
  filter: true,
5154
- countDownloads: {
5155
- wildcard: { path: "*.zip" }
5156
- }
5120
+ countDownloads: `path_extension:"zip"`
5157
5121
  },
5158
5122
  stanza: {
5159
5123
  prettyLabel: "Stanza",
@@ -5162,9 +5126,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5162
5126
  docsUrl: "https://huggingface.co/docs/hub/stanza",
5163
5127
  snippets: stanza,
5164
5128
  filter: true,
5165
- countDownloads: {
5166
- term: { path: "models/default.zip" }
5167
- }
5129
+ countDownloads: `path:"models/default.zip"`
5168
5130
  },
5169
5131
  tensorflowtts: {
5170
5132
  prettyLabel: "TensorFlowTTS",
@@ -5177,16 +5139,14 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5177
5139
  repoName: "TiC-CLIP",
5178
5140
  repoUrl: "https://github.com/apple/ml-tic-clip",
5179
5141
  filter: false,
5180
- countDownloads: { wildcard: { path: "checkpoints/*.pt" } }
5142
+ countDownloads: `path_extension:"pt" AND path_prefix:"checkpoints/"`
5181
5143
  },
5182
5144
  timesfm: {
5183
5145
  prettyLabel: "TimesFM",
5184
5146
  repoName: "timesfm",
5185
5147
  repoUrl: "https://github.com/google-research/timesfm",
5186
5148
  filter: false,
5187
- countDownloads: {
5188
- term: { path: "checkpoints/checkpoint_1100000/state/checkpoint" }
5189
- }
5149
+ countDownloads: `path:"checkpoints/checkpoint_1100000/state/checkpoint"`
5190
5150
  },
5191
5151
  timm: {
5192
5152
  prettyLabel: "timm",
@@ -5195,9 +5155,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5195
5155
  docsUrl: "https://huggingface.co/docs/hub/timm",
5196
5156
  snippets: timm,
5197
5157
  filter: true,
5198
- countDownloads: {
5199
- terms: { path: ["pytorch_model.bin", "model.safetensors"] }
5200
- }
5158
+ countDownloads: `path:"pytorch_model.bin" OR path:"model.safetensors"`
5201
5159
  },
5202
5160
  transformers: {
5203
5161
  prettyLabel: "Transformers",
@@ -5221,9 +5179,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5221
5179
  repoUrl: "https://github.com/Unity-Technologies/sentis-samples",
5222
5180
  snippets: sentis,
5223
5181
  filter: true,
5224
- countDownloads: {
5225
- wildcard: { path: "*.sentis" }
5226
- }
5182
+ countDownloads: `path_extension:"sentis"`
5227
5183
  },
5228
5184
  voicecraft: {
5229
5185
  prettyLabel: "VoiceCraft",
@@ -5236,9 +5192,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5236
5192
  prettyLabel: "WhisperKit",
5237
5193
  repoName: "WhisperKit",
5238
5194
  repoUrl: "https://github.com/argmaxinc/WhisperKit",
5239
- countDownloads: {
5240
- wildcard: { path: "*/model.mil" }
5241
- }
5195
+ countDownloads: `path_filename:"model" AND path_extension:"mil" AND _exists_:"path_prefix"`
5242
5196
  }
5243
5197
  };
5244
5198
  var ALL_MODEL_LIBRARY_KEYS = Object.keys(MODEL_LIBRARIES_UI_ELEMENTS);