all-the-public-replicate-models 1.347.0 → 1.349.0
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/README.md +23 -0
- package/example.js +7 -1
- package/models-lite.json +1611 -1404
- package/models.json +19916 -10003
- package/package.json +4 -3
- package/script/stats.js +91 -114
- package/stats.json +1 -0
- package/stats.mjs +7 -0
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Metadata for all[^1] the public models on Replicate, bundled up into an npm package.
|
|
4
4
|
|
|
5
|
+
This package also includes [historical daily run counts](#stats) for each model, which are updated daily.
|
|
5
6
|
|
|
6
7
|
## Installation
|
|
7
8
|
|
|
@@ -37,6 +38,28 @@ const mostRun = chain(models).orderBy('run_count', 'desc').take(10).value()
|
|
|
37
38
|
console.log({mostRun})
|
|
38
39
|
```
|
|
39
40
|
|
|
41
|
+
## Stats
|
|
42
|
+
|
|
43
|
+
This package also includes historical daily run counts for each model, which are updated daily.
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
import stats from 'all-the-public-replicate-models/stats'
|
|
47
|
+
|
|
48
|
+
console.log(stats["black-forest-labs/flux-schnell"].slice(-5))
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
[
|
|
52
|
+
{ date: '2025-01-03', totalRuns: 176951005, dailyRuns: 1071498 },
|
|
53
|
+
{ date: '2025-01-04', totalRuns: 178025758, dailyRuns: 1074753 },
|
|
54
|
+
{ date: '2025-01-05', totalRuns: 179119496, dailyRuns: 1093738 },
|
|
55
|
+
{ date: '2025-01-06', totalRuns: 180272877, dailyRuns: 1153381 },
|
|
56
|
+
{ date: '2025-01-07', totalRuns: 181445133, dailyRuns: 1172256 }
|
|
57
|
+
]
|
|
58
|
+
*/
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
See [example.js](example.js) for a code snippet that uses the stats.
|
|
62
|
+
|
|
40
63
|
## Usage (as a CLI)
|
|
41
64
|
|
|
42
65
|
The CLI dumps the model metadata to standard output as a big JSON object:
|
package/example.js
CHANGED
|
@@ -6,6 +6,12 @@ const mostRunModels = chain(models)
|
|
|
6
6
|
.take(10)
|
|
7
7
|
.value()
|
|
8
8
|
|
|
9
|
+
console.log("Most run models:")
|
|
9
10
|
for (const model of mostRunModels) {
|
|
10
11
|
console.log(model.url)
|
|
11
|
-
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
import stats from './stats.mjs'
|
|
15
|
+
|
|
16
|
+
console.log("Stats for Flux Schnell:")
|
|
17
|
+
console.log(stats["black-forest-labs/flux-schnell"].slice(-5))
|