opensi·si

For large models where GPU memory is a concern, the feature extraction approach may be preferred. Both approaches produce comparable results.

Multimodal Training

Transformer (Any-to-Any) + LogitScore

  • training_doodles_any_to_any.py:

Transformer (Feature Extraction) + Pooling + Dense

  • training_doodles_feature_extraction.py:

Comparing the Two Approaches

Any-to-Any + LogitScore Feature Extraction + Pooling + Dense
LM head Loaded (full vocabulary logits) Not loaded (hidden states only)
Memory usage Higher Lower
Score mechanism Log-odds from generative output Learned Dense projection
Initialization Uses pretrained LM head directly Approximates LM head via embedding init

For large models where GPU memory is a concern, the feature extraction approach may be preferred. Both approaches produce comparable results.

Other Module Chains

References

Source and license

Source: Sentence Transformers documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.