Class: Xberg::SparseEmbeddingConfig
- Inherits:
-
Object
- Object
- Xberg::SparseEmbeddingConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#acceleration ⇒ AccelerationConfig?
Returns the value of attribute acceleration.
-
#batch_size ⇒ Integer?
Returns the value of attribute batch_size.
-
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
-
#max_embed_duration_secs ⇒ Integer?
Returns the value of attribute max_embed_duration_secs.
-
#max_length ⇒ Integer?
Returns the value of attribute max_length.
-
#model ⇒ SparseEmbeddingModelType?
Returns the value of attribute model.
-
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ SparseEmbeddingConfig
constructor
A new instance of SparseEmbeddingConfig.
Constructor Details
#initialize ⇒ SparseEmbeddingConfig
Returns a new instance of SparseEmbeddingConfig.
549 |
# File 'sig/types.rbs', line 549
def initialize: (?model: SparseEmbeddingModelType, ?batch_size: Integer, ?max_length: Integer, ?show_download_progress: bool, ?cache_dir: String, ?acceleration: AccelerationConfig, ?max_embed_duration_secs: Integer) -> void
|
Instance Attribute Details
#acceleration ⇒ AccelerationConfig?
Returns the value of attribute acceleration.
546 547 548 |
# File 'sig/types.rbs', line 546 def acceleration @acceleration end |
#batch_size ⇒ Integer?
Returns the value of attribute batch_size.
542 543 544 |
# File 'sig/types.rbs', line 542 def batch_size @batch_size end |
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
545 546 547 |
# File 'sig/types.rbs', line 545 def cache_dir @cache_dir end |
#max_embed_duration_secs ⇒ Integer?
Returns the value of attribute max_embed_duration_secs.
547 548 549 |
# File 'sig/types.rbs', line 547 def @max_embed_duration_secs end |
#max_length ⇒ Integer?
Returns the value of attribute max_length.
543 544 545 |
# File 'sig/types.rbs', line 543 def max_length @max_length end |
#model ⇒ SparseEmbeddingModelType?
Returns the value of attribute model.
541 542 543 |
# File 'sig/types.rbs', line 541 def model @model end |
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
544 545 546 |
# File 'sig/types.rbs', line 544 def show_download_progress @show_download_progress end |
Class Method Details
.default ⇒ SparseEmbeddingConfig
550 |
# File 'sig/types.rbs', line 550
def self.default: () -> SparseEmbeddingConfig
|