---
description: Explore the ultralytics.models.sam.sam3.text_encoder_ve module for SAM3 text-encoder components used in vision-language pipelines.
keywords: Ultralytics, SAM3, SAM, text encoder, vision-language, transformer, tokenizer, Python
---

# Reference for `ultralytics/models/sam/sam3/text_encoder_ve.py`

!!! success "Improvements"

    This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/text_encoder_ve.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/text_encoder_ve.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing/) — thank you! 🙏

<br>

## ::: ultralytics.models.sam.sam3.text_encoder_ve.ResidualAttentionBlock

<br><br><hr><br>

## ::: ultralytics.models.sam.sam3.text_encoder_ve.Transformer

<br><br><hr><br>

## ::: ultralytics.models.sam.sam3.text_encoder_ve.TextTransformer

<br><br><hr><br>

## ::: ultralytics.models.sam.sam3.text_encoder_ve.VETextEncoder

<br><br><hr><br>

## ::: ultralytics.models.sam.sam3.text_encoder_ve.text_global_pool

<br><br>
