sorbet-baml 0.3.0 → 0.4.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +59 -0
- data/README.md +32 -11
- data/lib/sorbet_baml/dspy_tool_converter.rb +2 -2
- data/lib/sorbet_baml/dspy_tool_extensions.rb +1 -1
- data/lib/sorbet_baml/version.rb +1 -1
- data/lib/sorbet_baml.rb +4 -2
- metadata +3 -115
- data/.idea/.gitignore +0 -8
- data/.idea/inspectionProfiles/Project_Default.xml +0 -5
- data/.rspec +0 -3
- data/docs-site/.gitignore +0 -48
- data/docs-site/Gemfile +0 -5
- data/docs-site/Gemfile.lock +0 -140
- data/docs-site/Rakefile +0 -3
- data/docs-site/bridgetown.config.yml +0 -15
- data/docs-site/config/initializers.rb +0 -9
- data/docs-site/config/puma.rb +0 -9
- data/docs-site/config.ru +0 -5
- data/docs-site/esbuild.config.js +0 -11
- data/docs-site/frontend/javascript/index.js +0 -22
- data/docs-site/frontend/styles/index.css +0 -61
- data/docs-site/package.json +0 -18
- data/docs-site/postcss.config.js +0 -6
- data/docs-site/server/roda_app.rb +0 -9
- data/docs-site/src/_components/head.liquid +0 -26
- data/docs-site/src/_components/nav.liquid +0 -68
- data/docs-site/src/_layouts/default.liquid +0 -27
- data/docs-site/src/_layouts/doc.liquid +0 -39
- data/docs-site/src/advanced-usage.md +0 -598
- data/docs-site/src/getting-started.md +0 -170
- data/docs-site/src/index.md +0 -183
- data/docs-site/src/troubleshooting.md +0 -317
- data/docs-site/src/type-mapping.md +0 -236
- data/docs-site/tailwind.config.js +0 -85
- data/sorbet/config +0 -6
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/anthropic@1.5.0.rbi +0 -21252
- data/sorbet/rbi/gems/ast@2.4.3.rbi +0 -585
- data/sorbet/rbi/gems/async@2.27.3.rbi +0 -9
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +0 -619
- data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +0 -9
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -37
- data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +0 -424
- data/sorbet/rbi/gems/connection_pool@2.5.3.rbi +0 -9
- data/sorbet/rbi/gems/console@1.33.0.rbi +0 -9
- data/sorbet/rbi/gems/date@3.4.1.rbi +0 -75
- data/sorbet/rbi/gems/diff-lcs@1.6.2.rbi +0 -1134
- data/sorbet/rbi/gems/dry-configurable@1.3.0.rbi +0 -672
- data/sorbet/rbi/gems/dry-core@1.1.0.rbi +0 -1729
- data/sorbet/rbi/gems/dry-logger@1.1.0.rbi +0 -1317
- data/sorbet/rbi/gems/dspy@0.19.1.rbi +0 -6677
- data/sorbet/rbi/gems/erb@5.0.2.rbi +0 -878
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +0 -155
- data/sorbet/rbi/gems/ffi@1.17.2.rbi +0 -2174
- data/sorbet/rbi/gems/fiber-annotation@0.2.0.rbi +0 -9
- data/sorbet/rbi/gems/fiber-local@1.1.0.rbi +0 -9
- data/sorbet/rbi/gems/fiber-storage@1.0.1.rbi +0 -9
- data/sorbet/rbi/gems/google-protobuf@4.32.0.rbi +0 -9
- data/sorbet/rbi/gems/googleapis-common-protos-types@1.20.0.rbi +0 -9
- data/sorbet/rbi/gems/informers@1.2.1.rbi +0 -1875
- data/sorbet/rbi/gems/io-console@0.8.1.rbi +0 -9
- data/sorbet/rbi/gems/io-event@1.12.1.rbi +0 -9
- data/sorbet/rbi/gems/json@2.13.2.rbi +0 -2087
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +0 -9
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +0 -240
- data/sorbet/rbi/gems/logger@1.7.0.rbi +0 -963
- data/sorbet/rbi/gems/metrics@0.13.0.rbi +0 -9
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/onnxruntime@0.10.0.rbi +0 -304
- data/sorbet/rbi/gems/openai@0.16.0.rbi +0 -68055
- data/sorbet/rbi/gems/opentelemetry-api@1.6.0.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-common@0.22.0.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-exporter-otlp@0.30.0.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-registry@0.4.0.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-sdk@1.8.1.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-semantic_conventions@1.11.0.rbi +0 -9
- data/sorbet/rbi/gems/parallel@1.27.0.rbi +0 -291
- data/sorbet/rbi/gems/parser@3.3.9.0.rbi +0 -5535
- data/sorbet/rbi/gems/polars-df@0.20.0.rbi +0 -9
- data/sorbet/rbi/gems/pp@0.6.2.rbi +0 -368
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +0 -477
- data/sorbet/rbi/gems/prism@1.4.0.rbi +0 -41732
- data/sorbet/rbi/gems/psych@5.2.6.rbi +0 -2469
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -164
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.3.0.rbi +0 -3031
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +0 -6893
- data/sorbet/rbi/gems/rbs@3.9.4.rbi +0 -6976
- data/sorbet/rbi/gems/rdoc@6.14.2.rbi +0 -12688
- data/sorbet/rbi/gems/regexp_parser@2.11.2.rbi +0 -3845
- data/sorbet/rbi/gems/reline@0.6.2.rbi +0 -2441
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +0 -5240
- data/sorbet/rbi/gems/rspec-core@3.13.5.rbi +0 -11250
- data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +0 -8189
- data/sorbet/rbi/gems/rspec-mocks@3.13.5.rbi +0 -5350
- data/sorbet/rbi/gems/rspec-support@3.13.4.rbi +0 -1630
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +0 -83
- data/sorbet/rbi/gems/rubocop-ast@1.46.0.rbi +0 -7764
- data/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi +0 -2386
- data/sorbet/rbi/gems/rubocop@1.79.2.rbi +0 -63321
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/sorbet-result@1.4.0.rbi +0 -242
- data/sorbet/rbi/gems/sorbet-schema@0.9.2.rbi +0 -743
- data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +0 -48
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +0 -6985
- data/sorbet/rbi/gems/stringio@3.1.7.rbi +0 -9
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +0 -3628
- data/sorbet/rbi/gems/thor@1.4.0.rbi +0 -4399
- data/sorbet/rbi/gems/tokenizers@0.5.5.rbi +0 -754
- data/sorbet/rbi/gems/traces@0.17.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@3.1.5.rbi +0 -132
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +0 -251
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18379
- data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +0 -1429
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
|
@@ -1,1875 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
|
|
3
|
-
# DO NOT EDIT MANUALLY
|
|
4
|
-
# This is an autogenerated file for types exported from the `informers` gem.
|
|
5
|
-
# Please instead update this file by running `bin/tapioca gem informers`.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# source://informers//lib/informers/backends/onnx.rb#1
|
|
9
|
-
module Informers
|
|
10
|
-
class << self
|
|
11
|
-
# Returns the value of attribute allow_remote_models.
|
|
12
|
-
#
|
|
13
|
-
# source://informers//lib/informers/env.rb#6
|
|
14
|
-
def allow_remote_models; end
|
|
15
|
-
|
|
16
|
-
# Sets the attribute allow_remote_models
|
|
17
|
-
#
|
|
18
|
-
# @param value the value to set the attribute allow_remote_models to.
|
|
19
|
-
#
|
|
20
|
-
# source://informers//lib/informers/env.rb#6
|
|
21
|
-
def allow_remote_models=(_arg0); end
|
|
22
|
-
|
|
23
|
-
# Returns the value of attribute cache_dir.
|
|
24
|
-
#
|
|
25
|
-
# source://informers//lib/informers/env.rb#6
|
|
26
|
-
def cache_dir; end
|
|
27
|
-
|
|
28
|
-
# Sets the attribute cache_dir
|
|
29
|
-
#
|
|
30
|
-
# @param value the value to set the attribute cache_dir to.
|
|
31
|
-
#
|
|
32
|
-
# source://informers//lib/informers/env.rb#6
|
|
33
|
-
def cache_dir=(_arg0); end
|
|
34
|
-
|
|
35
|
-
# source://informers//lib/informers/pipelines.rb#1355
|
|
36
|
-
def pipeline(task, model = T.unsafe(nil), quantized: T.unsafe(nil), progress_callback: T.unsafe(nil), config: T.unsafe(nil), cache_dir: T.unsafe(nil), local_files_only: T.unsafe(nil), revision: T.unsafe(nil), device: T.unsafe(nil), dtype: T.unsafe(nil), model_file_name: T.unsafe(nil), session_options: T.unsafe(nil)); end
|
|
37
|
-
|
|
38
|
-
# Returns the value of attribute remote_host.
|
|
39
|
-
#
|
|
40
|
-
# source://informers//lib/informers/env.rb#6
|
|
41
|
-
def remote_host; end
|
|
42
|
-
|
|
43
|
-
# Sets the attribute remote_host
|
|
44
|
-
#
|
|
45
|
-
# @param value the value to set the attribute remote_host to.
|
|
46
|
-
#
|
|
47
|
-
# source://informers//lib/informers/env.rb#6
|
|
48
|
-
def remote_host=(_arg0); end
|
|
49
|
-
|
|
50
|
-
# Returns the value of attribute remote_path_template.
|
|
51
|
-
#
|
|
52
|
-
# source://informers//lib/informers/env.rb#6
|
|
53
|
-
def remote_path_template; end
|
|
54
|
-
|
|
55
|
-
# Sets the attribute remote_path_template
|
|
56
|
-
#
|
|
57
|
-
# @param value the value to set the attribute remote_path_template to.
|
|
58
|
-
#
|
|
59
|
-
# source://informers//lib/informers/env.rb#6
|
|
60
|
-
def remote_path_template=(_arg0); end
|
|
61
|
-
|
|
62
|
-
private
|
|
63
|
-
|
|
64
|
-
# source://informers//lib/informers/pipelines.rb#1429
|
|
65
|
-
def load_items(mapping, model, pretrained_options); end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
# source://informers//lib/informers/pipelines.rb#895
|
|
70
|
-
class Informers::AudioClassificationPipeline < ::Informers::Pipeline
|
|
71
|
-
# source://informers//lib/informers/pipelines.rb#896
|
|
72
|
-
def call(audio, top_k: T.unsafe(nil)); end
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# source://informers//lib/informers/configs.rb#45
|
|
76
|
-
class Informers::AutoConfig
|
|
77
|
-
class << self
|
|
78
|
-
# source://informers//lib/informers/configs.rb#46
|
|
79
|
-
def from_pretrained(*_arg0, **_arg1, &_arg2); end
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
# source://informers//lib/informers/models.rb#1392
|
|
84
|
-
class Informers::AutoModel < ::Informers::PretrainedMixin; end
|
|
85
|
-
|
|
86
|
-
# source://informers//lib/informers/models.rb#1394
|
|
87
|
-
Informers::AutoModel::BASE_IF_FAIL = T.let(T.unsafe(nil), TrueClass)
|
|
88
|
-
|
|
89
|
-
# source://informers//lib/informers/models.rb#1393
|
|
90
|
-
Informers::AutoModel::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
91
|
-
|
|
92
|
-
# source://informers//lib/informers/models.rb#1465
|
|
93
|
-
class Informers::AutoModelForAudioClassification < ::Informers::PretrainedMixin; end
|
|
94
|
-
|
|
95
|
-
# source://informers//lib/informers/models.rb#1466
|
|
96
|
-
Informers::AutoModelForAudioClassification::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
97
|
-
|
|
98
|
-
# source://informers//lib/informers/models.rb#1473
|
|
99
|
-
class Informers::AutoModelForAudioFrameClassification < ::Informers::PretrainedMixin; end
|
|
100
|
-
|
|
101
|
-
# source://informers//lib/informers/models.rb#1474
|
|
102
|
-
Informers::AutoModelForAudioFrameClassification::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
103
|
-
|
|
104
|
-
# source://informers//lib/informers/models.rb#1461
|
|
105
|
-
class Informers::AutoModelForCTC < ::Informers::PretrainedMixin; end
|
|
106
|
-
|
|
107
|
-
# source://informers//lib/informers/models.rb#1462
|
|
108
|
-
Informers::AutoModelForCTC::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
109
|
-
|
|
110
|
-
# source://informers//lib/informers/models.rb#1421
|
|
111
|
-
class Informers::AutoModelForCausalLM < ::Informers::PretrainedMixin; end
|
|
112
|
-
|
|
113
|
-
# source://informers//lib/informers/models.rb#1422
|
|
114
|
-
Informers::AutoModelForCausalLM::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
115
|
-
|
|
116
|
-
# source://informers//lib/informers/models.rb#1489
|
|
117
|
-
class Informers::AutoModelForDepthEstimation < ::Informers::PretrainedMixin; end
|
|
118
|
-
|
|
119
|
-
# source://informers//lib/informers/models.rb#1490
|
|
120
|
-
Informers::AutoModelForDepthEstimation::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
121
|
-
|
|
122
|
-
# source://informers//lib/informers/models.rb#1477
|
|
123
|
-
class Informers::AutoModelForDocumentQuestionAnswering < ::Informers::PretrainedMixin; end
|
|
124
|
-
|
|
125
|
-
# source://informers//lib/informers/models.rb#1478
|
|
126
|
-
Informers::AutoModelForDocumentQuestionAnswering::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
127
|
-
|
|
128
|
-
# source://informers//lib/informers/models.rb#1437
|
|
129
|
-
class Informers::AutoModelForImageClassification < ::Informers::PretrainedMixin; end
|
|
130
|
-
|
|
131
|
-
# source://informers//lib/informers/models.rb#1438
|
|
132
|
-
Informers::AutoModelForImageClassification::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
133
|
-
|
|
134
|
-
# source://informers//lib/informers/models.rb#1493
|
|
135
|
-
class Informers::AutoModelForImageFeatureExtraction < ::Informers::PretrainedMixin; end
|
|
136
|
-
|
|
137
|
-
# source://informers//lib/informers/models.rb#1494
|
|
138
|
-
Informers::AutoModelForImageFeatureExtraction::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
139
|
-
|
|
140
|
-
# source://informers//lib/informers/models.rb#1481
|
|
141
|
-
class Informers::AutoModelForImageMatting < ::Informers::PretrainedMixin; end
|
|
142
|
-
|
|
143
|
-
# source://informers//lib/informers/models.rb#1482
|
|
144
|
-
Informers::AutoModelForImageMatting::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
145
|
-
|
|
146
|
-
# source://informers//lib/informers/models.rb#1441
|
|
147
|
-
class Informers::AutoModelForImageSegmentation < ::Informers::PretrainedMixin; end
|
|
148
|
-
|
|
149
|
-
# source://informers//lib/informers/models.rb#1442
|
|
150
|
-
Informers::AutoModelForImageSegmentation::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
151
|
-
|
|
152
|
-
# source://informers//lib/informers/models.rb#1485
|
|
153
|
-
class Informers::AutoModelForImageToImage < ::Informers::PretrainedMixin; end
|
|
154
|
-
|
|
155
|
-
# source://informers//lib/informers/models.rb#1486
|
|
156
|
-
Informers::AutoModelForImageToImage::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
157
|
-
|
|
158
|
-
# source://informers//lib/informers/models.rb#1457
|
|
159
|
-
class Informers::AutoModelForMaskGeneration < ::Informers::PretrainedMixin; end
|
|
160
|
-
|
|
161
|
-
# source://informers//lib/informers/models.rb#1458
|
|
162
|
-
Informers::AutoModelForMaskGeneration::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
163
|
-
|
|
164
|
-
# source://informers//lib/informers/models.rb#1425
|
|
165
|
-
class Informers::AutoModelForMaskedLM < ::Informers::PretrainedMixin; end
|
|
166
|
-
|
|
167
|
-
# source://informers//lib/informers/models.rb#1426
|
|
168
|
-
Informers::AutoModelForMaskedLM::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
169
|
-
|
|
170
|
-
# source://informers//lib/informers/models.rb#1449
|
|
171
|
-
class Informers::AutoModelForObjectDetection < ::Informers::PretrainedMixin; end
|
|
172
|
-
|
|
173
|
-
# source://informers//lib/informers/models.rb#1450
|
|
174
|
-
Informers::AutoModelForObjectDetection::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
175
|
-
|
|
176
|
-
# source://informers//lib/informers/models.rb#1429
|
|
177
|
-
class Informers::AutoModelForQuestionAnswering < ::Informers::PretrainedMixin; end
|
|
178
|
-
|
|
179
|
-
# source://informers//lib/informers/models.rb#1430
|
|
180
|
-
Informers::AutoModelForQuestionAnswering::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
181
|
-
|
|
182
|
-
# source://informers//lib/informers/models.rb#1445
|
|
183
|
-
class Informers::AutoModelForSemanticSegmentation < ::Informers::PretrainedMixin; end
|
|
184
|
-
|
|
185
|
-
# source://informers//lib/informers/models.rb#1446
|
|
186
|
-
Informers::AutoModelForSemanticSegmentation::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
187
|
-
|
|
188
|
-
# source://informers//lib/informers/models.rb#1405
|
|
189
|
-
class Informers::AutoModelForSeq2SeqLM < ::Informers::PretrainedMixin; end
|
|
190
|
-
|
|
191
|
-
# source://informers//lib/informers/models.rb#1406
|
|
192
|
-
Informers::AutoModelForSeq2SeqLM::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
193
|
-
|
|
194
|
-
# source://informers//lib/informers/models.rb#1397
|
|
195
|
-
class Informers::AutoModelForSequenceClassification < ::Informers::PretrainedMixin; end
|
|
196
|
-
|
|
197
|
-
# source://informers//lib/informers/models.rb#1398
|
|
198
|
-
Informers::AutoModelForSequenceClassification::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
199
|
-
|
|
200
|
-
# source://informers//lib/informers/models.rb#1409
|
|
201
|
-
class Informers::AutoModelForSpeechSeq2Seq < ::Informers::PretrainedMixin; end
|
|
202
|
-
|
|
203
|
-
# source://informers//lib/informers/models.rb#1410
|
|
204
|
-
Informers::AutoModelForSpeechSeq2Seq::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
205
|
-
|
|
206
|
-
# source://informers//lib/informers/models.rb#1413
|
|
207
|
-
class Informers::AutoModelForTextToSpectrogram < ::Informers::PretrainedMixin; end
|
|
208
|
-
|
|
209
|
-
# source://informers//lib/informers/models.rb#1414
|
|
210
|
-
Informers::AutoModelForTextToSpectrogram::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
211
|
-
|
|
212
|
-
# source://informers//lib/informers/models.rb#1417
|
|
213
|
-
class Informers::AutoModelForTextToWaveform < ::Informers::PretrainedMixin; end
|
|
214
|
-
|
|
215
|
-
# source://informers//lib/informers/models.rb#1418
|
|
216
|
-
Informers::AutoModelForTextToWaveform::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
217
|
-
|
|
218
|
-
# source://informers//lib/informers/models.rb#1401
|
|
219
|
-
class Informers::AutoModelForTokenClassification < ::Informers::PretrainedMixin; end
|
|
220
|
-
|
|
221
|
-
# source://informers//lib/informers/models.rb#1402
|
|
222
|
-
Informers::AutoModelForTokenClassification::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
223
|
-
|
|
224
|
-
# source://informers//lib/informers/models.rb#1433
|
|
225
|
-
class Informers::AutoModelForVision2Seq < ::Informers::PretrainedMixin; end
|
|
226
|
-
|
|
227
|
-
# source://informers//lib/informers/models.rb#1434
|
|
228
|
-
Informers::AutoModelForVision2Seq::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
229
|
-
|
|
230
|
-
# source://informers//lib/informers/models.rb#1469
|
|
231
|
-
class Informers::AutoModelForXVector < ::Informers::PretrainedMixin; end
|
|
232
|
-
|
|
233
|
-
# source://informers//lib/informers/models.rb#1470
|
|
234
|
-
Informers::AutoModelForXVector::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
235
|
-
|
|
236
|
-
# source://informers//lib/informers/models.rb#1453
|
|
237
|
-
class Informers::AutoModelForZeroShotObjectDetection < ::Informers::PretrainedMixin; end
|
|
238
|
-
|
|
239
|
-
# source://informers//lib/informers/models.rb#1454
|
|
240
|
-
Informers::AutoModelForZeroShotObjectDetection::MODEL_CLASS_MAPPINGS = T.let(T.unsafe(nil), Array)
|
|
241
|
-
|
|
242
|
-
# source://informers//lib/informers/processors.rb#800
|
|
243
|
-
class Informers::AutoProcessor
|
|
244
|
-
class << self
|
|
245
|
-
# source://informers//lib/informers/processors.rb#816
|
|
246
|
-
def from_pretrained(pretrained_model_name_or_path, progress_callback: T.unsafe(nil), config: T.unsafe(nil), cache_dir: T.unsafe(nil), local_files_only: T.unsafe(nil), revision: T.unsafe(nil), **kwargs); end
|
|
247
|
-
end
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# source://informers//lib/informers/processors.rb#801
|
|
251
|
-
Informers::AutoProcessor::FEATURE_EXTRACTOR_CLASS_MAPPING = T.let(T.unsafe(nil), Hash)
|
|
252
|
-
|
|
253
|
-
# source://informers//lib/informers/processors.rb#814
|
|
254
|
-
Informers::AutoProcessor::PROCESSOR_CLASS_MAPPING = T.let(T.unsafe(nil), Hash)
|
|
255
|
-
|
|
256
|
-
# source://informers//lib/informers/tokenizers.rb#250
|
|
257
|
-
class Informers::AutoTokenizer
|
|
258
|
-
class << self
|
|
259
|
-
# source://informers//lib/informers/tokenizers.rb#268
|
|
260
|
-
def from_pretrained(pretrained_model_name_or_path, quantized: T.unsafe(nil), progress_callback: T.unsafe(nil), config: T.unsafe(nil), cache_dir: T.unsafe(nil), local_files_only: T.unsafe(nil), revision: T.unsafe(nil), legacy: T.unsafe(nil), **kwargs); end
|
|
261
|
-
|
|
262
|
-
# source://informers//lib/informers/tokenizers.rb#301
|
|
263
|
-
def load_tokenizer(pretrained_model_name_or_path, **options); end
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
# source://informers//lib/informers/tokenizers.rb#251
|
|
268
|
-
Informers::AutoTokenizer::TOKENIZER_CLASS_MAPPING = T.let(T.unsafe(nil), Hash)
|
|
269
|
-
|
|
270
|
-
# source://informers//lib/informers/pipelines.rb#973
|
|
271
|
-
class Informers::AutomaticSpeechRecognitionPipeline < ::Informers::Pipeline
|
|
272
|
-
# source://informers//lib/informers/pipelines.rb#974
|
|
273
|
-
def call(audio, **kwargs); end
|
|
274
|
-
|
|
275
|
-
private
|
|
276
|
-
|
|
277
|
-
# @raise [Todo]
|
|
278
|
-
#
|
|
279
|
-
# source://informers//lib/informers/pipelines.rb#985
|
|
280
|
-
def call_whisper(audio, **kwargs); end
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
# source://informers//lib/informers/backends/onnx.rb#2
|
|
284
|
-
module Informers::Backends; end
|
|
285
|
-
|
|
286
|
-
# source://informers//lib/informers/backends/onnx.rb#3
|
|
287
|
-
module Informers::Backends::Onnx
|
|
288
|
-
class << self
|
|
289
|
-
# source://informers//lib/informers/backends/onnx.rb#4
|
|
290
|
-
def device_to_execution_providers(device); end
|
|
291
|
-
end
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
# source://informers//lib/informers/models.rb#913
|
|
295
|
-
class Informers::BartForConditionalGeneration < ::Informers::BartPretrainedModel
|
|
296
|
-
# @return [BartForConditionalGeneration] a new instance of BartForConditionalGeneration
|
|
297
|
-
#
|
|
298
|
-
# source://informers//lib/informers/models.rb#914
|
|
299
|
-
def initialize(config, session, decoder_merged_session, generation_config); end
|
|
300
|
-
end
|
|
301
|
-
|
|
302
|
-
# source://informers//lib/informers/models.rb#929
|
|
303
|
-
class Informers::BartForSequenceClassification < ::Informers::BartPretrainedModel
|
|
304
|
-
# source://informers//lib/informers/models.rb#930
|
|
305
|
-
def call(model_inputs); end
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
# source://informers//lib/informers/models.rb#910
|
|
309
|
-
class Informers::BartModel < ::Informers::BartPretrainedModel; end
|
|
310
|
-
|
|
311
|
-
# source://informers//lib/informers/models.rb#907
|
|
312
|
-
class Informers::BartPretrainedModel < ::Informers::PreTrainedModel; end
|
|
313
|
-
|
|
314
|
-
# source://informers//lib/informers/tokenizers.rb#166
|
|
315
|
-
class Informers::BartTokenizer < ::Informers::PreTrainedTokenizer; end
|
|
316
|
-
|
|
317
|
-
# source://informers//lib/informers/models.rb#794
|
|
318
|
-
class Informers::BertForMaskedLM < ::Informers::BertPreTrainedModel
|
|
319
|
-
# source://informers//lib/informers/models.rb#795
|
|
320
|
-
def call(model_inputs); end
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
# source://informers//lib/informers/models.rb#800
|
|
324
|
-
class Informers::BertForSequenceClassification < ::Informers::BertPreTrainedModel
|
|
325
|
-
# source://informers//lib/informers/models.rb#801
|
|
326
|
-
def call(model_inputs); end
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
# source://informers//lib/informers/models.rb#806
|
|
330
|
-
class Informers::BertForTokenClassification < ::Informers::BertPreTrainedModel
|
|
331
|
-
# source://informers//lib/informers/models.rb#807
|
|
332
|
-
def call(model_inputs); end
|
|
333
|
-
end
|
|
334
|
-
|
|
335
|
-
# source://informers//lib/informers/models.rb#791
|
|
336
|
-
class Informers::BertModel < ::Informers::BertPreTrainedModel; end
|
|
337
|
-
|
|
338
|
-
# source://informers//lib/informers/models.rb#788
|
|
339
|
-
class Informers::BertPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
340
|
-
|
|
341
|
-
# source://informers//lib/informers/tokenizers.rb#146
|
|
342
|
-
class Informers::BertTokenizer < ::Informers::PreTrainedTokenizer; end
|
|
343
|
-
|
|
344
|
-
# source://informers//lib/informers/env.rb#2
|
|
345
|
-
Informers::CACHE_HOME = T.let(T.unsafe(nil), String)
|
|
346
|
-
|
|
347
|
-
# source://informers//lib/informers/processors.rb#354
|
|
348
|
-
class Informers::CLIPFeatureExtractor < ::Informers::ImageFeatureExtractor; end
|
|
349
|
-
|
|
350
|
-
# source://informers//lib/informers/models.rb#1044
|
|
351
|
-
class Informers::CLIPModel < ::Informers::CLIPPreTrainedModel; end
|
|
352
|
-
|
|
353
|
-
# source://informers//lib/informers/models.rb#1041
|
|
354
|
-
class Informers::CLIPPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
355
|
-
|
|
356
|
-
# source://informers//lib/informers/tokenizers.rb#178
|
|
357
|
-
class Informers::CLIPTokenizer < ::Informers::PreTrainedTokenizer; end
|
|
358
|
-
|
|
359
|
-
# source://informers//lib/informers/processors.rb#776
|
|
360
|
-
class Informers::ClapFeatureExtractor < ::Informers::FeatureExtractor
|
|
361
|
-
# @return [ClapFeatureExtractor] a new instance of ClapFeatureExtractor
|
|
362
|
-
#
|
|
363
|
-
# source://informers//lib/informers/processors.rb#777
|
|
364
|
-
def initialize(config); end
|
|
365
|
-
|
|
366
|
-
# @raise [Todo]
|
|
367
|
-
#
|
|
368
|
-
# source://informers//lib/informers/processors.rb#783
|
|
369
|
-
def call(audio, max_length: T.unsafe(nil)); end
|
|
370
|
-
end
|
|
371
|
-
|
|
372
|
-
# source://informers//lib/informers/models.rb#1220
|
|
373
|
-
class Informers::ClapModel < ::Informers::ClapPreTrainedModel; end
|
|
374
|
-
|
|
375
|
-
# source://informers//lib/informers/models.rb#1217
|
|
376
|
-
class Informers::ClapPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
377
|
-
|
|
378
|
-
# source://informers//lib/informers/models.rb#845
|
|
379
|
-
class Informers::ConvBertModel < ::Informers::ConvBertPreTrainedModel; end
|
|
380
|
-
|
|
381
|
-
# source://informers//lib/informers/models.rb#842
|
|
382
|
-
class Informers::ConvBertPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
383
|
-
|
|
384
|
-
# source://informers//lib/informers/env.rb#3
|
|
385
|
-
Informers::DEFAULT_CACHE_DIR = T.let(T.unsafe(nil), String)
|
|
386
|
-
|
|
387
|
-
# source://informers//lib/informers/pipelines.rb#1335
|
|
388
|
-
Informers::DEFAULT_PROGRESS_CALLBACK = T.let(T.unsafe(nil), Proc)
|
|
389
|
-
|
|
390
|
-
# source://informers//lib/informers/processors.rb#357
|
|
391
|
-
class Informers::DPTFeatureExtractor < ::Informers::ImageFeatureExtractor; end
|
|
392
|
-
|
|
393
|
-
# source://informers//lib/informers/models.rb#1111
|
|
394
|
-
class Informers::DPTForDepthEstimation < ::Informers::DPTPreTrainedModel; end
|
|
395
|
-
|
|
396
|
-
# source://informers//lib/informers/models.rb#1108
|
|
397
|
-
class Informers::DPTModel < ::Informers::DPTPreTrainedModel; end
|
|
398
|
-
|
|
399
|
-
# source://informers//lib/informers/models.rb#1105
|
|
400
|
-
class Informers::DPTPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
401
|
-
|
|
402
|
-
# source://informers//lib/informers/models.rb#858
|
|
403
|
-
class Informers::DebertaV2Model < ::Informers::DebertaV2PreTrainedModel; end
|
|
404
|
-
|
|
405
|
-
# source://informers//lib/informers/models.rb#855
|
|
406
|
-
class Informers::DebertaV2PreTrainedModel < ::Informers::PreTrainedModel; end
|
|
407
|
-
|
|
408
|
-
# source://informers//lib/informers/tokenizers.rb#151
|
|
409
|
-
class Informers::DebertaV2Tokenizer < ::Informers::PreTrainedTokenizer; end
|
|
410
|
-
|
|
411
|
-
# source://informers//lib/informers/pipelines.rb#1014
|
|
412
|
-
class Informers::DepthEstimationPipeline < ::Informers::Pipeline
|
|
413
|
-
# source://informers//lib/informers/pipelines.rb#1015
|
|
414
|
-
def call(images); end
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
# source://informers//lib/informers/processors.rb#422
|
|
418
|
-
class Informers::DetrFeatureExtractor < ::Informers::ImageFeatureExtractor
|
|
419
|
-
# source://informers//lib/informers/processors.rb#423
|
|
420
|
-
def call(images); end
|
|
421
|
-
|
|
422
|
-
# source://informers//lib/informers/processors.rb#473
|
|
423
|
-
def check_segment_validity(mask_labels, mask_probs, k, mask_threshold = T.unsafe(nil), overlap_mask_area_threshold = T.unsafe(nil)); end
|
|
424
|
-
|
|
425
|
-
# source://informers//lib/informers/processors.rb#510
|
|
426
|
-
def compute_segments(mask_probs, pred_scores, pred_labels, mask_threshold, overlap_mask_area_threshold, label_ids_to_fuse = T.unsafe(nil), target_size = T.unsafe(nil)); end
|
|
427
|
-
|
|
428
|
-
# source://informers//lib/informers/processors.rb#442
|
|
429
|
-
def post_process_object_detection(*args); end
|
|
430
|
-
|
|
431
|
-
# source://informers//lib/informers/processors.rb#598
|
|
432
|
-
def post_process_panoptic_segmentation(outputs, threshold: T.unsafe(nil), mask_threshold: T.unsafe(nil), overlap_mask_area_threshold: T.unsafe(nil), label_ids_to_fuse: T.unsafe(nil), target_sizes: T.unsafe(nil)); end
|
|
433
|
-
|
|
434
|
-
# source://informers//lib/informers/processors.rb#446
|
|
435
|
-
def remove_low_and_no_objects(class_logits, mask_logits, object_mask_threshold, num_labels); end
|
|
436
|
-
end
|
|
437
|
-
|
|
438
|
-
# source://informers//lib/informers/models.rb#1084
|
|
439
|
-
class Informers::DetrForObjectDetection < ::Informers::DetrPreTrainedModel
|
|
440
|
-
# source://informers//lib/informers/models.rb#1085
|
|
441
|
-
def call(model_inputs); end
|
|
442
|
-
end
|
|
443
|
-
|
|
444
|
-
# source://informers//lib/informers/models.rb#1090
|
|
445
|
-
class Informers::DetrForSegmentation < ::Informers::DetrPreTrainedModel
|
|
446
|
-
# source://informers//lib/informers/models.rb#1091
|
|
447
|
-
def call(model_inputs); end
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
# source://informers//lib/informers/models.rb#1081
|
|
451
|
-
class Informers::DetrModel < ::Informers::DetrPreTrainedModel; end
|
|
452
|
-
|
|
453
|
-
# source://informers//lib/informers/models.rb#1551
|
|
454
|
-
class Informers::DetrObjectDetectionOutput < ::Informers::ModelOutput
|
|
455
|
-
# @return [DetrObjectDetectionOutput] a new instance of DetrObjectDetectionOutput
|
|
456
|
-
#
|
|
457
|
-
# source://informers//lib/informers/models.rb#1554
|
|
458
|
-
def initialize(logits, pred_boxes); end
|
|
459
|
-
|
|
460
|
-
# Returns the value of attribute logits.
|
|
461
|
-
#
|
|
462
|
-
# source://informers//lib/informers/models.rb#1552
|
|
463
|
-
def logits; end
|
|
464
|
-
|
|
465
|
-
# Returns the value of attribute pred_boxes.
|
|
466
|
-
#
|
|
467
|
-
# source://informers//lib/informers/models.rb#1552
|
|
468
|
-
def pred_boxes; end
|
|
469
|
-
end
|
|
470
|
-
|
|
471
|
-
# source://informers//lib/informers/models.rb#1078
|
|
472
|
-
class Informers::DetrPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
473
|
-
|
|
474
|
-
# source://informers//lib/informers/models.rb#1561
|
|
475
|
-
class Informers::DetrSegmentationOutput < ::Informers::ModelOutput
|
|
476
|
-
# @return [DetrSegmentationOutput] a new instance of DetrSegmentationOutput
|
|
477
|
-
#
|
|
478
|
-
# source://informers//lib/informers/models.rb#1564
|
|
479
|
-
def initialize(logits, pred_boxes, pred_masks); end
|
|
480
|
-
|
|
481
|
-
# Returns the value of attribute logits.
|
|
482
|
-
#
|
|
483
|
-
# source://informers//lib/informers/models.rb#1562
|
|
484
|
-
def logits; end
|
|
485
|
-
|
|
486
|
-
# Returns the value of attribute pred_boxes.
|
|
487
|
-
#
|
|
488
|
-
# source://informers//lib/informers/models.rb#1562
|
|
489
|
-
def pred_boxes; end
|
|
490
|
-
|
|
491
|
-
# Returns the value of attribute pred_masks.
|
|
492
|
-
#
|
|
493
|
-
# source://informers//lib/informers/models.rb#1562
|
|
494
|
-
def pred_masks; end
|
|
495
|
-
end
|
|
496
|
-
|
|
497
|
-
# source://informers//lib/informers/models.rb#873
|
|
498
|
-
class Informers::DistilBertForQuestionAnswering < ::Informers::DistilBertPreTrainedModel
|
|
499
|
-
# source://informers//lib/informers/models.rb#874
|
|
500
|
-
def call(model_inputs); end
|
|
501
|
-
end
|
|
502
|
-
|
|
503
|
-
# source://informers//lib/informers/models.rb#867
|
|
504
|
-
class Informers::DistilBertForSequenceClassification < ::Informers::DistilBertPreTrainedModel
|
|
505
|
-
# source://informers//lib/informers/models.rb#868
|
|
506
|
-
def call(model_inputs); end
|
|
507
|
-
end
|
|
508
|
-
|
|
509
|
-
# source://informers//lib/informers/models.rb#864
|
|
510
|
-
class Informers::DistilBertModel < ::Informers::DistilBertPreTrainedModel; end
|
|
511
|
-
|
|
512
|
-
# source://informers//lib/informers/models.rb#861
|
|
513
|
-
class Informers::DistilBertPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
514
|
-
|
|
515
|
-
# source://informers//lib/informers/tokenizers.rb#156
|
|
516
|
-
class Informers::DistilBertTokenizer < ::Informers::PreTrainedTokenizer; end
|
|
517
|
-
|
|
518
|
-
# source://informers//lib/informers/pipelines.rb#760
|
|
519
|
-
class Informers::DocumentQuestionAnsweringPipeline < ::Informers::Pipeline
|
|
520
|
-
# source://informers//lib/informers/pipelines.rb#761
|
|
521
|
-
def call(image, question, **generate_kwargs); end
|
|
522
|
-
end
|
|
523
|
-
|
|
524
|
-
# source://informers//lib/informers/processors.rb#393
|
|
525
|
-
class Informers::DonutFeatureExtractor < ::Informers::ImageFeatureExtractor
|
|
526
|
-
# source://informers//lib/informers/processors.rb#394
|
|
527
|
-
def pad_image(pixel_data, img_dims, pad_size, **options); end
|
|
528
|
-
end
|
|
529
|
-
|
|
530
|
-
# source://informers//lib/informers/models.rb#1164
|
|
531
|
-
class Informers::DonutSwinModel < ::Informers::DonutSwinPreTrainedModel; end
|
|
532
|
-
|
|
533
|
-
# source://informers//lib/informers/models.rb#1161
|
|
534
|
-
class Informers::DonutSwinPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
535
|
-
|
|
536
|
-
# TODO add ElectraForPreTraining
|
|
537
|
-
#
|
|
538
|
-
# source://informers//lib/informers/models.rb#852
|
|
539
|
-
class Informers::ElectraModel < ::Informers::ElectraPreTrainedModel; end
|
|
540
|
-
|
|
541
|
-
# source://informers//lib/informers/models.rb#848
|
|
542
|
-
class Informers::ElectraPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
543
|
-
|
|
544
|
-
# source://informers//lib/informers/pipelines.rb#1042
|
|
545
|
-
class Informers::EmbeddingPipeline < ::Informers::FeatureExtractionPipeline
|
|
546
|
-
# source://informers//lib/informers/pipelines.rb#1043
|
|
547
|
-
def call(texts, pooling: T.unsafe(nil), normalize: T.unsafe(nil), model_output: T.unsafe(nil)); end
|
|
548
|
-
end
|
|
549
|
-
|
|
550
|
-
# source://informers//lib/informers.rb#34
|
|
551
|
-
class Informers::Error < ::StandardError; end
|
|
552
|
-
|
|
553
|
-
# source://informers//lib/informers/pipelines.rb#821
|
|
554
|
-
class Informers::FeatureExtractionPipeline < ::Informers::Pipeline
|
|
555
|
-
# source://informers//lib/informers/pipelines.rb#822
|
|
556
|
-
def call(texts, pooling: T.unsafe(nil), normalize: T.unsafe(nil), quantize: T.unsafe(nil), precision: T.unsafe(nil), model_output: T.unsafe(nil)); end
|
|
557
|
-
end
|
|
558
|
-
|
|
559
|
-
# source://informers//lib/informers/processors.rb#2
|
|
560
|
-
class Informers::FeatureExtractor
|
|
561
|
-
# @return [FeatureExtractor] a new instance of FeatureExtractor
|
|
562
|
-
#
|
|
563
|
-
# source://informers//lib/informers/processors.rb#5
|
|
564
|
-
def initialize(config); end
|
|
565
|
-
|
|
566
|
-
# Returns the value of attribute config.
|
|
567
|
-
#
|
|
568
|
-
# source://informers//lib/informers/processors.rb#3
|
|
569
|
-
def config; end
|
|
570
|
-
end
|
|
571
|
-
|
|
572
|
-
# source://informers//lib/informers/pipelines.rb#280
|
|
573
|
-
class Informers::FillMaskPipeline < ::Informers::Pipeline
|
|
574
|
-
# source://informers//lib/informers/pipelines.rb#281
|
|
575
|
-
def call(texts, top_k: T.unsafe(nil)); end
|
|
576
|
-
end
|
|
577
|
-
|
|
578
|
-
# source://informers//lib/informers/models.rb#1066
|
|
579
|
-
class Informers::GPT2LMHeadModel < ::Informers::GPT2PreTrainedModel; end
|
|
580
|
-
|
|
581
|
-
# source://informers//lib/informers/models.rb#1063
|
|
582
|
-
class Informers::GPT2Model < ::Informers::GPT2PreTrainedModel; end
|
|
583
|
-
|
|
584
|
-
# source://informers//lib/informers/models.rb#1047
|
|
585
|
-
class Informers::GPT2PreTrainedModel < ::Informers::PreTrainedModel
|
|
586
|
-
# @return [GPT2PreTrainedModel] a new instance of GPT2PreTrainedModel
|
|
587
|
-
#
|
|
588
|
-
# source://informers//lib/informers/models.rb#1050
|
|
589
|
-
def initialize(config, session, generation_config); end
|
|
590
|
-
|
|
591
|
-
# Returns the value of attribute dim_kv.
|
|
592
|
-
#
|
|
593
|
-
# source://informers//lib/informers/models.rb#1048
|
|
594
|
-
def dim_kv; end
|
|
595
|
-
|
|
596
|
-
# Returns the value of attribute num_heads.
|
|
597
|
-
#
|
|
598
|
-
# source://informers//lib/informers/models.rb#1048
|
|
599
|
-
def num_heads; end
|
|
600
|
-
|
|
601
|
-
# Returns the value of attribute num_layers.
|
|
602
|
-
#
|
|
603
|
-
# source://informers//lib/informers/models.rb#1048
|
|
604
|
-
def num_layers; end
|
|
605
|
-
end
|
|
606
|
-
|
|
607
|
-
# source://informers//lib/informers/tokenizers.rb#162
|
|
608
|
-
class Informers::GPT2Tokenizer < ::Informers::PreTrainedTokenizer; end
|
|
609
|
-
|
|
610
|
-
# source://informers//lib/informers/pipelines.rb#520
|
|
611
|
-
class Informers::ImageClassificationPipeline < ::Informers::Pipeline
|
|
612
|
-
# source://informers//lib/informers/pipelines.rb#521
|
|
613
|
-
def call(images, top_k: T.unsafe(nil)); end
|
|
614
|
-
end
|
|
615
|
-
|
|
616
|
-
# source://informers//lib/informers/pipelines.rb#884
|
|
617
|
-
class Informers::ImageFeatureExtractionPipeline < ::Informers::Pipeline
|
|
618
|
-
# source://informers//lib/informers/pipelines.rb#885
|
|
619
|
-
def call(images); end
|
|
620
|
-
end
|
|
621
|
-
|
|
622
|
-
# source://informers//lib/informers/processors.rb#11
|
|
623
|
-
class Informers::ImageFeatureExtractor < ::Informers::FeatureExtractor
|
|
624
|
-
# @return [ImageFeatureExtractor] a new instance of ImageFeatureExtractor
|
|
625
|
-
#
|
|
626
|
-
# source://informers//lib/informers/processors.rb#12
|
|
627
|
-
def initialize(config); end
|
|
628
|
-
|
|
629
|
-
# source://informers//lib/informers/processors.rb#332
|
|
630
|
-
def call(images, *args); end
|
|
631
|
-
|
|
632
|
-
# source://informers//lib/informers/processors.rb#153
|
|
633
|
-
def get_resize_output_image_size(image, size); end
|
|
634
|
-
|
|
635
|
-
# source://informers//lib/informers/processors.rb#67
|
|
636
|
-
def pad_image(pixel_data, img_dims, pad_size, mode: T.unsafe(nil), center: T.unsafe(nil), constant_values: T.unsafe(nil)); end
|
|
637
|
-
|
|
638
|
-
# source://informers//lib/informers/processors.rb#219
|
|
639
|
-
def preprocess(image, do_normalize: T.unsafe(nil), do_pad: T.unsafe(nil), do_convert_rgb: T.unsafe(nil), do_convert_grayscale: T.unsafe(nil), do_flip_channel_order: T.unsafe(nil)); end
|
|
640
|
-
|
|
641
|
-
# source://informers//lib/informers/processors.rb#147
|
|
642
|
-
def rescale(pixel_data); end
|
|
643
|
-
|
|
644
|
-
# source://informers//lib/informers/processors.rb#214
|
|
645
|
-
def resize(image); end
|
|
646
|
-
|
|
647
|
-
# source://informers//lib/informers/processors.rb#45
|
|
648
|
-
def thumbnail(image, size, resample = T.unsafe(nil)); end
|
|
649
|
-
end
|
|
650
|
-
|
|
651
|
-
# source://informers//lib/informers/pipelines.rb#551
|
|
652
|
-
class Informers::ImageSegmentationPipeline < ::Informers::Pipeline
|
|
653
|
-
# @return [ImageSegmentationPipeline] a new instance of ImageSegmentationPipeline
|
|
654
|
-
#
|
|
655
|
-
# source://informers//lib/informers/pipelines.rb#552
|
|
656
|
-
def initialize(**options); end
|
|
657
|
-
|
|
658
|
-
# source://informers//lib/informers/pipelines.rb#562
|
|
659
|
-
def call(images, threshold: T.unsafe(nil), mask_threshold: T.unsafe(nil), overlap_mask_area_threshold: T.unsafe(nil), label_ids_to_fuse: T.unsafe(nil), target_sizes: T.unsafe(nil), subtask: T.unsafe(nil)); end
|
|
660
|
-
end
|
|
661
|
-
|
|
662
|
-
# source://informers//lib/informers/pipelines.rb#990
|
|
663
|
-
class Informers::ImageToImagePipeline < ::Informers::Pipeline
|
|
664
|
-
# source://informers//lib/informers/pipelines.rb#991
|
|
665
|
-
def call(images); end
|
|
666
|
-
end
|
|
667
|
-
|
|
668
|
-
# source://informers//lib/informers/pipelines.rb#499
|
|
669
|
-
class Informers::ImageToTextPipeline < ::Informers::Pipeline
|
|
670
|
-
# source://informers//lib/informers/pipelines.rb#500
|
|
671
|
-
def call(images, **generate_kwargs); end
|
|
672
|
-
end
|
|
673
|
-
|
|
674
|
-
# source://informers//lib/informers/models.rb#965
|
|
675
|
-
class Informers::M2M100ForConditionalGeneration < ::Informers::M2M100PreTrainedModel
|
|
676
|
-
# @return [M2M100ForConditionalGeneration] a new instance of M2M100ForConditionalGeneration
|
|
677
|
-
#
|
|
678
|
-
# source://informers//lib/informers/models.rb#966
|
|
679
|
-
def initialize(config, session, decoder_merged_session, generation_config); end
|
|
680
|
-
end
|
|
681
|
-
|
|
682
|
-
# source://informers//lib/informers/models.rb#962
|
|
683
|
-
class Informers::M2M100Model < ::Informers::M2M100PreTrainedModel; end
|
|
684
|
-
|
|
685
|
-
# source://informers//lib/informers/models.rb#959
|
|
686
|
-
class Informers::M2M100PreTrainedModel < ::Informers::PreTrainedModel; end
|
|
687
|
-
|
|
688
|
-
# source://informers//lib/informers/tokenizers.rb#197
|
|
689
|
-
class Informers::M2M100Tokenizer < ::Informers::PreTrainedTokenizer
|
|
690
|
-
# @return [M2M100Tokenizer] a new instance of M2M100Tokenizer
|
|
691
|
-
#
|
|
692
|
-
# source://informers//lib/informers/tokenizers.rb#200
|
|
693
|
-
def initialize(tokenizer_json, tokenizer_config); end
|
|
694
|
-
|
|
695
|
-
# source://informers//lib/informers/tokenizers.rb#210
|
|
696
|
-
def _build_translation_inputs(raw_inputs, tokenizer_options, generate_kwargs); end
|
|
697
|
-
|
|
698
|
-
# Returns the value of attribute lang_to_token.
|
|
699
|
-
#
|
|
700
|
-
# source://informers//lib/informers/tokenizers.rb#198
|
|
701
|
-
def lang_to_token; end
|
|
702
|
-
|
|
703
|
-
# Returns the value of attribute language_codes.
|
|
704
|
-
#
|
|
705
|
-
# source://informers//lib/informers/tokenizers.rb#198
|
|
706
|
-
def language_codes; end
|
|
707
|
-
|
|
708
|
-
# Returns the value of attribute language_regex.
|
|
709
|
-
#
|
|
710
|
-
# source://informers//lib/informers/tokenizers.rb#198
|
|
711
|
-
def language_regex; end
|
|
712
|
-
end
|
|
713
|
-
|
|
714
|
-
# source://informers//lib/informers/models.rb#941
|
|
715
|
-
class Informers::MBartForCausalLM < ::Informers::MBartPreTrainedModel
|
|
716
|
-
# @return [MBartForCausalLM] a new instance of MBartForCausalLM
|
|
717
|
-
#
|
|
718
|
-
# source://informers//lib/informers/models.rb#945
|
|
719
|
-
def initialize(config, decoder_merged_session, generation_config); end
|
|
720
|
-
|
|
721
|
-
# Returns the value of attribute decoder_dim_kv.
|
|
722
|
-
#
|
|
723
|
-
# source://informers//lib/informers/models.rb#942
|
|
724
|
-
def decoder_dim_kv; end
|
|
725
|
-
|
|
726
|
-
# Returns the value of attribute encoder_dim_kv.
|
|
727
|
-
#
|
|
728
|
-
# source://informers//lib/informers/models.rb#942
|
|
729
|
-
def encoder_dim_kv; end
|
|
730
|
-
|
|
731
|
-
# Returns the value of attribute num_decoder_heads.
|
|
732
|
-
#
|
|
733
|
-
# source://informers//lib/informers/models.rb#942
|
|
734
|
-
def num_decoder_heads; end
|
|
735
|
-
|
|
736
|
-
# Returns the value of attribute num_decoder_layers.
|
|
737
|
-
#
|
|
738
|
-
# source://informers//lib/informers/models.rb#942
|
|
739
|
-
def num_decoder_layers; end
|
|
740
|
-
|
|
741
|
-
# Returns the value of attribute num_encoder_heads.
|
|
742
|
-
#
|
|
743
|
-
# source://informers//lib/informers/models.rb#942
|
|
744
|
-
def num_encoder_heads; end
|
|
745
|
-
|
|
746
|
-
# Returns the value of attribute num_encoder_layers.
|
|
747
|
-
#
|
|
748
|
-
# source://informers//lib/informers/models.rb#942
|
|
749
|
-
def num_encoder_layers; end
|
|
750
|
-
end
|
|
751
|
-
|
|
752
|
-
# source://informers//lib/informers/models.rb#938
|
|
753
|
-
class Informers::MBartModel < ::Informers::MBartPreTrainedModel; end
|
|
754
|
-
|
|
755
|
-
# source://informers//lib/informers/models.rb#935
|
|
756
|
-
class Informers::MBartPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
757
|
-
|
|
758
|
-
# source://informers//lib/informers/models.rb#14
|
|
759
|
-
Informers::MODEL_CLASS_TO_NAME_MAPPING = T.let(T.unsafe(nil), Hash)
|
|
760
|
-
|
|
761
|
-
# source://informers//lib/informers/models.rb#1354
|
|
762
|
-
Informers::MODEL_CLASS_TYPE_MAPPING = T.let(T.unsafe(nil), Array)
|
|
763
|
-
|
|
764
|
-
# source://informers//lib/informers/models.rb#1330
|
|
765
|
-
Informers::MODEL_FOR_AUDIO_CLASSIFICATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
766
|
-
|
|
767
|
-
# source://informers//lib/informers/models.rb#1337
|
|
768
|
-
Informers::MODEL_FOR_AUDIO_FRAME_CLASSIFICATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
769
|
-
|
|
770
|
-
# source://informers//lib/informers/models.rb#1334
|
|
771
|
-
Informers::MODEL_FOR_AUDIO_XVECTOR_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
772
|
-
|
|
773
|
-
# source://informers//lib/informers/models.rb#1327
|
|
774
|
-
Informers::MODEL_FOR_CTC_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
775
|
-
|
|
776
|
-
# source://informers//lib/informers/models.rb#1347
|
|
777
|
-
Informers::MODEL_FOR_DEPTH_ESTIMATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
778
|
-
|
|
779
|
-
# source://informers//lib/informers/models.rb#1301
|
|
780
|
-
Informers::MODEL_FOR_DOCUMENT_QUESTION_ANSWERING_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
781
|
-
|
|
782
|
-
# source://informers//lib/informers/models.rb#1305
|
|
783
|
-
Informers::MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
784
|
-
|
|
785
|
-
# source://informers//lib/informers/models.rb#1351
|
|
786
|
-
Informers::MODEL_FOR_IMAGE_FEATURE_EXTRACTION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
787
|
-
|
|
788
|
-
# source://informers//lib/informers/models.rb#1340
|
|
789
|
-
Informers::MODEL_FOR_IMAGE_MATTING_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
790
|
-
|
|
791
|
-
# source://informers//lib/informers/models.rb#1317
|
|
792
|
-
Informers::MODEL_FOR_IMAGE_SEGMENTATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
793
|
-
|
|
794
|
-
# source://informers//lib/informers/models.rb#1343
|
|
795
|
-
Informers::MODEL_FOR_IMAGE_TO_IMAGE_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
796
|
-
|
|
797
|
-
# source://informers//lib/informers/models.rb#1287
|
|
798
|
-
Informers::MODEL_FOR_MASKED_LM_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
799
|
-
|
|
800
|
-
# source://informers//lib/informers/models.rb#1324
|
|
801
|
-
Informers::MODEL_FOR_MASK_GENERATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
802
|
-
|
|
803
|
-
# source://informers//lib/informers/models.rb#1309
|
|
804
|
-
Informers::MODEL_FOR_OBJECT_DETECTION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
805
|
-
|
|
806
|
-
# source://informers//lib/informers/models.rb#1293
|
|
807
|
-
Informers::MODEL_FOR_QUESTION_ANSWERING_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
808
|
-
|
|
809
|
-
# source://informers//lib/informers/models.rb#1321
|
|
810
|
-
Informers::MODEL_FOR_SEMANTIC_SEGMENTATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
811
|
-
|
|
812
|
-
# source://informers//lib/informers/models.rb#1261
|
|
813
|
-
Informers::MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
814
|
-
|
|
815
|
-
# source://informers//lib/informers/models.rb#1276
|
|
816
|
-
Informers::MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
817
|
-
|
|
818
|
-
# source://informers//lib/informers/models.rb#1249
|
|
819
|
-
Informers::MODEL_FOR_SPEECH_SEQ_2_SEQ_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
820
|
-
|
|
821
|
-
# source://informers//lib/informers/models.rb#1253
|
|
822
|
-
Informers::MODEL_FOR_TEXT_TO_SPECTROGRAM_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
823
|
-
|
|
824
|
-
# source://informers//lib/informers/models.rb#1257
|
|
825
|
-
Informers::MODEL_FOR_TEXT_TO_WAVEFORM_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
826
|
-
|
|
827
|
-
# source://informers//lib/informers/models.rb#1270
|
|
828
|
-
Informers::MODEL_FOR_TOKEN_CLASSIFICATION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
829
|
-
|
|
830
|
-
# source://informers//lib/informers/models.rb#1297
|
|
831
|
-
Informers::MODEL_FOR_VISION_2_SEQ_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
832
|
-
|
|
833
|
-
# source://informers//lib/informers/models.rb#1313
|
|
834
|
-
Informers::MODEL_FOR_ZERO_SHOT_OBJECT_DETECTION_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
835
|
-
|
|
836
|
-
# source://informers//lib/informers/models.rb#1246
|
|
837
|
-
Informers::MODEL_MAPPING_NAMES_DECODER_ONLY = T.let(T.unsafe(nil), Hash)
|
|
838
|
-
|
|
839
|
-
# source://informers//lib/informers/models.rb#1242
|
|
840
|
-
Informers::MODEL_MAPPING_NAMES_ENCODER_DECODER = T.let(T.unsafe(nil), Hash)
|
|
841
|
-
|
|
842
|
-
# source://informers//lib/informers/models.rb#1223
|
|
843
|
-
Informers::MODEL_MAPPING_NAMES_ENCODER_ONLY = T.let(T.unsafe(nil), Hash)
|
|
844
|
-
|
|
845
|
-
# source://informers//lib/informers/models.rb#13
|
|
846
|
-
Informers::MODEL_NAME_TO_CLASS_MAPPING = T.let(T.unsafe(nil), Hash)
|
|
847
|
-
|
|
848
|
-
# source://informers//lib/informers/models.rb#2
|
|
849
|
-
Informers::MODEL_TYPES = T.let(T.unsafe(nil), Hash)
|
|
850
|
-
|
|
851
|
-
# NOTE: These will be populated fully later
|
|
852
|
-
#
|
|
853
|
-
# source://informers//lib/informers/models.rb#12
|
|
854
|
-
Informers::MODEL_TYPE_MAPPING = T.let(T.unsafe(nil), Hash)
|
|
855
|
-
|
|
856
|
-
# source://informers//lib/informers/models.rb#1282
|
|
857
|
-
Informers::MODEL_WITH_LM_HEAD_MAPPING_NAMES = T.let(T.unsafe(nil), Hash)
|
|
858
|
-
|
|
859
|
-
# source://informers//lib/informers/models.rb#882
|
|
860
|
-
class Informers::MPNetModel < ::Informers::MPNetPreTrainedModel; end
|
|
861
|
-
|
|
862
|
-
# source://informers//lib/informers/models.rb#879
|
|
863
|
-
class Informers::MPNetPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
864
|
-
|
|
865
|
-
# source://informers//lib/informers/tokenizers.rb#175
|
|
866
|
-
class Informers::MPNetTokenizer < ::Informers::PreTrainedTokenizer; end
|
|
867
|
-
|
|
868
|
-
# source://informers//lib/informers/models.rb#1532
|
|
869
|
-
class Informers::MaskedLMOutput < ::Informers::ModelOutput
|
|
870
|
-
# @return [MaskedLMOutput] a new instance of MaskedLMOutput
|
|
871
|
-
#
|
|
872
|
-
# source://informers//lib/informers/models.rb#1535
|
|
873
|
-
def initialize(logits); end
|
|
874
|
-
|
|
875
|
-
# Returns the value of attribute logits.
|
|
876
|
-
#
|
|
877
|
-
# source://informers//lib/informers/models.rb#1533
|
|
878
|
-
def logits; end
|
|
879
|
-
end
|
|
880
|
-
|
|
881
|
-
# TODO remove in 2.0
|
|
882
|
-
#
|
|
883
|
-
# source://informers//lib/informers/model.rb#3
|
|
884
|
-
class Informers::Model
|
|
885
|
-
# @return [Model] a new instance of Model
|
|
886
|
-
#
|
|
887
|
-
# source://informers//lib/informers/model.rb#4
|
|
888
|
-
def initialize(model_id, quantized: T.unsafe(nil)); end
|
|
889
|
-
|
|
890
|
-
# source://informers//lib/informers/model.rb#9
|
|
891
|
-
def embed(texts); end
|
|
892
|
-
end
|
|
893
|
-
|
|
894
|
-
# source://informers//lib/informers/models.rb#1497
|
|
895
|
-
class Informers::ModelOutput
|
|
896
|
-
# source://informers//lib/informers/models.rb#1498
|
|
897
|
-
def [](key); end
|
|
898
|
-
end
|
|
899
|
-
|
|
900
|
-
# source://informers//lib/informers/models.rb#818
|
|
901
|
-
class Informers::ModernBertForMaskedLM < ::Informers::ModernBertPreTrainedModel
|
|
902
|
-
# source://informers//lib/informers/models.rb#819
|
|
903
|
-
def call(model_inputs); end
|
|
904
|
-
end
|
|
905
|
-
|
|
906
|
-
# source://informers//lib/informers/models.rb#824
|
|
907
|
-
class Informers::ModernBertForSequenceClassification < ::Informers::ModernBertPreTrainedModel
|
|
908
|
-
# source://informers//lib/informers/models.rb#825
|
|
909
|
-
def call(model_inputs); end
|
|
910
|
-
end
|
|
911
|
-
|
|
912
|
-
# source://informers//lib/informers/models.rb#830
|
|
913
|
-
class Informers::ModernBertForTokenClassification < ::Informers::ModernBertPreTrainedModel
|
|
914
|
-
# source://informers//lib/informers/models.rb#831
|
|
915
|
-
def call(model_inputs); end
|
|
916
|
-
end
|
|
917
|
-
|
|
918
|
-
# source://informers//lib/informers/models.rb#815
|
|
919
|
-
class Informers::ModernBertModel < ::Informers::ModernBertPreTrainedModel; end
|
|
920
|
-
|
|
921
|
-
# source://informers//lib/informers/models.rb#812
|
|
922
|
-
class Informers::ModernBertPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
923
|
-
|
|
924
|
-
# source://informers//lib/informers/pipelines.rb#1352
|
|
925
|
-
Informers::NO_DEFAULT = T.let(T.unsafe(nil), Object)
|
|
926
|
-
|
|
927
|
-
# source://informers//lib/informers/tokenizers.rb#181
|
|
928
|
-
class Informers::NllbTokenizer < ::Informers::PreTrainedTokenizer
|
|
929
|
-
# @return [NllbTokenizer] a new instance of NllbTokenizer
|
|
930
|
-
#
|
|
931
|
-
# source://informers//lib/informers/tokenizers.rb#184
|
|
932
|
-
def initialize(tokenizer_json, tokenizer_config); end
|
|
933
|
-
|
|
934
|
-
# source://informers//lib/informers/tokenizers.rb#192
|
|
935
|
-
def _build_translation_inputs(raw_inputs, tokenizer_options, generate_kwargs); end
|
|
936
|
-
|
|
937
|
-
# Returns the value of attribute lang_to_token.
|
|
938
|
-
#
|
|
939
|
-
# source://informers//lib/informers/tokenizers.rb#182
|
|
940
|
-
def lang_to_token; end
|
|
941
|
-
|
|
942
|
-
# Returns the value of attribute language_codes.
|
|
943
|
-
#
|
|
944
|
-
# source://informers//lib/informers/tokenizers.rb#182
|
|
945
|
-
def language_codes; end
|
|
946
|
-
|
|
947
|
-
# Returns the value of attribute language_regex.
|
|
948
|
-
#
|
|
949
|
-
# source://informers//lib/informers/tokenizers.rb#182
|
|
950
|
-
def language_regex; end
|
|
951
|
-
end
|
|
952
|
-
|
|
953
|
-
# source://informers//lib/informers/models.rb#839
|
|
954
|
-
class Informers::NomicBertModel < ::Informers::NomicBertPreTrainedModel; end
|
|
955
|
-
|
|
956
|
-
# source://informers//lib/informers/models.rb#836
|
|
957
|
-
class Informers::NomicBertPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
958
|
-
|
|
959
|
-
# source://informers//lib/informers/pipelines.rb#671
|
|
960
|
-
class Informers::ObjectDetectionPipeline < ::Informers::Pipeline
|
|
961
|
-
# source://informers//lib/informers/pipelines.rb#672
|
|
962
|
-
def call(images, threshold: T.unsafe(nil), percentage: T.unsafe(nil)); end
|
|
963
|
-
end
|
|
964
|
-
|
|
965
|
-
# source://informers//lib/informers/processors.rb#363
|
|
966
|
-
class Informers::OwlViTFeatureExtractor < ::Informers::ImageFeatureExtractor
|
|
967
|
-
# source://informers//lib/informers/processors.rb#364
|
|
968
|
-
def post_process_object_detection(*args); end
|
|
969
|
-
end
|
|
970
|
-
|
|
971
|
-
# source://informers//lib/informers/models.rb#1075
|
|
972
|
-
class Informers::OwlViTForObjectDetection < ::Informers::OwlViTPreTrainedModel; end
|
|
973
|
-
|
|
974
|
-
# source://informers//lib/informers/models.rb#1072
|
|
975
|
-
class Informers::OwlViTModel < ::Informers::OwlViTPreTrainedModel; end
|
|
976
|
-
|
|
977
|
-
# source://informers//lib/informers/models.rb#1069
|
|
978
|
-
class Informers::OwlViTPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
979
|
-
|
|
980
|
-
# source://informers//lib/informers/pipelines.rb#2
|
|
981
|
-
class Informers::Pipeline
|
|
982
|
-
# @return [Pipeline] a new instance of Pipeline
|
|
983
|
-
#
|
|
984
|
-
# source://informers//lib/informers/pipelines.rb#3
|
|
985
|
-
def initialize(task:, model:, tokenizer: T.unsafe(nil), processor: T.unsafe(nil)); end
|
|
986
|
-
|
|
987
|
-
private
|
|
988
|
-
|
|
989
|
-
# source://informers//lib/informers/pipelines.rb#36
|
|
990
|
-
def get_bounding_box(box, as_integer); end
|
|
991
|
-
|
|
992
|
-
# source://informers//lib/informers/pipelines.rb#22
|
|
993
|
-
def prepare_audios(audios, sampling_rate); end
|
|
994
|
-
|
|
995
|
-
# source://informers//lib/informers/pipelines.rb#13
|
|
996
|
-
def prepare_images(images); end
|
|
997
|
-
end
|
|
998
|
-
|
|
999
|
-
# source://informers//lib/informers/models.rb#69
|
|
1000
|
-
class Informers::PreTrainedModel
|
|
1001
|
-
# @return [PreTrainedModel] a new instance of PreTrainedModel
|
|
1002
|
-
#
|
|
1003
|
-
# source://informers//lib/informers/models.rb#74
|
|
1004
|
-
def initialize(config, session); end
|
|
1005
|
-
|
|
1006
|
-
# source://informers//lib/informers/models.rb#210
|
|
1007
|
-
def call(model_inputs, **kwargs); end
|
|
1008
|
-
|
|
1009
|
-
# Returns the value of attribute config.
|
|
1010
|
-
#
|
|
1011
|
-
# source://informers//lib/informers/models.rb#72
|
|
1012
|
-
def config; end
|
|
1013
|
-
|
|
1014
|
-
# source://informers//lib/informers/models.rb#214
|
|
1015
|
-
def generate(inputs, generation_config = T.unsafe(nil), logits_processor = T.unsafe(nil), inputs_attention_mask: T.unsafe(nil)); end
|
|
1016
|
-
|
|
1017
|
-
private
|
|
1018
|
-
|
|
1019
|
-
# source://informers//lib/informers/models.rb#509
|
|
1020
|
-
def add_past_key_values(decoder_feeds, past_key_values); end
|
|
1021
|
-
|
|
1022
|
-
# source://informers//lib/informers/models.rb#665
|
|
1023
|
-
def decoder_forward(model_inputs); end
|
|
1024
|
-
|
|
1025
|
-
# source://informers//lib/informers/models.rb#730
|
|
1026
|
-
def decoder_run_beam(beam); end
|
|
1027
|
-
|
|
1028
|
-
# source://informers//lib/informers/models.rb#691
|
|
1029
|
-
def decoder_start_beams(input_token_ids, generation_config, num_output_tokens, inputs_attention_mask); end
|
|
1030
|
-
|
|
1031
|
-
# source://informers//lib/informers/models.rb#749
|
|
1032
|
-
def decoder_update_beam(beam, new_token_id); end
|
|
1033
|
-
|
|
1034
|
-
# source://informers//lib/informers/models.rb#653
|
|
1035
|
-
def encoder_forward(model_inputs, output_names: T.unsafe(nil)); end
|
|
1036
|
-
|
|
1037
|
-
# source://informers//lib/informers/models.rb#493
|
|
1038
|
-
def get_attentions(decoder_results); end
|
|
1039
|
-
|
|
1040
|
-
# source://informers//lib/informers/models.rb#410
|
|
1041
|
-
def get_generation_config(generation_config); end
|
|
1042
|
-
|
|
1043
|
-
# source://informers//lib/informers/models.rb#353
|
|
1044
|
-
def get_logits_processor(generation_config, input_ids_seq_length, logits_processor = T.unsafe(nil)); end
|
|
1045
|
-
|
|
1046
|
-
# source://informers//lib/informers/models.rb#473
|
|
1047
|
-
def get_past_key_values(decoder_results, past_key_values); end
|
|
1048
|
-
|
|
1049
|
-
# source://informers//lib/informers/models.rb#775
|
|
1050
|
-
def get_start_beams(input_token_ids, generation_config, num_output_tokens, inputs_attention_mask); end
|
|
1051
|
-
|
|
1052
|
-
# source://informers//lib/informers/models.rb#640
|
|
1053
|
-
def group_beams(beams); end
|
|
1054
|
-
|
|
1055
|
-
# source://informers//lib/informers/models.rb#587
|
|
1056
|
-
def prepare_attention_mask(tokens); end
|
|
1057
|
-
|
|
1058
|
-
# @raise [Todo]
|
|
1059
|
-
#
|
|
1060
|
-
# source://informers//lib/informers/models.rb#465
|
|
1061
|
-
def prepare_position_ids(session, feeds, use_cache_branch); end
|
|
1062
|
-
|
|
1063
|
-
# TODO
|
|
1064
|
-
#
|
|
1065
|
-
# source://informers//lib/informers/models.rb#766
|
|
1066
|
-
def replace_tensors(obj); end
|
|
1067
|
-
|
|
1068
|
-
# source://informers//lib/informers/models.rb#779
|
|
1069
|
-
def run_beam(beam); end
|
|
1070
|
-
|
|
1071
|
-
# source://informers//lib/informers/models.rb#429
|
|
1072
|
-
def seq2seq_forward(model_inputs); end
|
|
1073
|
-
|
|
1074
|
-
# source://informers//lib/informers/models.rb#605
|
|
1075
|
-
def seq2seq_run_beam(beam); end
|
|
1076
|
-
|
|
1077
|
-
# source://informers//lib/informers/models.rb#541
|
|
1078
|
-
def seq2seq_start_beams(input_token_ids, generation_config, num_output_tokens, inputs_attention_mask = T.unsafe(nil)); end
|
|
1079
|
-
|
|
1080
|
-
# source://informers//lib/informers/models.rb#636
|
|
1081
|
-
def seq2seq_update_beam(beam, new_token_id); end
|
|
1082
|
-
|
|
1083
|
-
# source://informers//lib/informers/models.rb#754
|
|
1084
|
-
def session_run(session, inputs, output_names: T.unsafe(nil)); end
|
|
1085
|
-
|
|
1086
|
-
# source://informers//lib/informers/models.rb#783
|
|
1087
|
-
def update_beam(beam, new_token_id); end
|
|
1088
|
-
|
|
1089
|
-
# TODO
|
|
1090
|
-
#
|
|
1091
|
-
# source://informers//lib/informers/models.rb#771
|
|
1092
|
-
def validate_inputs(session, inputs); end
|
|
1093
|
-
|
|
1094
|
-
class << self
|
|
1095
|
-
# source://informers//lib/informers/models.rb#178
|
|
1096
|
-
def construct_session(pretrained_model_name_or_path, file_name, **options); end
|
|
1097
|
-
|
|
1098
|
-
# source://informers//lib/informers/models.rb#110
|
|
1099
|
-
def from_pretrained(pretrained_model_name_or_path, quantized: T.unsafe(nil), progress_callback: T.unsafe(nil), config: T.unsafe(nil), cache_dir: T.unsafe(nil), local_files_only: T.unsafe(nil), revision: T.unsafe(nil), device: T.unsafe(nil), dtype: T.unsafe(nil), model_file_name: T.unsafe(nil), session_options: T.unsafe(nil)); end
|
|
1100
|
-
end
|
|
1101
|
-
end
|
|
1102
|
-
|
|
1103
|
-
# source://informers//lib/informers/models.rb#70
|
|
1104
|
-
Informers::PreTrainedModel::MAIN_INPUT_NAME = T.let(T.unsafe(nil), Symbol)
|
|
1105
|
-
|
|
1106
|
-
# source://informers//lib/informers/tokenizers.rb#2
|
|
1107
|
-
class Informers::PreTrainedTokenizer
|
|
1108
|
-
# @return [PreTrainedTokenizer] a new instance of PreTrainedTokenizer
|
|
1109
|
-
#
|
|
1110
|
-
# source://informers//lib/informers/tokenizers.rb#5
|
|
1111
|
-
def initialize(tokenizer_json, tokenizer_config); end
|
|
1112
|
-
|
|
1113
|
-
# source://informers//lib/informers/tokenizers.rb#137
|
|
1114
|
-
def batch_decode(batch, **decode_args); end
|
|
1115
|
-
|
|
1116
|
-
# source://informers//lib/informers/tokenizers.rb#65
|
|
1117
|
-
def call(text, text_pair: T.unsafe(nil), add_special_tokens: T.unsafe(nil), padding: T.unsafe(nil), truncation: T.unsafe(nil), max_length: T.unsafe(nil), return_tensor: T.unsafe(nil), return_token_type_ids: T.unsafe(nil), return_offsets: T.unsafe(nil)); end
|
|
1118
|
-
|
|
1119
|
-
# source://informers//lib/informers/tokenizers.rb#129
|
|
1120
|
-
def convert_tokens_to_ids(tokens); end
|
|
1121
|
-
|
|
1122
|
-
# source://informers//lib/informers/tokenizers.rb#125
|
|
1123
|
-
def convert_tokens_to_string(tokens); end
|
|
1124
|
-
|
|
1125
|
-
# source://informers//lib/informers/tokenizers.rb#121
|
|
1126
|
-
def decode(tokens, skip_special_tokens:); end
|
|
1127
|
-
|
|
1128
|
-
# source://informers//lib/informers/tokenizers.rb#44
|
|
1129
|
-
def get_token(*keys); end
|
|
1130
|
-
|
|
1131
|
-
# source://informers//lib/informers/tokenizers.rb#133
|
|
1132
|
-
def id_to_token(id); end
|
|
1133
|
-
|
|
1134
|
-
# Returns the value of attribute mask_token.
|
|
1135
|
-
#
|
|
1136
|
-
# source://informers//lib/informers/tokenizers.rb#3
|
|
1137
|
-
def mask_token; end
|
|
1138
|
-
|
|
1139
|
-
# Returns the value of attribute mask_token_id.
|
|
1140
|
-
#
|
|
1141
|
-
# source://informers//lib/informers/tokenizers.rb#3
|
|
1142
|
-
def mask_token_id; end
|
|
1143
|
-
|
|
1144
|
-
# source://informers//lib/informers/tokenizers.rb#141
|
|
1145
|
-
def padding_side=(side); end
|
|
1146
|
-
|
|
1147
|
-
# Returns the value of attribute sep_token_id.
|
|
1148
|
-
#
|
|
1149
|
-
# source://informers//lib/informers/tokenizers.rb#3
|
|
1150
|
-
def sep_token_id; end
|
|
1151
|
-
end
|
|
1152
|
-
|
|
1153
|
-
# source://informers//lib/informers/configs.rb#2
|
|
1154
|
-
class Informers::PretrainedConfig
|
|
1155
|
-
# @return [PretrainedConfig] a new instance of PretrainedConfig
|
|
1156
|
-
#
|
|
1157
|
-
# source://informers//lib/informers/configs.rb#3
|
|
1158
|
-
def initialize(config_json); end
|
|
1159
|
-
|
|
1160
|
-
# source://informers//lib/informers/configs.rb#7
|
|
1161
|
-
def [](key); end
|
|
1162
|
-
|
|
1163
|
-
# source://informers//lib/informers/configs.rb#11
|
|
1164
|
-
def []=(key, value); end
|
|
1165
|
-
|
|
1166
|
-
# source://informers//lib/informers/configs.rb#15
|
|
1167
|
-
def to_h; end
|
|
1168
|
-
|
|
1169
|
-
class << self
|
|
1170
|
-
# source://informers//lib/informers/configs.rb#19
|
|
1171
|
-
def from_pretrained(pretrained_model_name_or_path, progress_callback: T.unsafe(nil), config: T.unsafe(nil), cache_dir: T.unsafe(nil), local_files_only: T.unsafe(nil), revision: T.unsafe(nil), **kwargs); end
|
|
1172
|
-
|
|
1173
|
-
# source://informers//lib/informers/configs.rb#39
|
|
1174
|
-
def load_config(pretrained_model_name_or_path, **options); end
|
|
1175
|
-
end
|
|
1176
|
-
end
|
|
1177
|
-
|
|
1178
|
-
# source://informers//lib/informers/models.rb#16
|
|
1179
|
-
class Informers::PretrainedMixin
|
|
1180
|
-
class << self
|
|
1181
|
-
# source://informers//lib/informers/models.rb#17
|
|
1182
|
-
def from_pretrained(pretrained_model_name_or_path, quantized: T.unsafe(nil), progress_callback: T.unsafe(nil), config: T.unsafe(nil), cache_dir: T.unsafe(nil), local_files_only: T.unsafe(nil), revision: T.unsafe(nil), device: T.unsafe(nil), dtype: T.unsafe(nil), model_file_name: T.unsafe(nil), session_options: T.unsafe(nil)); end
|
|
1183
|
-
end
|
|
1184
|
-
end
|
|
1185
|
-
|
|
1186
|
-
# source://informers//lib/informers/processors.rb#788
|
|
1187
|
-
class Informers::Processor
|
|
1188
|
-
# @return [Processor] a new instance of Processor
|
|
1189
|
-
#
|
|
1190
|
-
# source://informers//lib/informers/processors.rb#791
|
|
1191
|
-
def initialize(feature_extractor); end
|
|
1192
|
-
|
|
1193
|
-
# source://informers//lib/informers/processors.rb#795
|
|
1194
|
-
def call(input, *args); end
|
|
1195
|
-
|
|
1196
|
-
# Returns the value of attribute feature_extractor.
|
|
1197
|
-
#
|
|
1198
|
-
# source://informers//lib/informers/processors.rb#789
|
|
1199
|
-
def feature_extractor; end
|
|
1200
|
-
end
|
|
1201
|
-
|
|
1202
|
-
# source://informers//lib/informers/models.rb#1541
|
|
1203
|
-
class Informers::QuestionAnsweringModelOutput < ::Informers::ModelOutput
|
|
1204
|
-
# @return [QuestionAnsweringModelOutput] a new instance of QuestionAnsweringModelOutput
|
|
1205
|
-
#
|
|
1206
|
-
# source://informers//lib/informers/models.rb#1544
|
|
1207
|
-
def initialize(start_logits, end_logits); end
|
|
1208
|
-
|
|
1209
|
-
# Returns the value of attribute end_logits.
|
|
1210
|
-
#
|
|
1211
|
-
# source://informers//lib/informers/models.rb#1542
|
|
1212
|
-
def end_logits; end
|
|
1213
|
-
|
|
1214
|
-
# Returns the value of attribute start_logits.
|
|
1215
|
-
#
|
|
1216
|
-
# source://informers//lib/informers/models.rb#1542
|
|
1217
|
-
def start_logits; end
|
|
1218
|
-
end
|
|
1219
|
-
|
|
1220
|
-
# source://informers//lib/informers/pipelines.rb#228
|
|
1221
|
-
class Informers::QuestionAnsweringPipeline < ::Informers::Pipeline
|
|
1222
|
-
# source://informers//lib/informers/pipelines.rb#229
|
|
1223
|
-
def call(question, context, top_k: T.unsafe(nil)); end
|
|
1224
|
-
end
|
|
1225
|
-
|
|
1226
|
-
# source://informers//lib/informers/pipelines.rb#1053
|
|
1227
|
-
class Informers::RerankingPipeline < ::Informers::Pipeline
|
|
1228
|
-
# source://informers//lib/informers/pipelines.rb#1054
|
|
1229
|
-
def call(query, documents, return_documents: T.unsafe(nil), top_k: T.unsafe(nil)); end
|
|
1230
|
-
end
|
|
1231
|
-
|
|
1232
|
-
# source://informers//lib/informers/models.rb#999
|
|
1233
|
-
class Informers::RobertaForMaskedLM < ::Informers::RobertaPreTrainedModel
|
|
1234
|
-
# source://informers//lib/informers/models.rb#1000
|
|
1235
|
-
def call(model_inputs); end
|
|
1236
|
-
end
|
|
1237
|
-
|
|
1238
|
-
# source://informers//lib/informers/models.rb#1011
|
|
1239
|
-
class Informers::RobertaForSequenceClassification < ::Informers::RobertaPreTrainedModel
|
|
1240
|
-
# source://informers//lib/informers/models.rb#1012
|
|
1241
|
-
def call(model_inputs); end
|
|
1242
|
-
end
|
|
1243
|
-
|
|
1244
|
-
# source://informers//lib/informers/models.rb#1005
|
|
1245
|
-
class Informers::RobertaForTokenClassification < ::Informers::RobertaPreTrainedModel
|
|
1246
|
-
# source://informers//lib/informers/models.rb#1006
|
|
1247
|
-
def call(model_inputs); end
|
|
1248
|
-
end
|
|
1249
|
-
|
|
1250
|
-
# source://informers//lib/informers/models.rb#996
|
|
1251
|
-
class Informers::RobertaModel < ::Informers::RobertaPreTrainedModel; end
|
|
1252
|
-
|
|
1253
|
-
# source://informers//lib/informers/models.rb#993
|
|
1254
|
-
class Informers::RobertaPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1255
|
-
|
|
1256
|
-
# source://informers//lib/informers/tokenizers.rb#169
|
|
1257
|
-
class Informers::RobertaTokenizer < ::Informers::PreTrainedTokenizer; end
|
|
1258
|
-
|
|
1259
|
-
# source://informers//lib/informers/pipelines.rb#1083
|
|
1260
|
-
Informers::SUPPORTED_TASKS = T.let(T.unsafe(nil), Hash)
|
|
1261
|
-
|
|
1262
|
-
# source://informers//lib/informers/models.rb#1503
|
|
1263
|
-
class Informers::Seq2SeqLMOutput < ::Informers::ModelOutput
|
|
1264
|
-
# @return [Seq2SeqLMOutput] a new instance of Seq2SeqLMOutput
|
|
1265
|
-
#
|
|
1266
|
-
# source://informers//lib/informers/models.rb#1504
|
|
1267
|
-
def initialize(logits, past_key_values, encoder_outputs, decoder_attentions = T.unsafe(nil), cross_attentions = T.unsafe(nil)); end
|
|
1268
|
-
end
|
|
1269
|
-
|
|
1270
|
-
# source://informers//lib/informers/models.rb#1514
|
|
1271
|
-
class Informers::SequenceClassifierOutput < ::Informers::ModelOutput
|
|
1272
|
-
# @return [SequenceClassifierOutput] a new instance of SequenceClassifierOutput
|
|
1273
|
-
#
|
|
1274
|
-
# source://informers//lib/informers/models.rb#1517
|
|
1275
|
-
def initialize(logits); end
|
|
1276
|
-
|
|
1277
|
-
# Returns the value of attribute logits.
|
|
1278
|
-
#
|
|
1279
|
-
# source://informers//lib/informers/models.rb#1515
|
|
1280
|
-
def logits; end
|
|
1281
|
-
end
|
|
1282
|
-
|
|
1283
|
-
# source://informers//lib/informers/models.rb#1211
|
|
1284
|
-
class Informers::SpeechT5ForSpeechToText < ::Informers::SpeechT5PreTrainedModel; end
|
|
1285
|
-
|
|
1286
|
-
# source://informers//lib/informers/models.rb#1214
|
|
1287
|
-
class Informers::SpeechT5ForTextToSpeech < ::Informers::SpeechT5PreTrainedModel; end
|
|
1288
|
-
|
|
1289
|
-
# source://informers//lib/informers/models.rb#1208
|
|
1290
|
-
class Informers::SpeechT5Model < ::Informers::SpeechT5PreTrainedModel; end
|
|
1291
|
-
|
|
1292
|
-
# source://informers//lib/informers/models.rb#1205
|
|
1293
|
-
class Informers::SpeechT5PreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1294
|
-
|
|
1295
|
-
# source://informers//lib/informers/tokenizers.rb#247
|
|
1296
|
-
class Informers::SpeechT5Tokenizer < ::Informers::PreTrainedTokenizer; end
|
|
1297
|
-
|
|
1298
|
-
# source://informers//lib/informers/pipelines.rb#356
|
|
1299
|
-
class Informers::SummarizationPipeline < ::Informers::Text2TextGenerationPipeline; end
|
|
1300
|
-
|
|
1301
|
-
# source://informers//lib/informers/pipelines.rb#357
|
|
1302
|
-
Informers::SummarizationPipeline::KEY = T.let(T.unsafe(nil), Symbol)
|
|
1303
|
-
|
|
1304
|
-
# source://informers//lib/informers/models.rb#1102
|
|
1305
|
-
class Informers::Swin2SRForImageSuperResolution < ::Informers::Swin2SRPreTrainedModel; end
|
|
1306
|
-
|
|
1307
|
-
# source://informers//lib/informers/processors.rb#369
|
|
1308
|
-
class Informers::Swin2SRImageProcessor < ::Informers::ImageFeatureExtractor
|
|
1309
|
-
# source://informers//lib/informers/processors.rb#370
|
|
1310
|
-
def pad_image(pixel_data, img_dims, pad_size, **options); end
|
|
1311
|
-
end
|
|
1312
|
-
|
|
1313
|
-
# source://informers//lib/informers/models.rb#1099
|
|
1314
|
-
class Informers::Swin2SRModel < ::Informers::Swin2SRPreTrainedModel; end
|
|
1315
|
-
|
|
1316
|
-
# source://informers//lib/informers/models.rb#1096
|
|
1317
|
-
class Informers::Swin2SRPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1318
|
-
|
|
1319
|
-
# source://informers//lib/informers/models.rb#891
|
|
1320
|
-
class Informers::T5ForConditionalGeneration < ::Informers::T5PreTrainedModel
|
|
1321
|
-
# @return [T5ForConditionalGeneration] a new instance of T5ForConditionalGeneration
|
|
1322
|
-
#
|
|
1323
|
-
# source://informers//lib/informers/models.rb#892
|
|
1324
|
-
def initialize(config, session, decoder_merged_session, generation_config); end
|
|
1325
|
-
end
|
|
1326
|
-
|
|
1327
|
-
# source://informers//lib/informers/models.rb#888
|
|
1328
|
-
class Informers::T5Model < ::Informers::T5PreTrainedModel; end
|
|
1329
|
-
|
|
1330
|
-
# source://informers//lib/informers/models.rb#885
|
|
1331
|
-
class Informers::T5PreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1332
|
-
|
|
1333
|
-
# source://informers//lib/informers/tokenizers.rb#159
|
|
1334
|
-
class Informers::T5Tokenizer < ::Informers::PreTrainedTokenizer; end
|
|
1335
|
-
|
|
1336
|
-
# source://informers//lib/informers/pipelines.rb#1329
|
|
1337
|
-
Informers::TASK_ALIASES = T.let(T.unsafe(nil), Hash)
|
|
1338
|
-
|
|
1339
|
-
# source://informers//lib/informers/pipelines.rb#314
|
|
1340
|
-
class Informers::Text2TextGenerationPipeline < ::Informers::Pipeline
|
|
1341
|
-
# source://informers//lib/informers/pipelines.rb#317
|
|
1342
|
-
def call(texts, **generate_kwargs); end
|
|
1343
|
-
end
|
|
1344
|
-
|
|
1345
|
-
# source://informers//lib/informers/pipelines.rb#315
|
|
1346
|
-
Informers::Text2TextGenerationPipeline::KEY = T.let(T.unsafe(nil), Symbol)
|
|
1347
|
-
|
|
1348
|
-
# source://informers//lib/informers/pipelines.rb#46
|
|
1349
|
-
class Informers::TextClassificationPipeline < ::Informers::Pipeline
|
|
1350
|
-
# source://informers//lib/informers/pipelines.rb#47
|
|
1351
|
-
def call(texts, top_k: T.unsafe(nil)); end
|
|
1352
|
-
end
|
|
1353
|
-
|
|
1354
|
-
# source://informers//lib/informers/pipelines.rb#364
|
|
1355
|
-
class Informers::TextGenerationPipeline < ::Informers::Pipeline
|
|
1356
|
-
# source://informers//lib/informers/pipelines.rb#365
|
|
1357
|
-
def call(texts, **generate_kwargs); end
|
|
1358
|
-
end
|
|
1359
|
-
|
|
1360
|
-
# source://informers//lib/informers/pipelines.rb#801
|
|
1361
|
-
class Informers::TextToAudioPipeline < ::Informers::Pipeline
|
|
1362
|
-
# @return [TextToAudioPipeline] a new instance of TextToAudioPipeline
|
|
1363
|
-
#
|
|
1364
|
-
# source://informers//lib/informers/pipelines.rb#804
|
|
1365
|
-
def initialize(**options); end
|
|
1366
|
-
|
|
1367
|
-
# source://informers//lib/informers/pipelines.rb#811
|
|
1368
|
-
def call(text_inputs, speaker_embeddings: T.unsafe(nil)); end
|
|
1369
|
-
end
|
|
1370
|
-
|
|
1371
|
-
# source://informers//lib/informers/pipelines.rb#802
|
|
1372
|
-
Informers::TextToAudioPipeline::DEFAULT_VOCODER_ID = T.let(T.unsafe(nil), String)
|
|
1373
|
-
|
|
1374
|
-
# source://informers//lib/informers.rb#36
|
|
1375
|
-
class Informers::Todo < ::Informers::Error
|
|
1376
|
-
# source://informers//lib/informers.rb#37
|
|
1377
|
-
def message; end
|
|
1378
|
-
end
|
|
1379
|
-
|
|
1380
|
-
# source://informers//lib/informers/pipelines.rb#88
|
|
1381
|
-
class Informers::TokenClassificationPipeline < ::Informers::Pipeline
|
|
1382
|
-
# source://informers//lib/informers/pipelines.rb#89
|
|
1383
|
-
def call(texts, ignore_labels: T.unsafe(nil), aggregation_strategy: T.unsafe(nil)); end
|
|
1384
|
-
|
|
1385
|
-
# source://informers//lib/informers/pipelines.rb#176
|
|
1386
|
-
def get_tag(entity_name); end
|
|
1387
|
-
|
|
1388
|
-
# source://informers//lib/informers/pipelines.rb#192
|
|
1389
|
-
def group_entities(entities); end
|
|
1390
|
-
|
|
1391
|
-
# source://informers//lib/informers/pipelines.rb#160
|
|
1392
|
-
def group_sub_entities(entities); end
|
|
1393
|
-
end
|
|
1394
|
-
|
|
1395
|
-
# source://informers//lib/informers/models.rb#1523
|
|
1396
|
-
class Informers::TokenClassifierOutput < ::Informers::ModelOutput
|
|
1397
|
-
# @return [TokenClassifierOutput] a new instance of TokenClassifierOutput
|
|
1398
|
-
#
|
|
1399
|
-
# source://informers//lib/informers/models.rb#1526
|
|
1400
|
-
def initialize(logits); end
|
|
1401
|
-
|
|
1402
|
-
# Returns the value of attribute logits.
|
|
1403
|
-
#
|
|
1404
|
-
# source://informers//lib/informers/models.rb#1524
|
|
1405
|
-
def logits; end
|
|
1406
|
-
end
|
|
1407
|
-
|
|
1408
|
-
# source://informers//lib/informers/pipelines.rb#360
|
|
1409
|
-
class Informers::TranslationPipeline < ::Informers::Text2TextGenerationPipeline; end
|
|
1410
|
-
|
|
1411
|
-
# source://informers//lib/informers/pipelines.rb#361
|
|
1412
|
-
Informers::TranslationPipeline::KEY = T.let(T.unsafe(nil), Symbol)
|
|
1413
|
-
|
|
1414
|
-
# source://informers//lib/informers/utils/audio.rb#2
|
|
1415
|
-
module Informers::Utils
|
|
1416
|
-
class << self
|
|
1417
|
-
# source://informers//lib/informers/tokenizers.rb#216
|
|
1418
|
-
def _build_translation_inputs(slf, raw_inputs, tokenizer_options, generate_kwargs); end
|
|
1419
|
-
|
|
1420
|
-
# source://informers//lib/informers/utils/core.rb#7
|
|
1421
|
-
def calculate_reflect_offset(i, w); end
|
|
1422
|
-
|
|
1423
|
-
# source://informers//lib/informers/processors.rb#658
|
|
1424
|
-
def center_to_corners_format(v); end
|
|
1425
|
-
|
|
1426
|
-
# source://informers//lib/informers/utils/tensor.rb#37
|
|
1427
|
-
def dims(tensor); end
|
|
1428
|
-
|
|
1429
|
-
# source://informers//lib/informers/utils/core.rb#3
|
|
1430
|
-
def dispatch_callback(progress_callback, data); end
|
|
1431
|
-
|
|
1432
|
-
# from the Transformers Python library
|
|
1433
|
-
#
|
|
1434
|
-
# source://informers//lib/informers/utils/ffmpeg.rb#18
|
|
1435
|
-
def ffmpeg_read(data, sampling_rate); end
|
|
1436
|
-
|
|
1437
|
-
# source://informers//lib/informers/utils/math.rb#96
|
|
1438
|
-
def get_top_items(items, top_k = T.unsafe(nil)); end
|
|
1439
|
-
|
|
1440
|
-
# source://informers//lib/informers/utils/tensor.rb#46
|
|
1441
|
-
def interpolate(input, shape, mode = T.unsafe(nil), align_corners = T.unsafe(nil)); end
|
|
1442
|
-
|
|
1443
|
-
# source://informers//lib/informers/utils/math.rb#3
|
|
1444
|
-
def interpolate_data(input, in_shape, out_shape, mode = T.unsafe(nil), align_corners = T.unsafe(nil)); end
|
|
1445
|
-
|
|
1446
|
-
# source://informers//lib/informers/utils/math.rb#110
|
|
1447
|
-
def max(arr); end
|
|
1448
|
-
|
|
1449
|
-
# source://informers//lib/informers/utils/tensor.rb#3
|
|
1450
|
-
def mean_pooling(last_hidden_state, attention_mask); end
|
|
1451
|
-
|
|
1452
|
-
# source://informers//lib/informers/utils/tensor.rb#19
|
|
1453
|
-
def normalize(result); end
|
|
1454
|
-
|
|
1455
|
-
# source://informers//lib/informers/utils/tensor.rb#30
|
|
1456
|
-
def ones_like(tensor); end
|
|
1457
|
-
|
|
1458
|
-
# source://informers//lib/informers/processors.rb#668
|
|
1459
|
-
def post_process_object_detection(outputs, threshold = T.unsafe(nil), target_sizes = T.unsafe(nil), is_zero_shot = T.unsafe(nil)); end
|
|
1460
|
-
|
|
1461
|
-
# source://informers//lib/informers/utils/audio.rb#3
|
|
1462
|
-
def read_audio(input, sampling_rate); end
|
|
1463
|
-
|
|
1464
|
-
# source://informers//lib/informers/utils/tensor.rb#64
|
|
1465
|
-
def reshape(arr, dims); end
|
|
1466
|
-
|
|
1467
|
-
# source://informers//lib/informers/utils/math.rb#89
|
|
1468
|
-
def sigmoid(arr); end
|
|
1469
|
-
|
|
1470
|
-
# source://informers//lib/informers/utils/math.rb#73
|
|
1471
|
-
def softmax(arr); end
|
|
1472
|
-
|
|
1473
|
-
# source://informers//lib/informers/utils/tensor.rb#26
|
|
1474
|
-
def stack(tensors, dim = T.unsafe(nil)); end
|
|
1475
|
-
end
|
|
1476
|
-
end
|
|
1477
|
-
|
|
1478
|
-
# source://informers//lib/informers/utils/generation.rb#133
|
|
1479
|
-
class Informers::Utils::BeamSearchSampler < ::Informers::Utils::Sampler
|
|
1480
|
-
# source://informers//lib/informers/utils/generation.rb#134
|
|
1481
|
-
def sample(logits, index = T.unsafe(nil)); end
|
|
1482
|
-
end
|
|
1483
|
-
|
|
1484
|
-
# source://informers//lib/informers/utils/dtypes.rb#3
|
|
1485
|
-
Informers::Utils::DEFAULT_DTYPE_SUFFIX_MAPPING = T.let(T.unsafe(nil), Hash)
|
|
1486
|
-
|
|
1487
|
-
# source://informers//lib/informers/utils/generation.rb#268
|
|
1488
|
-
class Informers::Utils::ForcedBOSTokenLogitsProcessor < ::Informers::Utils::LogitsProcessor
|
|
1489
|
-
# @return [ForcedBOSTokenLogitsProcessor] a new instance of ForcedBOSTokenLogitsProcessor
|
|
1490
|
-
#
|
|
1491
|
-
# source://informers//lib/informers/utils/generation.rb#269
|
|
1492
|
-
def initialize(bos_token_id); end
|
|
1493
|
-
|
|
1494
|
-
# source://informers//lib/informers/utils/generation.rb#274
|
|
1495
|
-
def call(input_ids, logits); end
|
|
1496
|
-
end
|
|
1497
|
-
|
|
1498
|
-
# source://informers//lib/informers/utils/generation.rb#283
|
|
1499
|
-
class Informers::Utils::ForcedEOSTokenLogitsProcessor < ::Informers::Utils::LogitsProcessor
|
|
1500
|
-
# @return [ForcedEOSTokenLogitsProcessor] a new instance of ForcedEOSTokenLogitsProcessor
|
|
1501
|
-
#
|
|
1502
|
-
# source://informers//lib/informers/utils/generation.rb#284
|
|
1503
|
-
def initialize(max_length, forced_eos_token_id); end
|
|
1504
|
-
|
|
1505
|
-
# source://informers//lib/informers/utils/generation.rb#290
|
|
1506
|
-
def call(input_ids, logits); end
|
|
1507
|
-
end
|
|
1508
|
-
|
|
1509
|
-
# source://informers//lib/informers/utils/generation.rb#3
|
|
1510
|
-
class Informers::Utils::GenerationConfig
|
|
1511
|
-
# @return [GenerationConfig] a new instance of GenerationConfig
|
|
1512
|
-
#
|
|
1513
|
-
# source://informers//lib/informers/utils/generation.rb#4
|
|
1514
|
-
def initialize(kwargs); end
|
|
1515
|
-
|
|
1516
|
-
# source://informers//lib/informers/utils/generation.rb#66
|
|
1517
|
-
def [](key); end
|
|
1518
|
-
|
|
1519
|
-
# source://informers//lib/informers/utils/generation.rb#70
|
|
1520
|
-
def merge!(config); end
|
|
1521
|
-
end
|
|
1522
|
-
|
|
1523
|
-
# source://informers//lib/informers/utils/generation.rb#119
|
|
1524
|
-
class Informers::Utils::GreedySampler < ::Informers::Utils::Sampler
|
|
1525
|
-
# source://informers//lib/informers/utils/generation.rb#120
|
|
1526
|
-
def sample(logits, index = T.unsafe(nil)); end
|
|
1527
|
-
end
|
|
1528
|
-
|
|
1529
|
-
# source://informers//lib/informers/utils/hub.rb#3
|
|
1530
|
-
module Informers::Utils::Hub
|
|
1531
|
-
class << self
|
|
1532
|
-
# source://informers//lib/informers/utils/hub.rb#235
|
|
1533
|
-
def display_progress(filename, width, size, expected_size); end
|
|
1534
|
-
|
|
1535
|
-
# source://informers//lib/informers/utils/hub.rb#38
|
|
1536
|
-
def get_file(url_or_path, progress_callback = T.unsafe(nil), progress_info = T.unsafe(nil)); end
|
|
1537
|
-
|
|
1538
|
-
# source://informers//lib/informers/utils/hub.rb#118
|
|
1539
|
-
def get_model_file(path_or_repo_id, filename, fatal = T.unsafe(nil), **options); end
|
|
1540
|
-
|
|
1541
|
-
# source://informers//lib/informers/utils/hub.rb#212
|
|
1542
|
-
def get_model_json(model_path, file_name, fatal = T.unsafe(nil), **options); end
|
|
1543
|
-
|
|
1544
|
-
# source://informers//lib/informers/utils/hub.rb#23
|
|
1545
|
-
def is_valid_url(string, protocols = T.unsafe(nil), valid_hosts = T.unsafe(nil)); end
|
|
1546
|
-
|
|
1547
|
-
# source://informers//lib/informers/utils/hub.rb#222
|
|
1548
|
-
def path_join(*parts); end
|
|
1549
|
-
|
|
1550
|
-
# source://informers//lib/informers/utils/hub.rb#106
|
|
1551
|
-
def try_cache(cache, *names); end
|
|
1552
|
-
end
|
|
1553
|
-
end
|
|
1554
|
-
|
|
1555
|
-
# source://informers//lib/informers/utils/hub.rb#70
|
|
1556
|
-
class Informers::Utils::Hub::FileCache
|
|
1557
|
-
# @return [FileCache] a new instance of FileCache
|
|
1558
|
-
#
|
|
1559
|
-
# source://informers//lib/informers/utils/hub.rb#73
|
|
1560
|
-
def initialize(path); end
|
|
1561
|
-
|
|
1562
|
-
# source://informers//lib/informers/utils/hub.rb#77
|
|
1563
|
-
def match(request); end
|
|
1564
|
-
|
|
1565
|
-
# Returns the value of attribute path.
|
|
1566
|
-
#
|
|
1567
|
-
# source://informers//lib/informers/utils/hub.rb#71
|
|
1568
|
-
def path; end
|
|
1569
|
-
|
|
1570
|
-
# source://informers//lib/informers/utils/hub.rb#84
|
|
1571
|
-
def put(request, response); end
|
|
1572
|
-
|
|
1573
|
-
# source://informers//lib/informers/utils/hub.rb#101
|
|
1574
|
-
def resolve_path(request); end
|
|
1575
|
-
end
|
|
1576
|
-
|
|
1577
|
-
# source://informers//lib/informers/utils/hub.rb#4
|
|
1578
|
-
class Informers::Utils::Hub::FileResponse
|
|
1579
|
-
# @return [FileResponse] a new instance of FileResponse
|
|
1580
|
-
#
|
|
1581
|
-
# source://informers//lib/informers/utils/hub.rb#7
|
|
1582
|
-
def initialize(file_path); end
|
|
1583
|
-
|
|
1584
|
-
# Returns the value of attribute exists.
|
|
1585
|
-
#
|
|
1586
|
-
# source://informers//lib/informers/utils/hub.rb#5
|
|
1587
|
-
def exists; end
|
|
1588
|
-
|
|
1589
|
-
# source://informers//lib/informers/utils/hub.rb#18
|
|
1590
|
-
def read; end
|
|
1591
|
-
|
|
1592
|
-
# Returns the value of attribute status.
|
|
1593
|
-
#
|
|
1594
|
-
# source://informers//lib/informers/utils/hub.rb#5
|
|
1595
|
-
def status; end
|
|
1596
|
-
end
|
|
1597
|
-
|
|
1598
|
-
# source://informers//lib/informers/utils/generation.rb#188
|
|
1599
|
-
class Informers::Utils::LogitsProcessor; end
|
|
1600
|
-
|
|
1601
|
-
# source://informers//lib/informers/utils/generation.rb#158
|
|
1602
|
-
class Informers::Utils::LogitsProcessorList
|
|
1603
|
-
# @return [LogitsProcessorList] a new instance of LogitsProcessorList
|
|
1604
|
-
#
|
|
1605
|
-
# source://informers//lib/informers/utils/generation.rb#159
|
|
1606
|
-
def initialize; end
|
|
1607
|
-
|
|
1608
|
-
# source://informers//lib/informers/utils/generation.rb#172
|
|
1609
|
-
def call(input_ids, batched_logits); end
|
|
1610
|
-
|
|
1611
|
-
# source://informers//lib/informers/utils/generation.rb#168
|
|
1612
|
-
def concat(items); end
|
|
1613
|
-
|
|
1614
|
-
# source://informers//lib/informers/utils/generation.rb#164
|
|
1615
|
-
def push(item); end
|
|
1616
|
-
|
|
1617
|
-
# source://informers//lib/informers/utils/generation.rb#183
|
|
1618
|
-
def to_ary; end
|
|
1619
|
-
end
|
|
1620
|
-
|
|
1621
|
-
# source://informers//lib/informers/utils/generation.rb#250
|
|
1622
|
-
class Informers::Utils::MinLengthLogitsProcessor < ::Informers::Utils::LogitsProcessor
|
|
1623
|
-
# @return [MinLengthLogitsProcessor] a new instance of MinLengthLogitsProcessor
|
|
1624
|
-
#
|
|
1625
|
-
# source://informers//lib/informers/utils/generation.rb#251
|
|
1626
|
-
def initialize(min_length, eos_token_id); end
|
|
1627
|
-
|
|
1628
|
-
# source://informers//lib/informers/utils/generation.rb#257
|
|
1629
|
-
def call(input_ids, logits); end
|
|
1630
|
-
end
|
|
1631
|
-
|
|
1632
|
-
# source://informers//lib/informers/utils/generation.rb#191
|
|
1633
|
-
class Informers::Utils::NoRepeatNGramLogitsProcessor < ::Informers::Utils::LogitsProcessor
|
|
1634
|
-
# @return [NoRepeatNGramLogitsProcessor] a new instance of NoRepeatNGramLogitsProcessor
|
|
1635
|
-
#
|
|
1636
|
-
# source://informers//lib/informers/utils/generation.rb#192
|
|
1637
|
-
def initialize(no_repeat_ngram_size); end
|
|
1638
|
-
|
|
1639
|
-
# source://informers//lib/informers/utils/generation.rb#228
|
|
1640
|
-
def calc_banned_ngram_tokens(prev_input_ids); end
|
|
1641
|
-
|
|
1642
|
-
# source://informers//lib/informers/utils/generation.rb#240
|
|
1643
|
-
def call(input_ids, logits); end
|
|
1644
|
-
|
|
1645
|
-
# source://informers//lib/informers/utils/generation.rb#222
|
|
1646
|
-
def get_generated_ngrams(banned_ngrams, prev_input_ids); end
|
|
1647
|
-
|
|
1648
|
-
# source://informers//lib/informers/utils/generation.rb#197
|
|
1649
|
-
def get_ngrams(prev_input_ids); end
|
|
1650
|
-
end
|
|
1651
|
-
|
|
1652
|
-
# source://informers//lib/informers/utils/image.rb#3
|
|
1653
|
-
class Informers::Utils::RawImage
|
|
1654
|
-
# @return [RawImage] a new instance of RawImage
|
|
1655
|
-
#
|
|
1656
|
-
# source://informers//lib/informers/utils/image.rb#15
|
|
1657
|
-
def initialize(image); end
|
|
1658
|
-
|
|
1659
|
-
# source://informers//lib/informers/utils/image.rb#47
|
|
1660
|
-
def center_crop(crop_width, crop_height); end
|
|
1661
|
-
|
|
1662
|
-
# Returns the value of attribute channels.
|
|
1663
|
-
#
|
|
1664
|
-
# source://informers//lib/informers/utils/image.rb#13
|
|
1665
|
-
def channels; end
|
|
1666
|
-
|
|
1667
|
-
# source://informers//lib/informers/utils/image.rb#22
|
|
1668
|
-
def data; end
|
|
1669
|
-
|
|
1670
|
-
# Returns the value of attribute height.
|
|
1671
|
-
#
|
|
1672
|
-
# source://informers//lib/informers/utils/image.rb#13
|
|
1673
|
-
def height; end
|
|
1674
|
-
|
|
1675
|
-
# Returns the value of attribute image.
|
|
1676
|
-
#
|
|
1677
|
-
# source://informers//lib/informers/utils/image.rb#13
|
|
1678
|
-
def image; end
|
|
1679
|
-
|
|
1680
|
-
# source://informers//lib/informers/utils/image.rb#30
|
|
1681
|
-
def resize(width, height, resample: T.unsafe(nil)); end
|
|
1682
|
-
|
|
1683
|
-
# @raise [Todo]
|
|
1684
|
-
#
|
|
1685
|
-
# source://informers//lib/informers/utils/image.rb#74
|
|
1686
|
-
def rgb; end
|
|
1687
|
-
|
|
1688
|
-
# source://informers//lib/informers/utils/image.rb#82
|
|
1689
|
-
def save(path); end
|
|
1690
|
-
|
|
1691
|
-
# source://informers//lib/informers/utils/image.rb#26
|
|
1692
|
-
def size; end
|
|
1693
|
-
|
|
1694
|
-
# Returns the value of attribute width.
|
|
1695
|
-
#
|
|
1696
|
-
# source://informers//lib/informers/utils/image.rb#13
|
|
1697
|
-
def width; end
|
|
1698
|
-
|
|
1699
|
-
class << self
|
|
1700
|
-
# source://informers//lib/informers/utils/image.rb#100
|
|
1701
|
-
def from_array(input); end
|
|
1702
|
-
|
|
1703
|
-
# source://informers//lib/informers/utils/image.rb#86
|
|
1704
|
-
def read(input); end
|
|
1705
|
-
end
|
|
1706
|
-
end
|
|
1707
|
-
|
|
1708
|
-
# source://informers//lib/informers/utils/image.rb#4
|
|
1709
|
-
Informers::Utils::RawImage::RESAMPLING_MAPPING = T.let(T.unsafe(nil), Hash)
|
|
1710
|
-
|
|
1711
|
-
# source://informers//lib/informers/utils/generation.rb#75
|
|
1712
|
-
class Informers::Utils::Sampler
|
|
1713
|
-
# @return [Sampler] a new instance of Sampler
|
|
1714
|
-
#
|
|
1715
|
-
# source://informers//lib/informers/utils/generation.rb#76
|
|
1716
|
-
def initialize(generation_config); end
|
|
1717
|
-
|
|
1718
|
-
# source://informers//lib/informers/utils/generation.rb#81
|
|
1719
|
-
def call(logits, index = T.unsafe(nil)); end
|
|
1720
|
-
|
|
1721
|
-
# source://informers//lib/informers/utils/generation.rb#87
|
|
1722
|
-
def get_logits(logits, index); end
|
|
1723
|
-
|
|
1724
|
-
class << self
|
|
1725
|
-
# source://informers//lib/informers/utils/generation.rb#105
|
|
1726
|
-
def get_sampler(generation_config); end
|
|
1727
|
-
end
|
|
1728
|
-
end
|
|
1729
|
-
|
|
1730
|
-
# source://informers//lib/informers/version.rb#2
|
|
1731
|
-
Informers::VERSION = T.let(T.unsafe(nil), String)
|
|
1732
|
-
|
|
1733
|
-
# source://informers//lib/informers/processors.rb#360
|
|
1734
|
-
class Informers::ViTFeatureExtractor < ::Informers::ImageFeatureExtractor; end
|
|
1735
|
-
|
|
1736
|
-
# source://informers//lib/informers/models.rb#1035
|
|
1737
|
-
class Informers::ViTForImageClassification < ::Informers::ViTPreTrainedModel
|
|
1738
|
-
# source://informers//lib/informers/models.rb#1036
|
|
1739
|
-
def call(model_inputs); end
|
|
1740
|
-
end
|
|
1741
|
-
|
|
1742
|
-
# source://informers//lib/informers/models.rb#1032
|
|
1743
|
-
class Informers::ViTModel < ::Informers::ViTPreTrainedModel; end
|
|
1744
|
-
|
|
1745
|
-
# source://informers//lib/informers/models.rb#1029
|
|
1746
|
-
class Informers::ViTPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1747
|
-
|
|
1748
|
-
# source://informers//lib/informers/models.rb#1114
|
|
1749
|
-
class Informers::VisionEncoderDecoderModel < ::Informers::PreTrainedModel
|
|
1750
|
-
# @return [VisionEncoderDecoderModel] a new instance of VisionEncoderDecoderModel
|
|
1751
|
-
#
|
|
1752
|
-
# source://informers//lib/informers/models.rb#1117
|
|
1753
|
-
def initialize(config, session, decoder_merged_session, generation_config); end
|
|
1754
|
-
end
|
|
1755
|
-
|
|
1756
|
-
# source://informers//lib/informers/models.rb#1115
|
|
1757
|
-
Informers::VisionEncoderDecoderModel::MAIN_INPUT_NAME = T.let(T.unsafe(nil), Symbol)
|
|
1758
|
-
|
|
1759
|
-
# source://informers//lib/informers/models.rb#1199
|
|
1760
|
-
class Informers::VitsModel < ::Informers::VitsPreTrainedModel
|
|
1761
|
-
# source://informers//lib/informers/models.rb#1200
|
|
1762
|
-
def call(model_inputs); end
|
|
1763
|
-
end
|
|
1764
|
-
|
|
1765
|
-
# source://informers//lib/informers/models.rb#1196
|
|
1766
|
-
class Informers::VitsPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1767
|
-
|
|
1768
|
-
# source://informers//lib/informers/processors.rb#749
|
|
1769
|
-
class Informers::Wav2Vec2FeatureExtractor < ::Informers::FeatureExtractor
|
|
1770
|
-
# source://informers//lib/informers/processors.rb#750
|
|
1771
|
-
def _zero_mean_unit_var_norm(input_values); end
|
|
1772
|
-
|
|
1773
|
-
# source://informers//lib/informers/processors.rb#757
|
|
1774
|
-
def call(audio); end
|
|
1775
|
-
end
|
|
1776
|
-
|
|
1777
|
-
# source://informers//lib/informers/models.rb#987
|
|
1778
|
-
class Informers::Wav2Vec2ForSequenceClassification < ::Informers::Wav2Vec2PreTrainedModel
|
|
1779
|
-
# source://informers//lib/informers/models.rb#988
|
|
1780
|
-
def call(model_inputs); end
|
|
1781
|
-
end
|
|
1782
|
-
|
|
1783
|
-
# source://informers//lib/informers/models.rb#984
|
|
1784
|
-
class Informers::Wav2Vec2Model < ::Informers::Wav2Vec2PreTrainedModel; end
|
|
1785
|
-
|
|
1786
|
-
# source://informers//lib/informers/models.rb#981
|
|
1787
|
-
class Informers::Wav2Vec2PreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1788
|
-
|
|
1789
|
-
# source://informers//lib/informers/processors.rb#733
|
|
1790
|
-
class Informers::WhisperFeatureExtractor < ::Informers::FeatureExtractor
|
|
1791
|
-
# @raise [Todo]
|
|
1792
|
-
# @return [WhisperFeatureExtractor] a new instance of WhisperFeatureExtractor
|
|
1793
|
-
#
|
|
1794
|
-
# source://informers//lib/informers/processors.rb#734
|
|
1795
|
-
def initialize(config); end
|
|
1796
|
-
|
|
1797
|
-
# @raise [Todo]
|
|
1798
|
-
#
|
|
1799
|
-
# source://informers//lib/informers/processors.rb#740
|
|
1800
|
-
def _extract_fbank_features(waveform); end
|
|
1801
|
-
|
|
1802
|
-
# @raise [Todo]
|
|
1803
|
-
#
|
|
1804
|
-
# source://informers//lib/informers/processors.rb#744
|
|
1805
|
-
def call(audio); end
|
|
1806
|
-
end
|
|
1807
|
-
|
|
1808
|
-
# source://informers//lib/informers/models.rb#1173
|
|
1809
|
-
class Informers::WhisperForConditionalGeneration < ::Informers::WhisperPreTrainedModel
|
|
1810
|
-
# @return [WhisperForConditionalGeneration] a new instance of WhisperForConditionalGeneration
|
|
1811
|
-
#
|
|
1812
|
-
# source://informers//lib/informers/models.rb#1177
|
|
1813
|
-
def initialize(config, session, decoder_merged_session, generation_config); end
|
|
1814
|
-
|
|
1815
|
-
# @raise [Todo]
|
|
1816
|
-
#
|
|
1817
|
-
# source://informers//lib/informers/models.rb#1191
|
|
1818
|
-
def generate(inputs, generation_config = T.unsafe(nil), logits_processor = T.unsafe(nil)); end
|
|
1819
|
-
end
|
|
1820
|
-
|
|
1821
|
-
# source://informers//lib/informers/models.rb#1175
|
|
1822
|
-
Informers::WhisperForConditionalGeneration::MAIN_INPUT_NAME = T.let(T.unsafe(nil), Symbol)
|
|
1823
|
-
|
|
1824
|
-
# source://informers//lib/informers/models.rb#1174
|
|
1825
|
-
Informers::WhisperForConditionalGeneration::REQUIRES_ATTENTION_MASK = T.let(T.unsafe(nil), FalseClass)
|
|
1826
|
-
|
|
1827
|
-
# source://informers//lib/informers/models.rb#1170
|
|
1828
|
-
class Informers::WhisperModel < ::Informers::WhisperPreTrainedModel; end
|
|
1829
|
-
|
|
1830
|
-
# source://informers//lib/informers/models.rb#1167
|
|
1831
|
-
class Informers::WhisperPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1832
|
-
|
|
1833
|
-
# source://informers//lib/informers/models.rb#1023
|
|
1834
|
-
class Informers::XLMRobertaForSequenceClassification < ::Informers::XLMRobertaPreTrainedModel
|
|
1835
|
-
# source://informers//lib/informers/models.rb#1024
|
|
1836
|
-
def call(model_inputs); end
|
|
1837
|
-
end
|
|
1838
|
-
|
|
1839
|
-
# source://informers//lib/informers/models.rb#1020
|
|
1840
|
-
class Informers::XLMRobertaModel < ::Informers::XLMRobertaPreTrainedModel; end
|
|
1841
|
-
|
|
1842
|
-
# source://informers//lib/informers/models.rb#1017
|
|
1843
|
-
class Informers::XLMRobertaPreTrainedModel < ::Informers::PreTrainedModel; end
|
|
1844
|
-
|
|
1845
|
-
# source://informers//lib/informers/tokenizers.rb#172
|
|
1846
|
-
class Informers::XLMRobertaTokenizer < ::Informers::PreTrainedTokenizer; end
|
|
1847
|
-
|
|
1848
|
-
# source://informers//lib/informers/pipelines.rb#930
|
|
1849
|
-
class Informers::ZeroShotAudioClassificationPipeline < ::Informers::Pipeline
|
|
1850
|
-
# source://informers//lib/informers/pipelines.rb#931
|
|
1851
|
-
def call(audio, candidate_labels, hypothesis_template: T.unsafe(nil)); end
|
|
1852
|
-
end
|
|
1853
|
-
|
|
1854
|
-
# source://informers//lib/informers/pipelines.rb#420
|
|
1855
|
-
class Informers::ZeroShotClassificationPipeline < ::Informers::Pipeline
|
|
1856
|
-
# @return [ZeroShotClassificationPipeline] a new instance of ZeroShotClassificationPipeline
|
|
1857
|
-
#
|
|
1858
|
-
# source://informers//lib/informers/pipelines.rb#421
|
|
1859
|
-
def initialize(**options); end
|
|
1860
|
-
|
|
1861
|
-
# source://informers//lib/informers/pipelines.rb#439
|
|
1862
|
-
def call(texts, candidate_labels, hypothesis_template: T.unsafe(nil), multi_label: T.unsafe(nil)); end
|
|
1863
|
-
end
|
|
1864
|
-
|
|
1865
|
-
# source://informers//lib/informers/pipelines.rb#627
|
|
1866
|
-
class Informers::ZeroShotImageClassificationPipeline < ::Informers::Pipeline
|
|
1867
|
-
# source://informers//lib/informers/pipelines.rb#628
|
|
1868
|
-
def call(images, candidate_labels, hypothesis_template: T.unsafe(nil)); end
|
|
1869
|
-
end
|
|
1870
|
-
|
|
1871
|
-
# source://informers//lib/informers/pipelines.rb#706
|
|
1872
|
-
class Informers::ZeroShotObjectDetectionPipeline < ::Informers::Pipeline
|
|
1873
|
-
# source://informers//lib/informers/pipelines.rb#707
|
|
1874
|
-
def call(images, candidate_labels, threshold: T.unsafe(nil), top_k: T.unsafe(nil), percentage: T.unsafe(nil)); end
|
|
1875
|
-
end
|