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.
525 |
# File 'sig/types.rbs', line 525
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.
522 523 524 |
# File 'sig/types.rbs', line 522 def acceleration @acceleration end |
#batch_size ⇒ Integer?
Returns the value of attribute batch_size.
518 519 520 |
# File 'sig/types.rbs', line 518 def batch_size @batch_size end |
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
521 522 523 |
# File 'sig/types.rbs', line 521 def cache_dir @cache_dir end |
#max_embed_duration_secs ⇒ Integer?
Returns the value of attribute max_embed_duration_secs.
523 524 525 |
# File 'sig/types.rbs', line 523 def @max_embed_duration_secs end |
#max_length ⇒ Integer?
Returns the value of attribute max_length.
519 520 521 |
# File 'sig/types.rbs', line 519 def max_length @max_length end |
#model ⇒ SparseEmbeddingModelType?
Returns the value of attribute model.
517 518 519 |
# File 'sig/types.rbs', line 517 def model @model end |
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
520 521 522 |
# File 'sig/types.rbs', line 520 def show_download_progress @show_download_progress end |
Class Method Details
.default ⇒ SparseEmbeddingConfig
526 |
# File 'sig/types.rbs', line 526
def self.default: () -> SparseEmbeddingConfig
|