Onur Solmaz commited on
Commit
c84dbb1
·
1 Parent(s): 4d88ca9

docs: clarify monthly rate wording

Browse files
leaderboard_core.py CHANGED
@@ -2279,7 +2279,7 @@ def render_html(payload: dict[str, Any]) -> str:
2279
  <div class="method-item">
2280
  <strong>Rates</strong>
2281
  <span class="formula">avg downloads/month = all-time downloads / max(model age, 1 month)</span><br />
2282
- <span class="formula">likes/month = total likes / max(model age, 1 month)</span>
2283
  </div>
2284
  <div class="method-item">
2285
  <strong>Coverage</strong>
@@ -2295,7 +2295,7 @@ def render_html(payload: dict[str, Any]) -> str:
2295
  </div>
2296
  <div class="method-item">
2297
  <strong>Download counts</strong>
2298
- Hugging Face download counts are public, deduplicated counts over tracked model files, meant to approximate model pulls rather than raw requests for every shard. The recent downloads field is a recent-window count; downloadsAllTime is the same style of count over all time. This leaderboard uses downloadsAllTime divided by model age for Avg Downloads / Month, while recent downloads appear only in metric tooltips.
2299
  </div>
2300
  </div>
2301
  <div class="source-links" aria-label="Sources">
 
2279
  <div class="method-item">
2280
  <strong>Rates</strong>
2281
  <span class="formula">avg downloads/month = all-time downloads / max(model age, 1 month)</span><br />
2282
+ <span class="formula">avg likes/month = total likes / max(model age, 1 month)</span>
2283
  </div>
2284
  <div class="method-item">
2285
  <strong>Coverage</strong>
 
2295
  </div>
2296
  <div class="method-item">
2297
  <strong>Download counts</strong>
2298
+ Hugging Face download counts are public, deduplicated counts over tracked model files, meant to approximate model pulls rather than raw requests for every split model file. The recent downloads field is a recent-window count; downloadsAllTime is the same style of count over all time. This leaderboard uses downloadsAllTime divided by model age for Avg Downloads / Month, while recent downloads appear only in metric tooltips.
2299
  </div>
2300
  </div>
2301
  <div class="source-links" aria-label="Sources">
tests/test_leaderboard_core.py CHANGED
@@ -725,11 +725,14 @@ class RenderTests(unittest.TestCase):
725
  self.assertIn("break-inside: avoid", text)
726
  self.assertIn("Grouped metrics sum downloads, all-time downloads, and likes across related lineage repos", text)
727
  self.assertIn("avg downloads/month = all-time downloads / max(model age, 1 month)", text)
728
- self.assertIn("likes/month = total likes / max(model age, 1 month)", text)
 
729
  self.assertIn("Valid popular artifacts without a safe grouping target stay as standalone rows", text)
730
  self.assertIn("configured download floor, currently 100K", text)
731
  self.assertIn("The leaderboard updates daily", text)
732
  self.assertIn("Hugging Face download counts are public, deduplicated counts over tracked model files", text)
 
 
733
  self.assertIn("downloadsAllTime divided by model age for Avg Downloads / Month", text)
734
  self.assertIn("12.3K/mo", text)
735
  self.assertIn("456.8/mo", text)
 
725
  self.assertIn("break-inside: avoid", text)
726
  self.assertIn("Grouped metrics sum downloads, all-time downloads, and likes across related lineage repos", text)
727
  self.assertIn("avg downloads/month = all-time downloads / max(model age, 1 month)", text)
728
+ self.assertIn("avg likes/month = total likes / max(model age, 1 month)", text)
729
+ self.assertNotIn(">likes/month = total likes / max(model age, 1 month)", text)
730
  self.assertIn("Valid popular artifacts without a safe grouping target stay as standalone rows", text)
731
  self.assertIn("configured download floor, currently 100K", text)
732
  self.assertIn("The leaderboard updates daily", text)
733
  self.assertIn("Hugging Face download counts are public, deduplicated counts over tracked model files", text)
734
+ self.assertIn("rather than raw requests for every split model file", text)
735
+ self.assertNotIn("for every shard", text)
736
  self.assertIn("downloadsAllTime divided by model age for Avg Downloads / Month", text)
737
  self.assertIn("12.3K/mo", text)
738
  self.assertIn("456.8/mo", text)