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