abliteration 0.1.8 → 0.1.10
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.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/docs/DownloadAnomaly.md +32 -0
- data/docs/DownloadPoint.md +20 -0
- data/docs/FreedomVelocityDailyPoint.md +24 -0
- data/docs/GetModelDownloadHistory200Response.md +32 -0
- data/docs/Index.md +5 -1
- data/docs/IndexDetail.md +8 -2
- data/docs/IndicesApi.md +2 -2
- data/docs/ListAnomalies200Response.md +32 -0
- data/docs/ModelsApi.md +154 -0
- data/lib/abliteration/api/indices_api.rb +4 -4
- data/lib/abliteration/api/models_api.rb +174 -0
- data/lib/abliteration/models/download_anomaly.rb +250 -0
- data/lib/abliteration/models/download_point.rb +158 -0
- data/lib/abliteration/models/freedom_velocity_daily_point.rb +202 -0
- data/lib/abliteration/models/get_model_download_history200_response.rb +386 -0
- data/lib/abliteration/models/index.rb +24 -1
- data/lib/abliteration/models/index_detail.rb +37 -4
- data/lib/abliteration/models/list_anomalies200_response.rb +386 -0
- data/lib/abliteration/version.rb +1 -1
- data/lib/abliteration.rb +5 -0
- data/spec/models/download_anomaly_spec.rb +82 -0
- data/spec/models/download_point_spec.rb +42 -0
- data/spec/models/freedom_velocity_daily_point_spec.rb +54 -0
- data/spec/models/get_model_download_history200_response_spec.rb +82 -0
- data/spec/models/list_anomalies200_response_spec.rb +82 -0
- metadata +55 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ba64368aa0d755124428b81211090e46f2e3efe676f8a89246197a16a9a7b35
|
|
4
|
+
data.tar.gz: 4f61a1ee507352bf252b371925100f9c1e5242f14766332580d0953b376d305b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eaa21cae02eec41f5cead9811adf5cc7d92ef6eb127b7ab96fca9687825c8c9c7534ae231c9b505fb9c0c04e07c50f9b7533902190c8bf7b4a53bb9fc10c7e5
|
|
7
|
+
data.tar.gz: db0361e1f34e11510ec7771b6b19fe7635b16c8cd6ed6612ebcaf2b18c4d5454631838f1b51cca3a816173415362af05a61600cff5bc1fe2ca5c29e7fae2b78e
|
data/README.md
CHANGED
|
@@ -99,7 +99,9 @@ Class | Method | HTTP request | Description
|
|
|
99
99
|
*Abliteration::MethodsApi* | [**list_methods**](docs/MethodsApi.md#list_methods) | **GET** /api/v1/methods | List the method taxonomy
|
|
100
100
|
*Abliteration::ModelsApi* | [**get_historical_deletion_summary**](docs/ModelsApi.md#get_historical_deletion_summary) | **GET** /api/v1/models/historical-deletions/summary | Historical deletions — aggregate summary
|
|
101
101
|
*Abliteration::ModelsApi* | [**get_model**](docs/ModelsApi.md#get_model) | **GET** /api/v1/models/{id} | Get one model
|
|
102
|
+
*Abliteration::ModelsApi* | [**get_model_download_history**](docs/ModelsApi.md#get_model_download_history) | **GET** /api/v1/models/{id}/download-history | Per-model download timeline
|
|
102
103
|
*Abliteration::ModelsApi* | [**get_model_readme_at**](docs/ModelsApi.md#get_model_readme_at) | **GET** /api/v1/models/{id}/readme-at/{commit} | README content at one commit (wayback)
|
|
104
|
+
*Abliteration::ModelsApi* | [**list_anomalies**](docs/ModelsApi.md#list_anomalies) | **GET** /api/v1/market/anomalies | Anomalies in the download counter (change stream)
|
|
103
105
|
*Abliteration::ModelsApi* | [**list_delisted_models**](docs/ModelsApi.md#list_delisted_models) | **GET** /api/v1/models/delisted | List delisted models (change stream)
|
|
104
106
|
*Abliteration::ModelsApi* | [**list_historical_deletions**](docs/ModelsApi.md#list_historical_deletions) | **GET** /api/v1/models/historical-deletions/list | Historical deletions — paged list
|
|
105
107
|
*Abliteration::ModelsApi* | [**list_model_readme_drifts**](docs/ModelsApi.md#list_model_readme_drifts) | **GET** /api/v1/models/{id}/drifts | README drift stream for one model
|
|
@@ -118,19 +120,24 @@ Class | Method | HTTP request | Description
|
|
|
118
120
|
- [Abliteration::DeletionSummaryTimelineInner](docs/DeletionSummaryTimelineInner.md)
|
|
119
121
|
- [Abliteration::DeletionSummaryTopByDownloadsInner](docs/DeletionSummaryTopByDownloadsInner.md)
|
|
120
122
|
- [Abliteration::DelistedModel](docs/DelistedModel.md)
|
|
123
|
+
- [Abliteration::DownloadAnomaly](docs/DownloadAnomaly.md)
|
|
124
|
+
- [Abliteration::DownloadPoint](docs/DownloadPoint.md)
|
|
121
125
|
- [Abliteration::Envelope](docs/Envelope.md)
|
|
122
126
|
- [Abliteration::Error](docs/Error.md)
|
|
123
127
|
- [Abliteration::Event](docs/Event.md)
|
|
128
|
+
- [Abliteration::FreedomVelocityDailyPoint](docs/FreedomVelocityDailyPoint.md)
|
|
124
129
|
- [Abliteration::GetAuthor200Response](docs/GetAuthor200Response.md)
|
|
125
130
|
- [Abliteration::GetDataset200Response](docs/GetDataset200Response.md)
|
|
126
131
|
- [Abliteration::GetHistoricalDeletionSummary200Response](docs/GetHistoricalDeletionSummary200Response.md)
|
|
127
132
|
- [Abliteration::GetIndex200Response](docs/GetIndex200Response.md)
|
|
128
133
|
- [Abliteration::GetMethod200Response](docs/GetMethod200Response.md)
|
|
129
134
|
- [Abliteration::GetModel200Response](docs/GetModel200Response.md)
|
|
135
|
+
- [Abliteration::GetModelDownloadHistory200Response](docs/GetModelDownloadHistory200Response.md)
|
|
130
136
|
- [Abliteration::GetModelReadmeAt200Response](docs/GetModelReadmeAt200Response.md)
|
|
131
137
|
- [Abliteration::HistoricalDeletion](docs/HistoricalDeletion.md)
|
|
132
138
|
- [Abliteration::Index](docs/Index.md)
|
|
133
139
|
- [Abliteration::IndexDetail](docs/IndexDetail.md)
|
|
140
|
+
- [Abliteration::ListAnomalies200Response](docs/ListAnomalies200Response.md)
|
|
134
141
|
- [Abliteration::ListAuthors200Response](docs/ListAuthors200Response.md)
|
|
135
142
|
- [Abliteration::ListDatasets200Response](docs/ListDatasets200Response.md)
|
|
136
143
|
- [Abliteration::ListDelistedModels200Response](docs/ListDelistedModels200Response.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Abliteration::DownloadAnomaly
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **model_id** | **String** | | [optional] |
|
|
8
|
+
| **current_at** | **String** | ISO-8601 timestamp of the current snapshot. | [optional] |
|
|
9
|
+
| **current_downloads** | **Integer** | | [optional] |
|
|
10
|
+
| **baseline_at** | **String** | ISO-8601 timestamp of the baseline snapshot the delta is computed against. | [optional] |
|
|
11
|
+
| **baseline_downloads** | **Integer** | | [optional] |
|
|
12
|
+
| **ratio** | **Float** | current_downloads / baseline_downloads. | [optional] |
|
|
13
|
+
| **delta** | **Integer** | current_downloads - baseline_downloads (signed). | [optional] |
|
|
14
|
+
| **kind** | **String** | `spike` when ratio >= 2, `drop` when ratio <= 0.5. | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'abliteration'
|
|
20
|
+
|
|
21
|
+
instance = Abliteration::DownloadAnomaly.new(
|
|
22
|
+
model_id: null,
|
|
23
|
+
current_at: null,
|
|
24
|
+
current_downloads: null,
|
|
25
|
+
baseline_at: null,
|
|
26
|
+
baseline_downloads: null,
|
|
27
|
+
ratio: null,
|
|
28
|
+
delta: null,
|
|
29
|
+
kind: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Abliteration::DownloadPoint
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **date** | **String** | ISO-8601 timestamp of the observation. | [optional] |
|
|
8
|
+
| **downloads** | **Integer** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'abliteration'
|
|
14
|
+
|
|
15
|
+
instance = Abliteration::DownloadPoint.new(
|
|
16
|
+
date: null,
|
|
17
|
+
downloads: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Abliteration::FreedomVelocityDailyPoint
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **date** | **String** | UTC date of the snapshot, YYYY-MM-DD. | [optional] |
|
|
8
|
+
| **value** | **Float** | Mean days from a base model release to the first derived catalog model, as stored that day. | [optional] |
|
|
9
|
+
| **median** | **Float** | Median of the per-base days that day; null when not recorded. | [optional] |
|
|
10
|
+
| **bases_count** | **Integer** | Number of base models in the average that day; null when not recorded. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'abliteration'
|
|
16
|
+
|
|
17
|
+
instance = Abliteration::FreedomVelocityDailyPoint.new(
|
|
18
|
+
date: 2026-11-09,
|
|
19
|
+
value: null,
|
|
20
|
+
median: null,
|
|
21
|
+
bases_count: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Abliteration::GetModelDownloadHistory200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<DownloadPoint>**](DownloadPoint.md) | | |
|
|
8
|
+
| **cost** | **Integer** | Credits this call costs. | |
|
|
9
|
+
| **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
|
|
10
|
+
| **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
|
|
11
|
+
| **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
|
|
12
|
+
| **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
|
|
13
|
+
| **metering** | **String** | Whether cost was actually deducted. | |
|
|
14
|
+
| **request_id** | **String** | Also returned in the x-request-id header. | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'abliteration'
|
|
20
|
+
|
|
21
|
+
instance = Abliteration::GetModelDownloadHistory200Response.new(
|
|
22
|
+
data: null,
|
|
23
|
+
cost: null,
|
|
24
|
+
credits_remaining: null,
|
|
25
|
+
rate_limit_limit: null,
|
|
26
|
+
rate_limit_remaining: null,
|
|
27
|
+
rate_limit_reset: null,
|
|
28
|
+
metering: null,
|
|
29
|
+
request_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
data/docs/Index.md
CHANGED
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
| **unit** | **String** | | [optional] |
|
|
11
11
|
| **measured** | **Boolean** | False when the value is a placeholder constant rather than a measurement. | [optional] |
|
|
12
12
|
| **source** | **String** | Where the number is produced. | [optional] |
|
|
13
|
-
| **history_available** | **Boolean** |
|
|
13
|
+
| **history_available** | **Boolean** | true when this index exposes a time series in `history` or `daily_history` | [optional] |
|
|
14
14
|
| **as_of** | **String** | | [optional] |
|
|
15
15
|
| **note** | **String** | | [optional] |
|
|
16
|
+
| **median** | **Float** | freedom-velocity only: median of the per-base days, rounded to 0.1. | [optional] |
|
|
17
|
+
| **bases_count** | **Integer** | freedom-velocity only: number of base models in the average. | [optional] |
|
|
16
18
|
| **recent_history** | [**Array<DaiPoint>**](DaiPoint.md) | | [optional] |
|
|
17
19
|
|
|
18
20
|
## Example
|
|
@@ -30,6 +32,8 @@ instance = Abliteration::Index.new(
|
|
|
30
32
|
history_available: null,
|
|
31
33
|
as_of: null,
|
|
32
34
|
note: null,
|
|
35
|
+
median: null,
|
|
36
|
+
bases_count: null,
|
|
33
37
|
recent_history: null
|
|
34
38
|
)
|
|
35
39
|
```
|
data/docs/IndexDetail.md
CHANGED
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
| **unit** | **String** | | [optional] |
|
|
11
11
|
| **measured** | **Boolean** | False when the value is a placeholder constant rather than a measurement. | [optional] |
|
|
12
12
|
| **source** | **String** | Where the number is produced. | [optional] |
|
|
13
|
-
| **history_available** | **Boolean** |
|
|
13
|
+
| **history_available** | **Boolean** | true when this index exposes a time series in `history` or `daily_history` | [optional] |
|
|
14
14
|
| **as_of** | **String** | | [optional] |
|
|
15
15
|
| **note** | **String** | | [optional] |
|
|
16
|
+
| **median** | **Float** | freedom-velocity only: median of the per-base days, rounded to 0.1. | [optional] |
|
|
17
|
+
| **bases_count** | **Integer** | freedom-velocity only: number of base models in the average. | [optional] |
|
|
16
18
|
| **recent_history** | [**Array<DaiPoint>**](DaiPoint.md) | | [optional] |
|
|
17
19
|
| **history** | [**Array<DaiPoint>**](DaiPoint.md) | | [optional] |
|
|
20
|
+
| **daily_history** | [**Array<FreedomVelocityDailyPoint>**](FreedomVelocityDailyPoint.md) | freedom-velocity only (absent for the other indices): the daily Freedom Velocity readings stored once a day in index_snapshots, oldest first. Empty until the first daily snapshot exists. | [optional] |
|
|
18
21
|
|
|
19
22
|
## Example
|
|
20
23
|
|
|
@@ -31,8 +34,11 @@ instance = Abliteration::IndexDetail.new(
|
|
|
31
34
|
history_available: null,
|
|
32
35
|
as_of: null,
|
|
33
36
|
note: null,
|
|
37
|
+
median: null,
|
|
38
|
+
bases_count: null,
|
|
34
39
|
recent_history: null,
|
|
35
|
-
history: null
|
|
40
|
+
history: null,
|
|
41
|
+
daily_history: null
|
|
36
42
|
)
|
|
37
43
|
```
|
|
38
44
|
|
data/docs/IndicesApi.md
CHANGED
|
@@ -14,7 +14,7 @@ All URIs are relative to *https://abliteration.org*
|
|
|
14
14
|
|
|
15
15
|
One index with history
|
|
16
16
|
|
|
17
|
-
Cost: 10 credits. Only dai has a history
|
|
17
|
+
Cost: 10 credits. Only dai has a series in history; the others return an empty history array. freedom-velocity also returns daily_history, its stored daily values oldest first, and its history_available is true when that series is non-empty. freedom-velocity: average days from a base model's release on Hugging Face (repo createdAt) until the first catalog model derived from it (abliterated or uncensored, at any depth, including delisted models) appears on Hugging Face, across base models released on or after 2024-06-01. The base must be a valid original: chains whose top is a catalog model or carries an abliterated, uncensored or heretic marker are excluded. The median and the number of bases are returned as median and bases_count.
|
|
18
18
|
|
|
19
19
|
### Examples
|
|
20
20
|
|
|
@@ -83,7 +83,7 @@ end
|
|
|
83
83
|
|
|
84
84
|
All four indices
|
|
85
85
|
|
|
86
|
-
Cost: 20 credits. Check the measured flag before treating a value as a finding.
|
|
86
|
+
Cost: 20 credits. Check the measured flag before treating a value as a finding. freedom-velocity: average days from a base model's release on Hugging Face (repo createdAt) until the first catalog model derived from it (abliterated or uncensored, at any depth, including delisted models) appears on Hugging Face, across base models released on or after 2024-06-01. The base must be a valid original: chains whose top is a catalog model or carries an abliterated, uncensored or heretic marker are excluded. The median and the number of bases are returned as median and bases_count.
|
|
87
87
|
|
|
88
88
|
### Examples
|
|
89
89
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Abliteration::ListAnomalies200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<DownloadAnomaly>**](DownloadAnomaly.md) | | |
|
|
8
|
+
| **cost** | **Integer** | Credits this call costs. | |
|
|
9
|
+
| **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
|
|
10
|
+
| **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
|
|
11
|
+
| **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
|
|
12
|
+
| **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
|
|
13
|
+
| **metering** | **String** | Whether cost was actually deducted. | |
|
|
14
|
+
| **request_id** | **String** | Also returned in the x-request-id header. | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'abliteration'
|
|
20
|
+
|
|
21
|
+
instance = Abliteration::ListAnomalies200Response.new(
|
|
22
|
+
data: null,
|
|
23
|
+
cost: null,
|
|
24
|
+
credits_remaining: null,
|
|
25
|
+
rate_limit_limit: null,
|
|
26
|
+
rate_limit_remaining: null,
|
|
27
|
+
rate_limit_reset: null,
|
|
28
|
+
metering: null,
|
|
29
|
+
request_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
data/docs/ModelsApi.md
CHANGED
|
@@ -6,7 +6,9 @@ All URIs are relative to *https://abliteration.org*
|
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**get_historical_deletion_summary**](ModelsApi.md#get_historical_deletion_summary) | **GET** /api/v1/models/historical-deletions/summary | Historical deletions — aggregate summary |
|
|
8
8
|
| [**get_model**](ModelsApi.md#get_model) | **GET** /api/v1/models/{id} | Get one model |
|
|
9
|
+
| [**get_model_download_history**](ModelsApi.md#get_model_download_history) | **GET** /api/v1/models/{id}/download-history | Per-model download timeline |
|
|
9
10
|
| [**get_model_readme_at**](ModelsApi.md#get_model_readme_at) | **GET** /api/v1/models/{id}/readme-at/{commit} | README content at one commit (wayback) |
|
|
11
|
+
| [**list_anomalies**](ModelsApi.md#list_anomalies) | **GET** /api/v1/market/anomalies | Anomalies in the download counter (change stream) |
|
|
10
12
|
| [**list_delisted_models**](ModelsApi.md#list_delisted_models) | **GET** /api/v1/models/delisted | List delisted models (change stream) |
|
|
11
13
|
| [**list_historical_deletions**](ModelsApi.md#list_historical_deletions) | **GET** /api/v1/models/historical-deletions/list | Historical deletions — paged list |
|
|
12
14
|
| [**list_model_readme_drifts**](ModelsApi.md#list_model_readme_drifts) | **GET** /api/v1/models/{id}/drifts | README drift stream for one model |
|
|
@@ -148,6 +150,79 @@ end
|
|
|
148
150
|
- **Accept**: application/json
|
|
149
151
|
|
|
150
152
|
|
|
153
|
+
## get_model_download_history
|
|
154
|
+
|
|
155
|
+
> <GetModelDownloadHistory200Response> get_model_download_history(id, opts)
|
|
156
|
+
|
|
157
|
+
Per-model download timeline
|
|
158
|
+
|
|
159
|
+
Cost: 5 credits, flat. Raw signal that /market/anomalies scans over. Callers with a chart or their own anomaly detector pull it once per model.
|
|
160
|
+
|
|
161
|
+
### Examples
|
|
162
|
+
|
|
163
|
+
```ruby
|
|
164
|
+
require 'time'
|
|
165
|
+
require 'abliteration'
|
|
166
|
+
# setup authorization
|
|
167
|
+
Abliteration.configure do |config|
|
|
168
|
+
# Configure Bearer authorization: bearerAuth
|
|
169
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
api_instance = Abliteration::ModelsApi.new
|
|
173
|
+
id = 'id_example' # String |
|
|
174
|
+
opts = {
|
|
175
|
+
days: 56 # Integer | Window in days (max 365). Pass 0 for full history.
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
begin
|
|
179
|
+
# Per-model download timeline
|
|
180
|
+
result = api_instance.get_model_download_history(id, opts)
|
|
181
|
+
p result
|
|
182
|
+
rescue Abliteration::ApiError => e
|
|
183
|
+
puts "Error when calling ModelsApi->get_model_download_history: #{e}"
|
|
184
|
+
end
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
#### Using the get_model_download_history_with_http_info variant
|
|
188
|
+
|
|
189
|
+
This returns an Array which contains the response data, status code and headers.
|
|
190
|
+
|
|
191
|
+
> <Array(<GetModelDownloadHistory200Response>, Integer, Hash)> get_model_download_history_with_http_info(id, opts)
|
|
192
|
+
|
|
193
|
+
```ruby
|
|
194
|
+
begin
|
|
195
|
+
# Per-model download timeline
|
|
196
|
+
data, status_code, headers = api_instance.get_model_download_history_with_http_info(id, opts)
|
|
197
|
+
p status_code # => 2xx
|
|
198
|
+
p headers # => { ... }
|
|
199
|
+
p data # => <GetModelDownloadHistory200Response>
|
|
200
|
+
rescue Abliteration::ApiError => e
|
|
201
|
+
puts "Error when calling ModelsApi->get_model_download_history_with_http_info: #{e}"
|
|
202
|
+
end
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Parameters
|
|
206
|
+
|
|
207
|
+
| Name | Type | Description | Notes |
|
|
208
|
+
| ---- | ---- | ----------- | ----- |
|
|
209
|
+
| **id** | **String** | | |
|
|
210
|
+
| **days** | **Integer** | Window in days (max 365). Pass 0 for full history. | [optional][default to 90] |
|
|
211
|
+
|
|
212
|
+
### Return type
|
|
213
|
+
|
|
214
|
+
[**GetModelDownloadHistory200Response**](GetModelDownloadHistory200Response.md)
|
|
215
|
+
|
|
216
|
+
### Authorization
|
|
217
|
+
|
|
218
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
219
|
+
|
|
220
|
+
### HTTP request headers
|
|
221
|
+
|
|
222
|
+
- **Content-Type**: Not defined
|
|
223
|
+
- **Accept**: application/json
|
|
224
|
+
|
|
225
|
+
|
|
151
226
|
## get_model_readme_at
|
|
152
227
|
|
|
153
228
|
> <GetModelReadmeAt200Response> get_model_readme_at(id, commit)
|
|
@@ -219,6 +294,85 @@ end
|
|
|
219
294
|
- **Accept**: application/json
|
|
220
295
|
|
|
221
296
|
|
|
297
|
+
## list_anomalies
|
|
298
|
+
|
|
299
|
+
> <ListAnomalies200Response> list_anomalies(opts)
|
|
300
|
+
|
|
301
|
+
Anomalies in the download counter (change stream)
|
|
302
|
+
|
|
303
|
+
Cost: 15 credits, flat. Every row is a model whose downloads-per-window has crossed a threshold: 2× jump = `spike`, 0.5× fall = `drop`. Sorted by absolute delta so biggest movers surface first. Consumers get \"what is happening in the field right now\" without re-implementing the ETL over `download_history`.
|
|
304
|
+
|
|
305
|
+
### Examples
|
|
306
|
+
|
|
307
|
+
```ruby
|
|
308
|
+
require 'time'
|
|
309
|
+
require 'abliteration'
|
|
310
|
+
# setup authorization
|
|
311
|
+
Abliteration.configure do |config|
|
|
312
|
+
# Configure Bearer authorization: bearerAuth
|
|
313
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
api_instance = Abliteration::ModelsApi.new
|
|
317
|
+
opts = {
|
|
318
|
+
window_days: 56, # Integer | Baseline distance in days. Default 7, min 1, max 365.
|
|
319
|
+
min_baseline: 56, # Integer | Only rows where baseline downloads >= this. Filters `0→10` noise. Default 1000.
|
|
320
|
+
kind: 'spike', # String | Filter to one class. Omit for both.
|
|
321
|
+
limit: 56, # Integer | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
322
|
+
offset: 56 # Integer | Rows to skip. Negative and non-numeric values are treated as 0.
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
begin
|
|
326
|
+
# Anomalies in the download counter (change stream)
|
|
327
|
+
result = api_instance.list_anomalies(opts)
|
|
328
|
+
p result
|
|
329
|
+
rescue Abliteration::ApiError => e
|
|
330
|
+
puts "Error when calling ModelsApi->list_anomalies: #{e}"
|
|
331
|
+
end
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
#### Using the list_anomalies_with_http_info variant
|
|
335
|
+
|
|
336
|
+
This returns an Array which contains the response data, status code and headers.
|
|
337
|
+
|
|
338
|
+
> <Array(<ListAnomalies200Response>, Integer, Hash)> list_anomalies_with_http_info(opts)
|
|
339
|
+
|
|
340
|
+
```ruby
|
|
341
|
+
begin
|
|
342
|
+
# Anomalies in the download counter (change stream)
|
|
343
|
+
data, status_code, headers = api_instance.list_anomalies_with_http_info(opts)
|
|
344
|
+
p status_code # => 2xx
|
|
345
|
+
p headers # => { ... }
|
|
346
|
+
p data # => <ListAnomalies200Response>
|
|
347
|
+
rescue Abliteration::ApiError => e
|
|
348
|
+
puts "Error when calling ModelsApi->list_anomalies_with_http_info: #{e}"
|
|
349
|
+
end
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
### Parameters
|
|
353
|
+
|
|
354
|
+
| Name | Type | Description | Notes |
|
|
355
|
+
| ---- | ---- | ----------- | ----- |
|
|
356
|
+
| **window_days** | **Integer** | Baseline distance in days. Default 7, min 1, max 365. | [optional][default to 7] |
|
|
357
|
+
| **min_baseline** | **Integer** | Only rows where baseline downloads >= this. Filters `0→10` noise. Default 1000. | [optional][default to 1000] |
|
|
358
|
+
| **kind** | **String** | Filter to one class. Omit for both. | [optional] |
|
|
359
|
+
| **limit** | **Integer** | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [optional][default to 50] |
|
|
360
|
+
| **offset** | **Integer** | Rows to skip. Negative and non-numeric values are treated as 0. | [optional][default to 0] |
|
|
361
|
+
|
|
362
|
+
### Return type
|
|
363
|
+
|
|
364
|
+
[**ListAnomalies200Response**](ListAnomalies200Response.md)
|
|
365
|
+
|
|
366
|
+
### Authorization
|
|
367
|
+
|
|
368
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
369
|
+
|
|
370
|
+
### HTTP request headers
|
|
371
|
+
|
|
372
|
+
- **Content-Type**: Not defined
|
|
373
|
+
- **Accept**: application/json
|
|
374
|
+
|
|
375
|
+
|
|
222
376
|
## list_delisted_models
|
|
223
377
|
|
|
224
378
|
> <ListDelistedModels200Response> list_delisted_models(opts)
|
|
@@ -20,7 +20,7 @@ module Abliteration
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# One index with history
|
|
23
|
-
# Cost: 10 credits. Only dai has a history
|
|
23
|
+
# Cost: 10 credits. Only dai has a series in history; the others return an empty history array. freedom-velocity also returns daily_history, its stored daily values oldest first, and its history_available is true when that series is non-empty. freedom-velocity: average days from a base model's release on Hugging Face (repo createdAt) until the first catalog model derived from it (abliterated or uncensored, at any depth, including delisted models) appears on Hugging Face, across base models released on or after 2024-06-01. The base must be a valid original: chains whose top is a catalog model or carries an abliterated, uncensored or heretic marker are excluded. The median and the number of bases are returned as median and bases_count.
|
|
24
24
|
# @param id [String] Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [GetIndex200Response]
|
|
@@ -30,7 +30,7 @@ module Abliteration
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# One index with history
|
|
33
|
-
# Cost: 10 credits. Only dai has a history
|
|
33
|
+
# Cost: 10 credits. Only dai has a series in history; the others return an empty history array. freedom-velocity also returns daily_history, its stored daily values oldest first, and its history_available is true when that series is non-empty. freedom-velocity: average days from a base model's release on Hugging Face (repo createdAt) until the first catalog model derived from it (abliterated or uncensored, at any depth, including delisted models) appears on Hugging Face, across base models released on or after 2024-06-01. The base must be a valid original: chains whose top is a catalog model or carries an abliterated, uncensored or heretic marker are excluded. The median and the number of bases are returned as median and bases_count.
|
|
34
34
|
# @param id [String] Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(GetIndex200Response, Integer, Hash)>] GetIndex200Response data, response status code and response headers
|
|
@@ -88,7 +88,7 @@ module Abliteration
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
# All four indices
|
|
91
|
-
# Cost: 20 credits. Check the measured flag before treating a value as a finding.
|
|
91
|
+
# Cost: 20 credits. Check the measured flag before treating a value as a finding. freedom-velocity: average days from a base model's release on Hugging Face (repo createdAt) until the first catalog model derived from it (abliterated or uncensored, at any depth, including delisted models) appears on Hugging Face, across base models released on or after 2024-06-01. The base must be a valid original: chains whose top is a catalog model or carries an abliterated, uncensored or heretic marker are excluded. The median and the number of bases are returned as median and bases_count.
|
|
92
92
|
# @param [Hash] opts the optional parameters
|
|
93
93
|
# @return [ListIndices200Response]
|
|
94
94
|
def list_indices(opts = {})
|
|
@@ -97,7 +97,7 @@ module Abliteration
|
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# All four indices
|
|
100
|
-
# Cost: 20 credits. Check the measured flag before treating a value as a finding.
|
|
100
|
+
# Cost: 20 credits. Check the measured flag before treating a value as a finding. freedom-velocity: average days from a base model's release on Hugging Face (repo createdAt) until the first catalog model derived from it (abliterated or uncensored, at any depth, including delisted models) appears on Hugging Face, across base models released on or after 2024-06-01. The base must be a valid original: chains whose top is a catalog model or carries an abliterated, uncensored or heretic marker are excluded. The median and the number of bases are returned as median and bases_count.
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
|
102
102
|
# @return [Array<(ListIndices200Response, Integer, Hash)>] ListIndices200Response data, response status code and response headers
|
|
103
103
|
def list_indices_with_http_info(opts = {})
|