abliteration 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 930048af7914198ecdd2ad300cbd5827447316fc3a112bbe0fc5844c2e9ddd9a
4
- data.tar.gz: bd3f3ef798683cce29bf1f03cff941113c52de594a151d1bed8a7b36fa8f4d67
3
+ metadata.gz: 1aeea1da0c43df6fb7ab5c4e33d2b56d5a806079c214ed3d538795adebd1aa00
4
+ data.tar.gz: 3e9daf62be90066405a89c3039ce9f1b429dcb7fe14d76c419db5b254146db98
5
5
  SHA512:
6
- metadata.gz: '0773808bc6776876aa64b5823ecce1ba35c76fae49e3634691296ec30efae25f09b44a38720c2ffbce094d3457db696fa8abf54a2dca29e1ef47525e4de320f4'
7
- data.tar.gz: a2e281a0f34b542d64adadbceb16c80f8d3e525864430fe6bc26d29dc1ac6fd46f3c69a2db784cccd185685465151e3cfe52bea9ccaf4535978924cbadf731dc
6
+ metadata.gz: 40588a2cb490bf2d05840df7eb38c0a52d62076bc71c8e4a70c17e416142f39795372c4ec6c94e837a007ba02f8dd16118d3a2e2706fc21e33a1ec8cfdeb6912
7
+ data.tar.gz: d454760c0e0b46545d077e03ae866877f5628c5e3f632114139a3463ee7ea3ca24a5ca85278acc8492ab1fd73096cbdb4ed35d173fde68ec489c2f3a8cf060a0
data/docs/Dataset.md CHANGED
@@ -9,11 +9,22 @@
9
9
  | **slug** | **String** | | [optional] |
10
10
  | **category** | **String** | | [optional] |
11
11
  | **license** | **String** | | [optional] |
12
- | **downloads** | **Integer** | | [optional] |
13
- | **downloads_all** | **Integer** | | [optional] |
12
+ | **language** | **String** | | [optional] |
13
+ | **downloads** | **Integer** | Recent-window downloads reported by the Hub. | [optional] |
14
+ | **downloads_all** | **Integer** | All-time downloads reported by the Hub. | [optional] |
14
15
  | **likes** | **Integer** | | [optional] |
15
- | **gated** | **Integer** | | [optional] |
16
+ | **trending_score** | **Integer** | | [optional] |
17
+ | **gated** | **Integer** | Server returns 0/1 (SQLite bool convention), not a JSON boolean. | [optional] |
18
+ | **main_size_bytes** | **Integer** | | [optional] |
19
+ | **size_display** | **String** | Human-formatted size (e.g. \"90.4 MB\"). | [optional] |
20
+ | **age_days** | **Integer** | | [optional] |
21
+ | **is_trending** | **Integer** | Server returns 0/1, not a JSON boolean. | [optional] |
22
+ | **just_added** | **Integer** | Server returns 0/1, not a JSON boolean. | [optional] |
23
+ | **description** | **String** | | [optional] |
24
+ | **tags** | **Array<String>** | | [optional] |
25
+ | **hf_url** | **String** | | [optional] |
16
26
  | **created_at** | **String** | | [optional] |
27
+ | **last_modified_at** | **String** | | [optional] |
17
28
  | **first_seen_at** | **String** | | [optional] |
18
29
 
19
30
  ## Example
@@ -27,11 +38,22 @@ instance = Abliteration::Dataset.new(
27
38
  slug: null,
28
39
  category: null,
29
40
  license: null,
41
+ language: null,
30
42
  downloads: null,
31
43
  downloads_all: null,
32
44
  likes: null,
45
+ trending_score: null,
33
46
  gated: null,
47
+ main_size_bytes: null,
48
+ size_display: null,
49
+ age_days: null,
50
+ is_trending: null,
51
+ just_added: null,
52
+ description: null,
53
+ tags: null,
54
+ hf_url: null,
34
55
  created_at: null,
56
+ last_modified_at: null,
35
57
  first_seen_at: null
36
58
  )
37
59
  ```
@@ -5,7 +5,28 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **files** | **Array<Object>** | | [optional] |
8
+ | **author** | **String** | | [optional] |
9
+ | **slug** | **String** | | [optional] |
10
+ | **category** | **String** | | [optional] |
11
+ | **license** | **String** | | [optional] |
12
+ | **language** | **String** | | [optional] |
13
+ | **downloads** | **Integer** | Recent-window downloads reported by the Hub. | [optional] |
14
+ | **downloads_all** | **Integer** | All-time downloads reported by the Hub. | [optional] |
15
+ | **likes** | **Integer** | | [optional] |
16
+ | **trending_score** | **Integer** | | [optional] |
17
+ | **gated** | **Integer** | Server returns 0/1 (SQLite bool convention), not a JSON boolean. | [optional] |
18
+ | **main_size_bytes** | **Integer** | | [optional] |
19
+ | **size_display** | **String** | Human-formatted size (e.g. \"90.4 MB\"). | [optional] |
20
+ | **age_days** | **Integer** | | [optional] |
21
+ | **is_trending** | **Integer** | Server returns 0/1, not a JSON boolean. | [optional] |
22
+ | **just_added** | **Integer** | Server returns 0/1, not a JSON boolean. | [optional] |
23
+ | **description** | **String** | | [optional] |
24
+ | **tags** | **Array<String>** | | [optional] |
25
+ | **hf_url** | **String** | | [optional] |
26
+ | **created_at** | **String** | | [optional] |
27
+ | **last_modified_at** | **String** | | [optional] |
28
+ | **first_seen_at** | **String** | | [optional] |
29
+ | **files** | **Array<Object>** | Per-file entries: path, type, size_bytes, is_lfs. | [optional] |
9
30
  | **passport** | [**Passport**](Passport.md) | | [optional] |
10
31
 
11
32
  ## Example
@@ -15,6 +36,27 @@ require 'abliteration'
15
36
 
16
37
  instance = Abliteration::DatasetDetail.new(
17
38
  id: null,
39
+ author: null,
40
+ slug: null,
41
+ category: null,
42
+ license: null,
43
+ language: null,
44
+ downloads: null,
45
+ downloads_all: null,
46
+ likes: null,
47
+ trending_score: null,
48
+ gated: null,
49
+ main_size_bytes: null,
50
+ size_display: null,
51
+ age_days: null,
52
+ is_trending: null,
53
+ just_added: null,
54
+ description: null,
55
+ tags: null,
56
+ hf_url: null,
57
+ created_at: null,
58
+ last_modified_at: null,
59
+ first_seen_at: null,
18
60
  files: null,
19
61
  passport: null
20
62
  )
data/docs/ModelDetail.md CHANGED
@@ -7,8 +7,51 @@
7
7
  | **id** | **String** | | [optional] |
8
8
  | **author** | **String** | | [optional] |
9
9
  | **name** | **String** | | [optional] |
10
- | **files** | **Array<Object>** | | [optional] |
11
- | **benchmarks** | **Object** | | [optional] |
10
+ | **primary_method** | **String** | | [optional] |
11
+ | **secondary_methods** | **String** | JSON-encoded array of extra method codes. | [optional] |
12
+ | **confidence** | **String** | | [optional] |
13
+ | **classification_evidence** | **String** | JSON-encoded array of evidence strings. | [optional] |
14
+ | **classifier_version** | **String** | | [optional] |
15
+ | **classified_at** | **String** | | [optional] |
16
+ | **family** | **String** | | [optional] |
17
+ | **params_b** | **Float** | | [optional] |
18
+ | **is_gguf** | **Integer** | | [optional] |
19
+ | **is_moe** | **Integer** | | [optional] |
20
+ | **is_multimodal** | **Integer** | | [optional] |
21
+ | **is_image_gen** | **Integer** | | [optional] |
22
+ | **is_second_order** | **Integer** | | [optional] |
23
+ | **downloads** | **Integer** | | [optional] |
24
+ | **likes** | **Integer** | | [optional] |
25
+ | **created_at** | **String** | | [optional] |
26
+ | **last_modified** | **String** | | [optional] |
27
+ | **first_seen_at** | **String** | | [optional] |
28
+ | **last_seen_at** | **String** | | [optional] |
29
+ | **readme_text** | **String** | | [optional] |
30
+ | **readme_status** | **String** | | [optional] |
31
+ | **tags** | **String** | JSON-encoded array of Hub tags. | [optional] |
32
+ | **pipeline_tag** | **String** | | [optional] |
33
+ | **library_name** | **String** | | [optional] |
34
+ | **yaml_base_model** | **String** | | [optional] |
35
+ | **yaml_language** | **String** | | [optional] |
36
+ | **yaml_datasets** | **String** | | [optional] |
37
+ | **yaml_license** | **String** | | [optional] |
38
+ | **yaml_tags** | **String** | | [optional] |
39
+ | **files_count** | **Integer** | | [optional] |
40
+ | **total_size_bytes** | **Integer** | | [optional] |
41
+ | **largest_file_bytes** | **Integer** | | [optional] |
42
+ | **smallest_model_bytes** | **Integer** | | [optional] |
43
+ | **quantizations** | **String** | JSON-encoded array of quantisation labels. | [optional] |
44
+ | **has_mmproj** | **Integer** | | [optional] |
45
+ | **hub_downloads_all_time** | **Integer** | | [optional] |
46
+ | **hub_trending_score** | **Integer** | | [optional] |
47
+ | **hub_real_params_m** | **Float** | | [optional] |
48
+ | **hub_context_length** | **Integer** | | [optional] |
49
+ | **hub_siblings_count** | **Integer** | | [optional] |
50
+ | **hub_provider_count** | **Integer** | | [optional] |
51
+ | **hub_provider_names** | **String** | | [optional] |
52
+ | **hub_enriched_at** | **String** | | [optional] |
53
+ | **files** | **Array<Object>** | Per-file manifest: filename, size_bytes, sha256, quantization, is_model_file, is_mmproj. | [optional] |
54
+ | **benchmarks** | **Object** | Two arrays under `own` and `base` — each item has benchmark_name, score, source, pertains_to. | [optional] |
12
55
  | **author_summary** | [**Author**](Author.md) | | [optional] |
13
56
 
14
57
  ## Example
@@ -20,6 +63,49 @@ instance = Abliteration::ModelDetail.new(
20
63
  id: null,
21
64
  author: null,
22
65
  name: null,
66
+ primary_method: null,
67
+ secondary_methods: null,
68
+ confidence: null,
69
+ classification_evidence: null,
70
+ classifier_version: null,
71
+ classified_at: null,
72
+ family: null,
73
+ params_b: null,
74
+ is_gguf: null,
75
+ is_moe: null,
76
+ is_multimodal: null,
77
+ is_image_gen: null,
78
+ is_second_order: null,
79
+ downloads: null,
80
+ likes: null,
81
+ created_at: null,
82
+ last_modified: null,
83
+ first_seen_at: null,
84
+ last_seen_at: null,
85
+ readme_text: null,
86
+ readme_status: null,
87
+ tags: null,
88
+ pipeline_tag: null,
89
+ library_name: null,
90
+ yaml_base_model: null,
91
+ yaml_language: null,
92
+ yaml_datasets: null,
93
+ yaml_license: null,
94
+ yaml_tags: null,
95
+ files_count: null,
96
+ total_size_bytes: null,
97
+ largest_file_bytes: null,
98
+ smallest_model_bytes: null,
99
+ quantizations: null,
100
+ has_mmproj: null,
101
+ hub_downloads_all_time: null,
102
+ hub_trending_score: null,
103
+ hub_real_params_m: null,
104
+ hub_context_length: null,
105
+ hub_siblings_count: null,
106
+ hub_provider_count: null,
107
+ hub_provider_names: null,
108
+ hub_enriched_at: null,
23
109
  files: null,
24
110
  benchmarks: null,
25
111
  author_summary: null
@@ -25,16 +25,44 @@ module Abliteration
25
25
 
26
26
  attr_accessor :license
27
27
 
28
+ attr_accessor :language
29
+
30
+ # Recent-window downloads reported by the Hub.
28
31
  attr_accessor :downloads
29
32
 
33
+ # All-time downloads reported by the Hub.
30
34
  attr_accessor :downloads_all
31
35
 
32
36
  attr_accessor :likes
33
37
 
38
+ attr_accessor :trending_score
39
+
40
+ # Server returns 0/1 (SQLite bool convention), not a JSON boolean.
34
41
  attr_accessor :gated
35
42
 
43
+ attr_accessor :main_size_bytes
44
+
45
+ # Human-formatted size (e.g. \"90.4 MB\").
46
+ attr_accessor :size_display
47
+
48
+ attr_accessor :age_days
49
+
50
+ # Server returns 0/1, not a JSON boolean.
51
+ attr_accessor :is_trending
52
+
53
+ # Server returns 0/1, not a JSON boolean.
54
+ attr_accessor :just_added
55
+
56
+ attr_accessor :description
57
+
58
+ attr_accessor :tags
59
+
60
+ attr_accessor :hf_url
61
+
36
62
  attr_accessor :created_at
37
63
 
64
+ attr_accessor :last_modified_at
65
+
38
66
  attr_accessor :first_seen_at
39
67
 
40
68
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,11 +73,22 @@ module Abliteration
45
73
  :'slug' => :'slug',
46
74
  :'category' => :'category',
47
75
  :'license' => :'license',
76
+ :'language' => :'language',
48
77
  :'downloads' => :'downloads',
49
78
  :'downloads_all' => :'downloads_all',
50
79
  :'likes' => :'likes',
80
+ :'trending_score' => :'trending_score',
51
81
  :'gated' => :'gated',
82
+ :'main_size_bytes' => :'main_size_bytes',
83
+ :'size_display' => :'size_display',
84
+ :'age_days' => :'age_days',
85
+ :'is_trending' => :'is_trending',
86
+ :'just_added' => :'just_added',
87
+ :'description' => :'description',
88
+ :'tags' => :'tags',
89
+ :'hf_url' => :'hf_url',
52
90
  :'created_at' => :'created_at',
91
+ :'last_modified_at' => :'last_modified_at',
53
92
  :'first_seen_at' => :'first_seen_at'
54
93
  }
55
94
  end
@@ -72,11 +111,22 @@ module Abliteration
72
111
  :'slug' => :'String',
73
112
  :'category' => :'String',
74
113
  :'license' => :'String',
114
+ :'language' => :'String',
75
115
  :'downloads' => :'Integer',
76
116
  :'downloads_all' => :'Integer',
77
117
  :'likes' => :'Integer',
118
+ :'trending_score' => :'Integer',
78
119
  :'gated' => :'Integer',
120
+ :'main_size_bytes' => :'Integer',
121
+ :'size_display' => :'String',
122
+ :'age_days' => :'Integer',
123
+ :'is_trending' => :'Integer',
124
+ :'just_added' => :'Integer',
125
+ :'description' => :'String',
126
+ :'tags' => :'Array<String>',
127
+ :'hf_url' => :'String',
79
128
  :'created_at' => :'String',
129
+ :'last_modified_at' => :'String',
80
130
  :'first_seen_at' => :'String'
81
131
  }
82
132
  end
@@ -88,11 +138,21 @@ module Abliteration
88
138
  :'slug',
89
139
  :'category',
90
140
  :'license',
141
+ :'language',
91
142
  :'downloads',
92
143
  :'downloads_all',
93
144
  :'likes',
145
+ :'trending_score',
94
146
  :'gated',
147
+ :'main_size_bytes',
148
+ :'size_display',
149
+ :'age_days',
150
+ :'is_trending',
151
+ :'just_added',
152
+ :'description',
153
+ :'hf_url',
95
154
  :'created_at',
155
+ :'last_modified_at',
96
156
  :'first_seen_at'
97
157
  ])
98
158
  end
@@ -133,6 +193,10 @@ module Abliteration
133
193
  self.license = attributes[:'license']
134
194
  end
135
195
 
196
+ if attributes.key?(:'language')
197
+ self.language = attributes[:'language']
198
+ end
199
+
136
200
  if attributes.key?(:'downloads')
137
201
  self.downloads = attributes[:'downloads']
138
202
  end
@@ -145,14 +209,56 @@ module Abliteration
145
209
  self.likes = attributes[:'likes']
146
210
  end
147
211
 
212
+ if attributes.key?(:'trending_score')
213
+ self.trending_score = attributes[:'trending_score']
214
+ end
215
+
148
216
  if attributes.key?(:'gated')
149
217
  self.gated = attributes[:'gated']
150
218
  end
151
219
 
220
+ if attributes.key?(:'main_size_bytes')
221
+ self.main_size_bytes = attributes[:'main_size_bytes']
222
+ end
223
+
224
+ if attributes.key?(:'size_display')
225
+ self.size_display = attributes[:'size_display']
226
+ end
227
+
228
+ if attributes.key?(:'age_days')
229
+ self.age_days = attributes[:'age_days']
230
+ end
231
+
232
+ if attributes.key?(:'is_trending')
233
+ self.is_trending = attributes[:'is_trending']
234
+ end
235
+
236
+ if attributes.key?(:'just_added')
237
+ self.just_added = attributes[:'just_added']
238
+ end
239
+
240
+ if attributes.key?(:'description')
241
+ self.description = attributes[:'description']
242
+ end
243
+
244
+ if attributes.key?(:'tags')
245
+ if (value = attributes[:'tags']).is_a?(Array)
246
+ self.tags = value
247
+ end
248
+ end
249
+
250
+ if attributes.key?(:'hf_url')
251
+ self.hf_url = attributes[:'hf_url']
252
+ end
253
+
152
254
  if attributes.key?(:'created_at')
153
255
  self.created_at = attributes[:'created_at']
154
256
  end
155
257
 
258
+ if attributes.key?(:'last_modified_at')
259
+ self.last_modified_at = attributes[:'last_modified_at']
260
+ end
261
+
156
262
  if attributes.key?(:'first_seen_at')
157
263
  self.first_seen_at = attributes[:'first_seen_at']
158
264
  end
@@ -183,11 +289,22 @@ module Abliteration
183
289
  slug == o.slug &&
184
290
  category == o.category &&
185
291
  license == o.license &&
292
+ language == o.language &&
186
293
  downloads == o.downloads &&
187
294
  downloads_all == o.downloads_all &&
188
295
  likes == o.likes &&
296
+ trending_score == o.trending_score &&
189
297
  gated == o.gated &&
298
+ main_size_bytes == o.main_size_bytes &&
299
+ size_display == o.size_display &&
300
+ age_days == o.age_days &&
301
+ is_trending == o.is_trending &&
302
+ just_added == o.just_added &&
303
+ description == o.description &&
304
+ tags == o.tags &&
305
+ hf_url == o.hf_url &&
190
306
  created_at == o.created_at &&
307
+ last_modified_at == o.last_modified_at &&
191
308
  first_seen_at == o.first_seen_at
192
309
  end
193
310
 
@@ -200,7 +317,7 @@ module Abliteration
200
317
  # Calculates hash code according to all attributes.
201
318
  # @return [Integer] Hash code
202
319
  def hash
203
- [id, author, slug, category, license, downloads, downloads_all, likes, gated, created_at, first_seen_at].hash
320
+ [id, author, slug, category, license, language, downloads, downloads_all, likes, trending_score, gated, main_size_bytes, size_display, age_days, is_trending, just_added, description, tags, hf_url, created_at, last_modified_at, first_seen_at].hash
204
321
  end
205
322
 
206
323
  # Builds the object from hash
@@ -14,10 +14,58 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Abliteration
17
- # The full dataset record, plus files and the passport when one exists.
18
17
  class DatasetDetail < ApiModelBase
19
18
  attr_accessor :id
20
19
 
20
+ attr_accessor :author
21
+
22
+ attr_accessor :slug
23
+
24
+ attr_accessor :category
25
+
26
+ attr_accessor :license
27
+
28
+ attr_accessor :language
29
+
30
+ # Recent-window downloads reported by the Hub.
31
+ attr_accessor :downloads
32
+
33
+ # All-time downloads reported by the Hub.
34
+ attr_accessor :downloads_all
35
+
36
+ attr_accessor :likes
37
+
38
+ attr_accessor :trending_score
39
+
40
+ # Server returns 0/1 (SQLite bool convention), not a JSON boolean.
41
+ attr_accessor :gated
42
+
43
+ attr_accessor :main_size_bytes
44
+
45
+ # Human-formatted size (e.g. \"90.4 MB\").
46
+ attr_accessor :size_display
47
+
48
+ attr_accessor :age_days
49
+
50
+ # Server returns 0/1, not a JSON boolean.
51
+ attr_accessor :is_trending
52
+
53
+ # Server returns 0/1, not a JSON boolean.
54
+ attr_accessor :just_added
55
+
56
+ attr_accessor :description
57
+
58
+ attr_accessor :tags
59
+
60
+ attr_accessor :hf_url
61
+
62
+ attr_accessor :created_at
63
+
64
+ attr_accessor :last_modified_at
65
+
66
+ attr_accessor :first_seen_at
67
+
68
+ # Per-file entries: path, type, size_bytes, is_lfs.
21
69
  attr_accessor :files
22
70
 
23
71
  attr_accessor :passport
@@ -26,6 +74,27 @@ module Abliteration
26
74
  def self.attribute_map
27
75
  {
28
76
  :'id' => :'id',
77
+ :'author' => :'author',
78
+ :'slug' => :'slug',
79
+ :'category' => :'category',
80
+ :'license' => :'license',
81
+ :'language' => :'language',
82
+ :'downloads' => :'downloads',
83
+ :'downloads_all' => :'downloads_all',
84
+ :'likes' => :'likes',
85
+ :'trending_score' => :'trending_score',
86
+ :'gated' => :'gated',
87
+ :'main_size_bytes' => :'main_size_bytes',
88
+ :'size_display' => :'size_display',
89
+ :'age_days' => :'age_days',
90
+ :'is_trending' => :'is_trending',
91
+ :'just_added' => :'just_added',
92
+ :'description' => :'description',
93
+ :'tags' => :'tags',
94
+ :'hf_url' => :'hf_url',
95
+ :'created_at' => :'created_at',
96
+ :'last_modified_at' => :'last_modified_at',
97
+ :'first_seen_at' => :'first_seen_at',
29
98
  :'files' => :'files',
30
99
  :'passport' => :'passport'
31
100
  }
@@ -45,6 +114,27 @@ module Abliteration
45
114
  def self.openapi_types
46
115
  {
47
116
  :'id' => :'String',
117
+ :'author' => :'String',
118
+ :'slug' => :'String',
119
+ :'category' => :'String',
120
+ :'license' => :'String',
121
+ :'language' => :'String',
122
+ :'downloads' => :'Integer',
123
+ :'downloads_all' => :'Integer',
124
+ :'likes' => :'Integer',
125
+ :'trending_score' => :'Integer',
126
+ :'gated' => :'Integer',
127
+ :'main_size_bytes' => :'Integer',
128
+ :'size_display' => :'String',
129
+ :'age_days' => :'Integer',
130
+ :'is_trending' => :'Integer',
131
+ :'just_added' => :'Integer',
132
+ :'description' => :'String',
133
+ :'tags' => :'Array<String>',
134
+ :'hf_url' => :'String',
135
+ :'created_at' => :'String',
136
+ :'last_modified_at' => :'String',
137
+ :'first_seen_at' => :'String',
48
138
  :'files' => :'Array<Object>',
49
139
  :'passport' => :'Passport'
50
140
  }
@@ -57,6 +147,13 @@ module Abliteration
57
147
  ])
58
148
  end
59
149
 
150
+ # List of class defined in allOf (OpenAPI v3)
151
+ def self.openapi_all_of
152
+ [
153
+ :'Dataset'
154
+ ]
155
+ end
156
+
60
157
  # Initializes the object
61
158
  # @param [Hash] attributes Model attributes in the form of hash
62
159
  def initialize(attributes = {})
@@ -77,6 +174,92 @@ module Abliteration
77
174
  self.id = attributes[:'id']
78
175
  end
79
176
 
177
+ if attributes.key?(:'author')
178
+ self.author = attributes[:'author']
179
+ end
180
+
181
+ if attributes.key?(:'slug')
182
+ self.slug = attributes[:'slug']
183
+ end
184
+
185
+ if attributes.key?(:'category')
186
+ self.category = attributes[:'category']
187
+ end
188
+
189
+ if attributes.key?(:'license')
190
+ self.license = attributes[:'license']
191
+ end
192
+
193
+ if attributes.key?(:'language')
194
+ self.language = attributes[:'language']
195
+ end
196
+
197
+ if attributes.key?(:'downloads')
198
+ self.downloads = attributes[:'downloads']
199
+ end
200
+
201
+ if attributes.key?(:'downloads_all')
202
+ self.downloads_all = attributes[:'downloads_all']
203
+ end
204
+
205
+ if attributes.key?(:'likes')
206
+ self.likes = attributes[:'likes']
207
+ end
208
+
209
+ if attributes.key?(:'trending_score')
210
+ self.trending_score = attributes[:'trending_score']
211
+ end
212
+
213
+ if attributes.key?(:'gated')
214
+ self.gated = attributes[:'gated']
215
+ end
216
+
217
+ if attributes.key?(:'main_size_bytes')
218
+ self.main_size_bytes = attributes[:'main_size_bytes']
219
+ end
220
+
221
+ if attributes.key?(:'size_display')
222
+ self.size_display = attributes[:'size_display']
223
+ end
224
+
225
+ if attributes.key?(:'age_days')
226
+ self.age_days = attributes[:'age_days']
227
+ end
228
+
229
+ if attributes.key?(:'is_trending')
230
+ self.is_trending = attributes[:'is_trending']
231
+ end
232
+
233
+ if attributes.key?(:'just_added')
234
+ self.just_added = attributes[:'just_added']
235
+ end
236
+
237
+ if attributes.key?(:'description')
238
+ self.description = attributes[:'description']
239
+ end
240
+
241
+ if attributes.key?(:'tags')
242
+ if (value = attributes[:'tags']).is_a?(Array)
243
+ self.tags = value
244
+ end
245
+ end
246
+
247
+ if attributes.key?(:'hf_url')
248
+ self.hf_url = attributes[:'hf_url']
249
+ end
250
+
251
+ if attributes.key?(:'created_at')
252
+ self.created_at = attributes[:'created_at']
253
+ end
254
+
255
+ if attributes.key?(:'last_modified_at')
256
+ self.last_modified_at = attributes[:'last_modified_at']
257
+ end
258
+
259
+ if attributes.key?(:'first_seen_at')
260
+ self.first_seen_at = attributes[:'first_seen_at']
261
+ end
262
+
80
263
  if attributes.key?(:'files')
81
264
  if (value = attributes[:'files']).is_a?(Array)
82
265
  self.files = value
@@ -109,6 +292,27 @@ module Abliteration
109
292
  return true if self.equal?(o)
110
293
  self.class == o.class &&
111
294
  id == o.id &&
295
+ author == o.author &&
296
+ slug == o.slug &&
297
+ category == o.category &&
298
+ license == o.license &&
299
+ language == o.language &&
300
+ downloads == o.downloads &&
301
+ downloads_all == o.downloads_all &&
302
+ likes == o.likes &&
303
+ trending_score == o.trending_score &&
304
+ gated == o.gated &&
305
+ main_size_bytes == o.main_size_bytes &&
306
+ size_display == o.size_display &&
307
+ age_days == o.age_days &&
308
+ is_trending == o.is_trending &&
309
+ just_added == o.just_added &&
310
+ description == o.description &&
311
+ tags == o.tags &&
312
+ hf_url == o.hf_url &&
313
+ created_at == o.created_at &&
314
+ last_modified_at == o.last_modified_at &&
315
+ first_seen_at == o.first_seen_at &&
112
316
  files == o.files &&
113
317
  passport == o.passport
114
318
  end
@@ -122,7 +326,7 @@ module Abliteration
122
326
  # Calculates hash code according to all attributes.
123
327
  # @return [Integer] Hash code
124
328
  def hash
125
- [id, files, passport].hash
329
+ [id, author, slug, category, license, language, downloads, downloads_all, likes, trending_score, gated, main_size_bytes, size_display, age_days, is_trending, just_added, description, tags, hf_url, created_at, last_modified_at, first_seen_at, files, passport].hash
126
330
  end
127
331
 
128
332
  # Builds the object from hash
@@ -22,8 +22,100 @@ module Abliteration
22
22
 
23
23
  attr_accessor :name
24
24
 
25
+ attr_accessor :primary_method
26
+
27
+ # JSON-encoded array of extra method codes.
28
+ attr_accessor :secondary_methods
29
+
30
+ attr_accessor :confidence
31
+
32
+ # JSON-encoded array of evidence strings.
33
+ attr_accessor :classification_evidence
34
+
35
+ attr_accessor :classifier_version
36
+
37
+ attr_accessor :classified_at
38
+
39
+ attr_accessor :family
40
+
41
+ attr_accessor :params_b
42
+
43
+ attr_accessor :is_gguf
44
+
45
+ attr_accessor :is_moe
46
+
47
+ attr_accessor :is_multimodal
48
+
49
+ attr_accessor :is_image_gen
50
+
51
+ attr_accessor :is_second_order
52
+
53
+ attr_accessor :downloads
54
+
55
+ attr_accessor :likes
56
+
57
+ attr_accessor :created_at
58
+
59
+ attr_accessor :last_modified
60
+
61
+ attr_accessor :first_seen_at
62
+
63
+ attr_accessor :last_seen_at
64
+
65
+ attr_accessor :readme_text
66
+
67
+ attr_accessor :readme_status
68
+
69
+ # JSON-encoded array of Hub tags.
70
+ attr_accessor :tags
71
+
72
+ attr_accessor :pipeline_tag
73
+
74
+ attr_accessor :library_name
75
+
76
+ attr_accessor :yaml_base_model
77
+
78
+ attr_accessor :yaml_language
79
+
80
+ attr_accessor :yaml_datasets
81
+
82
+ attr_accessor :yaml_license
83
+
84
+ attr_accessor :yaml_tags
85
+
86
+ attr_accessor :files_count
87
+
88
+ attr_accessor :total_size_bytes
89
+
90
+ attr_accessor :largest_file_bytes
91
+
92
+ attr_accessor :smallest_model_bytes
93
+
94
+ # JSON-encoded array of quantisation labels.
95
+ attr_accessor :quantizations
96
+
97
+ attr_accessor :has_mmproj
98
+
99
+ attr_accessor :hub_downloads_all_time
100
+
101
+ attr_accessor :hub_trending_score
102
+
103
+ attr_accessor :hub_real_params_m
104
+
105
+ attr_accessor :hub_context_length
106
+
107
+ attr_accessor :hub_siblings_count
108
+
109
+ attr_accessor :hub_provider_count
110
+
111
+ attr_accessor :hub_provider_names
112
+
113
+ attr_accessor :hub_enriched_at
114
+
115
+ # Per-file manifest: filename, size_bytes, sha256, quantization, is_model_file, is_mmproj.
25
116
  attr_accessor :files
26
117
 
118
+ # Two arrays under `own` and `base` — each item has benchmark_name, score, source, pertains_to.
27
119
  attr_accessor :benchmarks
28
120
 
29
121
  attr_accessor :author_summary
@@ -34,6 +126,49 @@ module Abliteration
34
126
  :'id' => :'id',
35
127
  :'author' => :'author',
36
128
  :'name' => :'name',
129
+ :'primary_method' => :'primary_method',
130
+ :'secondary_methods' => :'secondary_methods',
131
+ :'confidence' => :'confidence',
132
+ :'classification_evidence' => :'classification_evidence',
133
+ :'classifier_version' => :'classifier_version',
134
+ :'classified_at' => :'classified_at',
135
+ :'family' => :'family',
136
+ :'params_b' => :'params_b',
137
+ :'is_gguf' => :'is_gguf',
138
+ :'is_moe' => :'is_moe',
139
+ :'is_multimodal' => :'is_multimodal',
140
+ :'is_image_gen' => :'is_image_gen',
141
+ :'is_second_order' => :'is_second_order',
142
+ :'downloads' => :'downloads',
143
+ :'likes' => :'likes',
144
+ :'created_at' => :'created_at',
145
+ :'last_modified' => :'last_modified',
146
+ :'first_seen_at' => :'first_seen_at',
147
+ :'last_seen_at' => :'last_seen_at',
148
+ :'readme_text' => :'readme_text',
149
+ :'readme_status' => :'readme_status',
150
+ :'tags' => :'tags',
151
+ :'pipeline_tag' => :'pipeline_tag',
152
+ :'library_name' => :'library_name',
153
+ :'yaml_base_model' => :'yaml_base_model',
154
+ :'yaml_language' => :'yaml_language',
155
+ :'yaml_datasets' => :'yaml_datasets',
156
+ :'yaml_license' => :'yaml_license',
157
+ :'yaml_tags' => :'yaml_tags',
158
+ :'files_count' => :'files_count',
159
+ :'total_size_bytes' => :'total_size_bytes',
160
+ :'largest_file_bytes' => :'largest_file_bytes',
161
+ :'smallest_model_bytes' => :'smallest_model_bytes',
162
+ :'quantizations' => :'quantizations',
163
+ :'has_mmproj' => :'has_mmproj',
164
+ :'hub_downloads_all_time' => :'hub_downloads_all_time',
165
+ :'hub_trending_score' => :'hub_trending_score',
166
+ :'hub_real_params_m' => :'hub_real_params_m',
167
+ :'hub_context_length' => :'hub_context_length',
168
+ :'hub_siblings_count' => :'hub_siblings_count',
169
+ :'hub_provider_count' => :'hub_provider_count',
170
+ :'hub_provider_names' => :'hub_provider_names',
171
+ :'hub_enriched_at' => :'hub_enriched_at',
37
172
  :'files' => :'files',
38
173
  :'benchmarks' => :'benchmarks',
39
174
  :'author_summary' => :'author_summary'
@@ -56,6 +191,49 @@ module Abliteration
56
191
  :'id' => :'String',
57
192
  :'author' => :'String',
58
193
  :'name' => :'String',
194
+ :'primary_method' => :'String',
195
+ :'secondary_methods' => :'String',
196
+ :'confidence' => :'String',
197
+ :'classification_evidence' => :'String',
198
+ :'classifier_version' => :'String',
199
+ :'classified_at' => :'String',
200
+ :'family' => :'String',
201
+ :'params_b' => :'Float',
202
+ :'is_gguf' => :'Integer',
203
+ :'is_moe' => :'Integer',
204
+ :'is_multimodal' => :'Integer',
205
+ :'is_image_gen' => :'Integer',
206
+ :'is_second_order' => :'Integer',
207
+ :'downloads' => :'Integer',
208
+ :'likes' => :'Integer',
209
+ :'created_at' => :'String',
210
+ :'last_modified' => :'String',
211
+ :'first_seen_at' => :'String',
212
+ :'last_seen_at' => :'String',
213
+ :'readme_text' => :'String',
214
+ :'readme_status' => :'String',
215
+ :'tags' => :'String',
216
+ :'pipeline_tag' => :'String',
217
+ :'library_name' => :'String',
218
+ :'yaml_base_model' => :'String',
219
+ :'yaml_language' => :'String',
220
+ :'yaml_datasets' => :'String',
221
+ :'yaml_license' => :'String',
222
+ :'yaml_tags' => :'String',
223
+ :'files_count' => :'Integer',
224
+ :'total_size_bytes' => :'Integer',
225
+ :'largest_file_bytes' => :'Integer',
226
+ :'smallest_model_bytes' => :'Integer',
227
+ :'quantizations' => :'String',
228
+ :'has_mmproj' => :'Integer',
229
+ :'hub_downloads_all_time' => :'Integer',
230
+ :'hub_trending_score' => :'Integer',
231
+ :'hub_real_params_m' => :'Float',
232
+ :'hub_context_length' => :'Integer',
233
+ :'hub_siblings_count' => :'Integer',
234
+ :'hub_provider_count' => :'Integer',
235
+ :'hub_provider_names' => :'String',
236
+ :'hub_enriched_at' => :'String',
59
237
  :'files' => :'Array<Object>',
60
238
  :'benchmarks' => :'Object',
61
239
  :'author_summary' => :'Author'
@@ -65,6 +243,49 @@ module Abliteration
65
243
  # List of attributes with nullable: true
66
244
  def self.openapi_nullable
67
245
  Set.new([
246
+ :'primary_method',
247
+ :'secondary_methods',
248
+ :'confidence',
249
+ :'classification_evidence',
250
+ :'classifier_version',
251
+ :'classified_at',
252
+ :'family',
253
+ :'params_b',
254
+ :'is_gguf',
255
+ :'is_moe',
256
+ :'is_multimodal',
257
+ :'is_image_gen',
258
+ :'is_second_order',
259
+ :'downloads',
260
+ :'likes',
261
+ :'created_at',
262
+ :'last_modified',
263
+ :'first_seen_at',
264
+ :'last_seen_at',
265
+ :'readme_text',
266
+ :'readme_status',
267
+ :'tags',
268
+ :'pipeline_tag',
269
+ :'library_name',
270
+ :'yaml_base_model',
271
+ :'yaml_language',
272
+ :'yaml_datasets',
273
+ :'yaml_license',
274
+ :'yaml_tags',
275
+ :'files_count',
276
+ :'total_size_bytes',
277
+ :'largest_file_bytes',
278
+ :'smallest_model_bytes',
279
+ :'quantizations',
280
+ :'has_mmproj',
281
+ :'hub_downloads_all_time',
282
+ :'hub_trending_score',
283
+ :'hub_real_params_m',
284
+ :'hub_context_length',
285
+ :'hub_siblings_count',
286
+ :'hub_provider_count',
287
+ :'hub_provider_names',
288
+ :'hub_enriched_at',
68
289
  :'author_summary'
69
290
  ])
70
291
  end
@@ -97,6 +318,178 @@ module Abliteration
97
318
  self.name = attributes[:'name']
98
319
  end
99
320
 
321
+ if attributes.key?(:'primary_method')
322
+ self.primary_method = attributes[:'primary_method']
323
+ end
324
+
325
+ if attributes.key?(:'secondary_methods')
326
+ self.secondary_methods = attributes[:'secondary_methods']
327
+ end
328
+
329
+ if attributes.key?(:'confidence')
330
+ self.confidence = attributes[:'confidence']
331
+ end
332
+
333
+ if attributes.key?(:'classification_evidence')
334
+ self.classification_evidence = attributes[:'classification_evidence']
335
+ end
336
+
337
+ if attributes.key?(:'classifier_version')
338
+ self.classifier_version = attributes[:'classifier_version']
339
+ end
340
+
341
+ if attributes.key?(:'classified_at')
342
+ self.classified_at = attributes[:'classified_at']
343
+ end
344
+
345
+ if attributes.key?(:'family')
346
+ self.family = attributes[:'family']
347
+ end
348
+
349
+ if attributes.key?(:'params_b')
350
+ self.params_b = attributes[:'params_b']
351
+ end
352
+
353
+ if attributes.key?(:'is_gguf')
354
+ self.is_gguf = attributes[:'is_gguf']
355
+ end
356
+
357
+ if attributes.key?(:'is_moe')
358
+ self.is_moe = attributes[:'is_moe']
359
+ end
360
+
361
+ if attributes.key?(:'is_multimodal')
362
+ self.is_multimodal = attributes[:'is_multimodal']
363
+ end
364
+
365
+ if attributes.key?(:'is_image_gen')
366
+ self.is_image_gen = attributes[:'is_image_gen']
367
+ end
368
+
369
+ if attributes.key?(:'is_second_order')
370
+ self.is_second_order = attributes[:'is_second_order']
371
+ end
372
+
373
+ if attributes.key?(:'downloads')
374
+ self.downloads = attributes[:'downloads']
375
+ end
376
+
377
+ if attributes.key?(:'likes')
378
+ self.likes = attributes[:'likes']
379
+ end
380
+
381
+ if attributes.key?(:'created_at')
382
+ self.created_at = attributes[:'created_at']
383
+ end
384
+
385
+ if attributes.key?(:'last_modified')
386
+ self.last_modified = attributes[:'last_modified']
387
+ end
388
+
389
+ if attributes.key?(:'first_seen_at')
390
+ self.first_seen_at = attributes[:'first_seen_at']
391
+ end
392
+
393
+ if attributes.key?(:'last_seen_at')
394
+ self.last_seen_at = attributes[:'last_seen_at']
395
+ end
396
+
397
+ if attributes.key?(:'readme_text')
398
+ self.readme_text = attributes[:'readme_text']
399
+ end
400
+
401
+ if attributes.key?(:'readme_status')
402
+ self.readme_status = attributes[:'readme_status']
403
+ end
404
+
405
+ if attributes.key?(:'tags')
406
+ self.tags = attributes[:'tags']
407
+ end
408
+
409
+ if attributes.key?(:'pipeline_tag')
410
+ self.pipeline_tag = attributes[:'pipeline_tag']
411
+ end
412
+
413
+ if attributes.key?(:'library_name')
414
+ self.library_name = attributes[:'library_name']
415
+ end
416
+
417
+ if attributes.key?(:'yaml_base_model')
418
+ self.yaml_base_model = attributes[:'yaml_base_model']
419
+ end
420
+
421
+ if attributes.key?(:'yaml_language')
422
+ self.yaml_language = attributes[:'yaml_language']
423
+ end
424
+
425
+ if attributes.key?(:'yaml_datasets')
426
+ self.yaml_datasets = attributes[:'yaml_datasets']
427
+ end
428
+
429
+ if attributes.key?(:'yaml_license')
430
+ self.yaml_license = attributes[:'yaml_license']
431
+ end
432
+
433
+ if attributes.key?(:'yaml_tags')
434
+ self.yaml_tags = attributes[:'yaml_tags']
435
+ end
436
+
437
+ if attributes.key?(:'files_count')
438
+ self.files_count = attributes[:'files_count']
439
+ end
440
+
441
+ if attributes.key?(:'total_size_bytes')
442
+ self.total_size_bytes = attributes[:'total_size_bytes']
443
+ end
444
+
445
+ if attributes.key?(:'largest_file_bytes')
446
+ self.largest_file_bytes = attributes[:'largest_file_bytes']
447
+ end
448
+
449
+ if attributes.key?(:'smallest_model_bytes')
450
+ self.smallest_model_bytes = attributes[:'smallest_model_bytes']
451
+ end
452
+
453
+ if attributes.key?(:'quantizations')
454
+ self.quantizations = attributes[:'quantizations']
455
+ end
456
+
457
+ if attributes.key?(:'has_mmproj')
458
+ self.has_mmproj = attributes[:'has_mmproj']
459
+ end
460
+
461
+ if attributes.key?(:'hub_downloads_all_time')
462
+ self.hub_downloads_all_time = attributes[:'hub_downloads_all_time']
463
+ end
464
+
465
+ if attributes.key?(:'hub_trending_score')
466
+ self.hub_trending_score = attributes[:'hub_trending_score']
467
+ end
468
+
469
+ if attributes.key?(:'hub_real_params_m')
470
+ self.hub_real_params_m = attributes[:'hub_real_params_m']
471
+ end
472
+
473
+ if attributes.key?(:'hub_context_length')
474
+ self.hub_context_length = attributes[:'hub_context_length']
475
+ end
476
+
477
+ if attributes.key?(:'hub_siblings_count')
478
+ self.hub_siblings_count = attributes[:'hub_siblings_count']
479
+ end
480
+
481
+ if attributes.key?(:'hub_provider_count')
482
+ self.hub_provider_count = attributes[:'hub_provider_count']
483
+ end
484
+
485
+ if attributes.key?(:'hub_provider_names')
486
+ self.hub_provider_names = attributes[:'hub_provider_names']
487
+ end
488
+
489
+ if attributes.key?(:'hub_enriched_at')
490
+ self.hub_enriched_at = attributes[:'hub_enriched_at']
491
+ end
492
+
100
493
  if attributes.key?(:'files')
101
494
  if (value = attributes[:'files']).is_a?(Array)
102
495
  self.files = value
@@ -135,6 +528,49 @@ module Abliteration
135
528
  id == o.id &&
136
529
  author == o.author &&
137
530
  name == o.name &&
531
+ primary_method == o.primary_method &&
532
+ secondary_methods == o.secondary_methods &&
533
+ confidence == o.confidence &&
534
+ classification_evidence == o.classification_evidence &&
535
+ classifier_version == o.classifier_version &&
536
+ classified_at == o.classified_at &&
537
+ family == o.family &&
538
+ params_b == o.params_b &&
539
+ is_gguf == o.is_gguf &&
540
+ is_moe == o.is_moe &&
541
+ is_multimodal == o.is_multimodal &&
542
+ is_image_gen == o.is_image_gen &&
543
+ is_second_order == o.is_second_order &&
544
+ downloads == o.downloads &&
545
+ likes == o.likes &&
546
+ created_at == o.created_at &&
547
+ last_modified == o.last_modified &&
548
+ first_seen_at == o.first_seen_at &&
549
+ last_seen_at == o.last_seen_at &&
550
+ readme_text == o.readme_text &&
551
+ readme_status == o.readme_status &&
552
+ tags == o.tags &&
553
+ pipeline_tag == o.pipeline_tag &&
554
+ library_name == o.library_name &&
555
+ yaml_base_model == o.yaml_base_model &&
556
+ yaml_language == o.yaml_language &&
557
+ yaml_datasets == o.yaml_datasets &&
558
+ yaml_license == o.yaml_license &&
559
+ yaml_tags == o.yaml_tags &&
560
+ files_count == o.files_count &&
561
+ total_size_bytes == o.total_size_bytes &&
562
+ largest_file_bytes == o.largest_file_bytes &&
563
+ smallest_model_bytes == o.smallest_model_bytes &&
564
+ quantizations == o.quantizations &&
565
+ has_mmproj == o.has_mmproj &&
566
+ hub_downloads_all_time == o.hub_downloads_all_time &&
567
+ hub_trending_score == o.hub_trending_score &&
568
+ hub_real_params_m == o.hub_real_params_m &&
569
+ hub_context_length == o.hub_context_length &&
570
+ hub_siblings_count == o.hub_siblings_count &&
571
+ hub_provider_count == o.hub_provider_count &&
572
+ hub_provider_names == o.hub_provider_names &&
573
+ hub_enriched_at == o.hub_enriched_at &&
138
574
  files == o.files &&
139
575
  benchmarks == o.benchmarks &&
140
576
  author_summary == o.author_summary
@@ -149,7 +585,7 @@ module Abliteration
149
585
  # Calculates hash code according to all attributes.
150
586
  # @return [Integer] Hash code
151
587
  def hash
152
- [id, author, name, files, benchmarks, author_summary].hash
588
+ [id, author, name, primary_method, secondary_methods, confidence, classification_evidence, classifier_version, classified_at, family, params_b, is_gguf, is_moe, is_multimodal, is_image_gen, is_second_order, downloads, likes, created_at, last_modified, first_seen_at, last_seen_at, readme_text, readme_status, tags, pipeline_tag, library_name, yaml_base_model, yaml_language, yaml_datasets, yaml_license, yaml_tags, files_count, total_size_bytes, largest_file_bytes, smallest_model_bytes, quantizations, has_mmproj, hub_downloads_all_time, hub_trending_score, hub_real_params_m, hub_context_length, hub_siblings_count, hub_provider_count, hub_provider_names, hub_enriched_at, files, benchmarks, author_summary].hash
153
589
  end
154
590
 
155
591
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.25.0
11
11
  =end
12
12
 
13
13
  module Abliteration
14
- VERSION = '0.1.1'
14
+ VERSION = '0.1.2'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abliteration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Catyonic OU