# Auto-классы

Во многих случаях архитектуру можно определить по имени или пути предобученной модели, переданной в метод `from_pretrained()`. Создание экземпляров [AutoConfig](/docs/transformers/main/ru/model_doc/auto#transformers.AutoConfig), [AutoModel](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel) или [AutoTokenizer](/docs/transformers/main/ru/model_doc/auto#transformers.AutoTokenizer) автоматически вызывает соответствующий класс архитектуры. Например:

```python
model = AutoModel.from_pretrained("google-bert/bert-base-cased", device_map="auto")
```

Это создаёт экземпляр модели [BertModel](/docs/transformers/main/ru/model_doc/bert#transformers.BertModel).

Для каждой задачи существует соответствующий класс `AutoModel`.

## Расширение классов Auto

Каждый auto-класс предоставляет метод, позволяющий расширить его с помощью пользовательских классов. Например, если вы определяете пользовательский класс модели `NewModel`, убедитесь, что вы также определили соответствующий `NewModelConfig`. Затем вы можете зарегистрировать их в auto-классах, как показано ниже:

```python
from transformers import AutoConfig, AutoModel

AutoConfig.register("new-model", NewModelConfig)
AutoModel.register(NewModelConfig, NewModel)
```

Затем вы можете использовать классы auto в обычном режиме.

Если ваш `NewModelConfig` является подклассом [PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), убедитесь, что его атрибут `model_type` установлен в то же значение, которое вы используете при регистрации конфигурации (здесь `"new-model"`).

Аналогично, если ваш `NewModel` является подклассом [PreTrainedModel](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel), убедитесь, что его атрибут `config_class` установлен в тот же класс, который вы используете при регистрации модели (здесь `NewModelConfig`).

## AutoConfig[[transformers.AutoConfig]]

#### transformers.AutoConfig[[transformers.AutoConfig]]

```python
transformers.AutoConfig()
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/configuration_auto.py#L286)

Это универсальный класс конфигурации, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoConfig.from_pretrained) будет инстанцирован как один из классов конфигурации библиотеки.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_pretrained[[transformers.AutoConfig.from_pretrained]]

```python
from_pretrained(pretrained_model_name_or_path: str | os.PathLike[str], **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/configuration_auto.py#L309)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из следующих:  - строка, *model id* конфигурации предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему файл конфигурации, сохранённый с помощью метода [save_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.save_pretrained), или метод [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`. - путь к сохранённому JSON-*файлу* конфигурации, например, `./my_model_directory/configuration.json`.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)скачивать веса модели и файлы конфигурации, заменяя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

return_unused_kwargs (`bool`, *необязательный*, по умолчанию `False`) : Если `False`, функция возвращает только итоговый объект конфигурации. Если `True`, функция возвращает `Tuple(config, unused_kwargs)`, где *unused_kwargs* — это словарь, состоящий из пар ключ/значение, ключи которых не являются атрибутами конфигурации, то есть та часть `kwargs`, которая не была использована для обновления `config` и в остальном игнорируется.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

kwargs(дополнительные именованные аргументы, *необязательный*) : Значения в kwargs для ключей, являющихся атрибутами конфигурации, используются для переопределения загруженных значений. Поведение в отношении пар ключ/значение, ключи которых *не* являются атрибутами конфигурации, контролируется именованным параметром `return_unused_kwargs`.

Создайте экземпляр одного из классов конфигурации библиотеки на основе конфигурации предобученной модели.

Класс конфигурации, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации, который загружается, или, если его нет, с использованием сопоставления по шаблону для `pretrained_model_name_or_path`:

- **EvollaModel** -- [EvollaConfig](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaConfig) (модель EvollaConfig)
- **afmoe** -- [AfmoeConfig](/docs/transformers/main/ru/model_doc/afmoe#transformers.AfmoeConfig) (модель AfmoeConfig)
- **aimv2** -- [Aimv2Config](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2Config) (модель Aimv2Config)
- **aimv2_text_model** -- [Aimv2TextConfig](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2TextConfig) (модель Aimv2TextConfig)
- **aimv2_vision_model** -- [Aimv2VisionConfig](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2VisionConfig) (модель Aimv2VisionConfig)
- **albert** -- [AlbertConfig](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertConfig) (модель AlbertConfig)
- **align** -- [AlignConfig](/docs/transformers/main/ru/model_doc/align#transformers.AlignConfig) (модель AlignConfig)
- **align_text_model** -- [AlignTextConfig](/docs/transformers/main/ru/model_doc/align#transformers.AlignTextConfig) (модель AlignTextConfig)
- **align_vision_model** -- [AlignVisionConfig](/docs/transformers/main/ru/model_doc/align#transformers.AlignVisionConfig) (модель AlignVisionConfig)
- **altclip** -- [AltCLIPConfig](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPConfig) (модель AltCLIPConfig)
- **altclip_text_model** -- [AltCLIPTextConfig](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPTextConfig) (модель AltCLIPTextConfig)
- **altclip_vision_model** -- [AltCLIPVisionConfig](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPVisionConfig) (модель AltCLIPVisionConfig)
- **apertus** -- [ApertusConfig](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusConfig) (модель ApertusConfig)
- **arcee** -- [ArceeConfig](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeConfig) (модель ArceeConfig)
- **aria** -- [AriaConfig](/docs/transformers/main/ru/model_doc/aria#transformers.AriaConfig) (модель AriaConfig)
- **aria_text** -- [AriaTextConfig](/docs/transformers/main/ru/model_doc/aria#transformers.AriaTextConfig) (модель AriaTextConfig)
- **audio-spectrogram-transformer** -- [ASTConfig](/docs/transformers/main/ru/model_doc/audio-spectrogram-transformer#transformers.ASTConfig) (модель ASTConfig)
- **audioflamingo3** -- [AudioFlamingo3Config](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Config) (модель AudioFlamingo3Config)
- **audioflamingo3_encoder** -- [AudioFlamingo3EncoderConfig](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3EncoderConfig) (модель AudioFlamingo3EncoderConfig)
- **autoformer** -- [AutoformerConfig](/docs/transformers/main/ru/model_doc/autoformer#transformers.AutoformerConfig) (модель AutoformerConfig)
- **axk1** -- [AXK1Config](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1Config) (модель AXK1Config)
- **axk2** -- [AXK2Config](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2Config) (модель AXK2Config)
- **aya_vision** -- [AyaVisionConfig](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionConfig) (модель AyaVisionConfig)
- **bailing_hybrid** -- [BailingHybridConfig](/docs/transformers/main/ru/model_doc/bailing_hybrid#transformers.BailingHybridConfig) (модель BailingHybridConfig)
- **bamba** -- [BambaConfig](/docs/transformers/main/ru/model_doc/bamba#transformers.BambaConfig) (модель BambaConfig)
- **bark** -- [BarkConfig](/docs/transformers/main/ru/model_doc/bark#transformers.BarkConfig) (модель BarkConfig)
- **bart** -- [BartConfig](/docs/transformers/main/ru/model_doc/bart#transformers.BartConfig) (модель BartConfig)
- **beam** -- [BeamConfig](/docs/transformers/main/ru/model_doc/beam#transformers.BeamConfig) (модель BeamConfig)
- **beit** -- [BeitConfig](/docs/transformers/main/ru/model_doc/beit#transformers.BeitConfig) (модель BeitConfig)
- **bert** -- [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig) (модель BertConfig)
- **bert-generation** -- [BertGenerationConfig](/docs/transformers/main/ru/model_doc/bert-generation#transformers.BertGenerationConfig) (модель BertGenerationConfig)
- **big_bird** -- [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig) (модель BigBirdConfig)
- **bigbird_pegasus** -- [BigBirdPegasusConfig](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusConfig) (модель BigBirdPegasusConfig)
- **biogpt** -- [BioGptConfig](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptConfig) (модель BioGptConfig)
- **bit** -- [BitConfig](/docs/transformers/main/ru/model_doc/bit#transformers.BitConfig) (модель BitConfig)
- **bitnet** -- [BitNetConfig](/docs/transformers/main/ru/model_doc/bitnet#transformers.BitNetConfig) (модель BitNetConfig)
- **blenderbot** -- [BlenderbotConfig](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotConfig) (модель BlenderbotConfig)
- **blenderbot-small** -- [BlenderbotSmallConfig](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallConfig) (модель BlenderbotSmallConfig)
- **blip** -- [BlipConfig](/docs/transformers/main/ru/model_doc/blip#transformers.BlipConfig) (модель BlipConfig)
- **blip-2** -- [Blip2Config](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Config) (модель Blip2Config)
- **blip_2_qformer** -- [Blip2QFormerConfig](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2QFormerConfig) (модель Blip2QFormerConfig)
- **blip_2_vision_model** -- [Blip2VisionConfig](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2VisionConfig) (модель Blip2VisionConfig)
- **blip_text_model** -- [BlipTextConfig](/docs/transformers/main/ru/model_doc/blip#transformers.BlipTextConfig) (модель BlipTextConfig)
- **blip_vision_model** -- [BlipVisionConfig](/docs/transformers/main/ru/model_doc/blip#transformers.BlipVisionConfig) (модель BlipVisionConfig)
- **bloom** -- [BloomConfig](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomConfig) (модель BloomConfig)
- **blt** -- [BltConfig](/docs/transformers/main/ru/model_doc/blt#transformers.BltConfig) (модель BltConfig)
- **blt_global_transformer** -- `BltGlobalTransformerConfig` (модель BltGlobalTransformerConfig)
- **blt_local_decoder** -- `BltLocalDecoderConfig` (модель BltLocalDecoderConfig)
- **blt_local_encoder** -- `BltLocalEncoderConfig` (модель BltLocalEncoderConfig)
- **blt_patcher** -- `BltPatcherConfig` (модель BltPatcherConfig)
- **bridgetower** -- [BridgeTowerConfig](/docs/transformers/main/ru/model_doc/bridgetower#transformers.BridgeTowerConfig) (модель BridgeTowerConfig)
- **bridgetower_text_model** -- [BridgeTowerTextConfig](/docs/transformers/main/ru/model_doc/bridgetower#transformers.BridgeTowerTextConfig) (модель BridgeTowerTextConfig)
- **bridgetower_vision_model** -- [BridgeTowerVisionConfig](/docs/transformers/main/ru/model_doc/bridgetower#transformers.BridgeTowerVisionConfig) (модель BridgeTowerVisionConfig)
- **bros** -- [BrosConfig](/docs/transformers/main/ru/model_doc/bros#transformers.BrosConfig) (модель BrosConfig)
- **camembert** -- [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig) (модель CamembertConfig)
- **canary** -- [CanaryConfig](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryConfig) (модель CanaryConfig)
- **canary_decoder** -- [CanaryDecoderConfig](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryDecoderConfig) (модель CanaryDecoderConfig)
- **canine** -- [CanineConfig](/docs/transformers/main/ru/model_doc/canine#transformers.CanineConfig) (модель CanineConfig)
- **chameleon** -- [ChameleonConfig](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonConfig) (модель ChameleonConfig)
- **chameleon_vqgan** -- [ChameleonVQVAEConfig](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonVQVAEConfig) (модель ChameleonVQVAEConfig)
- **chinese_clip** -- [ChineseCLIPConfig](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPConfig) (модель ChineseCLIPConfig)
- **chinese_clip_text_model** -- [ChineseCLIPTextConfig](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPTextConfig) (модель ChineseCLIPTextConfig)
- **chinese_clip_vision_model** -- [ChineseCLIPVisionConfig](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPVisionConfig) (модель ChineseCLIPVisionConfig)
- **chmv2** -- [CHMv2Config](/docs/transformers/main/ru/model_doc/chmv2#transformers.CHMv2Config) (модель CHMv2Config)
- **clap** -- [ClapConfig](/docs/transformers/main/ru/model_doc/clap#transformers.ClapConfig) (модель ClapConfig)
- **clap_audio_model** -- [ClapAudioConfig](/docs/transformers/main/ru/model_doc/clap#transformers.ClapAudioConfig) (модель ClapAudioConfig)
- **clap_text_model** -- [ClapTextConfig](/docs/transformers/main/ru/model_doc/clap#transformers.ClapTextConfig) (модель ClapTextConfig)
- **clip** -- [CLIPConfig](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPConfig) (модель CLIPConfig)
- **clip_text_model** -- [CLIPTextConfig](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTextConfig) (модель CLIPTextConfig)
- **clip_vision_model** -- [CLIPVisionConfig](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPVisionConfig) (модель CLIPVisionConfig)
- **clipseg** -- [CLIPSegConfig](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegConfig) (модель CLIPSegConfig)
- **clipseg_text_model** -- [CLIPSegTextConfig](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegTextConfig) (модель CLIPSegTextConfig)
- **clipseg_vision_model** -- [CLIPSegVisionConfig](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegVisionConfig) (модель CLIPSegVisionConfig)
- **clvp** -- [ClvpConfig](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpConfig) (модель ClvpConfig)
- **clvp_decoder** -- [ClvpDecoderConfig](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpDecoderConfig) (модель ClvpDecoderConfig)
- **clvp_encoder** -- [ClvpEncoderConfig](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpEncoderConfig) (модель ClvpEncoderConfig)
- **codegen** -- [CodeGenConfig](/docs/transformers/main/ru/model_doc/codegen#transformers.CodeGenConfig) (модель CodeGenConfig)
- **cohere** -- [CohereConfig](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereConfig) (модель CohereConfig)
- **cohere2** -- [Cohere2Config](/docs/transformers/main/ru/model_doc/cohere2#transformers.Cohere2Config) (модель Cohere2Config)
- **cohere2_moe** -- [Cohere2MoeConfig](/docs/transformers/main/ru/model_doc/cohere2_moe#transformers.Cohere2MoeConfig) (модель Cohere2MoeConfig)
- **cohere2_vision** -- [Cohere2VisionConfig](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionConfig) (модель Cohere2VisionConfig)
- **cohere_asr** -- [CohereAsrConfig](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrConfig) (модель CohereAsrConfig)
- **cohere_compass** -- [CohereCompassConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassConfig) (модель CohereCompassConfig)
- **cohere_compass_text** -- [CohereCompassTextConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassTextConfig) (модель CohereCompassTextConfig)
- **cohere_compass_vision** -- [CohereCompassVisionConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassVisionConfig) (модель CohereCompassVisionConfig)
- **colmodernvbert** -- [ColModernVBertConfig](/docs/transformers/main/ru/model_doc/colmodernvbert#transformers.ColModernVBertConfig) (модель ColModernVBertConfig)
- **colpali** -- [ColPaliConfig](/docs/transformers/main/ru/model_doc/colpali#transformers.ColPaliConfig) (модель ColPaliConfig)
- **colqwen2** -- [ColQwen2Config](/docs/transformers/main/ru/model_doc/colqwen2#transformers.ColQwen2Config) (модель ColQwen2Config)
- **conditional_detr** -- [ConditionalDetrConfig](/docs/transformers/main/ru/model_doc/conditional_detr#transformers.ConditionalDetrConfig) (модель ConditionalDetrConfig)
- **convbert** -- [ConvBertConfig](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertConfig) (модель ConvBertConfig)
- **convnext** -- [ConvNextConfig](/docs/transformers/main/ru/model_doc/convnext#transformers.ConvNextConfig) (модель ConvNextConfig)
- **convnextv2** -- [ConvNextV2Config](/docs/transformers/main/ru/model_doc/convnextv2#transformers.ConvNextV2Config) (модель ConvNextV2Config)
- **cosmos3_edge** -- [Cosmos3EdgeConfig](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeConfig) (модель Cosmos3EdgeConfig)
- **cosmos3_edge_text** -- [Cosmos3EdgeTextConfig](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeTextConfig) (модель Cosmos3EdgeTextConfig)
- **cosmos3_edge_vision** -- [Cosmos3EdgeVisionConfig](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeVisionConfig) (модель Cosmos3EdgeVisionConfig)
- **cosmos3_omni** -- [Cosmos3OmniConfig](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniConfig) (модель Cosmos3OmniConfig)
- **cpmant** -- [CpmAntConfig](/docs/transformers/main/ru/model_doc/cpmant#transformers.CpmAntConfig) (модель CpmAntConfig)
- **csm** -- [CsmConfig](/docs/transformers/main/ru/model_doc/csm#transformers.CsmConfig) (модель CsmConfig)
- **csm_depth_decoder_model** -- [CsmDepthDecoderConfig](/docs/transformers/main/ru/model_doc/csm#transformers.CsmDepthDecoderConfig) (модель CsmDepthDecoderConfig)
- **ctrl** -- [CTRLConfig](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLConfig) (модель CTRLConfig)
- **cvt** -- [CvtConfig](/docs/transformers/main/ru/model_doc/cvt#transformers.CvtConfig) (модель CvtConfig)
- **cwm** -- [CwmConfig](/docs/transformers/main/ru/model_doc/cwm#transformers.CwmConfig) (модель CwmConfig)
- **d_fine** -- [DFineConfig](/docs/transformers/main/ru/model_doc/d_fine#transformers.DFineConfig) (модель DFineConfig)
- **dab-detr** -- [DabDetrConfig](/docs/transformers/main/ru/model_doc/dab-detr#transformers.DabDetrConfig) (модель DabDetrConfig)
- **dac** -- [DacConfig](/docs/transformers/main/ru/model_doc/dac#transformers.DacConfig) (модель DacConfig)
- **data2vec-audio** -- [Data2VecAudioConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioConfig) (модель Data2VecAudioConfig)
- **data2vec-text** -- [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig) (модель Data2VecTextConfig)
- **data2vec-vision** -- [Data2VecVisionConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionConfig) (модель Data2VecVisionConfig)
- **dbrx** -- [DbrxConfig](/docs/transformers/main/ru/model_doc/dbrx#transformers.DbrxConfig) (модель DbrxConfig)
- **deberta** -- [DebertaConfig](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaConfig) (модель DebertaConfig)
- **deberta-v2** -- [DebertaV2Config](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Config) (модель DebertaV2Config)
- **decision_transformer** -- [DecisionTransformerConfig](/docs/transformers/main/ru/model_doc/decision_transformer#transformers.DecisionTransformerConfig) (модель DecisionTransformerConfig)
- **deepseek_ocr2** -- [DeepseekOcr2Config](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2Config) (модель DeepseekOcr2Config)
- **deepseek_ocr2_encoder** -- [DeepseekOcr2VisionEncoderConfig](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2VisionEncoderConfig) (модель DeepseekOcr2VisionEncoderConfig)
- **deepseek_ocr2_sam_vision_model** -- [DeepseekOcr2SamVisionConfig](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2SamVisionConfig) (модель DeepseekOcr2SamVisionConfig)
- **deepseek_ocr2_text** -- [DeepseekOcr2TextConfig](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2TextConfig) (модель DeepseekOcr2TextConfig)
- **deepseek_ocr2_vision** -- [DeepseekOcr2VisionConfig](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2VisionConfig) (модель DeepseekOcr2VisionConfig)
- **deepseek_v2** -- [DeepseekV2Config](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2Config) (модель DeepseekV2Config)
- **deepseek_v3** -- [DeepseekV3Config](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3Config) (модель DeepseekV3Config)
- **deepseek_v32** -- [DeepseekV32Config](/docs/transformers/main/ru/model_doc/deepseek_v32#transformers.DeepseekV32Config) (модель DeepseekV32Config)
- **deepseek_v4** -- [DeepseekV4Config](/docs/transformers/main/ru/model_doc/deepseek_v4#transformers.DeepseekV4Config) (модель DeepseekV4Config)
- **deepseek_vl** -- [DeepseekVLConfig](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLConfig) (модель DeepseekVLConfig)
- **deepseek_vl_hybrid** -- [DeepseekVLHybridConfig](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridConfig) (модель DeepseekVLHybridConfig)
- **deformable_detr** -- [DeformableDetrConfig](/docs/transformers/main/ru/model_doc/deformable_detr#transformers.DeformableDetrConfig) (модель DeformableDetrConfig)
- **deimv2** -- [Deimv2Config](/docs/transformers/main/ru/model_doc/deimv2#transformers.Deimv2Config) (модель Deimv2Config)
- **deit** -- [DeiTConfig](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTConfig) (модель DeiTConfig)
- **depth_anything** -- [DepthAnythingConfig](/docs/transformers/main/ru/model_doc/depth_anything#transformers.DepthAnythingConfig) (модель DepthAnythingConfig)
- **depth_pro** -- [DepthProConfig](/docs/transformers/main/ru/model_doc/depth_pro#transformers.DepthProConfig) (модель DepthProConfig)
- **detr** -- [DetrConfig](/docs/transformers/main/ru/model_doc/detr#transformers.DetrConfig) (модель DetrConfig)
- **dia** -- [DiaConfig](/docs/transformers/main/ru/model_doc/dia#transformers.DiaConfig) (модель DiaConfig)
- **dia_decoder** -- [DiaDecoderConfig](/docs/transformers/main/ru/model_doc/dia#transformers.DiaDecoderConfig) (модель DiaDecoderConfig)
- **dia_encoder** -- [DiaEncoderConfig](/docs/transformers/main/ru/model_doc/dia#transformers.DiaEncoderConfig) (модель DiaEncoderConfig)
- **diffllama** -- [DiffLlamaConfig](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaConfig) (модель DiffLlamaConfig)
- **diffusion_gemma** -- [DiffusionGemmaConfig](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaConfig) (модель DiffusionGemmaConfig)
- **diffusion_gemma_text** -- [DiffusionGemmaTextConfig](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaTextConfig) (модель DiffusionGemmaTextConfig)
- **dinat** -- [DinatConfig](/docs/transformers/main/ru/model_doc/dinat#transformers.DinatConfig) (модель DinatConfig)
- **dinov2** -- [Dinov2Config](/docs/transformers/main/ru/model_doc/dinov2#transformers.Dinov2Config) (модель Dinov2Config)
- **dinov2_with_registers** -- [Dinov2WithRegistersConfig](/docs/transformers/main/ru/model_doc/dinov2_with_registers#transformers.Dinov2WithRegistersConfig) (модель Dinov2WithRegistersConfig)
- **dinov3_convnext** -- [DINOv3ConvNextConfig](/docs/transformers/main/ru/model_doc/dinov3#transformers.DINOv3ConvNextConfig) (модель DINOv3ConvNextConfig)
- **dinov3_vit** -- [DINOv3ViTConfig](/docs/transformers/main/ru/model_doc/dinov3#transformers.DINOv3ViTConfig) (модель DINOv3ViTConfig)
- **distilbert** -- [DistilBertConfig](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertConfig) (модель DistilBertConfig)
- **doge** -- [DogeConfig](/docs/transformers/main/ru/model_doc/doge#transformers.DogeConfig) (модель DogeConfig)
- **donut-swin** -- [DonutSwinConfig](/docs/transformers/main/ru/model_doc/donut#transformers.DonutSwinConfig) (модель DonutSwinConfig)
- **dots1** -- [Dots1Config](/docs/transformers/main/ru/model_doc/dots1#transformers.Dots1Config) (модель Dots1Config)
- **dpr** -- [DPRConfig](/docs/transformers/main/ru/model_doc/dpr#transformers.DPRConfig) (модель DPRConfig)
- **dpt** -- [DPTConfig](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTConfig) (модель DPTConfig)
- **edgetam** -- [EdgeTamConfig](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamConfig) (модель EdgeTamConfig)
- **edgetam_mask_decoder** -- [EdgeTamMaskDecoderConfig](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamMaskDecoderConfig) (модель EdgeTamMaskDecoderConfig)
- **edgetam_prompt_encoder** -- [EdgeTamPromptEncoderConfig](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamPromptEncoderConfig) (модель EdgeTamPromptEncoderConfig)
- **edgetam_video** -- [EdgeTamVideoConfig](/docs/transformers/main/ru/model_doc/edgetam_video#transformers.EdgeTamVideoConfig) (модель EdgeTamVideoConfig)
- **edgetam_video_mask_decoder** -- [EdgeTamVideoMaskDecoderConfig](/docs/transformers/main/ru/model_doc/edgetam_video#transformers.EdgeTamVideoMaskDecoderConfig) (модель EdgeTamVideoMaskDecoderConfig)
- **edgetam_video_prompt_encoder** -- [EdgeTamVideoPromptEncoderConfig](/docs/transformers/main/ru/model_doc/edgetam_video#transformers.EdgeTamVideoPromptEncoderConfig) (модель EdgeTamVideoPromptEncoderConfig)
- **edgetam_vision_model** -- [EdgeTamVisionConfig](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamVisionConfig) (модель EdgeTamVisionConfig)
- **efficientloftr** -- [EfficientLoFTRConfig](/docs/transformers/main/ru/model_doc/efficientloftr#transformers.EfficientLoFTRConfig) (модель EfficientLoFTRConfig)
- **efficientnet** -- [EfficientNetConfig](/docs/transformers/main/ru/model_doc/efficientnet#transformers.EfficientNetConfig) (модель EfficientNetConfig)
- **electra** -- [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig) (модель ElectraConfig)
- **embedding_gemma2** -- [EmbeddingGemma2Config](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2Config) (модель EmbeddingGemma2Config)
- **embedding_gemma2_text** -- [EmbeddingGemma2TextConfig](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2TextConfig) (модель EmbeddingGemma2TextConfig)
- **emu3** -- [Emu3Config](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3Config) (модель Emu3Config)
- **emu3_text_model** -- [Emu3TextConfig](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3TextConfig) (модель Emu3TextConfig)
- **emu3_vqgan** -- [Emu3VQVAEConfig](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3VQVAEConfig) (модель Emu3VQVAEConfig)
- **encodec** -- [EncodecConfig](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecConfig) (модель EncodecConfig)
- **encoder-decoder** -- [EncoderDecoderConfig](/docs/transformers/main/ru/model_doc/encoder-decoder#transformers.EncoderDecoderConfig) (модель EncoderDecoderConfig)
- **eomt** -- [EomtConfig](/docs/transformers/main/ru/model_doc/eomt#transformers.EomtConfig) (модель EomtConfig)
- **eomt_dinov3** -- [EomtDinov3Config](/docs/transformers/main/ru/model_doc/eomt_dinov3#transformers.EomtDinov3Config) (модель EomtDinov3Config)
- **ernie** -- [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig) (модель ErnieConfig)
- **ernie4_5** -- [Ernie4_5Config](/docs/transformers/main/ru/model_doc/ernie4_5#transformers.Ernie4_5Config) (модель Ernie4_5Config)
- **ernie4_5_moe** -- [Ernie4_5_MoeConfig](/docs/transformers/main/ru/model_doc/ernie4_5_moe#transformers.Ernie4_5_MoeConfig) (модель Ernie4_5_MoeConfig)
- **ernie4_5_vl_moe** -- [Ernie4_5_VLMoeConfig](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeConfig) (модель Ernie4_5_VLMoeConfig)
- **ernie4_5_vl_moe_text** -- [Ernie4_5_VLMoeTextConfig](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeTextConfig) (модель Ernie4_5_VLMoeTextConfig)
- **ernie4_5_vl_moe_vision** -- [Ernie4_5_VLMoeVisionConfig](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeVisionConfig) (модель Ernie4_5_VLMoeVisionConfig)
- **esm** -- [EsmConfig](/docs/transformers/main/ru/model_doc/esm#transformers.EsmConfig) (модель EsmConfig)
- **esmc** -- [EsmcConfig](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcConfig) (модель EsmcConfig)
- **esmfold2** -- [EsmFold2Config](/docs/transformers/main/ru/model_doc/esmfold2#transformers.EsmFold2Config) (модель EsmFold2Config)
- **eurobert** -- [EuroBertConfig](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertConfig) (модель EuroBertConfig)
- **evolla** -- [EvollaConfig](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaConfig) (модель EvollaConfig)
- **exaone4** -- [Exaone4Config](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Config) (модель Exaone4Config)
- **exaone4_5** -- [Exaone4_5_Config](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_Config) (модель Exaone4_5_Config)
- **exaone4_5_vision** -- [Exaone4_5_VisionConfig](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_VisionConfig) (модель Exaone4_5_VisionConfig)
- **exaone_moe** -- [ExaoneMoeConfig](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeConfig) (модель ExaoneMoeConfig)
- **falcon** -- [FalconConfig](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconConfig) (модель FalconConfig)
- **falcon_h1** -- [FalconH1Config](/docs/transformers/main/ru/model_doc/falcon_h1#transformers.FalconH1Config) (модель FalconH1Config)
- **falcon_mamba** -- [FalconMambaConfig](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaConfig) (модель FalconMambaConfig)
- **fast_vlm** -- [FastVlmConfig](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmConfig) (модель FastVlmConfig)
- **fastspeech2_conformer** -- [FastSpeech2ConformerConfig](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerConfig) (модель FastSpeech2ConformerConfig)
- **fastspeech2_conformer_hifigan** -- [FastSpeech2ConformerHifiGanConfig](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerHifiGanConfig) (модель FastSpeech2ConformerHifiGanConfig)
- **fastspeech2_conformer_with_hifigan** -- [FastSpeech2ConformerWithHifiGanConfig](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerWithHifiGanConfig) (модель FastSpeech2ConformerWithHifiGanConfig)
- **flaubert** -- [FlaubertConfig](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertConfig) (модель FlaubertConfig)
- **flava** -- [FlavaConfig](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaConfig) (модель FlavaConfig)
- **flava_image_codebook** -- [FlavaImageCodebookConfig](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaImageCodebookConfig) (модель FlavaImageCodebookConfig)
- **flava_image_model** -- [FlavaImageConfig](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaImageConfig) (модель FlavaImageConfig)
- **flava_multimodal_model** -- [FlavaMultimodalConfig](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaMultimodalConfig) (модель FlavaMultimodalConfig)
- **flava_text_model** -- [FlavaTextConfig](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaTextConfig) (модель FlavaTextConfig)
- **flex_olmo** -- [FlexOlmoConfig](/docs/transformers/main/ru/model_doc/flex_olmo#transformers.FlexOlmoConfig) (модель FlexOlmoConfig)
- **flint** -- [FlintConfig](/docs/transformers/main/ru/model_doc/flint#transformers.FlintConfig) (модель FlintConfig)
- **florence2** -- [Florence2Config](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2Config) (модель Florence2Config)
- **florence_vision** -- [Florence2VisionConfig](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2VisionConfig) (модель Florence2VisionConfig)
- **fnet** -- [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig) (модель FNetConfig)
- **focalnet** -- [FocalNetConfig](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetConfig) (модель FocalNetConfig)
- **fsmt** -- [FSMTConfig](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTConfig) (модель FSMTConfig)
- **fun_asr_nano** -- [FunAsrNanoConfig](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoConfig) (модель FunAsrNanoConfig)
- **fun_asr_nano_encoder** -- [FunAsrNanoEncoderConfig](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoEncoderConfig) (модель FunAsrNanoEncoderConfig)
- **funnel** -- [FunnelConfig](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelConfig) (модель FunnelConfig)
- **fuyu** -- [FuyuConfig](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuConfig) (модель FuyuConfig)
- **gemma** -- [GemmaConfig](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaConfig) (модель GemmaConfig)
- **gemma2** -- [Gemma2Config](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2Config) (модель Gemma2Config)
- **gemma3** -- [Gemma3Config](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Config) (модель Gemma3Config)
- **gemma3_text** -- [Gemma3TextConfig](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3TextConfig) (модель Gemma3TextConfig)
- **gemma3n** -- [Gemma3nConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nConfig) (модель Gemma3nConfig)
- **gemma3n_audio** -- [Gemma3nAudioConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nAudioConfig) (модель Gemma3nAudioConfig)
- **gemma3n_text** -- [Gemma3nTextConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nTextConfig) (модель Gemma3nTextConfig)
- **gemma3n_vision** -- [Gemma3nVisionConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nVisionConfig) (модель Gemma3nVisionConfig)
- **gemma4** -- [Gemma4Config](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Config) (модель Gemma4Config)
- **gemma4_assistant** -- [Gemma4AssistantConfig](/docs/transformers/main/ru/model_doc/gemma4_assistant#transformers.Gemma4AssistantConfig) (модель Gemma4AssistantConfig)
- **gemma4_audio** -- [Gemma4AudioConfig](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4AudioConfig) (модель Gemma4AudioConfig)
- **gemma4_text** -- [Gemma4TextConfig](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4TextConfig) (модель Gemma4TextConfig)
- **gemma4_unified** -- [Gemma4UnifiedConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedConfig) (модель Gemma4UnifiedConfig)
- **gemma4_unified_assistant** -- [Gemma4UnifiedAssistantConfig](/docs/transformers/main/ru/model_doc/gemma4_unified_assistant#transformers.Gemma4UnifiedAssistantConfig) (модель Gemma4UnifiedAssistantConfig)
- **gemma4_unified_audio** -- [Gemma4UnifiedAudioConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedAudioConfig) (модель Gemma4UnifiedAudioConfig)
- **gemma4_unified_text** -- [Gemma4UnifiedTextConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedTextConfig) (модель Gemma4UnifiedTextConfig)
- **gemma4_unified_vision** -- [Gemma4UnifiedVisionConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedVisionConfig) (модель Gemma4UnifiedVisionConfig)
- **gemma4_vision** -- [Gemma4VisionConfig](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4VisionConfig) (модель Gemma4VisionConfig)
- **git** -- [GitConfig](/docs/transformers/main/ru/model_doc/git#transformers.GitConfig) (модель GitConfig)
- **git_vision_model** -- [GitVisionConfig](/docs/transformers/main/ru/model_doc/git#transformers.GitVisionConfig) (модель GitVisionConfig)
- **glm** -- [GlmConfig](/docs/transformers/main/ru/model_doc/glm#transformers.GlmConfig) (модель GlmConfig)
- **glm4** -- [Glm4Config](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4Config) (модель Glm4Config)
- **glm46v** -- [Glm46VConfig](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VConfig) (модель Glm46VConfig)
- **glm4_moe** -- [Glm4MoeConfig](/docs/transformers/main/ru/model_doc/glm4_moe#transformers.Glm4MoeConfig) (модель Glm4MoeConfig)
- **glm4_moe_lite** -- [Glm4MoeLiteConfig](/docs/transformers/main/ru/model_doc/glm4_moe_lite#transformers.Glm4MoeLiteConfig) (модель Glm4MoeLiteConfig)
- **glm4v** -- [Glm4vConfig](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vConfig) (модель Glm4vConfig)
- **glm4v_moe** -- [Glm4vMoeConfig](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeConfig) (модель Glm4vMoeConfig)
- **glm4v_moe_text** -- [Glm4vMoeTextConfig](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeTextConfig) (модель Glm4vMoeTextConfig)
- **glm4v_moe_vision** -- [Glm4vMoeVisionConfig](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeVisionConfig) (модель Glm4vMoeVisionConfig)
- **glm4v_text** -- [Glm4vTextConfig](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vTextConfig) (модель Glm4vTextConfig)
- **glm4v_vision** -- [Glm4vVisionConfig](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vVisionConfig) (модель Glm4vVisionConfig)
- **glm5_next** -- [Glm5NextConfig](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextConfig) (модель Glm5NextConfig)
- **glm5_next_text** -- [Glm5NextTextConfig](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextTextConfig) (модель Glm5NextTextConfig)
- **glm5_next_vision** -- [Glm5NextVisionConfig](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextVisionConfig) (модель Glm5NextVisionConfig)
- **glm_image** -- [GlmImageConfig](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageConfig) (модель GlmImageConfig)
- **glm_image_text** -- [GlmImageTextConfig](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageTextConfig) (модель GlmImageTextConfig)
- **glm_image_vision** -- [GlmImageVisionConfig](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageVisionConfig) (модель GlmImageVisionConfig)
- **glm_image_vqmodel** -- [GlmImageVQVAEConfig](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageVQVAEConfig) (модель GlmImageVQVAEConfig)
- **glm_moe_dsa** -- [GlmMoeDsaConfig](/docs/transformers/main/ru/model_doc/glm_moe_dsa#transformers.GlmMoeDsaConfig) (модель GlmMoeDsaConfig)
- **glm_ocr** -- [GlmOcrConfig](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrConfig) (модель GlmOcrConfig)
- **glm_ocr_text** -- [GlmOcrTextConfig](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrTextConfig) (модель GlmOcrTextConfig)
- **glm_ocr_vision** -- [GlmOcrVisionConfig](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrVisionConfig) (модель GlmOcrVisionConfig)
- **glmasr** -- [GlmAsrConfig](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrConfig) (модель GlmAsrConfig)
- **glmasr_encoder** -- [GlmAsrEncoderConfig](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrEncoderConfig) (модель GlmAsrEncoderConfig)
- **glmga** -- [GlmgaConfig](/docs/transformers/main/ru/model_doc/glmga#transformers.GlmgaConfig) (модель GlmgaConfig)
- **glpn** -- [GLPNConfig](/docs/transformers/main/ru/model_doc/glpn#transformers.GLPNConfig) (модель GLPNConfig)
- **got_ocr2** -- [GotOcr2Config](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2Config) (модель GotOcr2Config)
- **got_ocr2_vision** -- [GotOcr2VisionConfig](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2VisionConfig) (модель GotOcr2VisionConfig)
- **gpt-sw3** -- [GPT2Config](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Config) (модель GPT2Config)
- **gpt2** -- [GPT2Config](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Config) (модель GPT2Config)
- **gpt_bigcode** -- [GPTBigCodeConfig](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeConfig) (модель GPTBigCodeConfig)
- **gpt_neo** -- [GPTNeoConfig](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoConfig) (модель GPTNeoConfig)
- **gpt_neox** -- [GPTNeoXConfig](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXConfig) (модель GPTNeoXConfig)
- **gpt_neox_japanese** -- [GPTNeoXJapaneseConfig](/docs/transformers/main/ru/model_doc/gpt_neox_japanese#transformers.GPTNeoXJapaneseConfig) (модель GPTNeoXJapaneseConfig)
- **gpt_oss** -- [GptOssConfig](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssConfig) (модель GptOssConfig)
- **gptj** -- [GPTJConfig](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJConfig) (модель GPTJConfig)
- **gradium_phonon_tts** -- [GradiumPhononTTSConfig](/docs/transformers/main/ru/model_doc/gradium_phonon_tts#transformers.GradiumPhononTTSConfig) (модель GradiumPhononTTSConfig)
- **granite** -- [GraniteConfig](/docs/transformers/main/ru/model_doc/granite#transformers.GraniteConfig) (модель GraniteConfig)
- **granite4_vision** -- [Granite4VisionConfig](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionConfig) (модель Granite4VisionConfig)
- **granite4_vision_text** -- [Granite4VisionTextConfig](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionTextConfig) (модель Granite4VisionTextConfig)
- **granite_speech** -- [GraniteSpeechConfig](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechConfig) (модель GraniteSpeechConfig)
- **granite_speech5_ctc** -- [GraniteSpeech5CTCConfig](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5CTCConfig) (модель GraniteSpeech5CTCConfig)
- **granite_speech5_encoder** -- [GraniteSpeech5EncoderConfig](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5EncoderConfig) (модель GraniteSpeech5EncoderConfig)
- **granite_speech_encoder** -- [GraniteSpeechEncoderConfig](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechEncoderConfig) (модель GraniteSpeechEncoderConfig)
- **granite_speech_plus** -- [GraniteSpeechPlusConfig](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusConfig) (модель GraniteSpeechPlusConfig)
- **granite_speech_plus_encoder** -- [GraniteSpeechPlusEncoderConfig](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusEncoderConfig) (модель GraniteSpeechPlusEncoderConfig)
- **granite_swa** -- [GraniteSWAConfig](/docs/transformers/main/ru/model_doc/granite_swa#transformers.GraniteSWAConfig) (модель GraniteSWAConfig)
- **granitemoe** -- [GraniteMoeConfig](/docs/transformers/main/ru/model_doc/granitemoe#transformers.GraniteMoeConfig) (модель GraniteMoeConfig)
- **granitemoe_swa** -- [GraniteMoeSWAConfig](/docs/transformers/main/ru/model_doc/granitemoe_swa#transformers.GraniteMoeSWAConfig) (модель GraniteMoeSWAConfig)
- **granitemoehybrid** -- [GraniteMoeHybridConfig](/docs/transformers/main/ru/model_doc/granitemoehybrid#transformers.GraniteMoeHybridConfig) (модель GraniteMoeHybridConfig)
- **granitemoeshared** -- [GraniteMoeSharedConfig](/docs/transformers/main/ru/model_doc/granitemoeshared#transformers.GraniteMoeSharedConfig) (модель GraniteMoeSharedConfig)
- **grounding-dino** -- [GroundingDinoConfig](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoConfig) (модель GroundingDinoConfig)
- **groupvit** -- [GroupViTConfig](/docs/transformers/main/ru/model_doc/groupvit#transformers.GroupViTConfig) (модель GroupViTConfig)
- **groupvit_text_model** -- [GroupViTTextConfig](/docs/transformers/main/ru/model_doc/groupvit#transformers.GroupViTTextConfig) (модель GroupViTTextConfig)
- **groupvit_vision_model** -- [GroupViTVisionConfig](/docs/transformers/main/ru/model_doc/groupvit#transformers.GroupViTVisionConfig) (модель GroupViTVisionConfig)
- **gte** -- [GteConfig](/docs/transformers/main/ru/model_doc/gte#transformers.GteConfig) (модель GteConfig)
- **helium** -- [HeliumConfig](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumConfig) (модель HeliumConfig)
- **hgnet_v2** -- [HGNetV2Config](/docs/transformers/main/ru/model_doc/hgnet_v2#transformers.HGNetV2Config) (модель HGNetV2Config)
- **hiera** -- [HieraConfig](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraConfig) (модель HieraConfig)
- **higgs_audio_v2** -- [HiggsAudioV2Config](/docs/transformers/main/ru/model_doc/higgs_audio_v2#transformers.HiggsAudioV2Config) (модель HiggsAudioV2Config)
- **higgs_audio_v2_tokenizer** -- [HiggsAudioV2TokenizerConfig](/docs/transformers/main/ru/model_doc/higgs_audio_v2_tokenizer#transformers.HiggsAudioV2TokenizerConfig) (модель HiggsAudioV2TokenizerConfig)
- **hrm_text** -- [HrmTextConfig](/docs/transformers/main/ru/model_doc/hrm_text#transformers.HrmTextConfig) (модель HrmTextConfig)
- **hubert** -- [HubertConfig](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertConfig) (модель HubertConfig)
- **hunyuan_v1_dense** -- [HunYuanDenseV1Config](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1Config) (модель HunYuanDenseV1Config)
- **hunyuan_v1_moe** -- [HunYuanMoEV1Config](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1Config) (модель HunYuanMoEV1Config)
- **hunyuan_vl** -- [HunYuanVLConfig](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLConfig) (модель HunYuanVLConfig)
- **hunyuan_vl_text** -- [HunYuanVLTextConfig](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLTextConfig) (модель HunYuanVLTextConfig)
- **hunyuan_vl_vision** -- [HunYuanVLVisionConfig](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLVisionConfig) (модель HunYuanVLVisionConfig)
- **hy_v3** -- [HYV3Config](/docs/transformers/main/ru/model_doc/hy_v3#transformers.HYV3Config) (модель HYV3Config)
- **hy_v4** -- [HYV4Config](/docs/transformers/main/ru/model_doc/hy_v4#transformers.HYV4Config) (модель HYV4Config)
- **hyperclovax** -- [HyperCLOVAXConfig](/docs/transformers/main/ru/model_doc/hyperclovax#transformers.HyperCLOVAXConfig) (модель HyperCLOVAXConfig)
- **hyperclovax_vision_v2** -- [HyperCLOVAXVisionV2Config](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2Config) (модель HyperCLOVAXVisionV2Config)
- **ibert** -- [IBertConfig](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertConfig) (модель IBertConfig)
- **idefics** -- [IdeficsConfig](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsConfig) (модель IdeficsConfig)
- **idefics2** -- [Idefics2Config](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2Config) (модель Idefics2Config)
- **idefics2_perceiver** -- [Idefics2PerceiverConfig](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2PerceiverConfig) (модель Idefics2PerceiverConfig)
- **idefics2_vision** -- [Idefics2VisionConfig](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2VisionConfig) (модель Idefics2VisionConfig)
- **idefics3** -- [Idefics3Config](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Config) (модель Idefics3Config)
- **idefics3_vision** -- [Idefics3VisionConfig](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3VisionConfig) (модель Idefics3VisionConfig)
- **idefics_perciever** -- [IdeficsPerceiverConfig](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsPerceiverConfig) (модель IdeficsPerceiverConfig)
- **idefics_vision** -- [IdeficsVisionConfig](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsVisionConfig) (модель IdeficsVisionConfig)
- **ijepa** -- [IJepaConfig](/docs/transformers/main/ru/model_doc/ijepa#transformers.IJepaConfig) (модель IJepaConfig)
- **imagegpt** -- [ImageGPTConfig](/docs/transformers/main/ru/model_doc/imagegpt#transformers.ImageGPTConfig) (модель ImageGPTConfig)
- **informer** -- [InformerConfig](/docs/transformers/main/ru/model_doc/informer#transformers.InformerConfig) (модель InformerConfig)
- **inkling_audio** -- [InklingAudioConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingAudioConfig) (модель InklingAudioConfig)
- **inkling_mm_model** -- [InklingConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingConfig) (модель InklingConfig)
- **inkling_text** -- [InklingTextConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingTextConfig) (модель InklingTextConfig)
- **inkling_vision** -- [InklingVisionConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingVisionConfig) (модель InklingVisionConfig)
- **instructblip** -- [InstructBlipConfig](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipConfig) (модель InstructBlipConfig)
- **instructblip_qformer** -- [InstructBlipQFormerConfig](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipQFormerConfig) (модель InstructBlipQFormerConfig)
- **instructblip_vision_model** -- [InstructBlipVisionConfig](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipVisionConfig) (модель InstructBlipVisionConfig)
- **instructblipvideo** -- [InstructBlipVideoConfig](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoConfig) (модель InstructBlipVideoConfig)
- **instructblipvideo_qformer** -- [InstructBlipVideoQFormerConfig](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoQFormerConfig) (модель InstructBlipVideoQFormerConfig)
- **instructblipvideo_vision_model** -- [InstructBlipVideoVisionConfig](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoVisionConfig) (модель InstructBlipVideoVisionConfig)
- **internvl** -- [InternVLConfig](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLConfig) (модель InternVLConfig)
- **internvl_vision** -- [InternVLVisionConfig](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLVisionConfig) (модель InternVLVisionConfig)
- **jais2** -- [Jais2Config](/docs/transformers/main/ru/model_doc/jais2#transformers.Jais2Config) (модель Jais2Config)
- **jamba** -- [JambaConfig](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaConfig) (модель JambaConfig)
- **janus** -- [JanusConfig](/docs/transformers/main/ru/model_doc/janus#transformers.JanusConfig) (модель JanusConfig)
- **janus_vision_model** -- [JanusVisionConfig](/docs/transformers/main/ru/model_doc/janus#transformers.JanusVisionConfig) (модель JanusVisionConfig)
- **janus_vqgan** -- [JanusVQVAEConfig](/docs/transformers/main/ru/model_doc/janus#transformers.JanusVQVAEConfig) (модель JanusVQVAEConfig)
- **jetmoe** -- [JetMoeConfig](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeConfig) (модель JetMoeConfig)
- **jina_embeddings_v3** -- [JinaEmbeddingsV3Config](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3Config) (модель JinaEmbeddingsV3Config)
- **kimi_k25** -- [Kimi_K25Config](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25Config) (модель Kimi_K25Config)
- **kimi_k25_vision** -- [Kimi_K25VisionConfig](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25VisionConfig) (модель Kimi_K25VisionConfig)
- **kimi_linear** -- [KimiLinearConfig](/docs/transformers/main/ru/model_doc/kimi_linear#transformers.KimiLinearConfig) (модель KimiLinearConfig)
- **kolibri1** -- [Kolibri1Config](/docs/transformers/main/ru/model_doc/kolibri1#transformers.Kolibri1Config) (модель Kolibri1Config)
- **kosmos-2** -- [Kosmos2Config](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2Config) (модель Kosmos2Config)
- **kosmos-2.5** -- [Kosmos2_5Config](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5Config) (модель Kosmos2_5Config)
- **kosmos_2_5_text_model** -- [Kosmos2_5TextConfig](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5TextConfig) (модель Kosmos2_5TextConfig)
- **kosmos_2_5_vision_model** -- [Kosmos2_5VisionConfig](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5VisionConfig) (модель Kosmos2_5VisionConfig)
- **kosmos_2_text_model** -- [Kosmos2TextConfig](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2TextConfig) (модель Kosmos2TextConfig)
- **kosmos_2_vision_model** -- [Kosmos2VisionConfig](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2VisionConfig) (модель Kosmos2VisionConfig)
- **kyutai_speech_to_text** -- [KyutaiSpeechToTextConfig](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextConfig) (модель KyutaiSpeechToTextConfig)
- **laguna** -- [LagunaConfig](/docs/transformers/main/ru/model_doc/laguna#transformers.LagunaConfig) (модель LagunaConfig)
- **lasr_ctc** -- [LasrCTCConfig](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrCTCConfig) (модель LasrCTCConfig)
- **lasr_encoder** -- [LasrEncoderConfig](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrEncoderConfig) (модель LasrEncoderConfig)
- **layoutlm** -- [LayoutLMConfig](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMConfig) (модель LayoutLMConfig)
- **layoutlmv2** -- [LayoutLMv2Config](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Config) (модель LayoutLMv2Config)
- **layoutlmv3** -- [LayoutLMv3Config](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Config) (модель LayoutLMv3Config)
- **layoutxlm** -- [LayoutXLMConfig](/docs/transformers/main/ru/model_doc/layoutxlm#transformers.LayoutXLMConfig) (модель LayoutXLMConfig)
- **led** -- [LEDConfig](/docs/transformers/main/ru/model_doc/led#transformers.LEDConfig) (модель LEDConfig)
- **levit** -- [LevitConfig](/docs/transformers/main/ru/model_doc/levit#transformers.LevitConfig) (модель LevitConfig)
- **lfm2** -- [Lfm2Config](/docs/transformers/main/ru/model_doc/lfm2#transformers.Lfm2Config) (модель Lfm2Config)
- **lfm2_moe** -- [Lfm2MoeConfig](/docs/transformers/main/ru/model_doc/lfm2_moe#transformers.Lfm2MoeConfig) (модель Lfm2MoeConfig)
- **lfm2_vl** -- [Lfm2VlConfig](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlConfig) (модель Lfm2VlConfig)
- **lightglue** -- [LightGlueConfig](/docs/transformers/main/ru/model_doc/lightglue#transformers.LightGlueConfig) (модель LightGlueConfig)
- **lighton_ocr** -- [LightOnOcrConfig](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrConfig) (модель LightOnOcrConfig)
- **lilt** -- [LiltConfig](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltConfig) (модель LiltConfig)
- **llama** -- [LlamaConfig](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaConfig) (модель LlamaConfig)
- **llama4** -- [Llama4Config](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4Config) (модель Llama4Config)
- **llama4_text** -- [Llama4TextConfig](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4TextConfig) (модель Llama4TextConfig)
- **llama4_vision_model** -- [Llama4VisionConfig](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4VisionConfig) (модель Llama4VisionConfig)
- **llava** -- [LlavaConfig](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaConfig) (модель LlavaConfig)
- **llava_next** -- [LlavaNextConfig](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextConfig) (модель LlavaNextConfig)
- **llava_next_video** -- [LlavaNextVideoConfig](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoConfig) (модель LlavaNextVideoConfig)
- **llava_onevision** -- [LlavaOnevisionConfig](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionConfig) (модель LlavaOnevisionConfig)
- **longcat_flash** -- [LongcatFlashConfig](/docs/transformers/main/ru/model_doc/longcat_flash#transformers.LongcatFlashConfig) (модель LongcatFlashConfig)
- **longformer** -- [LongformerConfig](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerConfig) (модель LongformerConfig)
- **longt5** -- [LongT5Config](/docs/transformers/main/ru/model_doc/longt5#transformers.LongT5Config) (модель LongT5Config)
- **luke** -- [LukeConfig](/docs/transformers/main/ru/model_doc/luke#transformers.LukeConfig) (модель LukeConfig)
- **lw_detr** -- [LwDetrConfig](/docs/transformers/main/ru/model_doc/lw_detr#transformers.LwDetrConfig) (модель LwDetrConfig)
- **lw_detr_vit** -- [LwDetrViTConfig](/docs/transformers/main/ru/model_doc/lw_detr#transformers.LwDetrViTConfig) (модель LwDetrViTConfig)
- **lxmert** -- [LxmertConfig](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertConfig) (модель LxmertConfig)
- **m2m_100** -- [M2M100Config](/docs/transformers/main/ru/model_doc/m2m_100#transformers.M2M100Config) (модель M2M100Config)
- **mamba** -- [MambaConfig](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaConfig) (модель MambaConfig)
- **mamba2** -- [Mamba2Config](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2Config) (модель Mamba2Config)
- **marian** -- [MarianConfig](/docs/transformers/main/ru/model_doc/marian#transformers.MarianConfig) (модель MarianConfig)
- **markuplm** -- [MarkupLMConfig](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMConfig) (модель MarkupLMConfig)
- **mask2former** -- [Mask2FormerConfig](/docs/transformers/main/ru/model_doc/mask2former#transformers.Mask2FormerConfig) (модель Mask2FormerConfig)
- **maskformer** -- [MaskFormerConfig](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerConfig) (модель MaskFormerConfig)
- **maskformer-swin** -- `MaskFormerSwinConfig` (модель MaskFormerSwinConfig)
- **mbart** -- [MBartConfig](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartConfig) (модель MBartConfig)
- **megatron-bert** -- [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig) (модель MegatronBertConfig)
- **mellum** -- [MellumConfig](/docs/transformers/main/ru/model_doc/mellum#transformers.MellumConfig) (модель MellumConfig)
- **metaclip_2** -- [MetaClip2Config](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2Config) (модель MetaClip2Config)
- **metaclip_2_text_model** -- [MetaClip2TextConfig](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2TextConfig) (модель MetaClip2TextConfig)
- **metaclip_2_vision_model** -- [MetaClip2VisionConfig](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2VisionConfig) (модель MetaClip2VisionConfig)
- **mgp-str** -- [MgpstrConfig](/docs/transformers/main/ru/model_doc/mgp-str#transformers.MgpstrConfig) (модель MgpstrConfig)
- **mimi** -- [MimiConfig](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiConfig) (модель MimiConfig)
- **mimi_decoder** -- [MimiDecoderConfig](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiDecoderConfig) (модель MimiDecoderConfig)
- **mimi_encoder** -- [MimiEncoderConfig](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiEncoderConfig) (модель MimiEncoderConfig)
- **mimo_v2_flash** -- [MiMoV2FlashConfig](/docs/transformers/main/ru/model_doc/mimo_v2_flash#transformers.MiMoV2FlashConfig) (модель MiMoV2FlashConfig)
- **minicpm3** -- [MiniCPM3Config](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3Config) (модель MiniCPM3Config)
- **minicpm_ocr** -- [MiniCPMOcrConfig](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrConfig) (модель MiniCPMOcrConfig)
- **minicpm_ocr_vision** -- [MiniCPMOcrVisionConfig](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrVisionConfig) (модель MiniCPMOcrVisionConfig)
- **minicpmv4_6** -- [MiniCPMV4_6Config](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6Config) (модель MiniCPMV4_6Config)
- **minicpmv4_6_vision** -- [MiniCPMV4_6VisionConfig](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6VisionConfig) (модель MiniCPMV4_6VisionConfig)
- **minicpmv4_7** -- [MiniCPMV4_7Config](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7Config) (модель MiniCPMV4_7Config)
- **minicpmv4_7_vision** -- [MiniCPMV4_7VisionConfig](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7VisionConfig) (модель MiniCPMV4_7VisionConfig)
- **minimax** -- [MiniMaxConfig](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxConfig) (модель MiniMaxConfig)
- **minimax_m2** -- [MiniMaxM2Config](/docs/transformers/main/ru/model_doc/minimax_m2#transformers.MiniMaxM2Config) (модель MiniMaxM2Config)
- **minimax_m3_vl** -- [MiniMaxM3VLConfig](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLConfig) (модель MiniMaxM3VLConfig)
- **minimax_m3_vl_text** -- [MiniMaxM3VLTextConfig](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLTextConfig) (модель MiniMaxM3VLTextConfig)
- **minimax_m3_vl_vision** -- [MiniMaxM3VLVisionConfig](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLVisionConfig) (модель MiniMaxM3VLVisionConfig)
- **ministral** -- [MinistralConfig](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralConfig) (модель MinistralConfig)
- **ministral3** -- [Ministral3Config](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3Config) (модель Ministral3Config)
- **mistral** -- [MistralConfig](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralConfig) (модель MistralConfig)
- **mistral3** -- [Mistral3Config](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3Config) (модель Mistral3Config)
- **mistral4** -- [Mistral4Config](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Config) (модель Mistral4Config)
- **mistral_large4** -- [MistralLarge4Config](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4Config) (модель MistralLarge4Config)
- **mistral_large4_text** -- [MistralLarge4TextConfig](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4TextConfig) (модель MistralLarge4TextConfig)
- **mixtral** -- [MixtralConfig](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralConfig) (модель MixtralConfig)
- **mlcd** -- [MLCDVisionConfig](/docs/transformers/main/ru/model_doc/mlcd#transformers.MLCDVisionConfig) (модель MLCDVisionConfig)
- **mlcd_vision_model** -- [MLCDVisionConfig](/docs/transformers/main/ru/model_doc/mlcd#transformers.MLCDVisionConfig) (модель MLCDVisionConfig)
- **mllama** -- [MllamaConfig](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaConfig) (модель MllamaConfig)
- **mllama_text_model** -- [MllamaTextConfig](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaTextConfig) (модель MllamaTextConfig)
- **mllama_vision_model** -- [MllamaVisionConfig](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaVisionConfig) (модель MllamaVisionConfig)
- **mm-grounding-dino** -- [MMGroundingDinoConfig](/docs/transformers/main/ru/model_doc/mm-grounding-dino#transformers.MMGroundingDinoConfig) (модель MMGroundingDinoConfig)
- **mobilebert** -- [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig) (модель MobileBertConfig)
- **mobilenet_v1** -- [MobileNetV1Config](/docs/transformers/main/ru/model_doc/mobilenet_v1#transformers.MobileNetV1Config) (модель MobileNetV1Config)
- **mobilenet_v2** -- [MobileNetV2Config](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2Config) (модель MobileNetV2Config)
- **mobilevit** -- [MobileViTConfig](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTConfig) (модель MobileViTConfig)
- **mobilevitv2** -- [MobileViTV2Config](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2Config) (модель MobileViTV2Config)
- **modernbert** -- [ModernBertConfig](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertConfig) (модель ModernBertConfig)
- **modernbert-decoder** -- [ModernBertDecoderConfig](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderConfig) (модель ModernBertDecoderConfig)
- **modernvbert** -- [ModernVBertConfig](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertConfig) (модель ModernVBertConfig)
- **molmo2** -- [Molmo2Config](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2Config) (модель Molmo2Config)
- **molmo2_adapter** -- [Molmo2AdapterConfig](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2AdapterConfig) (модель Molmo2AdapterConfig)
- **molmo2_text** -- [Molmo2TextConfig](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2TextConfig) (модель Molmo2TextConfig)
- **molmo2_vision** -- [Molmo2VisionConfig](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2VisionConfig) (модель Molmo2VisionConfig)
- **moonshine** -- [MoonshineConfig](/docs/transformers/main/ru/model_doc/moonshine#transformers.MoonshineConfig) (модель MoonshineConfig)
- **moonshine_streaming** -- [MoonshineStreamingConfig](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingConfig) (модель MoonshineStreamingConfig)
- **moonshine_streaming_encoder** -- [MoonshineStreamingEncoderConfig](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingEncoderConfig) (модель MoonshineStreamingEncoderConfig)
- **moshi** -- [MoshiConfig](/docs/transformers/main/ru/model_doc/moshi#transformers.MoshiConfig) (модель MoshiConfig)
- **moshi_depth** -- [MoshiDepthConfig](/docs/transformers/main/ru/model_doc/moshi#transformers.MoshiDepthConfig) (модель MoshiDepthConfig)
- **moss_transcribe_diarize** -- [MossTranscribeDiarizeConfig](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeConfig) (модель MossTranscribeDiarizeConfig)
- **moss_transcribe_diarize_audio** -- [MossTranscribeDiarizeAudioConfig](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeAudioConfig) (модель MossTranscribeDiarizeAudioConfig)
- **mpnet** -- [MPNetConfig](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetConfig) (модель MPNetConfig)
- **mpt** -- [MptConfig](/docs/transformers/main/ru/model_doc/mpt#transformers.MptConfig) (модель MptConfig)
- **mra** -- [MraConfig](/docs/transformers/main/ru/model_doc/mra#transformers.MraConfig) (модель MraConfig)
- **mt5** -- [MT5Config](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5Config) (модель MT5Config)
- **muse_glimmer** -- [MuseGlimmerConfig](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerConfig) (модель MuseGlimmerConfig)
- **muse_glimmer_assistant** -- [MuseGlimmerAssistantConfig](/docs/transformers/main/ru/model_doc/muse_glimmer_assistant#transformers.MuseGlimmerAssistantConfig) (модель MuseGlimmerAssistantConfig)
- **muse_glimmer_text** -- [MuseGlimmerTextConfig](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerTextConfig) (модель MuseGlimmerTextConfig)
- **muse_glimmer_vision** -- [MuseGlimmerVisionConfig](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerVisionConfig) (модель MuseGlimmerVisionConfig)
- **muse_spark** -- [MuseSparkConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkConfig) (модель MuseSparkConfig)
- **muse_spark_audio** -- [MuseSparkAudioConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkAudioConfig) (модель MuseSparkAudioConfig)
- **muse_spark_text** -- [MuseSparkTextConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkTextConfig) (модель MuseSparkTextConfig)
- **muse_spark_vision** -- [MuseSparkVisionConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkVisionConfig) (модель MuseSparkVisionConfig)
- **musicflamingo** -- [MusicFlamingoConfig](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoConfig) (модель MusicFlamingoConfig)
- **musicgen** -- [MusicgenConfig](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenConfig) (модель MusicgenConfig)
- **musicgen_decoder** -- [MusicgenDecoderConfig](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenDecoderConfig) (модель MusicgenDecoderConfig)
- **musicgen_melody** -- [MusicgenMelodyConfig](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyConfig) (модель MusicgenMelodyConfig)
- **musicgen_melody_decoder** -- [MusicgenMelodyDecoderConfig](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyDecoderConfig) (модель MusicgenMelodyDecoderConfig)
- **mvp** -- [MvpConfig](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpConfig) (модель MvpConfig)
- **nanochat** -- [NanoChatConfig](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatConfig) (модель NanoChatConfig)
- **nemo_speechlm** -- [Nemotron3_5TranscribeConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeConfig) (модель Nemotron3_5TranscribeConfig)
- **nemotron** -- [NemotronConfig](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronConfig) (модель NemotronConfig)
- **nemotron3_5_asr** -- [Nemotron3_5AsrConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_asr#transformers.Nemotron3_5AsrConfig) (модель Nemotron3_5AsrConfig)
- **nemotron3_5_transcribe_asr_audio** -- [Nemotron3_5TranscribeAsrAudioConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeAsrAudioConfig) (модель Nemotron3_5TranscribeAsrAudioConfig)
- **nemotron3_5_transcribe_audio** -- [Nemotron3_5TranscribeAudioConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeAudioConfig) (модель Nemotron3_5TranscribeAudioConfig)
- **nemotron3_5_transcribe_word_timestamp** -- [Nemotron3_5TranscribeWordTimestampConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeWordTimestampConfig) (модель Nemotron3_5TranscribeWordTimestampConfig)
- **nemotron3_diarization** -- [Nemotron3DiarizationConfig](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationConfig) (модель Nemotron3DiarizationConfig)
- **nemotron3_diarization_audio** -- [Nemotron3DiarizationAudioConfig](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationAudioConfig) (модель Nemotron3DiarizationAudioConfig)
- **nemotron_asr_streaming** -- [NemotronAsrStreamingConfig](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingConfig) (модель NemotronAsrStreamingConfig)
- **nemotron_asr_streaming_encoder** -- [NemotronAsrStreamingEncoderConfig](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingEncoderConfig) (модель NemotronAsrStreamingEncoderConfig)
- **nemotron_h** -- [NemotronHConfig](/docs/transformers/main/ru/model_doc/nemotron_h#transformers.NemotronHConfig) (модель NemotronHConfig)
- **nemotron_h_omni** -- [NemotronH_Omni_Reasoning_V3_Config](/docs/transformers/main/ru/model_doc/nemotron_h_omni#transformers.NemotronH_Omni_Reasoning_V3_Config) (модель NemotronH_Omni_Reasoning_V3_Config)
- **neomme** -- [NeoMMEConfig](/docs/transformers/main/ru/model_doc/neomme#transformers.NeoMMEConfig) (модель NeoMMEConfig)
- **neucodec** -- [NeuCodecConfig](/docs/transformers/main/ru/model_doc/neucodec#transformers.NeuCodecConfig) (модель NeuCodecConfig)
- **nllb-moe** -- [NllbMoeConfig](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeConfig) (модель NllbMoeConfig)
- **nomic_bert** -- [NomicBertConfig](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertConfig) (модель NomicBertConfig)
- **nougat** -- [NougatConfig](/docs/transformers/main/ru/model_doc/nougat#transformers.NougatConfig) (модель NougatConfig)
- **nystromformer** -- [NystromformerConfig](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerConfig) (модель NystromformerConfig)
- **olmo** -- [OlmoConfig](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoConfig) (модель OlmoConfig)
- **olmo2** -- [Olmo2Config](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2Config) (модель Olmo2Config)
- **olmo3** -- [Olmo3Config](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3Config) (модель Olmo3Config)
- **olmo_hybrid** -- [OlmoHybridConfig](/docs/transformers/main/ru/model_doc/olmo_hybrid#transformers.OlmoHybridConfig) (модель OlmoHybridConfig)
- **olmoe** -- [OlmoeConfig](/docs/transformers/main/ru/model_doc/olmoe#transformers.OlmoeConfig) (модель OlmoeConfig)
- **omdet-turbo** -- [OmDetTurboConfig](/docs/transformers/main/ru/model_doc/omdet-turbo#transformers.OmDetTurboConfig) (модель OmDetTurboConfig)
- **oneformer** -- [OneFormerConfig](/docs/transformers/main/ru/model_doc/oneformer#transformers.OneFormerConfig) (модель OneFormerConfig)
- **openai-gpt** -- [OpenAIGPTConfig](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTConfig) (модель OpenAIGPTConfig)
- **openai_privacy_filter** -- [OpenAIPrivacyFilterConfig](/docs/transformers/main/ru/model_doc/openai_privacy_filter#transformers.OpenAIPrivacyFilterConfig) (модель OpenAIPrivacyFilterConfig)
- **opt** -- [OPTConfig](/docs/transformers/main/ru/model_doc/opt#transformers.OPTConfig) (модель OPTConfig)
- **ovis2** -- [Ovis2Config](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2Config) (модель Ovis2Config)
- **ovis2_vision** -- [Ovis2VisionConfig](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2VisionConfig) (модель Ovis2VisionConfig)
- **owlv2** -- [Owlv2Config](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2Config) (модель Owlv2Config)
- **owlv2_text_model** -- [Owlv2TextConfig](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2TextConfig) (модель Owlv2TextConfig)
- **owlv2_vision_model** -- [Owlv2VisionConfig](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2VisionConfig) (модель Owlv2VisionConfig)
- **owlvit** -- [OwlViTConfig](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTConfig) (модель OwlViTConfig)
- **owlvit_text_model** -- [OwlViTTextConfig](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTTextConfig) (модель OwlViTTextConfig)
- **owlvit_vision_model** -- [OwlViTVisionConfig](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTVisionConfig) (модель OwlViTVisionConfig)
- **paddleocr_vl** -- [PaddleOCRVLConfig](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLConfig) (модель PaddleOCRVLConfig)
- **paddleocr_vl_text** -- [PaddleOCRTextConfig](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRTextConfig) (модель PaddleOCRTextConfig)
- **paddleocr_vl_vision** -- [PaddleOCRVisionConfig](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVisionConfig) (модель PaddleOCRVisionConfig)
- **paligemma** -- [PaliGemmaConfig](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaConfig) (модель PaliGemmaConfig)
- **parakeet_ctc** -- [ParakeetCTCConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetCTCConfig) (модель ParakeetCTCConfig)
- **parakeet_encoder** -- [ParakeetEncoderConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetEncoderConfig) (модель ParakeetEncoderConfig)
- **parakeet_rnnt** -- [ParakeetRNNTConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetRNNTConfig) (модель ParakeetRNNTConfig)
- **parakeet_tdt** -- [ParakeetTDTConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTDTConfig) (модель ParakeetTDTConfig)
- **patchtsmixer** -- [PatchTSMixerConfig](/docs/transformers/main/ru/model_doc/patchtsmixer#transformers.PatchTSMixerConfig) (модель PatchTSMixerConfig)
- **patchtst** -- [PatchTSTConfig](/docs/transformers/main/ru/model_doc/patchtst#transformers.PatchTSTConfig) (модель PatchTSTConfig)
- **pe_audio** -- [PeAudioConfig](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioConfig) (модель PeAudioConfig)
- **pe_audio_encoder** -- [PeAudioEncoderConfig](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioEncoderConfig) (модель PeAudioEncoderConfig)
- **pe_audio_video** -- [PeAudioVideoConfig](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoConfig) (модель PeAudioVideoConfig)
- **pe_audio_video_encoder** -- [PeAudioVideoEncoderConfig](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoEncoderConfig) (модель PeAudioVideoEncoderConfig)
- **pe_video** -- [PeVideoConfig](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoConfig) (модель PeVideoConfig)
- **pe_video_encoder** -- [PeVideoEncoderConfig](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoEncoderConfig) (модель PeVideoEncoderConfig)
- **pegasus** -- [PegasusConfig](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusConfig) (модель PegasusConfig)
- **pegasus_x** -- [PegasusXConfig](/docs/transformers/main/ru/model_doc/pegasus_x#transformers.PegasusXConfig) (модель PegasusXConfig)
- **perceiver** -- [PerceiverConfig](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverConfig) (модель PerceiverConfig)
- **perception_lm** -- [PerceptionLMConfig](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMConfig) (модель PerceptionLMConfig)
- **persimmon** -- [PersimmonConfig](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonConfig) (модель PersimmonConfig)
- **phi** -- [PhiConfig](/docs/transformers/main/ru/model_doc/phi#transformers.PhiConfig) (модель PhiConfig)
- **phi3** -- [Phi3Config](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3Config) (модель Phi3Config)
- **phi4_multimodal** -- [Phi4MultimodalConfig](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalConfig) (модель Phi4MultimodalConfig)
- **phi4_multimodal_audio** -- [Phi4MultimodalAudioConfig](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalAudioConfig) (модель Phi4MultimodalAudioConfig)
- **phi4_multimodal_vision** -- [Phi4MultimodalVisionConfig](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalVisionConfig) (модель Phi4MultimodalVisionConfig)
- **phimoe** -- [PhimoeConfig](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeConfig) (модель PhimoeConfig)
- **pi0** -- [PI0Config](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0Config) (модель PI0Config)
- **pix2struct** -- [Pix2StructConfig](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructConfig) (модель Pix2StructConfig)
- **pix2struct_text_model** -- [Pix2StructTextConfig](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructTextConfig) (модель Pix2StructTextConfig)
- **pix2struct_vision_model** -- [Pix2StructVisionConfig](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructVisionConfig) (модель Pix2StructVisionConfig)
- **pixio** -- [PixioConfig](/docs/transformers/main/ru/model_doc/pixio#transformers.PixioConfig) (модель PixioConfig)
- **pixtral** -- [PixtralVisionConfig](/docs/transformers/main/ru/model_doc/pixtral#transformers.PixtralVisionConfig) (модель PixtralVisionConfig)
- **plbart** -- [PLBartConfig](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartConfig) (модель PLBartConfig)
- **pocket_tts** -- [PocketTTSConfig](/docs/transformers/main/ru/model_doc/pocket_tts#transformers.PocketTTSConfig) (модель PocketTTSConfig)
- **pocket_tts_audio_tokenizer** -- [PocketTTSAudioTokenizerConfig](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerConfig) (модель PocketTTSAudioTokenizerConfig)
- **pocket_tts_audio_tokenizer_decoder** -- [PocketTTSAudioTokenizerDecoderConfig](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerDecoderConfig) (модель PocketTTSAudioTokenizerDecoderConfig)
- **pocket_tts_audio_tokenizer_encoder** -- [PocketTTSAudioTokenizerEncoderConfig](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerEncoderConfig) (модель PocketTTSAudioTokenizerEncoderConfig)
- **poolformer** -- [PoolFormerConfig](/docs/transformers/main/ru/model_doc/poolformer#transformers.PoolFormerConfig) (модель PoolFormerConfig)
- **pop2piano** -- [Pop2PianoConfig](/docs/transformers/main/ru/model_doc/pop2piano#transformers.Pop2PianoConfig) (модель Pop2PianoConfig)
- **pp_chart2table** -- [PPChart2TableConfig](/docs/transformers/main/ru/model_doc/pp_chart2table#transformers.PPChart2TableConfig) (модель PPChart2TableConfig)
- **pp_chart2table_vision** -- [PPChart2TableVisionConfig](/docs/transformers/main/ru/model_doc/pp_chart2table#transformers.PPChart2TableVisionConfig) (модель PPChart2TableVisionConfig)
- **pp_doclayout_v2** -- [PPDocLayoutV2Config](/docs/transformers/main/ru/model_doc/pp_doclayout_v2#transformers.PPDocLayoutV2Config) (модель PPDocLayoutV2Config)
- **pp_doclayout_v3** -- [PPDocLayoutV3Config](/docs/transformers/main/ru/model_doc/pp_doclayout_v3#transformers.PPDocLayoutV3Config) (модель PPDocLayoutV3Config)
- **pp_doclayout_v4** -- [PPDocLayoutV4Config](/docs/transformers/main/ru/model_doc/pp_doclayout_v4#transformers.PPDocLayoutV4Config) (модель PPDocLayoutV4Config)
- **pp_formulanet** -- [PPFormulaNetConfig](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetConfig) (модель PPFormulaNetConfig)
- **pp_formulanet_text** -- [PPFormulaNetTextConfig](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetTextConfig) (модель PPFormulaNetTextConfig)
- **pp_formulanet_vision** -- [PPFormulaNetVisionConfig](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetVisionConfig) (модель PPFormulaNetVisionConfig)
- **pp_lcnet** -- [PPLCNetConfig](/docs/transformers/main/ru/model_doc/pp_lcnet#transformers.PPLCNetConfig) (модель PPLCNetConfig)
- **pp_lcnet_v3** -- [PPLCNetV3Config](/docs/transformers/main/ru/model_doc/pp_lcnet_v3#transformers.PPLCNetV3Config) (модель PPLCNetV3Config)
- **pp_lcnet_v4** -- [PPLCNetV4Config](/docs/transformers/main/ru/model_doc/pp_lcnet_v4#transformers.PPLCNetV4Config) (модель PPLCNetV4Config)
- **pp_ocrv5_mobile_det** -- [PPOCRV5MobileDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_det#transformers.PPOCRV5MobileDetConfig) (модель PPOCRV5MobileDetConfig)
- **pp_ocrv5_mobile_rec** -- [PPOCRV5MobileRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_rec#transformers.PPOCRV5MobileRecConfig) (модель PPOCRV5MobileRecConfig)
- **pp_ocrv5_server_det** -- [PPOCRV5ServerDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_det#transformers.PPOCRV5ServerDetConfig) (модель PPOCRV5ServerDetConfig)
- **pp_ocrv5_server_rec** -- [PPOCRV5ServerRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_rec#transformers.PPOCRV5ServerRecConfig) (модель PPOCRV5ServerRecConfig)
- **pp_ocrv6_medium_det** -- [PPOCRV6MediumDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_medium_det#transformers.PPOCRV6MediumDetConfig) (модель PPOCRV6MediumDetConfig)
- **pp_ocrv6_small_det** -- [PPOCRV6SmallDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_det#transformers.PPOCRV6SmallDetConfig) (модель PPOCRV6SmallDetConfig)
- **pp_ocrv6_small_rec** -- [PPOCRV6SmallRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_rec#transformers.PPOCRV6SmallRecConfig) (модель PPOCRV6SmallRecConfig)
- **pp_ocrv6_tiny_rec** -- [PPOCRV6TinyRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_tiny_rec#transformers.PPOCRV6TinyRecConfig) (модель PPOCRV6TinyRecConfig)
- **prompt_depth_anything** -- [PromptDepthAnythingConfig](/docs/transformers/main/ru/model_doc/prompt_depth_anything#transformers.PromptDepthAnythingConfig) (модель PromptDepthAnythingConfig)
- **prophetnet** -- [ProphetNetConfig](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetConfig) (модель ProphetNetConfig)
- **pvt** -- [PvtConfig](/docs/transformers/main/ru/model_doc/pvt#transformers.PvtConfig) (модель PvtConfig)
- **pvt_v2** -- [PvtV2Config](/docs/transformers/main/ru/model_doc/pvt_v2#transformers.PvtV2Config) (модель PvtV2Config)
- **qianfan_ocr** -- [QianfanOCRConfig](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRConfig) (модель QianfanOCRConfig)
- **qianfan_ocr_vision** -- [QianfanOCRVisionConfig](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRVisionConfig) (модель QianfanOCRVisionConfig)
- **qwen2** -- [Qwen2Config](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Config) (модель Qwen2Config)
- **qwen2_5_omni** -- [Qwen2_5OmniConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniConfig) (модель Qwen2_5OmniConfig)
- **qwen2_5_omni_audio_encoder** -- [Qwen2_5OmniAudioEncoderConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniAudioEncoderConfig) (модель Qwen2_5OmniAudioEncoderConfig)
- **qwen2_5_omni_bigvgan** -- [Qwen2_5OmniBigVGANConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniBigVGANConfig) (модель Qwen2_5OmniBigVGANConfig)
- **qwen2_5_omni_dit** -- [Qwen2_5OmniDiTConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniDiTConfig) (модель Qwen2_5OmniDiTConfig)
- **qwen2_5_omni_talker** -- [Qwen2_5OmniTalkerConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniTalkerConfig) (модель Qwen2_5OmniTalkerConfig)
- **qwen2_5_omni_text** -- [Qwen2_5OmniTextConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniTextConfig) (модель Qwen2_5OmniTextConfig)
- **qwen2_5_omni_thinker** -- [Qwen2_5OmniThinkerConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerConfig) (модель Qwen2_5OmniThinkerConfig)
- **qwen2_5_omni_token2wav** -- [Qwen2_5OmniToken2WavConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniToken2WavConfig) (модель Qwen2_5OmniToken2WavConfig)
- **qwen2_5_omni_vision_encoder** -- [Qwen2_5OmniVisionEncoderConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniVisionEncoderConfig) (модель Qwen2_5OmniVisionEncoderConfig)
- **qwen2_5_vl** -- [Qwen2_5_VLConfig](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLConfig) (модель Qwen2_5_VLConfig)
- **qwen2_5_vl_text** -- [Qwen2_5_VLTextConfig](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLTextConfig) (модель Qwen2_5_VLTextConfig)
- **qwen2_5_vl_vision** -- [Qwen2_5_VLVisionConfig](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLVisionConfig) (модель Qwen2_5_VLVisionConfig)
- **qwen2_audio** -- [Qwen2AudioConfig](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioConfig) (модель Qwen2AudioConfig)
- **qwen2_audio_encoder** -- [Qwen2AudioEncoderConfig](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioEncoderConfig) (модель Qwen2AudioEncoderConfig)
- **qwen2_moe** -- [Qwen2MoeConfig](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeConfig) (модель Qwen2MoeConfig)
- **qwen2_vl** -- [Qwen2VLConfig](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLConfig) (модель Qwen2VLConfig)
- **qwen2_vl_text** -- [Qwen2VLTextConfig](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLTextConfig) (модель Qwen2VLTextConfig)
- **qwen2_vl_vision** -- [Qwen2VLVisionConfig](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLVisionConfig) (модель Qwen2VLVisionConfig)
- **qwen3** -- [Qwen3Config](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3Config) (модель Qwen3Config)
- **qwen3_5** -- [Qwen3_5Config](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Config) (модель Qwen3_5Config)
- **qwen3_5_moe** -- [Qwen3_5MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeConfig) (модель Qwen3_5MoeConfig)
- **qwen3_5_moe_text** -- [Qwen3_5MoeTextConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeTextConfig) (модель Qwen3_5MoeTextConfig)
- **qwen3_5_moe_vision** -- [Qwen3_5MoeVisionConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeVisionConfig) (модель Qwen3_5MoeVisionConfig)
- **qwen3_5_text** -- [Qwen3_5TextConfig](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5TextConfig) (модель Qwen3_5TextConfig)
- **qwen3_5_vision** -- [Qwen3_5VisionConfig](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5VisionConfig) (модель Qwen3_5VisionConfig)
- **qwen3_asr** -- [Qwen3ASRConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRConfig) (модель Qwen3ASRConfig)
- **qwen3_asr_encoder** -- [Qwen3ASREncoderConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASREncoderConfig) (модель Qwen3ASREncoderConfig)
- **qwen3_moe** -- [Qwen3MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeConfig) (модель Qwen3MoeConfig)
- **qwen3_next** -- [Qwen3NextConfig](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextConfig) (модель Qwen3NextConfig)
- **qwen3_omni_moe** -- [Qwen3OmniMoeConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeConfig) (модель Qwen3OmniMoeConfig)
- **qwen3_omni_moe_audio_encoder** -- [Qwen3OmniMoeAudioEncoderConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeAudioEncoderConfig) (модель Qwen3OmniMoeAudioEncoderConfig)
- **qwen3_omni_moe_talker_code_predictor** -- [Qwen3OmniMoeTalkerCodePredictorConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeTalkerCodePredictorConfig) (модель Qwen3OmniMoeTalkerCodePredictorConfig)
- **qwen3_omni_moe_talker_text** -- [Qwen3OmniMoeTalkerTextConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeTalkerTextConfig) (модель Qwen3OmniMoeTalkerTextConfig)
- **qwen3_omni_moe_text** -- [Qwen3OmniMoeTextConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeTextConfig) (модель Qwen3OmniMoeTextConfig)
- **qwen3_omni_moe_thinker** -- [Qwen3OmniMoeThinkerConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerConfig) (модель Qwen3OmniMoeThinkerConfig)
- **qwen3_omni_moe_vision_encoder** -- [Qwen3OmniMoeVisionEncoderConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeVisionEncoderConfig) (модель Qwen3OmniMoeVisionEncoderConfig)
- **qwen3_vl** -- [Qwen3VLConfig](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLConfig) (модель Qwen3VLConfig)
- **qwen3_vl_moe** -- [Qwen3VLMoeConfig](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeConfig) (модель Qwen3VLMoeConfig)
- **qwen3_vl_moe_text** -- [Qwen3VLMoeTextConfig](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeTextConfig) (модель Qwen3VLMoeTextConfig)
- **qwen3_vl_moe_vision** -- [Qwen3VLMoeVisionConfig](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeVisionConfig) (модель Qwen3VLMoeVisionConfig)
- **qwen3_vl_text** -- [Qwen3VLTextConfig](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLTextConfig) (модель Qwen3VLTextConfig)
- **qwen3_vl_vision** -- [Qwen3VLVisionConfig](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLVisionConfig) (модель Qwen3VLVisionConfig)
- **qwen4_exp** -- [Qwen4ExpConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpConfig) (модель Qwen4ExpConfig)
- **qwen4_exp_text** -- [Qwen4ExpTextConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpTextConfig) (модель Qwen4ExpTextConfig)
- **qwen4_exp_vision** -- [Qwen4ExpVisionConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpVisionConfig) (модель Qwen4ExpVisionConfig)
- **radio** -- [RadioConfig](/docs/transformers/main/ru/model_doc/radio#transformers.RadioConfig) (модель RadioConfig)
- **rag** -- [RagConfig](/docs/transformers/main/ru/model_doc/rag#transformers.RagConfig) (модель RagConfig)
- **recurrent_gemma** -- [RecurrentGemmaConfig](/docs/transformers/main/ru/model_doc/recurrent_gemma#transformers.RecurrentGemmaConfig) (модель RecurrentGemmaConfig)
- **reformer** -- [ReformerConfig](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerConfig) (модель ReformerConfig)
- **regnet** -- [RegNetConfig](/docs/transformers/main/ru/model_doc/regnet#transformers.RegNetConfig) (модель RegNetConfig)
- **rembert** -- [RemBertConfig](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertConfig) (модель RemBertConfig)
- **resnet** -- [ResNetConfig](/docs/transformers/main/ru/model_doc/resnet#transformers.ResNetConfig) (модель ResNetConfig)
- **rf_detr** -- [RfDetrConfig](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrConfig) (модель RfDetrConfig)
- **rf_detr_dinov2** -- [RfDetrDinov2Config](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrDinov2Config) (модель RfDetrDinov2Config)
- **roberta** -- [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig) (модель RoCBertConfig)
- **roformer** -- [RoFormerConfig](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerConfig) (модель RoFormerConfig)
- **rt_detr** -- [RTDetrConfig](/docs/transformers/main/ru/model_doc/rt_detr#transformers.RTDetrConfig) (модель RTDetrConfig)
- **rt_detr_resnet** -- [RTDetrResNetConfig](/docs/transformers/main/ru/model_doc/rt_detr#transformers.RTDetrResNetConfig) (модель RTDetrResNetConfig)
- **rt_detr_v2** -- [RTDetrV2Config](/docs/transformers/main/ru/model_doc/rt_detr_v2#transformers.RTDetrV2Config) (модель RTDetrV2Config)
- **rwkv** -- [RwkvConfig](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvConfig) (модель RwkvConfig)
- **sam** -- [SamConfig](/docs/transformers/main/ru/model_doc/sam#transformers.SamConfig) (модель SamConfig)
- **sam2** -- [Sam2Config](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2Config) (модель Sam2Config)
- **sam2_hiera_det_model** -- [Sam2HieraDetConfig](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2HieraDetConfig) (модель Sam2HieraDetConfig)
- **sam2_mask_decoder** -- [Sam2MaskDecoderConfig](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2MaskDecoderConfig) (модель Sam2MaskDecoderConfig)
- **sam2_prompt_encoder** -- [Sam2PromptEncoderConfig](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2PromptEncoderConfig) (модель Sam2PromptEncoderConfig)
- **sam2_video** -- [Sam2VideoConfig](/docs/transformers/main/ru/model_doc/sam2_video#transformers.Sam2VideoConfig) (модель Sam2VideoConfig)
- **sam2_video_mask_decoder** -- [Sam2VideoMaskDecoderConfig](/docs/transformers/main/ru/model_doc/sam2_video#transformers.Sam2VideoMaskDecoderConfig) (модель Sam2VideoMaskDecoderConfig)
- **sam2_video_prompt_encoder** -- [Sam2VideoPromptEncoderConfig](/docs/transformers/main/ru/model_doc/sam2_video#transformers.Sam2VideoPromptEncoderConfig) (модель Sam2VideoPromptEncoderConfig)
- **sam2_vision_model** -- [Sam2VisionConfig](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2VisionConfig) (модель Sam2VisionConfig)
- **sam3** -- [Sam3Config](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3Config) (модель Sam3Config)
- **sam3_detr_decoder** -- [Sam3DETRDecoderConfig](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3DETRDecoderConfig) (модель Sam3DETRDecoderConfig)
- **sam3_detr_encoder** -- [Sam3DETREncoderConfig](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3DETREncoderConfig) (модель Sam3DETREncoderConfig)
- **sam3_geometry_encoder** -- [Sam3GeometryEncoderConfig](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3GeometryEncoderConfig) (модель Sam3GeometryEncoderConfig)
- **sam3_lite_text** -- [Sam3LiteTextConfig](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextConfig) (модель Sam3LiteTextConfig)
- **sam3_lite_text_detr_decoder** -- [Sam3LiteTextDETRDecoderConfig](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextDETRDecoderConfig) (модель Sam3LiteTextDETRDecoderConfig)
- **sam3_lite_text_detr_encoder** -- [Sam3LiteTextDETREncoderConfig](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextDETREncoderConfig) (модель Sam3LiteTextDETREncoderConfig)
- **sam3_lite_text_geometry_encoder** -- [Sam3LiteTextGeometryEncoderConfig](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextGeometryEncoderConfig) (модель Sam3LiteTextGeometryEncoderConfig)
- **sam3_lite_text_mask_decoder** -- [Sam3LiteTextMaskDecoderConfig](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextMaskDecoderConfig) (модель Sam3LiteTextMaskDecoderConfig)
- **sam3_lite_text_text_model** -- [Sam3LiteTextTextConfig](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextTextConfig) (модель Sam3LiteTextTextConfig)
- **sam3_mask_decoder** -- [Sam3MaskDecoderConfig](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3MaskDecoderConfig) (модель Sam3MaskDecoderConfig)
- **sam3_tracker** -- [Sam3TrackerConfig](/docs/transformers/main/ru/model_doc/sam3_tracker#transformers.Sam3TrackerConfig) (модель Sam3TrackerConfig)
- **sam3_tracker_mask_decoder** -- [Sam3TrackerMaskDecoderConfig](/docs/transformers/main/ru/model_doc/sam3_tracker#transformers.Sam3TrackerMaskDecoderConfig) (модель Sam3TrackerMaskDecoderConfig)
- **sam3_tracker_prompt_encoder** -- [Sam3TrackerPromptEncoderConfig](/docs/transformers/main/ru/model_doc/sam3_tracker#transformers.Sam3TrackerPromptEncoderConfig) (модель Sam3TrackerPromptEncoderConfig)
- **sam3_tracker_video** -- [Sam3TrackerVideoConfig](/docs/transformers/main/ru/model_doc/sam3_tracker_video#transformers.Sam3TrackerVideoConfig) (модель Sam3TrackerVideoConfig)
- **sam3_tracker_video_mask_decoder** -- [Sam3TrackerVideoMaskDecoderConfig](/docs/transformers/main/ru/model_doc/sam3_tracker_video#transformers.Sam3TrackerVideoMaskDecoderConfig) (модель Sam3TrackerVideoMaskDecoderConfig)
- **sam3_tracker_video_prompt_encoder** -- [Sam3TrackerVideoPromptEncoderConfig](/docs/transformers/main/ru/model_doc/sam3_tracker_video#transformers.Sam3TrackerVideoPromptEncoderConfig) (модель Sam3TrackerVideoPromptEncoderConfig)
- **sam3_video** -- [Sam3VideoConfig](/docs/transformers/main/ru/model_doc/sam3_video#transformers.Sam3VideoConfig) (модель Sam3VideoConfig)
- **sam3_vision_model** -- [Sam3VisionConfig](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3VisionConfig) (модель Sam3VisionConfig)
- **sam3_vit_model** -- [Sam3ViTConfig](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3ViTConfig) (модель Sam3ViTConfig)
- **sam_hq** -- [SamHQConfig](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQConfig) (модель SamHQConfig)
- **sam_hq_mask_decoder** -- [SamHQMaskDecoderConfig](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQMaskDecoderConfig) (модель SamHQMaskDecoderConfig)
- **sam_hq_prompt_encoder** -- [SamHQPromptEncoderConfig](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQPromptEncoderConfig) (модель SamHQPromptEncoderConfig)
- **sam_hq_vision_model** -- [SamHQVisionConfig](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQVisionConfig) (модель SamHQVisionConfig)
- **sam_mask_decoder** -- [SamMaskDecoderConfig](/docs/transformers/main/ru/model_doc/sam#transformers.SamMaskDecoderConfig) (модель SamMaskDecoderConfig)
- **sam_prompt_encoder** -- [SamPromptEncoderConfig](/docs/transformers/main/ru/model_doc/sam#transformers.SamPromptEncoderConfig) (модель SamPromptEncoderConfig)
- **sam_vision_model** -- [SamVisionConfig](/docs/transformers/main/ru/model_doc/sam#transformers.SamVisionConfig) (модель SamVisionConfig)
- **sapiens2** -- [Sapiens2Config](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Config) (модель Sapiens2Config)
- **sapiens2_head** -- [Sapiens2HeadConfig](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2HeadConfig) (модель Sapiens2HeadConfig)
- **seamless_m4t** -- [SeamlessM4TConfig](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TConfig) (модель SeamlessM4TConfig)
- **seamless_m4t_v2** -- [SeamlessM4Tv2Config](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2Config) (модель SeamlessM4Tv2Config)
- **seed_oss** -- [SeedOssConfig](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssConfig) (модель SeedOssConfig)
- **segformer** -- [SegformerConfig](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerConfig) (модель SegformerConfig)
- **seggpt** -- [SegGptConfig](/docs/transformers/main/ru/model_doc/seggpt#transformers.SegGptConfig) (модель SegGptConfig)
- **sew** -- [SEWConfig](/docs/transformers/main/ru/model_doc/sew#transformers.SEWConfig) (модель SEWConfig)
- **sew-d** -- [SEWDConfig](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDConfig) (модель SEWDConfig)
- **shieldgemma2** -- [ShieldGemma2Config](/docs/transformers/main/ru/model_doc/shieldgemma2#transformers.ShieldGemma2Config) (модель ShieldGemma2Config)
- **siglip** -- [SiglipConfig](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipConfig) (модель SiglipConfig)
- **siglip2** -- [Siglip2Config](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Config) (модель Siglip2Config)
- **siglip2_text_model** -- [Siglip2TextConfig](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2TextConfig) (модель Siglip2TextConfig)
- **siglip2_vision_model** -- [Siglip2VisionConfig](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2VisionConfig) (модель Siglip2VisionConfig)
- **siglip_text_model** -- [SiglipTextConfig](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipTextConfig) (модель SiglipTextConfig)
- **siglip_vision_model** -- [SiglipVisionConfig](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipVisionConfig) (модель SiglipVisionConfig)
- **slanet** -- [SLANetConfig](/docs/transformers/main/ru/model_doc/slanet#transformers.SLANetConfig) (модель SLANetConfig)
- **slanext** -- [SLANeXtConfig](/docs/transformers/main/ru/model_doc/slanext#transformers.SLANeXtConfig) (модель SLANeXtConfig)
- **slanext_vision** -- [SLANeXtVisionConfig](/docs/transformers/main/ru/model_doc/slanext#transformers.SLANeXtVisionConfig) (модель SLANeXtVisionConfig)
- **smollm3** -- [SmolLM3Config](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3Config) (модель SmolLM3Config)
- **smolvlm** -- [SmolVLMConfig](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMConfig) (модель SmolVLMConfig)
- **smolvlm_vision** -- [SmolVLMVisionConfig](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMVisionConfig) (модель SmolVLMVisionConfig)
- **solar_open** -- [SolarOpenConfig](/docs/transformers/main/ru/model_doc/solar_open#transformers.SolarOpenConfig) (модель SolarOpenConfig)
- **speech-encoder-decoder** -- [SpeechEncoderDecoderConfig](/docs/transformers/main/ru/model_doc/speech-encoder-decoder#transformers.SpeechEncoderDecoderConfig) (модель SpeechEncoderDecoderConfig)
- **speech_to_text** -- [Speech2TextConfig](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextConfig) (модель Speech2TextConfig)
- **speecht5** -- [SpeechT5Config](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5Config) (модель SpeechT5Config)
- **speecht5_hifigan** -- [SpeechT5HifiGanConfig](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5HifiGanConfig) (модель SpeechT5HifiGanConfig)
- **splinter** -- [SplinterConfig](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterConfig) (модель SplinterConfig)
- **squeezebert** -- [SqueezeBertConfig](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertConfig) (модель SqueezeBertConfig)
- **stablelm** -- [StableLmConfig](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmConfig) (модель StableLmConfig)
- **starcoder2** -- [Starcoder2Config](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2Config) (модель Starcoder2Config)
- **step3p5** -- [Step3p7TextConfig](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7TextConfig) (модель Step3p7TextConfig)
- **step3p5_vision** -- [Step3p7VisionConfig](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7VisionConfig) (модель Step3p7VisionConfig)
- **step3p7** -- [Step3p7Config](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7Config) (модель Step3p7Config)
- **superglue** -- [SuperGlueConfig](/docs/transformers/main/ru/model_doc/superglue#transformers.SuperGlueConfig) (модель SuperGlueConfig)
- **superpoint** -- [SuperPointConfig](/docs/transformers/main/ru/model_doc/superpoint#transformers.SuperPointConfig) (модель SuperPointConfig)
- **swiftformer** -- [SwiftFormerConfig](/docs/transformers/main/ru/model_doc/swiftformer#transformers.SwiftFormerConfig) (модель SwiftFormerConfig)
- **swin** -- [SwinConfig](/docs/transformers/main/ru/model_doc/swin#transformers.SwinConfig) (модель SwinConfig)
- **swin2sr** -- [Swin2SRConfig](/docs/transformers/main/ru/model_doc/swin2sr#transformers.Swin2SRConfig) (модель Swin2SRConfig)
- **swinv2** -- [Swinv2Config](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2Config) (модель Swinv2Config)
- **switch_transformers** -- [SwitchTransformersConfig](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersConfig) (модель SwitchTransformersConfig)
- **t5** -- [T5Config](/docs/transformers/main/ru/model_doc/t5#transformers.T5Config) (модель T5Config)
- **t5_gemma_module** -- [T5GemmaModuleConfig](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaModuleConfig) (модель T5GemmaModuleConfig)
- **t5gemma** -- [T5GemmaConfig](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaConfig) (модель T5GemmaConfig)
- **t5gemma2** -- [T5Gemma2Config](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Config) (модель T5Gemma2Config)
- **t5gemma2_decoder** -- [T5Gemma2DecoderConfig](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2DecoderConfig) (модель T5Gemma2DecoderConfig)
- **t5gemma2_encoder** -- [T5Gemma2EncoderConfig](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2EncoderConfig) (модель T5Gemma2EncoderConfig)
- **t5gemma2_text** -- [T5Gemma2TextConfig](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2TextConfig) (модель T5Gemma2TextConfig)
- **table-transformer** -- [TableTransformerConfig](/docs/transformers/main/ru/model_doc/table-transformer#transformers.TableTransformerConfig) (модель TableTransformerConfig)
- **tapas** -- [TapasConfig](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasConfig) (модель TapasConfig)
- **textnet** -- [TextNetConfig](/docs/transformers/main/ru/model_doc/textnet#transformers.TextNetConfig) (модель TextNetConfig)
- **time_series_transformer** -- [TimeSeriesTransformerConfig](/docs/transformers/main/ru/model_doc/time_series_transformer#transformers.TimeSeriesTransformerConfig) (модель TimeSeriesTransformerConfig)
- **timesfm** -- [TimesFmConfig](/docs/transformers/main/ru/model_doc/timesfm#transformers.TimesFmConfig) (модель TimesFmConfig)
- **timesfm2_5** -- [TimesFm2_5Config](/docs/transformers/main/ru/model_doc/timesfm2_5#transformers.TimesFm2_5Config) (модель TimesFm2_5Config)
- **timesformer** -- [TimesformerConfig](/docs/transformers/main/ru/model_doc/timesformer#transformers.TimesformerConfig) (модель TimesformerConfig)
- **timm_backbone** -- [TimmBackboneConfig](/docs/transformers/main/ru/main_classes/backbones#transformers.TimmBackboneConfig) (модель TimmBackboneConfig)
- **timm_wrapper** -- [TimmWrapperConfig](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperConfig) (модель TimmWrapperConfig)
- **tipsv2** -- [Tipsv2Config](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Config) (модель Tipsv2Config)
- **tipsv2_dpt** -- [Tipsv2DptConfig](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptConfig) (модель Tipsv2DptConfig)
- **tipsv2_text_model** -- [Tipsv2TextConfig](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2TextConfig) (модель Tipsv2TextConfig)
- **tipsv2_vision_model** -- [Tipsv2VisionConfig](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2VisionConfig) (модель Tipsv2VisionConfig)
- **trocr** -- [TrOCRConfig](/docs/transformers/main/ru/model_doc/trocr#transformers.TrOCRConfig) (модель TrOCRConfig)
- **tvp** -- [TvpConfig](/docs/transformers/main/ru/model_doc/tvp#transformers.TvpConfig) (модель TvpConfig)
- **udop** -- [UdopConfig](/docs/transformers/main/ru/model_doc/udop#transformers.UdopConfig) (модель UdopConfig)
- **ultrabert** -- [UltrabertConfig](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertConfig) (модель UltrabertConfig)
- **ultravbert** -- [UltraVBertConfig](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertConfig) (модель UltraVBertConfig)
- **umt5** -- [UMT5Config](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5Config) (модель UMT5Config)
- **unispeech** -- [UniSpeechConfig](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechConfig) (модель UniSpeechConfig)
- **unispeech-sat** -- [UniSpeechSatConfig](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatConfig) (модель UniSpeechSatConfig)
- **univnet** -- [UnivNetConfig](/docs/transformers/main/ru/model_doc/univnet#transformers.UnivNetConfig) (модель UnivNetConfig)
- **unlimited_ocr** -- [UnlimitedOcrConfig](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrConfig) (модель UnlimitedOcrConfig)
- **unlimited_ocr_sam_vision_model** -- [UnlimitedOcrSamVisionConfig](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrSamVisionConfig) (модель UnlimitedOcrSamVisionConfig)
- **unlimited_ocr_text** -- [UnlimitedOcrTextConfig](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrTextConfig) (модель UnlimitedOcrTextConfig)
- **unlimited_ocr_vision** -- [UnlimitedOcrVisionConfig](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrVisionConfig) (модель UnlimitedOcrVisionConfig)
- **unlimited_ocr_vision_encoder** -- [UnlimitedOcrVisionEncoderConfig](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrVisionEncoderConfig) (модель UnlimitedOcrVisionEncoderConfig)
- **upernet** -- [UperNetConfig](/docs/transformers/main/ru/model_doc/upernet#transformers.UperNetConfig) (модель UperNetConfig)
- **uvdoc** -- [UVDocConfig](/docs/transformers/main/ru/model_doc/uvdoc#transformers.UVDocConfig) (модель UVDocConfig)
- **uvdoc_backbone** -- [UVDocBackboneConfig](/docs/transformers/main/ru/model_doc/uvdoc#transformers.UVDocBackboneConfig) (модель UVDocBackboneConfig)
- **vaultgemma** -- [VaultGemmaConfig](/docs/transformers/main/ru/model_doc/vaultgemma#transformers.VaultGemmaConfig) (модель VaultGemmaConfig)
- **vibevoice** -- [VibeVoiceConfig](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceConfig) (модель VibeVoiceConfig)
- **vibevoice_acoustic_tokenizer** -- [VibeVoiceAcousticTokenizerConfig](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerConfig) (модель VibeVoiceAcousticTokenizerConfig)
- **vibevoice_acoustic_tokenizer_decoder** -- [VibeVoiceAcousticTokenizerDecoderConfig](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerDecoderConfig) (модель VibeVoiceAcousticTokenizerDecoderConfig)
- **vibevoice_acoustic_tokenizer_encoder** -- [VibeVoiceAcousticTokenizerEncoderConfig](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerEncoderConfig) (модель VibeVoiceAcousticTokenizerEncoderConfig)
- **vibevoice_asr** -- [VibeVoiceAsrConfig](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrConfig) (модель VibeVoiceAsrConfig)
- **vibevoice_diffusion** -- [VibeVoiceDiffusionHeadConfig](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceDiffusionHeadConfig) (модель VibeVoiceDiffusionHeadConfig)
- **video_llama_3** -- [VideoLlama3Config](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3Config) (модель VideoLlama3Config)
- **video_llama_3_vision** -- [VideoLlama3VisionConfig](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3VisionConfig) (модель VideoLlama3VisionConfig)
- **video_llava** -- [VideoLlavaConfig](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaConfig) (модель VideoLlavaConfig)
- **videomae** -- [VideoMAEConfig](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEConfig) (модель VideoMAEConfig)
- **videomt** -- [VideomtConfig](/docs/transformers/main/ru/model_doc/videomt#transformers.VideomtConfig) (модель VideomtConfig)
- **videoprism** -- [VideoPrismConfig](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismConfig) (модель VideoPrismConfig)
- **videoprism_text_model** -- [VideoPrismTextConfig](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismTextConfig) (модель VideoPrismTextConfig)
- **videoprism_vision_model** -- [VideoPrismVisionConfig](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismVisionConfig) (модель VideoPrismVisionConfig)
- **vilt** -- [ViltConfig](/docs/transformers/main/ru/model_doc/vilt#transformers.ViltConfig) (модель ViltConfig)
- **vipllava** -- [VipLlavaConfig](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaConfig) (модель VipLlavaConfig)
- **vision-encoder-decoder** -- [VisionEncoderDecoderConfig](/docs/transformers/main/ru/model_doc/vision-encoder-decoder#transformers.VisionEncoderDecoderConfig) (модель VisionEncoderDecoderConfig)
- **vision-text-dual-encoder** -- [VisionTextDualEncoderConfig](/docs/transformers/main/ru/model_doc/vision-text-dual-encoder#transformers.VisionTextDualEncoderConfig) (модель VisionTextDualEncoderConfig)
- **visual_bert** -- [VisualBertConfig](/docs/transformers/main/ru/model_doc/visual_bert#transformers.VisualBertConfig) (модель VisualBertConfig)
- **vit** -- [ViTConfig](/docs/transformers/main/ru/model_doc/vit#transformers.ViTConfig) (модель ViTConfig)
- **vit_mae** -- [ViTMAEConfig](/docs/transformers/main/ru/model_doc/vit_mae#transformers.ViTMAEConfig) (модель ViTMAEConfig)
- **vit_msn** -- [ViTMSNConfig](/docs/transformers/main/ru/model_doc/vit_msn#transformers.ViTMSNConfig) (модель ViTMSNConfig)
- **vitdet** -- [VitDetConfig](/docs/transformers/main/ru/model_doc/vitdet#transformers.VitDetConfig) (модель VitDetConfig)
- **vitmatte** -- [VitMatteConfig](/docs/transformers/main/ru/model_doc/vitmatte#transformers.VitMatteConfig) (модель VitMatteConfig)
- **vitpose** -- [VitPoseConfig](/docs/transformers/main/ru/model_doc/vitpose#transformers.VitPoseConfig) (модель VitPoseConfig)
- **vitpose_backbone** -- `VitPoseBackboneConfig` (модель VitPoseBackboneConfig)
- **vits** -- [VitsConfig](/docs/transformers/main/ru/model_doc/vits#transformers.VitsConfig) (модель VitsConfig)
- **vivit** -- [VivitConfig](/docs/transformers/main/ru/model_doc/vivit#transformers.VivitConfig) (модель VivitConfig)
- **vjepa2** -- [VJEPA2Config](/docs/transformers/main/ru/model_doc/vjepa2#transformers.VJEPA2Config) (модель VJEPA2Config)
- **voxtral** -- [VoxtralConfig](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralConfig) (модель VoxtralConfig)
- **voxtral_encoder** -- [VoxtralEncoderConfig](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralEncoderConfig) (модель VoxtralEncoderConfig)
- **voxtral_realtime** -- [VoxtralRealtimeConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeConfig) (модель VoxtralRealtimeConfig)
- **voxtral_realtime_encoder** -- [VoxtralRealtimeEncoderConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeEncoderConfig) (модель VoxtralRealtimeEncoderConfig)
- **voxtral_realtime_text** -- [VoxtralRealtimeTextConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeTextConfig) (модель VoxtralRealtimeTextConfig)
- **wav2vec2** -- [Wav2Vec2Config](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Config) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2BertConfig](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertConfig) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2ConformerConfig](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerConfig) (модель Wav2Vec2ConformerConfig)
- **wavlm** -- [WavLMConfig](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMConfig) (модель WavLMConfig)
- **whisper** -- [WhisperConfig](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperConfig) (модель WhisperConfig)
- **xclip** -- [XCLIPConfig](/docs/transformers/main/ru/model_doc/xclip#transformers.XCLIPConfig) (модель XCLIPConfig)
- **xclip_text_model** -- [XCLIPTextConfig](/docs/transformers/main/ru/model_doc/xclip#transformers.XCLIPTextConfig) (модель XCLIPTextConfig)
- **xclip_vision_model** -- [XCLIPVisionConfig](/docs/transformers/main/ru/model_doc/xclip#transformers.XCLIPVisionConfig) (модель XCLIPVisionConfig)
- **xcodec** -- [XcodecConfig](/docs/transformers/main/ru/model_doc/xcodec#transformers.XcodecConfig) (модель XcodecConfig)
- **xcodec2** -- [Xcodec2Config](/docs/transformers/main/ru/model_doc/xcodec2#transformers.Xcodec2Config) (модель Xcodec2Config)
- **xglm** -- [XGLMConfig](/docs/transformers/main/ru/model_doc/xglm#transformers.XGLMConfig) (модель XGLMConfig)
- **xlm** -- [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetConfig](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetConfig) (модель XLNetConfig)
- **xlstm** -- [xLSTMConfig](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMConfig) (модель xLSTMConfig)
- **xmod** -- [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig) (модель XmodConfig)
- **yolos** -- [YolosConfig](/docs/transformers/main/ru/model_doc/yolos#transformers.YolosConfig) (модель YolosConfig)
- **yoso** -- [YosoConfig](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoConfig) (модель YosoConfig)
- **youtu** -- [YoutuConfig](/docs/transformers/main/ru/model_doc/youtu#transformers.YoutuConfig) (модель YoutuConfig)
- **zamba** -- [ZambaConfig](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaConfig) (модель ZambaConfig)
- **zamba2** -- [Zamba2Config](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2Config) (модель Zamba2Config)
- **zaya** -- [ZayaConfig](/docs/transformers/main/ru/model_doc/zaya#transformers.ZayaConfig) (модель ZayaConfig)
- **zoedepth** -- [ZoeDepthConfig](/docs/transformers/main/ru/model_doc/zoedepth#transformers.ZoeDepthConfig) (модель ZoeDepthConfig)

Примеры:

```python
>>> from transformers import AutoConfig

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-uncased")

>>> # Download configuration from huggingface.co (user-uploaded) and cache.
>>> config = AutoConfig.from_pretrained("dbmdz/bert-base-german-cased")

>>> # If configuration file is in a directory (e.g., was saved using *save_pretrained('./test/saved_model/')*).
>>> config = AutoConfig.from_pretrained("./test/bert_saved_model/")

>>> # Load a specific configuration file.
>>> config = AutoConfig.from_pretrained("./test/bert_saved_model/my_configuration.json")

>>> # Change some config attributes when loading a pretrained config.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-uncased", output_attentions=True, foo=False)
>>> config.output_attentions
True

>>> config, unused_kwargs = AutoConfig.from_pretrained(
...     "google-bert/bert-base-uncased", output_attentions=True, foo=False, return_unused_kwargs=True
... )
>>> config.output_attentions
True

>>> unused_kwargs
{'foo': False}
```

#### register[[transformers.AutoConfig.register]]

```python
register(model_type, config, exist_ok = False)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/configuration_auto.py#L455)

**Параметры:**

model_type (`str`) : Тип модели, например "bert" или "gpt".

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)): конфигурация для регистрации.

Зарегистрируйте новую конфигурацию для этого класса.

## AutoTokenizer[[transformers.AutoTokenizer]]

#### transformers.AutoTokenizer[[transformers.AutoTokenizer]]

```python
transformers.AutoTokenizer()
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/tokenization_auto.py#L656)

Это универсальный класс токенизатора, который при создании с помощью метода класса [AutoTokenizer.from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoTokenizer.from_pretrained) будет инициализирован как один из классов токенизаторов библиотеки.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_pretrained[[transformers.AutoTokenizer.from_pretrained]]

```python
from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/tokenization_auto.py#L670)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из следующих:  - строка, *model id* предопределенного токенизатора, размещенного в репозитории модели на huggingface.co. - путь к *каталогу*, содержащему файлы словаря, необходимые для токенизатора, например, сохраненные с помощью метода [save_pretrained()](/docs/transformers/main/ru/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.save_pretrained), например, `./my_model_directory/`. - путь к одному сохраненному файлу словаря, если и только если токенизатору требуется один файл словаря (как в случае с Bert или XLNet), например: `./my_model_directory/vocab.txt`. (Не применимо ко всем производным классам)

inputs (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` токенизатора.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *optional*) : Объект конфигурации, используемый для определения класса токенизатора, который будет создан.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)скачивать веса модели и файлы конфигурации, заменяя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

subfolder (`str`, *необязательный*) : Если соответствующие файлы находятся в подпапке репозитория модели на huggingface.co (например, для facebook/rag-token-base), укажите её здесь.

tokenizer_type (`str`, *необязательный*) : Тип токенизатора, который будет загружен.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

kwargs (дополнительные аргументы ключ-значение, *необязательные*) : Передаются в метод `__init__()` Tokenizer. Можно использовать для установки специальных токенов, таких как `bos_token`, `eos_token`, `unk_token`, `sep_token`, `pad_token`, `cls_token`, `mask_token`, `additional_special_tokens`. Подробнее о параметрах см. в `__init__()`.

Создайте экземпляр одного из классов токенизаторов библиотеки на основе словаря предобученной модели.

Класс токенизатора, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **EvollaModel** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель EvollaConfig)
- **aimv2** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель Aimv2Config)
- **albert** -- [AlbertTokenizer](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertTokenizer) (модель AlbertConfig)
- **align** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель AlignConfig)
- **aria** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель AriaConfig)
- **audioflamingo3** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель AudioFlamingo3Config)
- **aya_vision** -- [CohereTokenizer](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereTokenizer) (модель AyaVisionConfig)
- **bark** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель BarkConfig)
- **bart** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель BartConfig)
- **beam** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель BeamConfig)
- **bert** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель BertConfig)
- **bert-generation** -- [BertGenerationTokenizer](/docs/transformers/main/ru/model_doc/bert-generation#transformers.BertGenerationTokenizer) (модель BertGenerationConfig)
- **big_bird** -- [BigBirdTokenizer](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdTokenizer) (модель BigBirdConfig)
- **bigbird_pegasus** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель BigBirdPegasusConfig)
- **biogpt** -- [BioGptTokenizer](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptTokenizer) (модель BioGptConfig)
- **blenderbot** -- [BlenderbotTokenizer](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotTokenizer) (модель BlenderbotConfig)
- **blenderbot-small** -- [BlenderbotSmallTokenizer](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallTokenizer) (модель BlenderbotSmallConfig)
- **blip** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель BlipConfig)
- **blip-2** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель Blip2Config)
- **bridgetower** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель BridgeTowerConfig)
- **bros** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель BrosConfig)
- **camembert** -- [CamembertTokenizer](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertTokenizer) (модель CamembertConfig)
- **canary** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель CanaryConfig)
- **canine** -- [CanineTokenizer](/docs/transformers/main/ru/model_doc/canine#transformers.CanineTokenizer) (модель CanineConfig)
- **chinese_clip** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель ChineseCLIPConfig)
- **clap** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель ClapConfig)
- **clip** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель CLIPConfig)
- **clipseg** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель CLIPSegConfig)
- **clvp** -- [ClvpTokenizer](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpTokenizer) (модель ClvpConfig)
- **codegen** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель CodeGenConfig)
- **cohere** -- [CohereTokenizer](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereTokenizer) (модель CohereConfig)
- **cohere2** -- [CohereTokenizer](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereTokenizer) (модель Cohere2Config)
- **cohere_asr** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель CohereAsrConfig)
- **colqwen2** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель ColQwen2Config)
- **convbert** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель ConvBertConfig)
- **cosmos3_omni** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Cosmos3OmniConfig)
- **cpmant** -- [CpmAntTokenizer](/docs/transformers/main/ru/model_doc/cpmant#transformers.CpmAntTokenizer) (модель CpmAntConfig)
- **ctrl** -- [CTRLTokenizer](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLTokenizer) (модель CTRLConfig)
- **data2vec-audio** -- [Wav2Vec2CTCTokenizer](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer) (модель Data2VecAudioConfig)
- **data2vec-text** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель Data2VecTextConfig)
- **dbrx** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель DbrxConfig)
- **deberta** -- [DebertaTokenizer](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaTokenizer) (модель DebertaConfig)
- **deberta-v2** -- [DebertaV2Tokenizer](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Tokenizer) (модель DebertaV2Config)
- **dia** -- [DiaTokenizer](/docs/transformers/main/ru/model_doc/dia#transformers.DiaTokenizer) (модель DiaConfig)
- **diffusion_gemma** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель DiffusionGemmaConfig)
- **distilbert** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель DistilBertConfig)
- **dpr** -- [DPRQuestionEncoderTokenizer](/docs/transformers/main/ru/model_doc/dpr#transformers.DPRQuestionEncoderTokenizer) (модель DPRConfig)
- **electra** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель ElectraConfig)
- **emu3** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель Emu3Config)
- **ernie** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель ErnieConfig)
- **ernie4_5** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Ernie4_5Config)
- **ernie4_5_moe** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Ernie4_5_MoeConfig)
- **esm** -- [EsmTokenizer](/docs/transformers/main/ru/model_doc/esm#transformers.EsmTokenizer) (модель EsmConfig)
- **esmc** -- [EsmcTokenizer](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcTokenizer) (модель EsmcConfig)
- **esmfold2** -- [EsmcTokenizer](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcTokenizer) (модель EsmFold2Config)
- **falcon_mamba** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель FalconMambaConfig)
- **fastspeech2_conformer** -- `None` (модель FastSpeech2ConformerConfig)
- **flaubert** -- [FlaubertTokenizer](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertTokenizer) (модель FlaubertConfig)
- **flava** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель FlavaConfig)
- **flex_olmo** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель FlexOlmoConfig)
- **florence2** -- [BartTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель Florence2Config)
- **fnet** -- [FNetTokenizer](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetTokenizer) (модель FNetConfig)
- **fsmt** -- [FSMTTokenizer](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTTokenizer) (модель FSMTConfig)
- **fun_asr_nano** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель FunAsrNanoConfig)
- **funnel** -- [FunnelTokenizer](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelTokenizer) (модель FunnelConfig)
- **fuyu** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель FuyuConfig)
- **gemma** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель GemmaConfig)
- **gemma2** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель Gemma2Config)
- **gemma3** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель Gemma3Config)
- **gemma3_text** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель Gemma3TextConfig)
- **gemma3n** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель Gemma3nConfig)
- **gemma3n_text** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель Gemma3nTextConfig)
- **git** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель GitConfig)
- **glm** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GlmConfig)
- **glm4** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Glm4Config)
- **glm4_moe** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Glm4MoeConfig)
- **glm4_moe_lite** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Glm4MoeLiteConfig)
- **glm4v** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Glm4vConfig)
- **glm4v_moe** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Glm4vMoeConfig)
- **glm_image** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GlmImageConfig)
- **glmasr** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GlmAsrConfig)
- **got_ocr2** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GotOcr2Config)
- **gpt-sw3** -- [GPTSw3Tokenizer](/docs/transformers/main/ru/model_doc/gpt-sw3#transformers.GPTSw3Tokenizer) (модель GPT2Config)
- **gpt2** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель GPT2Config)
- **gpt_bigcode** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GPTBigCodeConfig)
- **gpt_neo** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель GPTNeoConfig)
- **gpt_neox** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель GPTNeoXConfig)
- **gpt_neox_japanese** -- [GPTNeoXJapaneseTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox_japanese#transformers.GPTNeoXJapaneseTokenizer) (модель GPTNeoXJapaneseConfig)
- **gptj** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель GPTJConfig)
- **gradium_phonon_tts** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GradiumPhononTTSConfig)
- **granite** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GraniteConfig)
- **granite_speech5_ctc** -- [ParakeetTokenizer](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTokenizer) (модель GraniteSpeech5CTCConfig)
- **granitemoe** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GraniteMoeConfig)
- **granitemoehybrid** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GraniteMoeHybridConfig)
- **granitemoeshared** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель GraniteMoeSharedConfig)
- **grounding-dino** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель GroundingDinoConfig)
- **groupvit** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель GroupViTConfig)
- **gte** -- [XLMRobertaTokenizer](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaTokenizer) (модель GteConfig)
- **hubert** -- [Wav2Vec2CTCTokenizer](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer) (модель HubertConfig)
- **hunyuan_vl** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель HunYuanVLConfig)
- **hyperclovax** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель HyperCLOVAXConfig)
- **hyperclovax_vision_v2** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель HyperCLOVAXVisionV2Config)
- **ibert** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель IBertConfig)
- **idefics** -- [LlamaTokenizer](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaTokenizer) (модель IdeficsConfig)
- **idefics2** -- [LlamaTokenizer](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaTokenizer) (модель Idefics2Config)
- **instructblip** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель InstructBlipConfig)
- **instructblipvideo** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель InstructBlipVideoConfig)
- **internvl** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель InternVLConfig)
- **jais2** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель Jais2Config)
- **jamba** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель JambaConfig)
- **jina_embeddings_v3** -- [XLMRobertaTokenizer](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaTokenizer) (модель JinaEmbeddingsV3Config)
- **kimi_k25** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Kimi_K25Config)
- **kimi_linear** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель KimiLinearConfig)
- **kosmos-2** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Kosmos2Config)
- **lasr_ctc** -- [LasrTokenizer](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrTokenizer) (модель LasrCTCConfig)
- **lasr_encoder** -- [LasrTokenizer](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrTokenizer) (модель LasrEncoderConfig)
- **layoutlm** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель LayoutLMConfig)
- **layoutlmv2** -- [LayoutLMv2Tokenizer](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Tokenizer) (модель LayoutLMv2Config)
- **layoutlmv3** -- [LayoutLMv3Tokenizer](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Tokenizer) (модель LayoutLMv3Config)
- **layoutxlm** -- [LayoutXLMTokenizer](/docs/transformers/main/ru/model_doc/layoutxlm#transformers.LayoutXLMTokenizer) (модель LayoutXLMConfig)
- **led** -- [LEDTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель LEDConfig)
- **lighton_ocr** -- [Qwen2TokenizerFast](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель LightOnOcrConfig)
- **lilt** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель LiltConfig)
- **llava** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель LlavaConfig)
- **llava_next** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель LlavaNextConfig)
- **longformer** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель LongformerConfig)
- **luke** -- [LukeTokenizer](/docs/transformers/main/ru/model_doc/luke#transformers.LukeTokenizer) (модель LukeConfig)
- **lxmert** -- [LxmertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель LxmertConfig)
- **m2m_100** -- [M2M100Tokenizer](/docs/transformers/main/ru/model_doc/m2m_100#transformers.M2M100Tokenizer) (модель M2M100Config)
- **mamba** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель MambaConfig)
- **mamba2** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель Mamba2Config)
- **marian** -- [MarianTokenizer](/docs/transformers/main/ru/model_doc/marian#transformers.MarianTokenizer) (модель MarianConfig)
- **markuplm** -- [MarkupLMTokenizer](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMTokenizer) (модель MarkupLMConfig)
- **mbart** -- [MBartTokenizer](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartTokenizer) (модель MBartConfig)
- **megatron-bert** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель MegatronBertConfig)
- **metaclip_2** -- [XLMRobertaTokenizer](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaTokenizer) (модель MetaClip2Config)
- **mgp-str** -- [MgpstrTokenizer](/docs/transformers/main/ru/model_doc/mgp-str#transformers.MgpstrTokenizer) (модель MgpstrConfig)
- **mimo_v2_flash** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель MiMoV2FlashConfig)
- **minicpm3** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель MiniCPM3Config)
- **minicpm_ocr** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель MiniCPMOcrConfig)
- **minicpmv4_6** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель MiniCPMV4_6Config)
- **minicpmv4_7** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель MiniCPMV4_7Config)
- **minimax_m2** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель MiniMaxM2Config)
- **ministral** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель MinistralConfig)
- **ministral3** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель Ministral3Config)
- **mistral** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель MistralConfig)
- **mistral3** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель Mistral3Config)
- **mistral_large4** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель MistralLarge4Config)
- **mixtral** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель MixtralConfig)
- **mm-grounding-dino** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель MMGroundingDinoConfig)
- **mobilebert** -- [MobileBertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель MobileBertConfig)
- **modernbert** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель ModernBertConfig)
- **modernbert-decoder** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель ModernBertDecoderConfig)
- **molmo2** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Molmo2Config)
- **moss_transcribe_diarize** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель MossTranscribeDiarizeConfig)
- **mpnet** -- [MPNetTokenizer](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetTokenizer) (модель MPNetConfig)
- **mpt** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель MptConfig)
- **mra** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель MraConfig)
- **mt5** -- [T5Tokenizer](/docs/transformers/main/ru/model_doc/t5#transformers.T5Tokenizer) (модель MT5Config)
- **musicgen** -- [T5Tokenizer](/docs/transformers/main/ru/model_doc/t5#transformers.T5Tokenizer) (модель MusicgenConfig)
- **musicgen_melody** -- [T5Tokenizer](/docs/transformers/main/ru/model_doc/t5#transformers.T5Tokenizer) (модель MusicgenMelodyConfig)
- **mvp** -- [MvpTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель MvpConfig)
- **nemo_speechlm** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Nemotron3_5TranscribeConfig)
- **nemotron** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель NemotronConfig)
- **nemotron3_5_asr** -- [ParakeetTokenizer](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTokenizer) (модель Nemotron3_5AsrConfig)
- **nemotron_asr_streaming** -- [ParakeetTokenizer](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTokenizer) (модель NemotronAsrStreamingConfig)
- **nllb-moe** -- [NllbTokenizer](/docs/transformers/main/ru/model_doc/nllb#transformers.NllbTokenizer) (модель NllbMoeConfig)
- **nomic_bert** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель NomicBertConfig)
- **nougat** -- [NougatTokenizer](/docs/transformers/main/ru/model_doc/nougat#transformers.NougatTokenizer) (модель NougatConfig)
- **nystromformer** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель NystromformerConfig)
- **olmo** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель OlmoConfig)
- **olmo2** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Olmo2Config)
- **olmo3** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Olmo3Config)
- **olmo_hybrid** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель OlmoHybridConfig)
- **olmoe** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель OlmoeConfig)
- **omdet-turbo** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель OmDetTurboConfig)
- **oneformer** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель OneFormerConfig)
- **openai-gpt** -- [OpenAIGPTTokenizer](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTTokenizer) (модель OpenAIGPTConfig)
- **opt** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель OPTConfig)
- **ovis2** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Ovis2Config)
- **owlv2** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель Owlv2Config)
- **owlvit** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель OwlViTConfig)
- **paddleocr_vl** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель PaddleOCRVLConfig)
- **parakeet_ctc** -- [ParakeetTokenizer](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTokenizer) (модель ParakeetCTCConfig)
- **parakeet_rnnt** -- [ParakeetTokenizer](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTokenizer) (модель ParakeetRNNTConfig)
- **parakeet_tdt** -- [ParakeetTokenizer](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTokenizer) (модель ParakeetTDTConfig)
- **pegasus** -- [PegasusTokenizer](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusTokenizer) (модель PegasusConfig)
- **pegasus_x** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель PegasusXConfig)
- **perceiver** -- [PerceiverTokenizer](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverTokenizer) (модель PerceiverConfig)
- **persimmon** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель PersimmonConfig)
- **phi** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель PhiConfig)
- **phi3** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Phi3Config)
- **phimoe** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель PhimoeConfig)
- **pix2struct** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель Pix2StructConfig)
- **pixtral** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель PixtralVisionConfig)
- **plbart** -- [PLBartTokenizer](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartTokenizer) (модель PLBartConfig)
- **pocket_tts** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель PocketTTSConfig)
- **pp_formulanet** -- [NougatTokenizer](/docs/transformers/main/ru/model_doc/nougat#transformers.NougatTokenizer) (модель PPFormulaNetConfig)
- **prophetnet** -- [ProphetNetTokenizer](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetTokenizer) (модель ProphetNetConfig)
- **qianfan_ocr** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель QianfanOCRConfig)
- **qwen2** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen2Config)
- **qwen2_5_omni** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen2_5OmniConfig)
- **qwen2_5_vl** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen2_5_VLConfig)
- **qwen2_audio** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen2AudioConfig)
- **qwen2_moe** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen2MoeConfig)
- **qwen2_vl** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen2VLConfig)
- **qwen3** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen3Config)
- **qwen3_5** -- [Qwen3_5Tokenizer](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Tokenizer) (модель Qwen3_5Config)
- **qwen3_5_moe** -- [Qwen3_5Tokenizer](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Tokenizer) (модель Qwen3_5MoeConfig)
- **qwen3_5_moe_text** -- [Qwen3_5Tokenizer](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Tokenizer) (модель Qwen3_5MoeTextConfig)
- **qwen3_5_text** -- [Qwen3_5Tokenizer](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Tokenizer) (модель Qwen3_5TextConfig)
- **qwen3_asr** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen3ASRConfig)
- **qwen3_moe** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen3MoeConfig)
- **qwen3_next** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen3NextConfig)
- **qwen3_omni_moe** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen3OmniMoeConfig)
- **qwen3_vl** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen3VLConfig)
- **qwen3_vl_moe** -- [Qwen2Tokenizer](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель Qwen3VLMoeConfig)
- **qwen4_exp** -- [Qwen3_5Tokenizer](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Tokenizer) (модель Qwen4ExpConfig)
- **rag** -- [RagTokenizer](/docs/transformers/main/ru/model_doc/rag#transformers.RagTokenizer) (модель RagConfig)
- **recurrent_gemma** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель RecurrentGemmaConfig)
- **reformer** -- [ReformerTokenizer](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerTokenizer) (модель ReformerConfig)
- **rembert** -- [RemBertTokenizer](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertTokenizer) (модель RemBertConfig)
- **roberta** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaTokenizer](/docs/transformers/main/ru/model_doc/led#transformers.RobertaTokenizer) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertTokenizer](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertTokenizer) (модель RoCBertConfig)
- **roformer** -- [RoFormerTokenizer](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerTokenizer) (модель RoFormerConfig)
- **rwkv** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель RwkvConfig)
- **sam3** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель Sam3Config)
- **sam3_video** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель Sam3VideoConfig)
- **seamless_m4t** -- [SeamlessM4TTokenizer](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TTokenizer) (модель SeamlessM4TConfig)
- **seamless_m4t_v2** -- [SeamlessM4TTokenizer](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TTokenizer) (модель SeamlessM4Tv2Config)
- **shieldgemma2** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель ShieldGemma2Config)
- **siglip** -- [SiglipTokenizer](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipTokenizer) (модель SiglipConfig)
- **siglip2** -- [Siglip2Tokenizer](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Tokenizer) (модель Siglip2Config)
- **smolvlm** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель SmolVLMConfig)
- **speech_to_text** -- [Speech2TextTokenizer](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextTokenizer) (модель Speech2TextConfig)
- **speecht5** -- [SpeechT5Tokenizer](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5Tokenizer) (модель SpeechT5Config)
- **splinter** -- [SplinterTokenizer](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterTokenizer) (модель SplinterConfig)
- **squeezebert** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель SqueezeBertConfig)
- **stablelm** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель StableLmConfig)
- **starcoder2** -- [GPT2Tokenizer](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Tokenizer) (модель Starcoder2Config)
- **switch_transformers** -- [T5Tokenizer](/docs/transformers/main/ru/model_doc/t5#transformers.T5Tokenizer) (модель SwitchTransformersConfig)
- **t5** -- [T5Tokenizer](/docs/transformers/main/ru/model_doc/t5#transformers.T5Tokenizer) (модель T5Config)
- **t5gemma** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель T5GemmaConfig)
- **tapas** -- [TapasTokenizer](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasTokenizer) (модель TapasConfig)
- **tipsv2** -- [Tipsv2Tokenizer](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Tokenizer) (модель Tipsv2Config)
- **trocr** -- [XLMRobertaTokenizer](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaTokenizer) (модель TrOCRConfig)
- **tvp** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель TvpConfig)
- **udop** -- [UdopTokenizer](/docs/transformers/main/ru/model_doc/udop#transformers.UdopTokenizer) (модель UdopConfig)
- **umt5** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель UMT5Config)
- **unispeech** -- [Wav2Vec2CTCTokenizer](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer) (модель UniSpeechConfig)
- **unispeech-sat** -- [Wav2Vec2CTCTokenizer](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer) (модель UniSpeechSatConfig)
- **vibevoice** -- [Qwen2TokenizerFast](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Tokenizer) (модель VibeVoiceConfig)
- **videoprism** -- [VideoPrismTokenizer](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismTokenizer) (модель VideoPrismConfig)
- **vilt** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель ViltConfig)
- **vipllava** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель VipLlavaConfig)
- **visual_bert** -- [BertTokenizer](/docs/transformers/main/ru/model_doc/lxmert#transformers.BertTokenizer) (модель VisualBertConfig)
- **vits** -- [VitsTokenizer](/docs/transformers/main/ru/model_doc/vits#transformers.VitsTokenizer) (модель VitsConfig)
- **voxtral** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель VoxtralConfig)
- **voxtral_realtime** -- [MistralCommonBackend](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralCommonBackend) (модель VoxtralRealtimeConfig)
- **wav2vec2** -- [Wav2Vec2CTCTokenizer](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2CTCTokenizer](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2CTCTokenizer](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer) (модель Wav2Vec2ConformerConfig)
- **whisper** -- [WhisperTokenizer](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperTokenizer) (модель WhisperConfig)
- **xclip** -- [CLIPTokenizer](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTokenizer) (модель XCLIPConfig)
- **xglm** -- [XGLMTokenizer](/docs/transformers/main/ru/model_doc/xglm#transformers.XGLMTokenizer) (модель XGLMConfig)
- **xlm** -- [XLMTokenizer](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMTokenizer) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaTokenizer](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaTokenizer) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [TokenizersBackend](/docs/transformers/main/ru/main_classes/tokenizer#transformers.TokenizersBackend) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetTokenizer](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetTokenizer) (модель XLNetConfig)
- **xlstm** -- [GPTNeoXTokenizer](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXTokenizer) (модель xLSTMConfig)
- **xmod** -- [XLMRobertaTokenizer](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaTokenizer) (модель XmodConfig)
- **yoso** -- [AlbertTokenizer](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertTokenizer) (модель YosoConfig)
- **zaya** -- [GemmaTokenizer](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaTokenizer) (модель ZayaConfig)

Примеры:

```python
>>> from transformers import AutoTokenizer

>>> # Download vocabulary from huggingface.co and cache.
>>> tokenizer = AutoTokenizer.from_pretrained("google-bert/bert-base-uncased")

>>> # Download vocabulary from huggingface.co (user-uploaded) and cache.
>>> tokenizer = AutoTokenizer.from_pretrained("dbmdz/bert-base-german-cased")

>>> # If vocabulary files are in a directory (e.g. tokenizer was saved using *save_pretrained('./test/saved_model/')*)
>>> # tokenizer = AutoTokenizer.from_pretrained("./test/bert_saved_model/")

>>> # Download vocabulary from huggingface.co and define model-specific arguments
>>> tokenizer = AutoTokenizer.from_pretrained("FacebookAI/roberta-base", add_prefix_space=True)
```

#### register[[transformers.AutoTokenizer.register]]

```python
register(config_class, tokenizer_class = None, slow_tokenizer_class = None, fast_tokenizer_class = None, exist_ok = False)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/tokenization_auto.py#L1031)

**Параметры:**

config_class ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)): конфигурация, соответствующая модели для регистрации.

tokenizer_class : класс токенизатора для регистрации (V5 - предпочтительный параметр).

slow_tokenizer_class : (Устарело) Медленный токенизатор для регистрации.

fast_tokenizer_class : (Устарело) Быстрый токенизатор для регистрации.

Зарегистрируйте новый токенизатор в этом сопоставлении.

## AutoFeatureExtractor[[transformers.AutoFeatureExtractor]]

#### transformers.AutoFeatureExtractor[[transformers.AutoFeatureExtractor]]

```python
transformers.AutoFeatureExtractor()
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/feature_extraction_auto.py#L232)

Это универсальный класс экстрактора признаков, который при создании с помощью метода класса [AutoFeatureExtractor.from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoFeatureExtractor.from_pretrained) будет инициализирован как один из классов экстракторов признаков библиотеки.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_pretrained[[transformers.AutoFeatureExtractor.from_pretrained]]

```python
from_pretrained(pretrained_model_name_or_path, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/feature_extraction_auto.py#L246)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из следующих:  - строка, *model id* предобученного feature_extractor, размещенного в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему файл feature extractor, сохраненный с помощью метода [save_pretrained()](/docs/transformers/main/ru/main_classes/feature_extractor#transformers.FeatureExtractionMixin.save_pretrained), например, `./my_model_directory/`. - путь к сохраненному JSON-*файлу* feature extractor, например, `./my_model_directory/preprocessor_config.json`.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором следует кэшировать загруженный предобученный модельный feature extractor, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать файлы feature extractor и заменять кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.` Прокси применяются при каждом запросе.

token (`str` или *bool*, *необязательный*) : Токен, используемый в качестве HTTP bearer-авторизации для удалённых файлов. Если `True`, будет использован токен, сгенерированный при выполнении `hf auth login` (хранится в `~/.huggingface`).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

return_unused_kwargs (`bool`, *необязательный*, по умолчанию `False`) : Если `False`, функция возвращает только итоговый объект feature extractor. Если `True`, функция возвращает `Tuple(feature_extractor, unused_kwargs)`, где *unused_kwargs* — это словарь, состоящий из пар ключ/значение, ключи которых не являются атрибутами feature extractor, то есть та часть `kwargs`, которая не была использована для обновления `feature_extractor` и в остальном игнорируется.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

kwargs (`dict[str, Any]`, *необязательный*) : Значения в kwargs для любых ключей, являющихся атрибутами feature extractor, будут использоваться для переопределения загруженных значений. Поведение в отношении пар ключ/значение, ключи которых *не* являются атрибутами feature extractor, контролируется параметром `return_unused_kwargs`.

Создайте экземпляр одного из классов feature extractor библиотеки на основе словаря предобученной модели.

Класс экстрактора признаков, который необходимо создать, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **audio-spectrogram-transformer** -- [ASTFeatureExtractor](/docs/transformers/main/ru/model_doc/audio-spectrogram-transformer#transformers.ASTFeatureExtractor) (модель ASTConfig)
- **audioflamingo3** -- [WhisperFeatureExtractor](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperFeatureExtractor) (модель AudioFlamingo3Config)
- **canary** -- [ParakeetFeatureExtractor](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetFeatureExtractor) (модель CanaryConfig)
- **clap** -- [ClapFeatureExtractor](/docs/transformers/main/ru/model_doc/clap#transformers.ClapFeatureExtractor) (модель ClapConfig)
- **clvp** -- [ClvpFeatureExtractor](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpFeatureExtractor) (модель ClvpConfig)
- **cohere_asr** -- [CohereAsrFeatureExtractor](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrFeatureExtractor) (модель CohereAsrConfig)
- **csm** -- [EncodecFeatureExtractor](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecFeatureExtractor) (модель CsmConfig)
- **dac** -- [DacFeatureExtractor](/docs/transformers/main/ru/model_doc/dac#transformers.DacFeatureExtractor) (модель DacConfig)
- **data2vec-audio** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель Data2VecAudioConfig)
- **dia** -- [DiaFeatureExtractor](/docs/transformers/main/ru/model_doc/dia#transformers.DiaFeatureExtractor) (модель DiaConfig)
- **embedding_gemma2** -- [Gemma4AudioFeatureExtractor](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4AudioFeatureExtractor) (модель EmbeddingGemma2Config)
- **encodec** -- [EncodecFeatureExtractor](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecFeatureExtractor) (модель EncodecConfig)
- **fun_asr_nano** -- [FunAsrNanoFeatureExtractor](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoFeatureExtractor) (модель FunAsrNanoConfig)
- **gemma3n** -- [Gemma3nAudioFeatureExtractor](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nAudioFeatureExtractor) (модель Gemma3nConfig)
- **gemma4** -- [Gemma4AudioFeatureExtractor](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4AudioFeatureExtractor) (модель Gemma4Config)
- **gemma4_unified** -- [Gemma4UnifiedAudioFeatureExtractor](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedAudioFeatureExtractor) (модель Gemma4UnifiedConfig)
- **glmasr** -- [WhisperFeatureExtractor](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperFeatureExtractor) (модель GlmAsrConfig)
- **gradium_phonon_tts** -- [PocketTTSFeatureExtractor](/docs/transformers/main/ru/model_doc/pocket_tts#transformers.PocketTTSFeatureExtractor) (модель GradiumPhononTTSConfig)
- **granite_speech** -- [GraniteSpeechFeatureExtractor](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechFeatureExtractor) (модель GraniteSpeechConfig)
- **granite_speech5_ctc** -- [GraniteSpeech5FeatureExtractor](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5FeatureExtractor) (модель GraniteSpeech5CTCConfig)
- **granite_speech5_encoder** -- [GraniteSpeech5FeatureExtractor](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5FeatureExtractor) (модель GraniteSpeech5EncoderConfig)
- **granite_speech_plus** -- [GraniteSpeechFeatureExtractor](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechFeatureExtractor) (модель GraniteSpeechPlusConfig)
- **higgs_audio_v2_tokenizer** -- [DacFeatureExtractor](/docs/transformers/main/ru/model_doc/dac#transformers.DacFeatureExtractor) (модель HiggsAudioV2TokenizerConfig)
- **hubert** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель HubertConfig)
- **inkling_mm_model** -- [InklingFeatureExtractor](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingFeatureExtractor) (модель InklingConfig)
- **kyutai_speech_to_text** -- [KyutaiSpeechToTextFeatureExtractor](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextFeatureExtractor) (модель KyutaiSpeechToTextConfig)
- **lasr_ctc** -- [LasrFeatureExtractor](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrFeatureExtractor) (модель LasrCTCConfig)
- **lasr_encoder** -- [LasrFeatureExtractor](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrFeatureExtractor) (модель LasrEncoderConfig)
- **mimi** -- [EncodecFeatureExtractor](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecFeatureExtractor) (модель MimiConfig)
- **moonshine** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель MoonshineConfig)
- **moshi** -- [EncodecFeatureExtractor](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecFeatureExtractor) (модель MoshiConfig)
- **moss_transcribe_diarize** -- [MossTranscribeDiarizeFeatureExtractor](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeFeatureExtractor) (модель MossTranscribeDiarizeConfig)
- **muse_spark** -- [MuseSparkFeatureExtractor](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkFeatureExtractor) (модель MuseSparkConfig)
- **musicgen** -- [EncodecFeatureExtractor](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecFeatureExtractor) (модель MusicgenConfig)
- **musicgen_melody** -- [MusicgenMelodyFeatureExtractor](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyFeatureExtractor) (модель MusicgenMelodyConfig)
- **nemo_speechlm** -- [NemotronAsrStreamingFeatureExtractor](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingFeatureExtractor) (модель Nemotron3_5TranscribeConfig)
- **nemotron3_5_asr** -- [NemotronAsrStreamingFeatureExtractor](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingFeatureExtractor) (модель Nemotron3_5AsrConfig)
- **nemotron3_diarization** -- [NemotronAsrStreamingFeatureExtractor](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingFeatureExtractor) (модель Nemotron3DiarizationConfig)
- **nemotron_asr_streaming** -- [NemotronAsrStreamingFeatureExtractor](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingFeatureExtractor) (модель NemotronAsrStreamingConfig)
- **nemotron_asr_streaming_encoder** -- [NemotronAsrStreamingFeatureExtractor](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingFeatureExtractor) (модель NemotronAsrStreamingEncoderConfig)
- **neucodec** -- [NeuCodecFeatureExtractor](/docs/transformers/main/ru/model_doc/neucodec#transformers.NeuCodecFeatureExtractor) (модель NeuCodecConfig)
- **parakeet_ctc** -- [ParakeetFeatureExtractor](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetFeatureExtractor) (модель ParakeetCTCConfig)
- **parakeet_encoder** -- [ParakeetFeatureExtractor](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetFeatureExtractor) (модель ParakeetEncoderConfig)
- **parakeet_rnnt** -- [ParakeetFeatureExtractor](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetFeatureExtractor) (модель ParakeetRNNTConfig)
- **parakeet_tdt** -- [ParakeetFeatureExtractor](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetFeatureExtractor) (модель ParakeetTDTConfig)
- **pe_audio** -- [PeAudioFeatureExtractor](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioFeatureExtractor) (модель PeAudioConfig)
- **pe_audio_video** -- [PeAudioFeatureExtractor](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioFeatureExtractor) (модель PeAudioVideoConfig)
- **phi4_multimodal** -- [Phi4MultimodalFeatureExtractor](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalFeatureExtractor) (модель Phi4MultimodalConfig)
- **pocket_tts** -- [PocketTTSFeatureExtractor](/docs/transformers/main/ru/model_doc/pocket_tts#transformers.PocketTTSFeatureExtractor) (модель PocketTTSConfig)
- **pocket_tts_audio_tokenizer** -- [EncodecFeatureExtractor](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecFeatureExtractor) (модель PocketTTSAudioTokenizerConfig)
- **pop2piano** -- [Pop2PianoFeatureExtractor](/docs/transformers/main/ru/model_doc/pop2piano#transformers.Pop2PianoFeatureExtractor) (модель Pop2PianoConfig)
- **qwen2_5_omni** -- [WhisperFeatureExtractor](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperFeatureExtractor) (модель Qwen2_5OmniConfig)
- **qwen2_audio** -- [WhisperFeatureExtractor](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperFeatureExtractor) (модель Qwen2AudioConfig)
- **qwen3_asr** -- [Qwen3ASRFeatureExtractor](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRFeatureExtractor) (модель Qwen3ASRConfig)
- **qwen3_omni_moe** -- [WhisperFeatureExtractor](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperFeatureExtractor) (модель Qwen3OmniMoeConfig)
- **seamless_m4t** -- [SeamlessM4TFeatureExtractor](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TFeatureExtractor) (модель SeamlessM4TConfig)
- **seamless_m4t_v2** -- [SeamlessM4TFeatureExtractor](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TFeatureExtractor) (модель SeamlessM4Tv2Config)
- **sew** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель SEWConfig)
- **sew-d** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель SEWDConfig)
- **speech_to_text** -- [Speech2TextFeatureExtractor](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextFeatureExtractor) (модель Speech2TextConfig)
- **speecht5** -- [SpeechT5FeatureExtractor](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5FeatureExtractor) (модель SpeechT5Config)
- **unispeech** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель UniSpeechConfig)
- **unispeech-sat** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель UniSpeechSatConfig)
- **univnet** -- [UnivNetFeatureExtractor](/docs/transformers/main/ru/model_doc/univnet#transformers.UnivNetFeatureExtractor) (модель UnivNetConfig)
- **vibevoice** -- [VibeVoiceAcousticTokenizerFeatureExtractor](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerFeatureExtractor) (модель VibeVoiceConfig)
- **vibevoice_acoustic_tokenizer** -- [VibeVoiceAcousticTokenizerFeatureExtractor](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerFeatureExtractor) (модель VibeVoiceAcousticTokenizerConfig)
- **vibevoice_asr** -- [VibeVoiceAcousticTokenizerFeatureExtractor](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerFeatureExtractor) (модель VibeVoiceAsrConfig)
- **voxtral** -- [WhisperFeatureExtractor](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperFeatureExtractor) (модель VoxtralConfig)
- **voxtral_realtime** -- [VoxtralRealtimeFeatureExtractor](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeFeatureExtractor) (модель VoxtralRealtimeConfig)
- **wav2vec2** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель Wav2Vec2ConformerConfig)
- **wavlm** -- [Wav2Vec2FeatureExtractor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2FeatureExtractor) (модель WavLMConfig)
- **whisper** -- [WhisperFeatureExtractor](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperFeatureExtractor) (модель WhisperConfig)
- **xcodec** -- [DacFeatureExtractor](/docs/transformers/main/ru/model_doc/dac#transformers.DacFeatureExtractor) (модель XcodecConfig)
- **xcodec2** -- [Xcodec2FeatureExtractor](/docs/transformers/main/ru/model_doc/xcodec2#transformers.Xcodec2FeatureExtractor) (модель Xcodec2Config)

Передача `token=True` обязательна, если вы хотите использовать частную модель.

Примеры:

```python
>>> from transformers import AutoFeatureExtractor

>>> # Download feature extractor from huggingface.co and cache.
>>> feature_extractor = AutoFeatureExtractor.from_pretrained("facebook/wav2vec2-base-960h")

>>> # If feature extractor files are in a directory (e.g. feature extractor was saved using *save_pretrained('./test/saved_model/')*)
>>> # feature_extractor = AutoFeatureExtractor.from_pretrained("./test/saved_model/")
```

#### register[[transformers.AutoFeatureExtractor.register]]

```python
register(config_class, feature_extractor_class, exist_ok = False)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/feature_extraction_auto.py#L383)

**Параметры:**

config_class ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)): конфигурация, соответствующая модели для регистрации.

feature_extractor_class (`FeatureExtractorMixin`) : экстрактор признаков для регистрации.

Зарегистрируйте новый экстрактор признаков для этого класса.

## AutoImageProcessor[[transformers.AutoImageProcessor]]

#### transformers.AutoImageProcessor[[transformers.AutoImageProcessor]]

```python
transformers.AutoImageProcessor()
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/image_processing_auto.py#L497)

Это универсальный класс процессора изображений, который будет создан как один из классов процессоров изображений библиотеки при использовании метода класса [AutoImageProcessor.from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoImageProcessor.from_pretrained).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_pretrained[[transformers.AutoImageProcessor.from_pretrained]]

```python
from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/image_processing_auto.py#L511)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из следующих:  - строка, *model id* предобученного image_processor, размещенного в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему файл image processor, сохраненный с помощью метода [save_pretrained()](/docs/transformers/main/ru/internal/image_processing_utils#transformers.ImageProcessingMixin.save_pretrained), например, `./my_model_directory/`. - путь к сохраненному JSON-*файлу* image processor, например, `./my_model_directory/preprocessor_config.json`.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный процессор изображений предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)скачивать файлы image processor и заменять кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.` Прокси применяются при каждом запросе.

token (`str` или *bool*, *необязательный*) : Токен, используемый в качестве HTTP bearer-авторизации для удалённых файлов. Если `True`, будет использован токен, сгенерированный при выполнении `hf auth login` (хранится в `~/.huggingface`).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

use_fast (`bool`, *необязательный*, по умолчанию `False`) : **Устарело**: используйте `backend="torchvision"`. Этот параметр сохранён для обратной совместимости. Используйте быстрый процессор изображений на основе torchvision, если он поддерживается для данной модели. Если быстрый процессор изображений для данной модели недоступен, вместо него возвращается обычный процессор на основе numpy.

backend (`str`, *необязательный*, по умолчанию `None`) : Бэкенд, используемый для обработки изображений. Возможные значения: - `None`: Автоматически выбрать лучший доступный бэкенд (torchvision, если доступен, в противном случае pil) - `"torchvision"`: Использовать бэкенд Torchvision (ускорение на GPU, быстрее) - `"pil"`: Использовать бэкенд PIL (переносимый, только CPU) - Любое имя пользовательского бэкенда, зарегистрированного с помощью метода `register()`

return_unused_kwargs (`bool`, *необязательный*, по умолчанию `False`) : Если `False`, функция возвращает только итоговый объект image processor. Если `True`, функция возвращает `Tuple(image_processor, unused_kwargs)`, где *unused_kwargs* — это словарь, состоящий из пар ключ/значение, ключи которых не являются атрибутами image processor, то есть та часть `kwargs`, которая не была использована для обновления `image_processor` и в остальном игнорируется.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

image_processor_filename (`str`, *необязательный*, по умолчанию `"config.json"`) : имя файла в каталоге модели, используемого для конфигурации процессора изображений.

kwargs (`dict[str, Any]`, *необязательный*) : Значения в kwargs для любых ключей, являющихся атрибутами image processor, будут использоваться для переопределения загруженных значений. Поведение в отношении пар ключ/значение, ключи которых *не* являются атрибутами image processor, контролируется параметром `return_unused_kwargs`.

Создайте экземпляр одного из классов процессора изображений библиотеки на основе словаря предобученной модели.

Класс процессора изображений, который необходимо создать, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **aimv2** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель Aimv2Config)
- **aimv2_vision_model** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель Aimv2VisionConfig)
- **align** -- `{'torchvision': 'EfficientNetImageProcessor', 'pil': 'EfficientNetImageProcessorPil'}` (модель AlignConfig)
- **altclip** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель AltCLIPConfig)
- **aria** -- `{'pil': 'AriaImageProcessorPil', 'torchvision': 'AriaImageProcessor'}` (модель AriaConfig)
- **aya_vision** -- `{'torchvision': 'GotOcr2ImageProcessor', 'pil': 'GotOcr2ImageProcessorPil'}` (модель AyaVisionConfig)
- **beit** -- `{'pil': 'BeitImageProcessorPil', 'torchvision': 'BeitImageProcessor'}` (модель BeitConfig)
- **bit** -- `{'pil': 'BitImageProcessorPil', 'torchvision': 'BitImageProcessor'}` (модель BitConfig)
- **blip** -- `{'pil': 'BlipImageProcessorPil', 'torchvision': 'BlipImageProcessor'}` (модель BlipConfig)
- **blip-2** -- `{'torchvision': 'BlipImageProcessor', 'pil': 'BlipImageProcessorPil'}` (модель Blip2Config)
- **bridgetower** -- `{'pil': 'BridgeTowerImageProcessorPil', 'torchvision': 'BridgeTowerImageProcessor'}` (модель BridgeTowerConfig)
- **chameleon** -- `{'pil': 'ChameleonImageProcessorPil', 'torchvision': 'ChameleonImageProcessor'}` (модель ChameleonConfig)
- **chinese_clip** -- `{'pil': 'ChineseCLIPImageProcessorPil', 'torchvision': 'ChineseCLIPImageProcessor'}` (модель ChineseCLIPConfig)
- **chmv2** -- `{'torchvision': 'CHMv2ImageProcessor'}` (модель CHMv2Config)
- **clip** -- `{'pil': 'CLIPImageProcessorPil', 'torchvision': 'CLIPImageProcessor'}` (модель CLIPConfig)
- **clipseg** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель CLIPSegConfig)
- **cohere2_vision** -- `{'torchvision': 'Cohere2VisionImageProcessor'}` (модель Cohere2VisionConfig)
- **cohere_compass** -- `{'pil': 'CohereCompassImageProcessorPil', 'torchvision': 'CohereCompassImageProcessor'}` (модель CohereCompassConfig)
- **colpali** -- `{'torchvision': 'SiglipImageProcessor', 'pil': 'SiglipImageProcessorPil'}` (модель ColPaliConfig)
- **colqwen2** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель ColQwen2Config)
- **conditional_detr** -- `{'pil': 'ConditionalDetrImageProcessorPil', 'torchvision': 'ConditionalDetrImageProcessor'}` (модель ConditionalDetrConfig)
- **convnext** -- `{'pil': 'ConvNextImageProcessorPil', 'torchvision': 'ConvNextImageProcessor'}` (модель ConvNextConfig)
- **convnextv2** -- `{'torchvision': 'ConvNextImageProcessor', 'pil': 'ConvNextImageProcessorPil'}` (модель ConvNextV2Config)
- **cosmos3_edge** -- `{'pil': 'Cosmos3EdgeImageProcessorPil', 'torchvision': 'Cosmos3EdgeImageProcessor'}` (модель Cosmos3EdgeConfig)
- **cosmos3_omni** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Cosmos3OmniConfig)
- **cvt** -- `{'torchvision': 'ConvNextImageProcessor', 'pil': 'ConvNextImageProcessorPil'}` (модель CvtConfig)
- **data2vec-vision** -- `{'torchvision': 'BeitImageProcessor', 'pil': 'BeitImageProcessorPil'}` (модель Data2VecVisionConfig)
- **deepseek_ocr2** -- `{'pil': 'DeepseekOcr2ImageProcessorPil', 'torchvision': 'DeepseekOcr2ImageProcessor'}` (модель DeepseekOcr2Config)
- **deepseek_vl** -- `{'pil': 'DeepseekVLImageProcessorPil', 'torchvision': 'DeepseekVLImageProcessor'}` (модель DeepseekVLConfig)
- **deepseek_vl_hybrid** -- `{'pil': 'DeepseekVLHybridImageProcessorPil', 'torchvision': 'DeepseekVLHybridImageProcessor'}` (модель DeepseekVLHybridConfig)
- **deformable_detr** -- `{'pil': 'DeformableDetrImageProcessorPil', 'torchvision': 'DeformableDetrImageProcessor'}` (модель DeformableDetrConfig)
- **deimv2** -- `{'torchvision': 'RTDetrImageProcessor', 'pil': 'RTDetrImageProcessorPil'}` (модель Deimv2Config)
- **deit** -- `{'pil': 'DeiTImageProcessorPil', 'torchvision': 'DeiTImageProcessor'}` (модель DeiTConfig)
- **depth_anything** -- `{'torchvision': 'DPTImageProcessor', 'pil': 'DPTImageProcessorPil'}` (модель DepthAnythingConfig)
- **depth_pro** -- `{'torchvision': 'DepthProImageProcessor'}` (модель DepthProConfig)
- **detr** -- `{'pil': 'DetrImageProcessorPil', 'torchvision': 'DetrImageProcessor'}` (модель DetrConfig)
- **dinat** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель DinatConfig)
- **dinov2** -- `{'torchvision': 'BitImageProcessor', 'pil': 'BitImageProcessorPil'}` (модель Dinov2Config)
- **dinov3_vit** -- `{'torchvision': 'DINOv3ViTImageProcessor'}` (модель DINOv3ViTConfig)
- **donut-swin** -- `{'torchvision': 'DonutImageProcessor', 'pil': 'DonutImageProcessorPil'}` (модель DonutSwinConfig)
- **dpt** -- `{'pil': 'DPTImageProcessorPil', 'torchvision': 'DPTImageProcessor'}` (модель DPTConfig)
- **edgetam** -- `{'torchvision': 'Sam2ImageProcessor'}` (модель EdgeTamConfig)
- **efficientloftr** -- `{'pil': 'EfficientLoFTRImageProcessorPil', 'torchvision': 'EfficientLoFTRImageProcessor'}` (модель EfficientLoFTRConfig)
- **efficientnet** -- `{'pil': 'EfficientNetImageProcessorPil', 'torchvision': 'EfficientNetImageProcessor'}` (модель EfficientNetConfig)
- **embedding_gemma2** -- `{'pil': 'Gemma4ImageProcessorPil', 'torchvision': 'Gemma4ImageProcessor'}` (модель EmbeddingGemma2Config)
- **emu3** -- `{'pil': 'Emu3ImageProcessor'}` (модель Emu3Config)
- **eomt** -- `{'pil': 'EomtImageProcessorPil', 'torchvision': 'EomtImageProcessor'}` (модель EomtConfig)
- **eomt_dinov3** -- `{'torchvision': 'EomtImageProcessor', 'pil': 'EomtImageProcessorPil'}` (модель EomtDinov3Config)
- **ernie4_5_vl_moe** -- `{'pil': 'Ernie4_5_VLMoeImageProcessorPil', 'torchvision': 'Ernie4_5_VLMoeImageProcessor'}` (модель Ernie4_5_VLMoeConfig)
- **exaone4_5** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Exaone4_5_Config)
- **flava** -- `{'pil': 'FlavaImageProcessorPil', 'torchvision': 'FlavaImageProcessor'}` (модель FlavaConfig)
- **florence2** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель Florence2Config)
- **focalnet** -- `{'torchvision': 'BitImageProcessor', 'pil': 'BitImageProcessorPil'}` (модель FocalNetConfig)
- **fuyu** -- `{'pil': 'FuyuImageProcessorPil', 'torchvision': 'FuyuImageProcessor'}` (модель FuyuConfig)
- **gemma3** -- `{'pil': 'Gemma3ImageProcessorPil', 'torchvision': 'Gemma3ImageProcessor'}` (модель Gemma3Config)
- **gemma3n** -- `{'torchvision': 'SiglipImageProcessor', 'pil': 'SiglipImageProcessorPil'}` (модель Gemma3nConfig)
- **gemma4** -- `{'pil': 'Gemma4ImageProcessorPil', 'torchvision': 'Gemma4ImageProcessor'}` (модель Gemma4Config)
- **gemma4_unified** -- `{'torchvision': 'Gemma4UnifiedImageProcessor'}` (модель Gemma4UnifiedConfig)
- **git** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель GitConfig)
- **glm46v** -- `{'pil': 'Glm46VImageProcessorPil', 'torchvision': 'Glm46VImageProcessor'}` (модель Glm46VConfig)
- **glm4v** -- `{'pil': 'Glm4vImageProcessorPil', 'torchvision': 'Glm4vImageProcessor'}` (модель Glm4vConfig)
- **glm5_next** -- `{'pil': 'Glm5NextImageProcessorPil', 'torchvision': 'Glm5NextImageProcessor'}` (модель Glm5NextConfig)
- **glm_image** -- `{'pil': 'GlmImageImageProcessorPil', 'torchvision': 'GlmImageImageProcessor'}` (модель GlmImageConfig)
- **glmga** -- `{'pil': 'GlmgaImageProcessorPil', 'torchvision': 'GlmgaImageProcessor'}` (модель GlmgaConfig)
- **glpn** -- `{'pil': 'GLPNImageProcessorPil', 'torchvision': 'GLPNImageProcessor'}` (модель GLPNConfig)
- **got_ocr2** -- `{'pil': 'GotOcr2ImageProcessorPil', 'torchvision': 'GotOcr2ImageProcessor'}` (модель GotOcr2Config)
- **granite4_vision** -- `{'torchvision': 'LlavaNextImageProcessor', 'pil': 'LlavaNextImageProcessorPil'}` (модель Granite4VisionConfig)
- **grounding-dino** -- `{'pil': 'GroundingDinoImageProcessorPil', 'torchvision': 'GroundingDinoImageProcessor'}` (модель GroundingDinoConfig)
- **groupvit** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель GroupViTConfig)
- **hiera** -- `{'torchvision': 'BitImageProcessor', 'pil': 'BitImageProcessorPil'}` (модель HieraConfig)
- **hunyuan_vl** -- `{'pil': 'HunYuanVLImageProcessorPil', 'torchvision': 'HunYuanVLImageProcessor'}` (модель HunYuanVLConfig)
- **hyperclovax_vision_v2** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель HyperCLOVAXVisionV2Config)
- **idefics** -- `{'pil': 'IdeficsImageProcessorPil', 'torchvision': 'IdeficsImageProcessor'}` (модель IdeficsConfig)
- **idefics2** -- `{'pil': 'Idefics2ImageProcessorPil', 'torchvision': 'Idefics2ImageProcessor'}` (модель Idefics2Config)
- **idefics3** -- `{'pil': 'Idefics3ImageProcessorPil', 'torchvision': 'Idefics3ImageProcessor'}` (модель Idefics3Config)
- **ijepa** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель IJepaConfig)
- **imagegpt** -- `{'pil': 'ImageGPTImageProcessorPil', 'torchvision': 'ImageGPTImageProcessor'}` (модель ImageGPTConfig)
- **inkling_mm_model** -- `{'torchvision': 'InklingImageProcessor'}` (модель InklingConfig)
- **instructblip** -- `{'torchvision': 'BlipImageProcessor', 'pil': 'BlipImageProcessorPil'}` (модель InstructBlipConfig)
- **internvl** -- `{'torchvision': 'GotOcr2ImageProcessor', 'pil': 'GotOcr2ImageProcessorPil'}` (модель InternVLConfig)
- **janus** -- `{'pil': 'JanusImageProcessorPil', 'torchvision': 'JanusImageProcessor'}` (модель JanusConfig)
- **kimi_k25** -- `{'torchvision': 'Kimi_K25ImageProcessor'}` (модель Kimi_K25Config)
- **kosmos-2** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель Kosmos2Config)
- **kosmos-2.5** -- `{'torchvision': 'Kosmos2_5ImageProcessor', 'pil': 'Kosmos2_5ImageProcessorPil'}` (модель Kosmos2_5Config)
- **layoutlmv2** -- `{'pil': 'LayoutLMv2ImageProcessorPil', 'torchvision': 'LayoutLMv2ImageProcessor'}` (модель LayoutLMv2Config)
- **layoutlmv3** -- `{'pil': 'LayoutLMv3ImageProcessorPil', 'torchvision': 'LayoutLMv3ImageProcessor'}` (модель LayoutLMv3Config)
- **layoutxlm** -- `{'torchvision': 'LayoutLMv2ImageProcessor', 'pil': 'LayoutLMv2ImageProcessorPil'}` (модель LayoutXLMConfig)
- **levit** -- `{'pil': 'LevitImageProcessorPil', 'torchvision': 'LevitImageProcessor'}` (модель LevitConfig)
- **lfm2_vl** -- `{'torchvision': 'Lfm2VlImageProcessor'}` (модель Lfm2VlConfig)
- **lightglue** -- `{'pil': 'LightGlueImageProcessorPil', 'torchvision': 'LightGlueImageProcessor'}` (модель LightGlueConfig)
- **lighton_ocr** -- `{'torchvision': 'PixtralImageProcessor', 'pil': 'PixtralImageProcessorPil'}` (модель LightOnOcrConfig)
- **llama4** -- `{'torchvision': 'Llama4ImageProcessor'}` (модель Llama4Config)
- **llava** -- `{'pil': 'LlavaImageProcessorPil', 'torchvision': 'LlavaImageProcessor'}` (модель LlavaConfig)
- **llava_next** -- `{'pil': 'LlavaNextImageProcessorPil', 'torchvision': 'LlavaNextImageProcessor'}` (модель LlavaNextConfig)
- **llava_next_video** -- `{'torchvision': 'LlavaNextImageProcessor', 'pil': 'LlavaNextImageProcessorPil'}` (модель LlavaNextVideoConfig)
- **llava_onevision** -- `{'pil': 'LlavaOnevisionImageProcessorPil', 'torchvision': 'LlavaOnevisionImageProcessor'}` (модель LlavaOnevisionConfig)
- **lw_detr** -- `{'torchvision': 'DeformableDetrImageProcessor', 'pil': 'DeformableDetrImageProcessorPil'}` (модель LwDetrConfig)
- **mask2former** -- `{'pil': 'Mask2FormerImageProcessorPil', 'torchvision': 'Mask2FormerImageProcessor'}` (модель Mask2FormerConfig)
- **maskformer** -- `{'pil': 'MaskFormerImageProcessorPil', 'torchvision': 'MaskFormerImageProcessor'}` (модель MaskFormerConfig)
- **metaclip_2** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель MetaClip2Config)
- **mgp-str** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель MgpstrConfig)
- **minicpm_ocr** -- `{'torchvision': 'MiniCPMOcrImageProcessor'}` (модель MiniCPMOcrConfig)
- **minicpmv4_6** -- `{'pil': 'MiniCPMV4_6ImageProcessorPil', 'torchvision': 'MiniCPMV4_6ImageProcessor'}` (модель MiniCPMV4_6Config)
- **minicpmv4_7** -- `{'pil': 'MiniCPMV4_6ImageProcessorPil', 'torchvision': 'MiniCPMV4_6ImageProcessor'}` (модель MiniCPMV4_7Config)
- **minimax_m3_vl** -- `{'torchvision': 'MiniMaxM3VLImageProcessor'}` (модель MiniMaxM3VLConfig)
- **mistral3** -- `{'torchvision': 'PixtralImageProcessor', 'pil': 'PixtralImageProcessorPil'}` (модель Mistral3Config)
- **mistral_large4** -- `{'torchvision': 'PixtralImageProcessor', 'pil': 'PixtralImageProcessorPil'}` (модель MistralLarge4Config)
- **mlcd** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель MLCDVisionConfig)
- **mllama** -- `{'pil': 'MllamaImageProcessorPil', 'torchvision': 'MllamaImageProcessor'}` (модель MllamaConfig)
- **mm-grounding-dino** -- `{'torchvision': 'GroundingDinoImageProcessor', 'pil': 'GroundingDinoImageProcessorPil'}` (модель MMGroundingDinoConfig)
- **mobilenet_v1** -- `{'pil': 'MobileNetV1ImageProcessorPil', 'torchvision': 'MobileNetV1ImageProcessor'}` (модель MobileNetV1Config)
- **mobilenet_v2** -- `{'pil': 'MobileNetV2ImageProcessorPil', 'torchvision': 'MobileNetV2ImageProcessor'}` (модель MobileNetV2Config)
- **mobilevit** -- `{'pil': 'MobileViTImageProcessorPil', 'torchvision': 'MobileViTImageProcessor'}` (модель MobileViTConfig)
- **mobilevitv2** -- `{'torchvision': 'MobileViTImageProcessor', 'pil': 'MobileViTImageProcessorPil'}` (модель MobileViTV2Config)
- **molmo2** -- `{'torchvision': 'Molmo2ImageProcessor'}` (модель Molmo2Config)
- **muse_glimmer** -- `{'torchvision': 'MuseGlimmerImageProcessor'}` (модель MuseGlimmerConfig)
- **muse_spark** -- `{'torchvision': 'MuseGlimmerImageProcessor'}` (модель MuseSparkConfig)
- **nemotron_h_omni** -- `{'torchvision': 'NemotronH_Omni_Reasoning_V3ImageProcessor'}` (модель NemotronH_Omni_Reasoning_V3_Config)
- **neomme** -- `{'torchvision': 'NeoMMEImageProcessor'}` (модель NeoMMEConfig)
- **nougat** -- `{'pil': 'NougatImageProcessorPil', 'torchvision': 'NougatImageProcessor'}` (модель NougatConfig)
- **omdet-turbo** -- `{'torchvision': 'DetrImageProcessor', 'pil': 'DetrImageProcessorPil'}` (модель OmDetTurboConfig)
- **oneformer** -- `{'pil': 'OneFormerImageProcessorPil', 'torchvision': 'OneFormerImageProcessor'}` (модель OneFormerConfig)
- **ovis2** -- `{'pil': 'Ovis2ImageProcessorPil', 'torchvision': 'Ovis2ImageProcessor'}` (модель Ovis2Config)
- **owlv2** -- `{'pil': 'Owlv2ImageProcessorPil', 'torchvision': 'Owlv2ImageProcessor'}` (модель Owlv2Config)
- **owlvit** -- `{'pil': 'OwlViTImageProcessorPil', 'torchvision': 'OwlViTImageProcessor'}` (модель OwlViTConfig)
- **paddleocr_vl** -- `{'pil': 'PaddleOCRVLImageProcessorPil', 'torchvision': 'PaddleOCRVLImageProcessor'}` (модель PaddleOCRVLConfig)
- **paligemma** -- `{'torchvision': 'SiglipImageProcessor', 'pil': 'SiglipImageProcessorPil'}` (модель PaliGemmaConfig)
- **perceiver** -- `{'pil': 'PerceiverImageProcessorPil', 'torchvision': 'PerceiverImageProcessor'}` (модель PerceiverConfig)
- **perception_lm** -- `{'torchvision': 'PerceptionLMImageProcessor'}` (модель PerceptionLMConfig)
- **phi4_multimodal** -- `{'torchvision': 'Phi4MultimodalImageProcessor'}` (модель Phi4MultimodalConfig)
- **pi0** -- `{'torchvision': 'PI0ImageProcessor'}` (модель PI0Config)
- **pix2struct** -- `{'pil': 'Pix2StructImageProcessorPil', 'torchvision': 'Pix2StructImageProcessor'}` (модель Pix2StructConfig)
- **pixio** -- `{'torchvision': 'BitImageProcessor', 'pil': 'BitImageProcessorPil'}` (модель PixioConfig)
- **pixtral** -- `{'pil': 'PixtralImageProcessorPil', 'torchvision': 'PixtralImageProcessor'}` (модель PixtralVisionConfig)
- **poolformer** -- `{'pil': 'PoolFormerImageProcessorPil', 'torchvision': 'PoolFormerImageProcessor'}` (модель PoolFormerConfig)
- **pp_chart2table** -- `{'pil': 'PPChart2TableImageProcessorPil', 'torchvision': 'PPChart2TableImageProcessor'}` (модель PPChart2TableConfig)
- **pp_doclayout_v2** -- `{'torchvision': 'PPDocLayoutV2ImageProcessor'}` (модель PPDocLayoutV2Config)
- **pp_doclayout_v3** -- `{'torchvision': 'PPDocLayoutV3ImageProcessor'}` (модель PPDocLayoutV3Config)
- **pp_doclayout_v4** -- `{'torchvision': 'PPDocLayoutV4ImageProcessor'}` (модель PPDocLayoutV4Config)
- **pp_formulanet** -- `{'torchvision': 'PPFormulaNetImageProcessor'}` (модель PPFormulaNetConfig)
- **pp_lcnet** -- `{'torchvision': 'PPLCNetImageProcessor'}` (модель PPLCNetConfig)
- **pp_ocrv5_mobile_det** -- `{'torchvision': 'PPOCRV5ServerDetImageProcessor'}` (модель PPOCRV5MobileDetConfig)
- **pp_ocrv5_mobile_rec** -- `{'torchvision': 'PPOCRV5ServerRecImageProcessor'}` (модель PPOCRV5MobileRecConfig)
- **pp_ocrv5_server_det** -- `{'torchvision': 'PPOCRV5ServerDetImageProcessor'}` (модель PPOCRV5ServerDetConfig)
- **pp_ocrv5_server_rec** -- `{'torchvision': 'PPOCRV5ServerRecImageProcessor'}` (модель PPOCRV5ServerRecConfig)
- **pp_ocrv6_medium_det** -- `{'torchvision': 'PPOCRV5ServerDetImageProcessor'}` (модель PPOCRV6MediumDetConfig)
- **pp_ocrv6_small_det** -- `{'torchvision': 'PPOCRV5ServerDetImageProcessor'}` (модель PPOCRV6SmallDetConfig)
- **pp_ocrv6_small_rec** -- `{'torchvision': 'PPOCRV6SmallRecImageProcessor'}` (модель PPOCRV6SmallRecConfig)
- **pp_ocrv6_tiny_rec** -- `{'torchvision': 'PPOCRV6SmallRecImageProcessor'}` (модель PPOCRV6TinyRecConfig)
- **prompt_depth_anything** -- `{'pil': 'PromptDepthAnythingImageProcessorPil', 'torchvision': 'PromptDepthAnythingImageProcessor'}` (модель PromptDepthAnythingConfig)
- **pvt** -- `{'pil': 'PvtImageProcessorPil', 'torchvision': 'PvtImageProcessor'}` (модель PvtConfig)
- **pvt_v2** -- `{'torchvision': 'PvtImageProcessor', 'pil': 'PvtImageProcessorPil'}` (модель PvtV2Config)
- **qianfan_ocr** -- `{'torchvision': 'GotOcr2ImageProcessor', 'pil': 'GotOcr2ImageProcessorPil'}` (модель QianfanOCRConfig)
- **qwen2_5_omni** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Qwen2_5OmniConfig)
- **qwen2_5_vl** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Qwen2_5_VLConfig)
- **qwen2_vl** -- `{'pil': 'Qwen2VLImageProcessorPil', 'torchvision': 'Qwen2VLImageProcessor'}` (модель Qwen2VLConfig)
- **qwen3_5** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Qwen3_5Config)
- **qwen3_5_moe** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Qwen3_5MoeConfig)
- **qwen3_omni_moe** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Qwen3OmniMoeConfig)
- **qwen3_vl** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Qwen3VLConfig)
- **qwen4_exp** -- `{'torchvision': 'Qwen2VLImageProcessor', 'pil': 'Qwen2VLImageProcessorPil'}` (модель Qwen4ExpConfig)
- **regnet** -- `{'torchvision': 'ConvNextImageProcessor', 'pil': 'ConvNextImageProcessorPil'}` (модель RegNetConfig)
- **resnet** -- `{'torchvision': 'ConvNextImageProcessor', 'pil': 'ConvNextImageProcessorPil'}` (модель ResNetConfig)
- **rf_detr** -- `{'torchvision': 'RfDetrImageProcessor'}` (модель RfDetrConfig)
- **rt_detr** -- `{'pil': 'RTDetrImageProcessorPil', 'torchvision': 'RTDetrImageProcessor'}` (модель RTDetrConfig)
- **sam** -- `{'pil': 'SamImageProcessorPil', 'torchvision': 'SamImageProcessor'}` (модель SamConfig)
- **sam2** -- `{'torchvision': 'Sam2ImageProcessor'}` (модель Sam2Config)
- **sam2_video** -- `{'torchvision': 'Sam2ImageProcessor'}` (модель Sam2VideoConfig)
- **sam3** -- `{'torchvision': 'Sam3ImageProcessor'}` (модель Sam3Config)
- **sam3_lite_text** -- `{'torchvision': 'Sam3ImageProcessor'}` (модель Sam3LiteTextConfig)
- **sam3_tracker** -- `{'torchvision': 'Sam3ImageProcessor'}` (модель Sam3TrackerConfig)
- **sam3_tracker_video** -- `{'torchvision': 'Sam3ImageProcessor'}` (модель Sam3TrackerVideoConfig)
- **sam3_video** -- `{'torchvision': 'Sam3ImageProcessor'}` (модель Sam3VideoConfig)
- **sam_hq** -- `{'torchvision': 'SamImageProcessor', 'pil': 'SamImageProcessorPil'}` (модель SamHQConfig)
- **sapiens2** -- `{'torchvision': 'Sapiens2ImageProcessor'}` (модель Sapiens2Config)
- **segformer** -- `{'pil': 'SegformerImageProcessorPil', 'torchvision': 'SegformerImageProcessor'}` (модель SegformerConfig)
- **seggpt** -- `{'pil': 'SegGptImageProcessorPil', 'torchvision': 'SegGptImageProcessor'}` (модель SegGptConfig)
- **shieldgemma2** -- `{'torchvision': 'Gemma3ImageProcessor', 'pil': 'Gemma3ImageProcessorPil'}` (модель ShieldGemma2Config)
- **siglip** -- `{'pil': 'SiglipImageProcessorPil', 'torchvision': 'SiglipImageProcessor'}` (модель SiglipConfig)
- **siglip2** -- `{'pil': 'Siglip2ImageProcessorPil', 'torchvision': 'Siglip2ImageProcessor'}` (модель Siglip2Config)
- **slanet** -- `{'torchvision': 'SLANeXtImageProcessor'}` (модель SLANetConfig)
- **slanext** -- `{'torchvision': 'SLANeXtImageProcessor'}` (модель SLANeXtConfig)
- **smolvlm** -- `{'pil': 'SmolVLMImageProcessorPil', 'torchvision': 'SmolVLMImageProcessor'}` (модель SmolVLMConfig)
- **step3p7** -- `{'torchvision': 'Step3p7ImageProcessor'}` (модель Step3p7Config)
- **superglue** -- `{'pil': 'SuperGlueImageProcessorPil', 'torchvision': 'SuperGlueImageProcessor'}` (модель SuperGlueConfig)
- **superpoint** -- `{'pil': 'SuperPointImageProcessorPil', 'torchvision': 'SuperPointImageProcessor'}` (модель SuperPointConfig)
- **swiftformer** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель SwiftFormerConfig)
- **swin** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель SwinConfig)
- **swin2sr** -- `{'pil': 'Swin2SRImageProcessorPil', 'torchvision': 'Swin2SRImageProcessor'}` (модель Swin2SRConfig)
- **swinv2** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель Swinv2Config)
- **t5gemma2** -- `{'torchvision': 'Gemma3ImageProcessor', 'pil': 'Gemma3ImageProcessorPil'}` (модель T5Gemma2Config)
- **t5gemma2_encoder** -- `{'torchvision': 'Gemma3ImageProcessor', 'pil': 'Gemma3ImageProcessorPil'}` (модель T5Gemma2EncoderConfig)
- **table-transformer** -- `{'torchvision': 'DetrImageProcessor', 'pil': 'DetrImageProcessorPil'}` (модель TableTransformerConfig)
- **textnet** -- `{'pil': 'TextNetImageProcessorPil', 'torchvision': 'TextNetImageProcessor'}` (модель TextNetConfig)
- **timesformer** -- `{'pil': 'VideoMAEImageProcessorPil', 'torchvision': 'VideoMAEImageProcessor'}` (модель TimesformerConfig)
- **timm_wrapper** -- `{'pil': 'TimmWrapperImageProcessor'}` (модель TimmWrapperConfig)
- **tipsv2** -- `{'torchvision': 'Tipsv2ImageProcessor'}` (модель Tipsv2Config)
- **tipsv2_dpt** -- `{'torchvision': 'Tipsv2DptImageProcessor'}` (модель Tipsv2DptConfig)
- **trocr** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель TrOCRConfig)
- **tvp** -- `{'pil': 'TvpImageProcessorPil', 'torchvision': 'TvpImageProcessor'}` (модель TvpConfig)
- **udop** -- `{'torchvision': 'LayoutLMv3ImageProcessor', 'pil': 'LayoutLMv3ImageProcessorPil'}` (модель UdopConfig)
- **ultravbert** -- `{'torchvision': 'UltraVBertImageProcessor'}` (модель UltraVBertConfig)
- **unlimited_ocr** -- `{'torchvision': 'UnlimitedOcrImageProcessor'}` (модель UnlimitedOcrConfig)
- **upernet** -- `{'torchvision': 'SegformerImageProcessor', 'pil': 'SegformerImageProcessorPil'}` (модель UperNetConfig)
- **uvdoc** -- `{'torchvision': 'UVDocImageProcessor'}` (модель UVDocConfig)
- **video_llama_3** -- `{'pil': 'VideoLlama3ImageProcessorPil', 'torchvision': 'VideoLlama3ImageProcessor'}` (модель VideoLlama3Config)
- **video_llava** -- `{'pil': 'VideoLlavaImageProcessor'}` (модель VideoLlavaConfig)
- **videomae** -- `{'pil': 'VideoMAEImageProcessorPil', 'torchvision': 'VideoMAEImageProcessor'}` (модель VideoMAEConfig)
- **vilt** -- `{'pil': 'ViltImageProcessorPil', 'torchvision': 'ViltImageProcessor'}` (модель ViltConfig)
- **vipllava** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель VipLlavaConfig)
- **vit** -- `{'pil': 'ViTImageProcessorPil', 'torchvision': 'ViTImageProcessor'}` (модель ViTConfig)
- **vit_mae** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель ViTMAEConfig)
- **vit_msn** -- `{'torchvision': 'ViTImageProcessor', 'pil': 'ViTImageProcessorPil'}` (модель ViTMSNConfig)
- **vitmatte** -- `{'pil': 'VitMatteImageProcessorPil', 'torchvision': 'VitMatteImageProcessor'}` (модель VitMatteConfig)
- **vitpose** -- `{'pil': 'VitPoseImageProcessorPil', 'torchvision': 'VitPoseImageProcessor'}` (модель VitPoseConfig)
- **vivit** -- `{'torchvision': 'VivitImageProcessor'}` (модель VivitConfig)
- **xclip** -- `{'torchvision': 'CLIPImageProcessor', 'pil': 'CLIPImageProcessorPil'}` (модель XCLIPConfig)
- **yolos** -- `{'pil': 'YolosImageProcessorPil', 'torchvision': 'YolosImageProcessor'}` (модель YolosConfig)
- **zoedepth** -- `{'pil': 'ZoeDepthImageProcessorPil', 'torchvision': 'ZoeDepthImageProcessor'}` (модель ZoeDepthConfig)

Передача `token=True` обязательна, если вы хотите использовать частную модель.

Примеры:

```python
>>> from transformers import AutoImageProcessor

>>> # Download image processor from huggingface.co and cache.
>>> image_processor = AutoImageProcessor.from_pretrained("google/vit-base-patch16-224-in21k")

>>> # If image processor files are in a directory (e.g. image processor was saved using *save_pretrained('./test/saved_model/')*)
>>> # image_processor = AutoImageProcessor.from_pretrained("./test/saved_model/")
```

#### register[[transformers.AutoImageProcessor.register]]

```python
register(config_class, slow_image_processor_class: type | None = None, fast_image_processor_class: type | None = None, image_processor_classes: dict[str, type] | None = None, exist_ok: bool = False)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/image_processing_auto.py#L725)

**Параметры:**

config_class ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)): конфигурация, соответствующая модели для регистрации.

slow_image_processor_class (`type`, *необязательный*) : Класс обработчика изображений для PIL-бэкенда (устаревший, используйте `image_processor_classes={"pil": ...}`).

fast_image_processor_class (`type`, *необязательный*) : Класс обработчика изображений для бэкенда Torchvision (устаревший, используйте `image_processor_classes={"torchvision": ...}`).

image_processor_classes (`dict[str, type]`, *необязательный*) : Словарь, сопоставляющий имена бэкендов с классами процессоров изображений. Позволяет регистрировать пользовательские бэкенды. Пример: `{"pil": MyPilProcessor, "torchvision": MyTorchvisionProcessor, "custom": MyCustomProcessor}`

exist_ok (`bool`, *необязательный*, по умолчанию `False`) : Если `True`, разрешает перезапись существующих регистраций.

Зарегистрируйте новый обработчик изображений для этого класса.

## AutoVideoProcessor[[transformers.AutoVideoProcessor]]

См. [Бэкенды видеопроцессора](../main_classes/video_processor#video-processor-backends) для выбора бэкенда, пользовательской регистрации, а также сохранения и повторной загрузки.

#### transformers.AutoVideoProcessor[[transformers.AutoVideoProcessor]]

```python
transformers.AutoVideoProcessor()
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/video_processing_auto.py#L264)

Это универсальный класс процессора видео, который при создании с помощью метода класса [AutoVideoProcessor.from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoVideoProcessor.from_pretrained) будет инстанцирован как один из классов процессоров видео библиотеки.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_pretrained[[transformers.AutoVideoProcessor.from_pretrained]]

```python
from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/video_processing_auto.py#L278)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из следующих:  - строка, *model id* предобученного video_processor, размещенного в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему файл video processor, сохраненный с помощью метода [save_pretrained()](/docs/transformers/main/ru/main_classes/video_processor#transformers.VideoProcessorMixin.save_pretrained), например, `./my_model_directory/`. - путь к сохраненному JSON-*файлу* video processor, например, `./my_model_directory/preprocessor_config.json`.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный видеообработчик предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)скачивать файлы видео-процессора и заменять кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.` Прокси применяются при каждом запросе.

token (`str` или *bool*, *необязательный*) : Токен, используемый в качестве HTTP bearer-авторизации для удалённых файлов. Если `True`, будет использован токен, сгенерированный при выполнении `hf auth login` (хранится в `~/.huggingface`).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

return_unused_kwargs (`bool`, *необязательный*, по умолчанию `False`) : Если `False`, функция возвращает только итоговый объект видео-процессора. Если `True`, функция возвращает `Tuple(video_processor, unused_kwargs)`, где *unused_kwargs* — это словарь, состоящий из пар ключ/значение, ключи которых не являются атрибутами видео-процессора: то есть та часть `kwargs`, которая не была использована для обновления `video_processor` и в остальном игнорируется.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

kwargs (`dict[str, Any]`, *необязательный*) : Значения в kwargs для любых ключей, являющихся атрибутами видео-процессора, будут использоваться для переопределения загруженных значений. Поведение в отношении пар ключ/значение, ключи которых *не* являются атрибутами видео-процессора, контролируется параметром `return_unused_kwargs`.

Создайте экземпляр одного из классов видео-процессоров библиотеки на основе словаря предобученной модели.

Класс видеопроцессора, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **cohere_compass** -- `{'torchvision': 'CohereCompassVideoProcessor'}` (модель CohereCompassConfig)
- **cosmos3_edge** -- `{'torchvision': 'Cosmos3EdgeVideoProcessor'}` (модель Cosmos3EdgeConfig)
- **cosmos3_omni** -- `{'torchvision': 'Qwen3VLVideoProcessor'}` (модель Cosmos3OmniConfig)
- **embedding_gemma2** -- `{'torchvision': 'EmbeddingGemma2VideoProcessor'}` (модель EmbeddingGemma2Config)
- **ernie4_5_vl_moe** -- `{'torchvision': 'Ernie4_5_VLMoeVideoProcessor'}` (модель Ernie4_5_VLMoeConfig)
- **exaone4_5** -- `{'torchvision': 'Qwen2VLVideoProcessor'}` (модель Exaone4_5_Config)
- **gemma4** -- `{'torchvision': 'Gemma4VideoProcessor'}` (модель Gemma4Config)
- **gemma4_unified** -- `{'torchvision': 'Gemma4UnifiedVideoProcessor'}` (модель Gemma4UnifiedConfig)
- **glm46v** -- `{'torchvision': 'Glm46VVideoProcessor'}` (модель Glm46VConfig)
- **glm4v** -- `{'torchvision': 'Glm4vVideoProcessor'}` (модель Glm4vConfig)
- **glm5_next** -- `{'torchvision': 'Glm5NextVideoProcessor'}` (модель Glm5NextConfig)
- **glmga** -- `{'torchvision': 'GlmgaVideoProcessor'}` (модель GlmgaConfig)
- **hyperclovax_vision_v2** -- `{'torchvision': 'Qwen2VLVideoProcessor'}` (модель HyperCLOVAXVisionV2Config)
- **instructblip** -- `{'torchvision': 'InstructBlipVideoVideoProcessor'}` (модель InstructBlipConfig)
- **instructblipvideo** -- `{'torchvision': 'InstructBlipVideoVideoProcessor'}` (модель InstructBlipVideoConfig)
- **internvl** -- `{'torchvision': 'InternVLVideoProcessor'}` (модель InternVLConfig)
- **kimi_k25** -- `{'torchvision': 'Kimi_K25VideoProcessor'}` (модель Kimi_K25Config)
- **llava_next_video** -- `{'torchvision': 'LlavaNextVideoVideoProcessor'}` (модель LlavaNextVideoConfig)
- **llava_onevision** -- `{'torchvision': 'LlavaOnevisionVideoProcessor'}` (модель LlavaOnevisionConfig)
- **minicpm_ocr** -- `{'torchvision': 'MiniCPMOcrVideoProcessor'}` (модель MiniCPMOcrConfig)
- **minicpmv4_6** -- `{'torchvision': 'MiniCPMV4_6VideoProcessor'}` (модель MiniCPMV4_6Config)
- **minicpmv4_7** -- `{'torchvision': 'MiniCPMV4_6VideoProcessor'}` (модель MiniCPMV4_7Config)
- **minimax_m3_vl** -- `{'torchvision': 'MiniMaxM3VLVideoProcessor'}` (модель MiniMaxM3VLConfig)
- **molmo2** -- `{'torchvision': 'Molmo2VideoProcessor'}` (модель Molmo2Config)
- **muse_glimmer** -- `{'torchvision': 'MuseGlimmerVideoProcessor'}` (модель MuseGlimmerConfig)
- **muse_spark** -- `{'torchvision': 'MuseGlimmerVideoProcessor'}` (модель MuseSparkConfig)
- **nemotron_h_omni** -- `{'torchvision': 'NemotronH_Omni_Reasoning_V3VideoProcessor'}` (модель NemotronH_Omni_Reasoning_V3_Config)
- **pe_audio_video** -- `{'torchvision': 'PeVideoVideoProcessor'}` (модель PeAudioVideoConfig)
- **pe_video** -- `{'torchvision': 'PeVideoVideoProcessor'}` (модель PeVideoConfig)
- **perception_lm** -- `{'torchvision': 'PerceptionLMVideoProcessor'}` (модель PerceptionLMConfig)
- **qwen2_5_omni** -- `{'torchvision': 'Qwen2VLVideoProcessor'}` (модель Qwen2_5OmniConfig)
- **qwen2_5_vl** -- `{'torchvision': 'Qwen2VLVideoProcessor'}` (модель Qwen2_5_VLConfig)
- **qwen2_vl** -- `{'torchvision': 'Qwen2VLVideoProcessor'}` (модель Qwen2VLConfig)
- **qwen3_5** -- `{'torchvision': 'Qwen3VLVideoProcessor'}` (модель Qwen3_5Config)
- **qwen3_5_moe** -- `{'torchvision': 'Qwen3VLVideoProcessor'}` (модель Qwen3_5MoeConfig)
- **qwen3_omni_moe** -- `{'torchvision': 'Qwen2VLVideoProcessor'}` (модель Qwen3OmniMoeConfig)
- **qwen3_vl** -- `{'torchvision': 'Qwen3VLVideoProcessor'}` (модель Qwen3VLConfig)
- **qwen3_vl_moe** -- `{'torchvision': 'Qwen3VLVideoProcessor'}` (модель Qwen3VLMoeConfig)
- **qwen4_exp** -- `{'torchvision': 'Qwen3VLVideoProcessor'}` (модель Qwen4ExpConfig)
- **sam2_video** -- `{'torchvision': 'Sam2VideoVideoProcessor'}` (модель Sam2VideoConfig)
- **smolvlm** -- `{'torchvision': 'SmolVLMVideoProcessor'}` (модель SmolVLMConfig)
- **timesformer** -- `{'torchvision': 'TimesformerVideoProcessor'}` (модель TimesformerConfig)
- **video_llama_3** -- `{'torchvision': 'VideoLlama3VideoProcessor'}` (модель VideoLlama3Config)
- **video_llava** -- `{'torchvision': 'VideoLlavaVideoProcessor'}` (модель VideoLlavaConfig)
- **videomae** -- `{'torchvision': 'VideoMAEVideoProcessor'}` (модель VideoMAEConfig)
- **videomt** -- `{'torchvision': 'VideomtVideoProcessor'}` (модель VideomtConfig)
- **videoprism** -- `{'torchvision': 'LlavaOnevisionVideoProcessor'}` (модель VideoPrismConfig)
- **vivit** -- `{'torchvision': 'VivitVideoProcessor'}` (модель VivitConfig)
- **vjepa2** -- `{'torchvision': 'VJEPA2VideoProcessor'}` (модель VJEPA2Config)

Передача `token=True` обязательна, если вы хотите использовать частную модель.

Примеры:

```python
>>> from transformers import AutoVideoProcessor

>>> # Download video processor from huggingface.co and cache.
>>> video_processor = AutoVideoProcessor.from_pretrained("llava-hf/llava-onevision-qwen2-0.5b-ov-hf")

>>> # If video processor files are in a directory (e.g. video processor was saved using *save_pretrained('./test/saved_model/')*)
>>> # video_processor = AutoVideoProcessor.from_pretrained("./test/saved_model/")
```

#### register[[transformers.AutoVideoProcessor.register]]

```python
register(config_class, video_processor_class: type | None = None, video_processor_classes: dict[str, type] | None = None, exist_ok: bool = False)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/video_processing_auto.py#L464)

**Параметры:**

config_class ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)): конфигурация, соответствующая модели для регистрации.

video_processor_class ([BaseVideoProcessor](/docs/transformers/main/ru/main_classes/video_processor#transformers.BaseVideoProcessor)) : видеообработчик для регистрации.

video_processor_classes (`dict[str, type]`, *необязательный*) : Словарь, сопоставляющий имена бэкендов с классами процессоров видео. Позволяет регистрировать пользовательские бэкенды. Пример: `{"pil": MyPilVideoProcessor, "torchvision": MyTorchvisionVideoProcessor, "custom": MyCustomVideoProcessor}`

exist_ok (`bool`, *необязательный*, по умолчанию `False`) : Если `True`, разрешает перезапись существующих регистраций.

Зарегистрируйте новый видео-процессор для этого класса.

## AutoProcessor[[transformers.AutoProcessor]]

#### transformers.AutoProcessor[[transformers.AutoProcessor]]

```python
transformers.AutoProcessor()
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/processing_auto.py#L127)

Это универсальный класс процессора, который при создании с помощью метода класса [AutoProcessor.from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoProcessor.from_pretrained) будет инициализирован как один из классов процессоров библиотеки.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_pretrained[[transformers.AutoProcessor.from_pretrained]]

```python
from_pretrained(pretrained_model_name_or_path, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/processing_auto.py#L141)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из следующих:  - строка, *model id* предобученного feature_extractor, размещенного в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему файлы процессора, сохраненные с помощью метода `save_pretrained()`, например, `./my_model_directory/`.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором следует кэшировать загруженный предобученный модельный feature extractor, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать файлы feature extractor и заменять кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.` Прокси применяются при каждом запросе.

token (`str` или *bool*, *необязательный*) : Токен, используемый в качестве HTTP bearer-авторизации для удалённых файлов. Если `True`, будет использован токен, сгенерированный при выполнении `hf auth login` (хранится в `~/.huggingface`).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

return_unused_kwargs (`bool`, *необязательный*, по умолчанию `False`) : Если `False`, функция возвращает только итоговый объект feature extractor. Если `True`, функция возвращает `Tuple(feature_extractor, unused_kwargs)`, где *unused_kwargs* — это словарь, состоящий из пар ключ/значение, ключи которых не являются атрибутами feature extractor, то есть та часть `kwargs`, которая не была использована для обновления `feature_extractor` и в остальном игнорируется.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

kwargs (`dict[str, Any]`, *необязательный*) : Значения в kwargs для любых ключей, являющихся атрибутами feature extractor, будут использоваться для переопределения загруженных значений. Поведение в отношении пар ключ/значение, ключи которых *не* являются атрибутами feature extractor, контролируется параметром `return_unused_kwargs`.

Создайте экземпляр одного из классов процессоров библиотеки на основе словаря предобученной модели.

Класс процессора, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно):

- **aimv2** -- [CLIPProcessor](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPProcessor) (модель Aimv2Config)
- **align** -- [AlignProcessor](/docs/transformers/main/ru/model_doc/align#transformers.AlignProcessor) (модель AlignConfig)
- **altclip** -- [AltCLIPProcessor](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPProcessor) (модель AltCLIPConfig)
- **aria** -- [AriaProcessor](/docs/transformers/main/ru/model_doc/aria#transformers.AriaProcessor) (модель AriaConfig)
- **audioflamingo3** -- [AudioFlamingo3Processor](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Processor) (модель AudioFlamingo3Config)
- **aya_vision** -- [AyaVisionProcessor](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionProcessor) (модель AyaVisionConfig)
- **bark** -- [BarkProcessor](/docs/transformers/main/ru/model_doc/bark#transformers.BarkProcessor) (модель BarkConfig)
- **blip** -- [BlipProcessor](/docs/transformers/main/ru/model_doc/blip#transformers.BlipProcessor) (модель BlipConfig)
- **blip-2** -- [Blip2Processor](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Processor) (модель Blip2Config)
- **bridgetower** -- [BridgeTowerProcessor](/docs/transformers/main/ru/model_doc/bridgetower#transformers.BridgeTowerProcessor) (модель BridgeTowerConfig)
- **bros** -- [BrosProcessor](/docs/transformers/main/ru/model_doc/bros#transformers.BrosProcessor) (модель BrosConfig)
- **canary** -- [CanaryProcessor](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryProcessor) (модель CanaryConfig)
- **chameleon** -- [ChameleonProcessor](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonProcessor) (модель ChameleonConfig)
- **chinese_clip** -- [ChineseCLIPProcessor](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPProcessor) (модель ChineseCLIPConfig)
- **clap** -- [ClapProcessor](/docs/transformers/main/ru/model_doc/clap#transformers.ClapProcessor) (модель ClapConfig)
- **clip** -- [CLIPProcessor](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPProcessor) (модель CLIPConfig)
- **clipseg** -- [CLIPSegProcessor](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegProcessor) (модель CLIPSegConfig)
- **clvp** -- [ClvpProcessor](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpProcessor) (модель ClvpConfig)
- **cohere2_vision** -- [Cohere2VisionProcessor](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionProcessor) (модель Cohere2VisionConfig)
- **cohere_asr** -- [CohereAsrProcessor](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrProcessor) (модель CohereAsrConfig)
- **cohere_compass** -- [CohereCompassProcessor](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassProcessor) (модель CohereCompassConfig)
- **colmodernvbert** -- [ColModernVBertProcessor](/docs/transformers/main/ru/model_doc/colmodernvbert#transformers.ColModernVBertProcessor) (модель ColModernVBertConfig)
- **colpali** -- [ColPaliProcessor](/docs/transformers/main/ru/model_doc/colpali#transformers.ColPaliProcessor) (модель ColPaliConfig)
- **colqwen2** -- [ColQwen2Processor](/docs/transformers/main/ru/model_doc/colqwen2#transformers.ColQwen2Processor) (модель ColQwen2Config)
- **cosmos3_edge** -- [Cosmos3EdgeProcessor](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeProcessor) (модель Cosmos3EdgeConfig)
- **csm** -- [CsmProcessor](/docs/transformers/main/ru/model_doc/csm#transformers.CsmProcessor) (модель CsmConfig)
- **deepseek_ocr2** -- [DeepseekOcr2Processor](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2Processor) (модель DeepseekOcr2Config)
- **deepseek_vl** -- [DeepseekVLProcessor](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLProcessor) (модель DeepseekVLConfig)
- **deepseek_vl_hybrid** -- [DeepseekVLHybridProcessor](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridProcessor) (модель DeepseekVLHybridConfig)
- **dia** -- [DiaProcessor](/docs/transformers/main/ru/model_doc/dia#transformers.DiaProcessor) (модель DiaConfig)
- **diffusion_gemma** -- [Gemma4Processor](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Processor) (модель DiffusionGemmaConfig)
- **edgetam** -- [Sam2Processor](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2Processor) (модель EdgeTamConfig)
- **embedding_gemma2** -- [EmbeddingGemma2Processor](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2Processor) (модель EmbeddingGemma2Config)
- **emu3** -- [Emu3Processor](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3Processor) (модель Emu3Config)
- **ernie4_5_vl_moe** -- [Ernie4_5_VLMoeProcessor](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeProcessor) (модель Ernie4_5_VLMoeConfig)
- **evolla** -- [EvollaProcessor](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaProcessor) (модель EvollaConfig)
- **exaone4_5** -- [Exaone4_5_Processor](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_Processor) (модель Exaone4_5_Config)
- **flava** -- [FlavaProcessor](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaProcessor) (модель FlavaConfig)
- **florence2** -- [Florence2Processor](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2Processor) (модель Florence2Config)
- **fun_asr_nano** -- [FunAsrNanoProcessor](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoProcessor) (модель FunAsrNanoConfig)
- **fuyu** -- [FuyuProcessor](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuProcessor) (модель FuyuConfig)
- **gemma3** -- [Gemma3Processor](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Processor) (модель Gemma3Config)
- **gemma3n** -- [Gemma3nProcessor](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nProcessor) (модель Gemma3nConfig)
- **gemma4** -- [Gemma4Processor](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Processor) (модель Gemma4Config)
- **gemma4_unified** -- [Gemma4UnifiedProcessor](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedProcessor) (модель Gemma4UnifiedConfig)
- **git** -- [GitProcessor](/docs/transformers/main/ru/model_doc/git#transformers.GitProcessor) (модель GitConfig)
- **glm46v** -- [Glm46VProcessor](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VProcessor) (модель Glm46VConfig)
- **glm4v** -- [Glm4vProcessor](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vProcessor) (модель Glm4vConfig)
- **glm4v_moe** -- [Glm4vProcessor](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vProcessor) (модель Glm4vMoeConfig)
- **glm5_next** -- [Glm5NextProcessor](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextProcessor) (модель Glm5NextConfig)
- **glm_image** -- [GlmImageProcessor](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageProcessor) (модель GlmImageConfig)
- **glmasr** -- [GlmAsrProcessor](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrProcessor) (модель GlmAsrConfig)
- **got_ocr2** -- [GotOcr2Processor](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2Processor) (модель GotOcr2Config)
- **gradium_phonon_tts** -- [PocketTTSProcessor](/docs/transformers/main/ru/model_doc/pocket_tts#transformers.PocketTTSProcessor) (модель GradiumPhononTTSConfig)
- **granite4_vision** -- [Granite4VisionProcessor](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionProcessor) (модель Granite4VisionConfig)
- **granite_speech** -- [GraniteSpeechProcessor](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechProcessor) (модель GraniteSpeechConfig)
- **granite_speech5_ctc** -- [GraniteSpeech5Processor](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5Processor) (модель GraniteSpeech5CTCConfig)
- **granite_speech_plus** -- [GraniteSpeechProcessor](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechProcessor) (модель GraniteSpeechPlusConfig)
- **grounding-dino** -- [GroundingDinoProcessor](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoProcessor) (модель GroundingDinoConfig)
- **groupvit** -- [CLIPProcessor](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPProcessor) (модель GroupViTConfig)
- **higgs_audio_v2** -- [HiggsAudioV2Processor](/docs/transformers/main/ru/model_doc/higgs_audio_v2#transformers.HiggsAudioV2Processor) (модель HiggsAudioV2Config)
- **hubert** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель HubertConfig)
- **hunyuan_vl** -- [HunYuanVLProcessor](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLProcessor) (модель HunYuanVLConfig)
- **hyperclovax_vision_v2** -- [HyperCLOVAXVisionV2Processor](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2Processor) (модель HyperCLOVAXVisionV2Config)
- **idefics** -- [IdeficsProcessor](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsProcessor) (модель IdeficsConfig)
- **idefics2** -- [Idefics2Processor](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2Processor) (модель Idefics2Config)
- **idefics3** -- [Idefics3Processor](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Processor) (модель Idefics3Config)
- **inkling_mm_model** -- [InklingProcessor](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingProcessor) (модель InklingConfig)
- **instructblip** -- [InstructBlipProcessor](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipProcessor) (модель InstructBlipConfig)
- **instructblipvideo** -- [InstructBlipVideoProcessor](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoProcessor) (модель InstructBlipVideoConfig)
- **internvl** -- [InternVLProcessor](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLProcessor) (модель InternVLConfig)
- **janus** -- [JanusProcessor](/docs/transformers/main/ru/model_doc/janus#transformers.JanusProcessor) (модель JanusConfig)
- **kimi_k25** -- [Kimi_K25Processor](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25Processor) (модель Kimi_K25Config)
- **kyutai_speech_to_text** -- [KyutaiSpeechToTextProcessor](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextProcessor) (модель KyutaiSpeechToTextConfig)
- **lasr_ctc** -- [LasrProcessor](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrProcessor) (модель LasrCTCConfig)
- **lasr_encoder** -- [LasrProcessor](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrProcessor) (модель LasrEncoderConfig)
- **layoutlmv2** -- [LayoutLMv2Processor](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Processor) (модель LayoutLMv2Config)
- **layoutlmv3** -- [LayoutLMv3Processor](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Processor) (модель LayoutLMv3Config)
- **layoutxlm** -- [LayoutXLMProcessor](/docs/transformers/main/ru/model_doc/layoutxlm#transformers.LayoutXLMProcessor) (модель LayoutXLMConfig)
- **lfm2_vl** -- [Lfm2VlProcessor](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlProcessor) (модель Lfm2VlConfig)
- **lighton_ocr** -- [LightOnOcrProcessor](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrProcessor) (модель LightOnOcrConfig)
- **llama4** -- [Llama4Processor](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4Processor) (модель Llama4Config)
- **llava** -- [LlavaProcessor](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaProcessor) (модель LlavaConfig)
- **llava_next** -- [LlavaNextProcessor](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextProcessor) (модель LlavaNextConfig)
- **llava_next_video** -- [LlavaNextVideoProcessor](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoProcessor) (модель LlavaNextVideoConfig)
- **llava_onevision** -- [LlavaOnevisionProcessor](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionProcessor) (модель LlavaOnevisionConfig)
- **markuplm** -- [MarkupLMProcessor](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMProcessor) (модель MarkupLMConfig)
- **metaclip_2** -- [CLIPProcessor](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPProcessor) (модель MetaClip2Config)
- **mgp-str** -- [MgpstrProcessor](/docs/transformers/main/ru/model_doc/mgp-str#transformers.MgpstrProcessor) (модель MgpstrConfig)
- **minicpm_ocr** -- [MiniCPMOcrProcessor](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrProcessor) (модель MiniCPMOcrConfig)
- **minicpmv4_6** -- [MiniCPMV4_6Processor](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6Processor) (модель MiniCPMV4_6Config)
- **minicpmv4_7** -- [MiniCPMV4_7Processor](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7Processor) (модель MiniCPMV4_7Config)
- **minimax_m3_vl** -- [MiniMaxM3VLProcessor](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLProcessor) (модель MiniMaxM3VLConfig)
- **mistral3** -- [PixtralProcessor](/docs/transformers/main/ru/model_doc/pixtral#transformers.PixtralProcessor) (модель Mistral3Config)
- **mistral_large4** -- [PixtralProcessor](/docs/transformers/main/ru/model_doc/pixtral#transformers.PixtralProcessor) (модель MistralLarge4Config)
- **mllama** -- [MllamaProcessor](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaProcessor) (модель MllamaConfig)
- **mm-grounding-dino** -- [GroundingDinoProcessor](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoProcessor) (модель MMGroundingDinoConfig)
- **modernvbert** -- [Idefics3Processor](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Processor) (модель ModernVBertConfig)
- **molmo2** -- [Molmo2Processor](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2Processor) (модель Molmo2Config)
- **moonshine** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель MoonshineConfig)
- **moonshine_streaming** -- [MoonshineStreamingProcessor](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingProcessor) (модель MoonshineStreamingConfig)
- **moss_transcribe_diarize** -- [MossTranscribeDiarizeProcessor](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeProcessor) (модель MossTranscribeDiarizeConfig)
- **muse_glimmer** -- [MuseGlimmerProcessor](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerProcessor) (модель MuseGlimmerConfig)
- **muse_spark** -- [MuseSparkProcessor](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkProcessor) (модель MuseSparkConfig)
- **musicflamingo** -- [MusicFlamingoProcessor](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoProcessor) (модель MusicFlamingoConfig)
- **musicgen** -- [MusicgenProcessor](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenProcessor) (модель MusicgenConfig)
- **musicgen_melody** -- [MusicgenMelodyProcessor](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyProcessor) (модель MusicgenMelodyConfig)
- **nemo_speechlm** -- [Nemotron3_5TranscribeProcessor](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeProcessor) (модель Nemotron3_5TranscribeConfig)
- **nemotron3_5_asr** -- [Nemotron3_5AsrProcessor](/docs/transformers/main/ru/model_doc/nemotron3_5_asr#transformers.Nemotron3_5AsrProcessor) (модель Nemotron3_5AsrConfig)
- **nemotron3_diarization** -- [Nemotron3DiarizationProcessor](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationProcessor) (модель Nemotron3DiarizationConfig)
- **nemotron_asr_streaming** -- [NemotronAsrStreamingProcessor](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingProcessor) (модель NemotronAsrStreamingConfig)
- **nemotron_h_omni** -- [NemotronH_Omni_Reasoning_V3Processor](/docs/transformers/main/ru/model_doc/nemotron_h_omni#transformers.NemotronH_Omni_Reasoning_V3Processor) (модель NemotronH_Omni_Reasoning_V3_Config)
- **neomme** -- [NeoMMEProcessor](/docs/transformers/main/ru/model_doc/neomme#transformers.NeoMMEProcessor) (модель NeoMMEConfig)
- **nougat** -- [NougatProcessor](/docs/transformers/main/ru/model_doc/nougat#transformers.NougatProcessor) (модель NougatConfig)
- **omdet-turbo** -- [OmDetTurboProcessor](/docs/transformers/main/ru/model_doc/omdet-turbo#transformers.OmDetTurboProcessor) (модель OmDetTurboConfig)
- **oneformer** -- [OneFormerProcessor](/docs/transformers/main/ru/model_doc/oneformer#transformers.OneFormerProcessor) (модель OneFormerConfig)
- **ovis2** -- [Ovis2Processor](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2Processor) (модель Ovis2Config)
- **owlv2** -- [Owlv2Processor](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2Processor) (модель Owlv2Config)
- **owlvit** -- [OwlViTProcessor](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTProcessor) (модель OwlViTConfig)
- **paddleocr_vl** -- [PaddleOCRVLProcessor](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLProcessor) (модель PaddleOCRVLConfig)
- **paligemma** -- [PaliGemmaProcessor](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaProcessor) (модель PaliGemmaConfig)
- **parakeet_ctc** -- [ParakeetProcessor](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetProcessor) (модель ParakeetCTCConfig)
- **parakeet_rnnt** -- [ParakeetProcessor](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetProcessor) (модель ParakeetRNNTConfig)
- **parakeet_tdt** -- [ParakeetProcessor](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetProcessor) (модель ParakeetTDTConfig)
- **pe_audio** -- [PeAudioProcessor](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioProcessor) (модель PeAudioConfig)
- **pe_audio_video** -- [PeAudioVideoProcessor](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoProcessor) (модель PeAudioVideoConfig)
- **pe_video** -- [PeVideoProcessor](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoProcessor) (модель PeVideoConfig)
- **perception_lm** -- [PerceptionLMProcessor](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMProcessor) (модель PerceptionLMConfig)
- **phi4_multimodal** -- [Phi4MultimodalProcessor](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalProcessor) (модель Phi4MultimodalConfig)
- **pi0** -- [PI0Processor](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0Processor) (модель PI0Config)
- **pix2struct** -- [Pix2StructProcessor](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructProcessor) (модель Pix2StructConfig)
- **pixtral** -- [PixtralProcessor](/docs/transformers/main/ru/model_doc/pixtral#transformers.PixtralProcessor) (модель PixtralVisionConfig)
- **pocket_tts** -- [PocketTTSProcessor](/docs/transformers/main/ru/model_doc/pocket_tts#transformers.PocketTTSProcessor) (модель PocketTTSConfig)
- **pop2piano** -- [Pop2PianoProcessor](/docs/transformers/main/ru/model_doc/pop2piano#transformers.Pop2PianoProcessor) (модель Pop2PianoConfig)
- **pp_chart2table** -- [PPChart2TableProcessor](/docs/transformers/main/ru/model_doc/pp_chart2table#transformers.PPChart2TableProcessor) (модель PPChart2TableConfig)
- **pp_formulanet** -- [PPFormulaNetProcessor](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetProcessor) (модель PPFormulaNetConfig)
- **qianfan_ocr** -- [QianfanOCRProcessor](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRProcessor) (модель QianfanOCRConfig)
- **qwen2_5_omni** -- [Qwen2_5OmniProcessor](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniProcessor) (модель Qwen2_5OmniConfig)
- **qwen2_5_vl** -- [Qwen2_5_VLProcessor](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLProcessor) (модель Qwen2_5_VLConfig)
- **qwen2_audio** -- [Qwen2AudioProcessor](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioProcessor) (модель Qwen2AudioConfig)
- **qwen2_vl** -- [Qwen2VLProcessor](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLProcessor) (модель Qwen2VLConfig)
- **qwen3_5** -- [Qwen3VLProcessor](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLProcessor) (модель Qwen3_5Config)
- **qwen3_5_moe** -- [Qwen3VLProcessor](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLProcessor) (модель Qwen3_5MoeConfig)
- **qwen3_asr** -- [Qwen3ASRProcessor](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRProcessor) (модель Qwen3ASRConfig)
- **qwen3_omni_moe** -- [Qwen3OmniMoeProcessor](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeProcessor) (модель Qwen3OmniMoeConfig)
- **qwen3_vl** -- [Qwen3VLProcessor](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLProcessor) (модель Qwen3VLConfig)
- **qwen3_vl_moe** -- [Qwen3VLProcessor](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLProcessor) (модель Qwen3VLMoeConfig)
- **qwen4_exp** -- [Qwen3VLProcessor](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLProcessor) (модель Qwen4ExpConfig)
- **sam** -- [SamProcessor](/docs/transformers/main/ru/model_doc/sam#transformers.SamProcessor) (модель SamConfig)
- **sam2** -- [Sam2Processor](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2Processor) (модель Sam2Config)
- **sam2_video** -- [Sam2VideoProcessor](/docs/transformers/main/ru/model_doc/sam2_video#transformers.Sam2VideoProcessor) (модель Sam2VideoConfig)
- **sam3** -- [Sam3Processor](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3Processor) (модель Sam3Config)
- **sam3_lite_text** -- [Sam3Processor](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3Processor) (модель Sam3LiteTextConfig)
- **sam3_tracker** -- [Sam3TrackerProcessor](/docs/transformers/main/ru/model_doc/sam3_tracker#transformers.Sam3TrackerProcessor) (модель Sam3TrackerConfig)
- **sam3_tracker_video** -- [Sam3TrackerVideoProcessor](/docs/transformers/main/ru/model_doc/sam3_tracker_video#transformers.Sam3TrackerVideoProcessor) (модель Sam3TrackerVideoConfig)
- **sam3_video** -- [Sam3VideoProcessor](/docs/transformers/main/ru/model_doc/sam3_video#transformers.Sam3VideoProcessor) (модель Sam3VideoConfig)
- **sam_hq** -- [SamHQProcessor](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQProcessor) (модель SamHQConfig)
- **seamless_m4t** -- [SeamlessM4TProcessor](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TProcessor) (модель SeamlessM4TConfig)
- **sew** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель SEWConfig)
- **sew-d** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель SEWDConfig)
- **siglip** -- [SiglipProcessor](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipProcessor) (модель SiglipConfig)
- **siglip2** -- [Siglip2Processor](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Processor) (модель Siglip2Config)
- **smolvlm** -- [SmolVLMProcessor](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMProcessor) (модель SmolVLMConfig)
- **speech_to_text** -- [Speech2TextProcessor](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextProcessor) (модель Speech2TextConfig)
- **speecht5** -- [SpeechT5Processor](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5Processor) (модель SpeechT5Config)
- **step3p7** -- [Step3p7Processor](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7Processor) (модель Step3p7Config)
- **t5gemma2** -- [Gemma3Processor](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Processor) (модель T5Gemma2Config)
- **t5gemma2_encoder** -- [Gemma3Processor](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Processor) (модель T5Gemma2EncoderConfig)
- **tipsv2** -- [Tipsv2Processor](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Processor) (модель Tipsv2Config)
- **trocr** -- [TrOCRProcessor](/docs/transformers/main/ru/model_doc/trocr#transformers.TrOCRProcessor) (модель TrOCRConfig)
- **tvp** -- [TvpProcessor](/docs/transformers/main/ru/model_doc/tvp#transformers.TvpProcessor) (модель TvpConfig)
- **udop** -- [UdopProcessor](/docs/transformers/main/ru/model_doc/udop#transformers.UdopProcessor) (модель UdopConfig)
- **ultravbert** -- [Idefics3Processor](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Processor) (модель UltraVBertConfig)
- **unispeech** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель UniSpeechConfig)
- **unispeech-sat** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель UniSpeechSatConfig)
- **unlimited_ocr** -- [UnlimitedOcrProcessor](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrProcessor) (модель UnlimitedOcrConfig)
- **vibevoice** -- [VibeVoiceProcessor](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceProcessor) (модель VibeVoiceConfig)
- **vibevoice_asr** -- [VibeVoiceAsrProcessor](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrProcessor) (модель VibeVoiceAsrConfig)
- **video_llama_3** -- [VideoLlama3Processor](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3Processor) (модель VideoLlama3Config)
- **video_llava** -- [VideoLlavaProcessor](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaProcessor) (модель VideoLlavaConfig)
- **videoprism** -- [VideoPrismProcessor](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismProcessor) (модель VideoPrismConfig)
- **vilt** -- [ViltProcessor](/docs/transformers/main/ru/model_doc/vilt#transformers.ViltProcessor) (модель ViltConfig)
- **vipllava** -- [LlavaProcessor](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaProcessor) (модель VipLlavaConfig)
- **vision-text-dual-encoder** -- [VisionTextDualEncoderProcessor](/docs/transformers/main/ru/model_doc/vision-text-dual-encoder#transformers.VisionTextDualEncoderProcessor) (модель VisionTextDualEncoderConfig)
- **voxtral** -- [VoxtralProcessor](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralProcessor) (модель VoxtralConfig)
- **voxtral_realtime** -- [VoxtralRealtimeProcessor](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeProcessor) (модель VoxtralRealtimeConfig)
- **wav2vec2** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2BertProcessor](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertProcessor) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель Wav2Vec2ConformerConfig)
- **wavlm** -- [Wav2Vec2Processor](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Processor) (модель WavLMConfig)
- **whisper** -- [WhisperProcessor](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperProcessor) (модель WhisperConfig)

Передача `token=True` обязательна, если вы хотите использовать частную модель.

Примеры:

```python
>>> from transformers import AutoProcessor

>>> # Download processor from huggingface.co and cache.
>>> processor = AutoProcessor.from_pretrained("facebook/wav2vec2-base-960h")

>>> # If processor files are in a directory (e.g. processor was saved using *save_pretrained('./test/saved_model/')*)
>>> # processor = AutoProcessor.from_pretrained("./test/saved_model/")
```

#### register[[transformers.AutoProcessor.register]]

```python
register(config_class, processor_class, exist_ok = False)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/processing_auto.py#L373)

**Параметры:**

config_class ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)): конфигурация, соответствующая модели для регистрации.

processor_class ([ProcessorMixin](/docs/transformers/main/ru/main_classes/processors#transformers.ProcessorMixin)) : процессор для регистрации.

Зарегистрируйте новый процессор для этого класса.

## Универсальные классы моделей

Для создания базового класса модели без конкретного слоя-головки доступны следующие автоклассы:

### AutoModel[[transformers.AutoModel]]

#### transformers.AutoModel[[transformers.AutoModel]]

```python
transformers.AutoModel(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2295)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из базовых классов моделей библиотеки.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModel.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : The model class to instantiate is selected based on the configuration class:  - [ASTConfig](/docs/transformers/main/ru/model_doc/audio-spectrogram-transformer#transformers.ASTConfig) configuration class: [ASTModel](/docs/transformers/main/ru/model_doc/audio-spectrogram-transformer#transformers.ASTModel) (ASTConfig model) - [AXK1Config](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1Config) configuration class: [AXK1Model](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1Model) (AXK1Config model) - [AXK2Config](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2Config) configuration class: [AXK2Model](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2Model) (AXK2Config model) - [AfmoeConfig](/docs/transformers/main/ru/model_doc/afmoe#transformers.AfmoeConfig) configuration class: [AfmoeModel](/docs/transformers/main/ru/model_doc/afmoe#transformers.AfmoeModel) (AfmoeConfig model) - [Aimv2Config](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2Config) configuration class: [Aimv2Model](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2Model) (Aimv2Config model) - [Aimv2VisionConfig](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2VisionConfig) configuration class: [Aimv2VisionModel](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2VisionModel) (Aimv2VisionConfig model) - [AlbertConfig](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertConfig) configuration class: [AlbertModel](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertModel) (AlbertConfig model) - [AlignConfig](/docs/transformers/main/ru/model_doc/align#transformers.AlignConfig) configuration class: [AlignModel](/docs/transformers/main/ru/model_doc/align#transformers.AlignModel) (AlignConfig model) - [AltCLIPConfig](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPConfig) configuration class: [AltCLIPModel](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPModel) (AltCLIPConfig model) - [ApertusConfig](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusConfig) configuration class: [ApertusModel](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusModel) (ApertusConfig model) - [ArceeConfig](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeConfig) configuration class: [ArceeModel](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeModel) (ArceeConfig model) - [AriaConfig](/docs/transformers/main/ru/model_doc/aria#transformers.AriaConfig) configuration class: [AriaModel](/docs/transformers/main/ru/model_doc/aria#transformers.AriaModel) (AriaConfig model) - [AriaTextConfig](/docs/transformers/main/ru/model_doc/aria#transformers.AriaTextConfig) configuration class: [AriaTextModel](/docs/transformers/main/ru/model_doc/aria#transformers.AriaTextModel) (AriaTextConfig model) - [AudioFlamingo3Config](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Config) configuration class: [AudioFlamingo3Model](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Model) (AudioFlamingo3Config model) - [AudioFlamingo3EncoderConfig](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3EncoderConfig) configuration class: [AudioFlamingo3Encoder](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Encoder) (AudioFlamingo3EncoderConfig model) - [AutoformerConfig](/docs/transformers/main/ru/model_doc/autoformer#transformers.AutoformerConfig) configuration class: [AutoformerModel](/docs/transformers/main/ru/model_doc/autoformer#transformers.AutoformerModel) (AutoformerConfig model) - [AyaVisionConfig](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionConfig) configuration class: [AyaVisionModel](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionModel) (AyaVisionConfig model) - [BailingHybridConfig](/docs/transformers/main/ru/model_doc/bailing_hybrid#transformers.BailingHybridConfig) configuration class: [BailingHybridModel](/docs/transformers/main/ru/model_doc/bailing_hybrid#transformers.BailingHybridModel) (BailingHybridConfig model) - [BambaConfig](/docs/transformers/main/ru/model_doc/bamba#transformers.BambaConfig) configuration class: [BambaModel](/docs/transformers/main/ru/model_doc/bamba#transformers.BambaModel) (BambaConfig model) - [BarkConfig](/docs/transformers/main/ru/model_doc/bark#transformers.BarkConfig) configuration class: [BarkModel](/docs/transformers/main/ru/model_doc/bark#transformers.BarkModel) (BarkConfig model) - [BartConfig](/docs/transformers/main/ru/model_doc/bart#transformers.BartConfig) configuration class: [BartModel](/docs/transformers/main/ru/model_doc/bart#transformers.BartModel) (BartConfig model) - [BeamConfig](/docs/transformers/main/ru/model_doc/beam#transformers.BeamConfig) configuration class: [BeamModel](/docs/transformers/main/ru/model_doc/beam#transformers.BeamModel) (BeamConfig model) - [BeitConfig](/docs/transformers/main/ru/model_doc/beit#transformers.BeitConfig) configuration class: [BeitModel](/docs/transformers/main/ru/model_doc/beit#transformers.BeitModel) (BeitConfig model) - [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig) configuration class: [BertModel](/docs/transformers/main/ru/model_doc/bert#transformers.BertModel) (BertConfig model) - [BertGenerationConfig](/docs/transformers/main/ru/model_doc/bert-generation#transformers.BertGenerationConfig) configuration class: [BertGenerationEncoder](/docs/transformers/main/ru/model_doc/bert-generation#transformers.BertGenerationEncoder) (BertGenerationConfig model) - [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig) configuration class: [BigBirdModel](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdModel) (BigBirdConfig model) - [BigBirdPegasusConfig](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusConfig) configuration class: [BigBirdPegasusModel](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusModel) (BigBirdPegasusConfig model) - [BioGptConfig](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptConfig) configuration class: [BioGptModel](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptModel) (BioGptConfig model) - [BitConfig](/docs/transformers/main/ru/model_doc/bit#transformers.BitConfig) configuration class: [BitModel](/docs/transformers/main/ru/model_doc/bit#transformers.BitModel) (BitConfig model) - [BitNetConfig](/docs/transformers/main/ru/model_doc/bitnet#transformers.BitNetConfig) configuration class: [BitNetModel](/docs/transformers/main/ru/model_doc/bitnet#transformers.BitNetModel) (BitNetConfig model) - [BlenderbotConfig](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotConfig) configuration class: [BlenderbotModel](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotModel) (BlenderbotConfig model) - [BlenderbotSmallConfig](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallConfig) configuration class: [BlenderbotSmallModel](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallModel) (BlenderbotSmallConfig model) - [Blip2Config](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Config) configuration class: [Blip2Model](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Model) (Blip2Config model) - [Blip2QFormerConfig](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2QFormerConfig) configuration class: [Blip2QFormerModel](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2QFormerModel) (Blip2QFormerConfig model) - [BlipConfig](/docs/transformers/main/ru/model_doc/blip#transformers.BlipConfig) configuration class: [BlipModel](/docs/transformers/main/ru/model_doc/blip#transformers.BlipModel) (BlipConfig model) - [BloomConfig](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomConfig) configuration class: [BloomModel](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomModel) (BloomConfig model) - [BltConfig](/docs/transformers/main/ru/model_doc/blt#transformers.BltConfig) configuration class: [BltModel](/docs/transformers/main/ru/model_doc/blt#transformers.BltModel) (BltConfig model) - [BridgeTowerConfig](/docs/transformers/main/ru/model_doc/bridgetower#transformers.BridgeTowerConfig) configuration class: [BridgeTowerModel](/docs/transformers/main/ru/model_doc/bridgetower#transformers.BridgeTowerModel) (BridgeTowerConfig model) - [BrosConfig](/docs/transformers/main/ru/model_doc/bros#transformers.BrosConfig) configuration class: [BrosModel](/docs/transformers/main/ru/model_doc/bros#transformers.BrosModel) (BrosConfig model) - [CLIPConfig](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPConfig) configuration class: [CLIPModel](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPModel) (CLIPConfig model) - [CLIPSegConfig](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegConfig) configuration class: [CLIPSegModel](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegModel) (CLIPSegConfig model) - [CLIPTextConfig](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTextConfig) configuration class: [CLIPTextModel](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTextModel) (CLIPTextConfig model) - [CLIPVisionConfig](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPVisionConfig) configuration class: [CLIPVisionModel](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPVisionModel) (CLIPVisionConfig model) - [CTRLConfig](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLConfig) configuration class: [CTRLModel](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLModel) (CTRLConfig model) - [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig) configuration class: [CamembertModel](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertModel) (CamembertConfig model) - [CanaryConfig](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryConfig) configuration class: [CanaryModel](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryModel) (CanaryConfig model) - [CanineConfig](/docs/transformers/main/ru/model_doc/canine#transformers.CanineConfig) configuration class: [CanineModel](/docs/transformers/main/ru/model_doc/canine#transformers.CanineModel) (CanineConfig model) - [ChameleonConfig](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonConfig) configuration class: [ChameleonModel](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonModel) (ChameleonConfig model) - [ChineseCLIPConfig](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPConfig) configuration class: [ChineseCLIPModel](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPModel) (ChineseCLIPConfig model) - [ChineseCLIPVisionConfig](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPVisionConfig) configuration class: [ChineseCLIPVisionModel](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPVisionModel) (ChineseCLIPVisionConfig model) - [ClapConfig](/docs/transformers/main/ru/model_doc/clap#transformers.ClapConfig) configuration class: [ClapModel](/docs/transformers/main/ru/model_doc/clap#transformers.ClapModel) (ClapConfig model) - [ClvpConfig](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpConfig) configuration class: [ClvpModelForConditionalGeneration](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpModelForConditionalGeneration) (ClvpConfig model) - [CodeGenConfig](/docs/transformers/main/ru/model_doc/codegen#transformers.CodeGenConfig) configuration class: [CodeGenModel](/docs/transformers/main/ru/model_doc/codegen#transformers.CodeGenModel) (CodeGenConfig model) - [Cohere2Config](/docs/transformers/main/ru/model_doc/cohere2#transformers.Cohere2Config) configuration class: [Cohere2Model](/docs/transformers/main/ru/model_doc/cohere2#transformers.Cohere2Model) (Cohere2Config model) - [Cohere2MoeConfig](/docs/transformers/main/ru/model_doc/cohere2_moe#transformers.Cohere2MoeConfig) configuration class: [Cohere2MoeModel](/docs/transformers/main/ru/model_doc/cohere2_moe#transformers.Cohere2MoeModel) (Cohere2MoeConfig model) - [Cohere2VisionConfig](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionConfig) configuration class: [Cohere2VisionModel](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionModel) (Cohere2VisionConfig model) - [CohereAsrConfig](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrConfig) configuration class: [CohereAsrModel](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrModel) (CohereAsrConfig model) - [CohereCompassConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassConfig) configuration class: [CohereCompassModel](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassModel) (CohereCompassConfig model) - [CohereCompassTextConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassTextConfig) configuration class: [CohereCompassTextModel](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassTextModel) (CohereCompassTextConfig model) - [CohereCompassVisionConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassVisionConfig) configuration class: [CohereCompassVisionModel](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassVisionModel) (CohereCompassVisionConfig model) - [CohereConfig](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereConfig) configuration class: [CohereModel](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereModel) (CohereConfig model) - [ConditionalDetrConfig](/docs/transformers/main/ru/model_doc/conditional_detr#transformers.ConditionalDetrConfig) configuration class: [ConditionalDetrModel](/docs/transformers/main/ru/model_doc/conditional_detr#transformers.ConditionalDetrModel) (ConditionalDetrConfig model) - [ConvBertConfig](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertConfig) configuration class: [ConvBertModel](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertModel) (ConvBertConfig model) - [ConvNextConfig](/docs/transformers/main/ru/model_doc/convnext#transformers.ConvNextConfig) configuration class: [ConvNextModel](/docs/transformers/main/ru/model_doc/convnext#transformers.ConvNextModel) (ConvNextConfig model) - [ConvNextV2Config](/docs/transformers/main/ru/model_doc/convnextv2#transformers.ConvNextV2Config) configuration class: [ConvNextV2Model](/docs/transformers/main/ru/model_doc/convnextv2#transformers.ConvNextV2Model) (ConvNextV2Config model) - [Cosmos3EdgeConfig](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeConfig) configuration class: [Cosmos3EdgeModel](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeModel) (Cosmos3EdgeConfig model) - [Cosmos3EdgeTextConfig](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeTextConfig) configuration class: [Cosmos3EdgeTextModel](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeTextModel) (Cosmos3EdgeTextConfig model) - [Cosmos3EdgeVisionConfig](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeVisionConfig) configuration class: [Cosmos3EdgeVisionModel](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeVisionModel) (Cosmos3EdgeVisionConfig model) - [Cosmos3OmniConfig](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniConfig) configuration class: [Cosmos3OmniModel](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniModel) (Cosmos3OmniConfig model) - [CpmAntConfig](/docs/transformers/main/ru/model_doc/cpmant#transformers.CpmAntConfig) configuration class: [CpmAntModel](/docs/transformers/main/ru/model_doc/cpmant#transformers.CpmAntModel) (CpmAntConfig model) - [CsmConfig](/docs/transformers/main/ru/model_doc/csm#transformers.CsmConfig) configuration class: [CsmForConditionalGeneration](/docs/transformers/main/ru/model_doc/csm#transformers.CsmForConditionalGeneration) (CsmConfig model) - [CvtConfig](/docs/transformers/main/ru/model_doc/cvt#transformers.CvtConfig) configuration class: [CvtModel](/docs/transformers/main/ru/model_doc/cvt#transformers.CvtModel) (CvtConfig model) - [CwmConfig](/docs/transformers/main/ru/model_doc/cwm#transformers.CwmConfig) configuration class: [CwmModel](/docs/transformers/main/ru/model_doc/cwm#transformers.CwmModel) (CwmConfig model) - [DFineConfig](/docs/transformers/main/ru/model_doc/d_fine#transformers.DFineConfig) configuration class: [DFineModel](/docs/transformers/main/ru/model_doc/d_fine#transformers.DFineModel) (DFineConfig model) - [DINOv3ConvNextConfig](/docs/transformers/main/ru/model_doc/dinov3#transformers.DINOv3ConvNextConfig) configuration class: [DINOv3ConvNextModel](/docs/transformers/main/ru/model_doc/dinov3#transformers.DINOv3ConvNextModel) (DINOv3ConvNextConfig model) - [DINOv3ViTConfig](/docs/transformers/main/ru/model_doc/dinov3#transformers.DINOv3ViTConfig) configuration class: [DINOv3ViTModel](/docs/transformers/main/ru/model_doc/dinov3#transformers.DINOv3ViTModel) (DINOv3ViTConfig model) - [DPRConfig](/docs/transformers/main/ru/model_doc/dpr#transformers.DPRConfig) configuration class: [DPRQuestionEncoder](/docs/transformers/main/ru/model_doc/dpr#transformers.DPRQuestionEncoder) (DPRConfig model) - [DPTConfig](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTConfig) configuration class: [DPTModel](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTModel) (DPTConfig model) - [DabDetrConfig](/docs/transformers/main/ru/model_doc/dab-detr#transformers.DabDetrConfig) configuration class: [DabDetrModel](/docs/transformers/main/ru/model_doc/dab-detr#transformers.DabDetrModel) (DabDetrConfig model) - [DacConfig](/docs/transformers/main/ru/model_doc/dac#transformers.DacConfig) configuration class: [DacModel](/docs/transformers/main/ru/model_doc/dac#transformers.DacModel) (DacConfig model) - [Data2VecAudioConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioConfig) configuration class: [Data2VecAudioModel](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioModel) (Data2VecAudioConfig model) - [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig) configuration class: [Data2VecTextModel](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextModel) (Data2VecTextConfig model) - [Data2VecVisionConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionConfig) configuration class: [Data2VecVisionModel](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionModel) (Data2VecVisionConfig model) - [DbrxConfig](/docs/transformers/main/ru/model_doc/dbrx#transformers.DbrxConfig) configuration class: [DbrxModel](/docs/transformers/main/ru/model_doc/dbrx#transformers.DbrxModel) (DbrxConfig model) - [DebertaConfig](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaConfig) configuration class: [DebertaModel](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaModel) (DebertaConfig model) - [DebertaV2Config](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Config) configuration class: [DebertaV2Model](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Model) (DebertaV2Config model) - [DecisionTransformerConfig](/docs/transformers/main/ru/model_doc/decision_transformer#transformers.DecisionTransformerConfig) configuration class: [DecisionTransformerModel](/docs/transformers/main/ru/model_doc/decision_transformer#transformers.DecisionTransformerModel) (DecisionTransformerConfig model) - [DeepseekOcr2Config](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2Config) configuration class: [DeepseekOcr2Model](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2Model) (DeepseekOcr2Config model) - [DeepseekV2Config](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2Config) configuration class: [DeepseekV2Model](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2Model) (DeepseekV2Config model) - [DeepseekV32Config](/docs/transformers/main/ru/model_doc/deepseek_v32#transformers.DeepseekV32Config) configuration class: [DeepseekV32Model](/docs/transformers/main/ru/model_doc/deepseek_v32#transformers.DeepseekV32Model) (DeepseekV32Config model) - [DeepseekV3Config](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3Config) configuration class: [DeepseekV3Model](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3Model) (DeepseekV3Config model) - [DeepseekV4Config](/docs/transformers/main/ru/model_doc/deepseek_v4#transformers.DeepseekV4Config) configuration class: [DeepseekV4Model](/docs/transformers/main/ru/model_doc/deepseek_v4#transformers.DeepseekV4Model) (DeepseekV4Config model) - [DeepseekVLConfig](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLConfig) configuration class: [DeepseekVLModel](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLModel) (DeepseekVLConfig model) - [DeepseekVLHybridConfig](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridConfig) configuration class: [DeepseekVLHybridModel](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridModel) (DeepseekVLHybridConfig model) - [DeformableDetrConfig](/docs/transformers/main/ru/model_doc/deformable_detr#transformers.DeformableDetrConfig) configuration class: [DeformableDetrModel](/docs/transformers/main/ru/model_doc/deformable_detr#transformers.DeformableDetrModel) (DeformableDetrConfig model) - [DeiTConfig](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTConfig) configuration class: [DeiTModel](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTModel) (DeiTConfig model) - [Deimv2Config](/docs/transformers/main/ru/model_doc/deimv2#transformers.Deimv2Config) configuration class: [Deimv2Model](/docs/transformers/main/ru/model_doc/deimv2#transformers.Deimv2Model) (Deimv2Config model) - [DepthProConfig](/docs/transformers/main/ru/model_doc/depth_pro#transformers.DepthProConfig) configuration class: [DepthProModel](/docs/transformers/main/ru/model_doc/depth_pro#transformers.DepthProModel) (DepthProConfig model) - [DetrConfig](/docs/transformers/main/ru/model_doc/detr#transformers.DetrConfig) configuration class: [DetrModel](/docs/transformers/main/ru/model_doc/detr#transformers.DetrModel) (DetrConfig model) - [DiaConfig](/docs/transformers/main/ru/model_doc/dia#transformers.DiaConfig) configuration class: [DiaModel](/docs/transformers/main/ru/model_doc/dia#transformers.DiaModel) (DiaConfig model) - [DiffLlamaConfig](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaConfig) configuration class: [DiffLlamaModel](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaModel) (DiffLlamaConfig model) - [DiffusionGemmaConfig](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaConfig) configuration class: [DiffusionGemmaModel](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaModel) (DiffusionGemmaConfig model) - [DinatConfig](/docs/transformers/main/ru/model_doc/dinat#transformers.DinatConfig) configuration class: [DinatModel](/docs/transformers/main/ru/model_doc/dinat#transformers.DinatModel) (DinatConfig model) - [Dinov2Config](/docs/transformers/main/ru/model_doc/dinov2#transformers.Dinov2Config) configuration class: [Dinov2Model](/docs/transformers/main/ru/model_doc/dinov2#transformers.Dinov2Model) (Dinov2Config model) - [Dinov2WithRegistersConfig](/docs/transformers/main/ru/model_doc/dinov2_with_registers#transformers.Dinov2WithRegistersConfig) configuration class: [Dinov2WithRegistersModel](/docs/transformers/main/ru/model_doc/dinov2_with_registers#transformers.Dinov2WithRegistersModel) (Dinov2WithRegistersConfig model) - [DistilBertConfig](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertConfig) configuration class: [DistilBertModel](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertModel) (DistilBertConfig model) - [DogeConfig](/docs/transformers/main/ru/model_doc/doge#transformers.DogeConfig) configuration class: [DogeModel](/docs/transformers/main/ru/model_doc/doge#transformers.DogeModel) (DogeConfig model) - [DonutSwinConfig](/docs/transformers/main/ru/model_doc/donut#transformers.DonutSwinConfig) configuration class: [DonutSwinModel](/docs/transformers/main/ru/model_doc/donut#transformers.DonutSwinModel) (DonutSwinConfig model) - [Dots1Config](/docs/transformers/main/ru/model_doc/dots1#transformers.Dots1Config) configuration class: [Dots1Model](/docs/transformers/main/ru/model_doc/dots1#transformers.Dots1Model) (Dots1Config model) - [EdgeTamConfig](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamConfig) configuration class: [EdgeTamModel](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamModel) (EdgeTamConfig model) - [EdgeTamVideoConfig](/docs/transformers/main/ru/model_doc/edgetam_video#transformers.EdgeTamVideoConfig) configuration class: [EdgeTamVideoModel](/docs/transformers/main/ru/model_doc/edgetam_video#transformers.EdgeTamVideoModel) (EdgeTamVideoConfig model) - [EdgeTamVisionConfig](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamVisionConfig) configuration class: [EdgeTamVisionModel](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamVisionModel) (EdgeTamVisionConfig model) - [EfficientLoFTRConfig](/docs/transformers/main/ru/model_doc/efficientloftr#transformers.EfficientLoFTRConfig) configuration class: [EfficientLoFTRModel](/docs/transformers/main/ru/model_doc/efficientloftr#transformers.EfficientLoFTRModel) (EfficientLoFTRConfig model) - [EfficientNetConfig](/docs/transformers/main/ru/model_doc/efficientnet#transformers.EfficientNetConfig) configuration class: [EfficientNetModel](/docs/transformers/main/ru/model_doc/efficientnet#transformers.EfficientNetModel) (EfficientNetConfig model) - [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig) configuration class: [ElectraModel](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraModel) (ElectraConfig model) - [EmbeddingGemma2Config](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2Config) configuration class: [EmbeddingGemma2Model](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2Model) (EmbeddingGemma2Config model) - [EmbeddingGemma2TextConfig](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2TextConfig) configuration class: [EmbeddingGemma2TextModel](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2TextModel) (EmbeddingGemma2TextConfig model) - [Emu3Config](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3Config) configuration class: [Emu3Model](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3Model) (Emu3Config model) - [EncodecConfig](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecConfig) configuration class: [EncodecModel](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecModel) (EncodecConfig model) - [Ernie4_5Config](/docs/transformers/main/ru/model_doc/ernie4_5#transformers.Ernie4_5Config) configuration class: [Ernie4_5Model](/docs/transformers/main/ru/model_doc/ernie4_5#transformers.Ernie4_5Model) (Ernie4_5Config model) - [Ernie4_5_MoeConfig](/docs/transformers/main/ru/model_doc/ernie4_5_moe#transformers.Ernie4_5_MoeConfig) configuration class: [Ernie4_5_MoeModel](/docs/transformers/main/ru/model_doc/ernie4_5_moe#transformers.Ernie4_5_MoeModel) (Ernie4_5_MoeConfig model) - [Ernie4_5_VLMoeConfig](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeConfig) configuration class: [Ernie4_5_VLMoeModel](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeModel) (Ernie4_5_VLMoeConfig model) - [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig) configuration class: [ErnieModel](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieModel) (ErnieConfig model) - [EsmConfig](/docs/transformers/main/ru/model_doc/esm#transformers.EsmConfig) configuration class: [EsmModel](/docs/transformers/main/ru/model_doc/esm#transformers.EsmModel) (EsmConfig model) - [EsmcConfig](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcConfig) configuration class: [EsmcModel](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcModel) (EsmcConfig model) - [EuroBertConfig](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertConfig) configuration class: [EuroBertModel](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertModel) (EuroBertConfig model) - [EvollaConfig](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaConfig) configuration class: [EvollaModel](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaModel) (EvollaConfig model) - [Exaone4Config](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Config) configuration class: [Exaone4Model](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Model) (Exaone4Config model) - [Exaone4_5_Config](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_Config) configuration class: [Exaone4_5_Model](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_Model) (Exaone4_5_Config model) - [Exaone4_5_VisionConfig](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_VisionConfig) configuration class: [Exaone4_5_VisionModel](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_VisionModel) (Exaone4_5_VisionConfig model) - [ExaoneMoeConfig](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeConfig) configuration class: [ExaoneMoeModel](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeModel) (ExaoneMoeConfig model) - [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig) configuration class: [FNetModel](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetModel) (FNetConfig model) - [FSMTConfig](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTConfig) configuration class: [FSMTModel](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTModel) (FSMTConfig model) - [FalconConfig](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconConfig) configuration class: [FalconModel](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconModel) (FalconConfig model) - [FalconH1Config](/docs/transformers/main/ru/model_doc/falcon_h1#transformers.FalconH1Config) configuration class: [FalconH1Model](/docs/transformers/main/ru/model_doc/falcon_h1#transformers.FalconH1Model) (FalconH1Config model) - [FalconMambaConfig](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaConfig) configuration class: [FalconMambaModel](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaModel) (FalconMambaConfig model) - [FastSpeech2ConformerConfig](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerConfig) configuration class: [FastSpeech2ConformerModel](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerModel) (FastSpeech2ConformerConfig model) - [FastSpeech2ConformerWithHifiGanConfig](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerWithHifiGanConfig) configuration class: [FastSpeech2ConformerWithHifiGan](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerWithHifiGan) (FastSpeech2ConformerWithHifiGanConfig model) - [FastVlmConfig](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmConfig) configuration class: [FastVlmModel](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmModel) (FastVlmConfig model) - [FlaubertConfig](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertConfig) configuration class: [FlaubertModel](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertModel) (FlaubertConfig model) - [FlavaConfig](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaConfig) configuration class: [FlavaModel](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaModel) (FlavaConfig model) - [FlexOlmoConfig](/docs/transformers/main/ru/model_doc/flex_olmo#transformers.FlexOlmoConfig) configuration class: [FlexOlmoModel](/docs/transformers/main/ru/model_doc/flex_olmo#transformers.FlexOlmoModel) (FlexOlmoConfig model) - [FlintConfig](/docs/transformers/main/ru/model_doc/flint#transformers.FlintConfig) configuration class: [FlintModel](/docs/transformers/main/ru/model_doc/flint#transformers.FlintModel) (FlintConfig model) - [Florence2Config](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2Config) configuration class: [Florence2Model](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2Model) (Florence2Config model) - [FocalNetConfig](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetConfig) configuration class: [FocalNetModel](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetModel) (FocalNetConfig model) - [FunAsrNanoConfig](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoConfig) configuration class: [FunAsrNanoModel](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoModel) (FunAsrNanoConfig model) - [FunAsrNanoEncoderConfig](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoEncoderConfig) configuration class: [FunAsrNanoEncoder](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoEncoder) (FunAsrNanoEncoderConfig model) - [FunnelConfig](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelConfig) configuration class: [FunnelModel](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelModel) or [FunnelBaseModel](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelBaseModel) (FunnelConfig model) - [FuyuConfig](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuConfig) configuration class: [FuyuModel](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuModel) (FuyuConfig model) - [GLPNConfig](/docs/transformers/main/ru/model_doc/glpn#transformers.GLPNConfig) configuration class: [GLPNModel](/docs/transformers/main/ru/model_doc/glpn#transformers.GLPNModel) (GLPNConfig model) - [GPT2Config](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Config) configuration class: [GPT2Model](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Model) (GPT2Config model) - [GPTBigCodeConfig](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeConfig) configuration class: [GPTBigCodeModel](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeModel) (GPTBigCodeConfig model) - [GPTJConfig](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJConfig) configuration class: [GPTJModel](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJModel) (GPTJConfig model) - [GPTNeoConfig](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoConfig) configuration class: [GPTNeoModel](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoModel) (GPTNeoConfig model) - [GPTNeoXConfig](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXConfig) configuration class: [GPTNeoXModel](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXModel) (GPTNeoXConfig model) - [GPTNeoXJapaneseConfig](/docs/transformers/main/ru/model_doc/gpt_neox_japanese#transformers.GPTNeoXJapaneseConfig) configuration class: [GPTNeoXJapaneseModel](/docs/transformers/main/ru/model_doc/gpt_neox_japanese#transformers.GPTNeoXJapaneseModel) (GPTNeoXJapaneseConfig model) - [Gemma2Config](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2Config) configuration class: [Gemma2Model](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2Model) (Gemma2Config model) - [Gemma3Config](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Config) configuration class: [Gemma3Model](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Model) (Gemma3Config model) - [Gemma3TextConfig](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3TextConfig) configuration class: [Gemma3TextModel](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3TextModel) (Gemma3TextConfig model) - [Gemma3nAudioConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nAudioConfig) configuration class: `Gemma3nAudioEncoder` (Gemma3nAudioConfig model) - [Gemma3nConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nConfig) configuration class: [Gemma3nModel](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nModel) (Gemma3nConfig model) - [Gemma3nTextConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nTextConfig) configuration class: [Gemma3nTextModel](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nTextModel) (Gemma3nTextConfig model) - [Gemma3nVisionConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nVisionConfig) configuration class: [TimmWrapperModel](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperModel) (Gemma3nVisionConfig model) - [Gemma4AudioConfig](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4AudioConfig) configuration class: [Gemma4AudioModel](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4AudioModel) (Gemma4AudioConfig model) - [Gemma4Config](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Config) configuration class: [Gemma4Model](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Model) (Gemma4Config model) - [Gemma4TextConfig](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4TextConfig) configuration class: [Gemma4TextModel](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4TextModel) (Gemma4TextConfig model) - [Gemma4UnifiedConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedConfig) configuration class: [Gemma4UnifiedModel](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedModel) (Gemma4UnifiedConfig model) - [Gemma4UnifiedTextConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedTextConfig) configuration class: [Gemma4UnifiedTextModel](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedTextModel) (Gemma4UnifiedTextConfig model) - [Gemma4VisionConfig](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4VisionConfig) configuration class: [Gemma4VisionModel](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4VisionModel) (Gemma4VisionConfig model) - [GemmaConfig](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaConfig) configuration class: [GemmaModel](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaModel) (GemmaConfig model) - [GitConfig](/docs/transformers/main/ru/model_doc/git#transformers.GitConfig) configuration class: [GitModel](/docs/transformers/main/ru/model_doc/git#transformers.GitModel) (GitConfig model) - [Glm46VConfig](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VConfig) configuration class: [Glm46VModel](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VModel) (Glm46VConfig model) - [Glm4Config](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4Config) configuration class: [Glm4Model](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4Model) (Glm4Config model) - [Glm4MoeConfig](/docs/transformers/main/ru/model_doc/glm4_moe#transformers.Glm4MoeConfig) configuration class: [Glm4MoeModel](/docs/transformers/main/ru/model_doc/glm4_moe#transformers.Glm4MoeModel) (Glm4MoeConfig model) - [Glm4MoeLiteConfig](/docs/transformers/main/ru/model_doc/glm4_moe_lite#transformers.Glm4MoeLiteConfig) configuration class: [Glm4MoeLiteModel](/docs/transformers/main/ru/model_doc/glm4_moe_lite#transformers.Glm4MoeLiteModel) (Glm4MoeLiteConfig model) - [Glm4vConfig](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vConfig) configuration class: [Glm4vModel](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vModel) (Glm4vConfig model) - [Glm4vMoeConfig](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeConfig) configuration class: [Glm4vMoeModel](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeModel) (Glm4vMoeConfig model) - [Glm4vMoeTextConfig](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeTextConfig) configuration class: [Glm4vMoeTextModel](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeTextModel) (Glm4vMoeTextConfig model) - [Glm4vMoeVisionConfig](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeVisionConfig) configuration class: [Glm4vMoeVisionModel](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeVisionModel) (Glm4vMoeVisionConfig model) - [Glm4vTextConfig](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vTextConfig) configuration class: [Glm4vTextModel](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vTextModel) (Glm4vTextConfig model) - [Glm4vVisionConfig](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vVisionConfig) configuration class: [Glm4vVisionModel](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vVisionModel) (Glm4vVisionConfig model) - [Glm5NextConfig](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextConfig) configuration class: [Glm5NextModel](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextModel) (Glm5NextConfig model) - [Glm5NextTextConfig](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextTextConfig) configuration class: [Glm5NextTextModel](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextTextModel) (Glm5NextTextConfig model) - [Glm5NextVisionConfig](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextVisionConfig) configuration class: [Glm5NextVisionModel](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextVisionModel) (Glm5NextVisionConfig model) - [GlmAsrConfig](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrConfig) configuration class: [GlmAsrModel](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrModel) (GlmAsrConfig model) - [GlmAsrEncoderConfig](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrEncoderConfig) configuration class: [GlmAsrEncoder](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrEncoder) (GlmAsrEncoderConfig model) - [GlmConfig](/docs/transformers/main/ru/model_doc/glm#transformers.GlmConfig) configuration class: [GlmModel](/docs/transformers/main/ru/model_doc/glm#transformers.GlmModel) (GlmConfig model) - [GlmImageConfig](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageConfig) configuration class: [GlmImageModel](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageModel) (GlmImageConfig model) - [GlmImageTextConfig](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageTextConfig) configuration class: [GlmImageTextModel](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageTextModel) (GlmImageTextConfig model) - [GlmImageVQVAEConfig](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageVQVAEConfig) configuration class: [GlmImageVQVAE](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageVQVAE) (GlmImageVQVAEConfig model) - [GlmImageVisionConfig](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageVisionConfig) configuration class: [GlmImageVisionModel](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageVisionModel) (GlmImageVisionConfig model) - [GlmMoeDsaConfig](/docs/transformers/main/ru/model_doc/glm_moe_dsa#transformers.GlmMoeDsaConfig) configuration class: [GlmMoeDsaModel](/docs/transformers/main/ru/model_doc/glm_moe_dsa#transformers.GlmMoeDsaModel) (GlmMoeDsaConfig model) - [GlmOcrConfig](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrConfig) configuration class: [GlmOcrModel](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrModel) (GlmOcrConfig model) - [GlmOcrTextConfig](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrTextConfig) configuration class: [GlmOcrTextModel](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrTextModel) (GlmOcrTextConfig model) - [GlmOcrVisionConfig](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrVisionConfig) configuration class: [GlmOcrVisionModel](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrVisionModel) (GlmOcrVisionConfig model) - [GlmgaConfig](/docs/transformers/main/ru/model_doc/glmga#transformers.GlmgaConfig) configuration class: [Glm46VModel](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VModel) (GlmgaConfig model) - [GotOcr2Config](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2Config) configuration class: [GotOcr2Model](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2Model) (GotOcr2Config model) - [GptOssConfig](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssConfig) configuration class: [GptOssModel](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssModel) (GptOssConfig model) - [GradiumPhononTTSConfig](/docs/transformers/main/ru/model_doc/gradium_phonon_tts#transformers.GradiumPhononTTSConfig) configuration class: [GradiumPhononTTSModel](/docs/transformers/main/ru/model_doc/gradium_phonon_tts#transformers.GradiumPhononTTSModel) (GradiumPhononTTSConfig model) - [Granite4VisionConfig](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionConfig) configuration class: [Granite4VisionModel](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionModel) (Granite4VisionConfig model) - [GraniteConfig](/docs/transformers/main/ru/model_doc/granite#transformers.GraniteConfig) configuration class: [GraniteModel](/docs/transformers/main/ru/model_doc/granite#transformers.GraniteModel) (GraniteConfig model) - [GraniteMoeConfig](/docs/transformers/main/ru/model_doc/granitemoe#transformers.GraniteMoeConfig) configuration class: [GraniteMoeModel](/docs/transformers/main/ru/model_doc/granitemoe#transformers.GraniteMoeModel) (GraniteMoeConfig model) - [GraniteMoeHybridConfig](/docs/transformers/main/ru/model_doc/granitemoehybrid#transformers.GraniteMoeHybridConfig) configuration class: [GraniteMoeHybridModel](/docs/transformers/main/ru/model_doc/granitemoehybrid#transformers.GraniteMoeHybridModel) (GraniteMoeHybridConfig model) - [GraniteMoeSWAConfig](/docs/transformers/main/ru/model_doc/granitemoe_swa#transformers.GraniteMoeSWAConfig) configuration class: [GraniteMoeSWAModel](/docs/transformers/main/ru/model_doc/granitemoe_swa#transformers.GraniteMoeSWAModel) (GraniteMoeSWAConfig model) - [GraniteMoeSharedConfig](/docs/transformers/main/ru/model_doc/granitemoeshared#transformers.GraniteMoeSharedConfig) configuration class: [GraniteMoeSharedModel](/docs/transformers/main/ru/model_doc/granitemoeshared#transformers.GraniteMoeSharedModel) (GraniteMoeSharedConfig model) - [GraniteSWAConfig](/docs/transformers/main/ru/model_doc/granite_swa#transformers.GraniteSWAConfig) configuration class: [GraniteSWAModel](/docs/transformers/main/ru/model_doc/granite_swa#transformers.GraniteSWAModel) (GraniteSWAConfig model) - [GraniteSpeech5CTCConfig](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5CTCConfig) configuration class: [GraniteSpeech5ForCTC](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5ForCTC) (GraniteSpeech5CTCConfig model) - [GraniteSpeech5EncoderConfig](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5EncoderConfig) configuration class: [GraniteSpeech5Encoder](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5Encoder) (GraniteSpeech5EncoderConfig model) - [GraniteSpeechConfig](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechConfig) configuration class: [GraniteSpeechModel](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechModel) (GraniteSpeechConfig model) - [GraniteSpeechPlusConfig](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusConfig) configuration class: [GraniteSpeechPlusModel](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusModel) (GraniteSpeechPlusConfig model) - [GroundingDinoConfig](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoConfig) configuration class: [GroundingDinoModel](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoModel) (GroundingDinoConfig model) - [GroupViTConfig](/docs/transformers/main/ru/model_doc/groupvit#transformers.GroupViTConfig) configuration class: [GroupViTModel](/docs/transformers/main/ru/model_doc/groupvit#transformers.GroupViTModel) (GroupViTConfig model) - [GteConfig](/docs/transformers/main/ru/model_doc/gte#transformers.GteConfig) configuration class: [GteModel](/docs/transformers/main/ru/model_doc/gte#transformers.GteModel) (GteConfig model) - [HGNetV2Config](/docs/transformers/main/ru/model_doc/hgnet_v2#transformers.HGNetV2Config) configuration class: [HGNetV2Backbone](/docs/transformers/main/ru/model_doc/hgnet_v2#transformers.HGNetV2Backbone) (HGNetV2Config model) - [HYV3Config](/docs/transformers/main/ru/model_doc/hy_v3#transformers.HYV3Config) configuration class: [HYV3Model](/docs/transformers/main/ru/model_doc/hy_v3#transformers.HYV3Model) (HYV3Config model) - [HYV4Config](/docs/transformers/main/ru/model_doc/hy_v4#transformers.HYV4Config) configuration class: [HYV4Model](/docs/transformers/main/ru/model_doc/hy_v4#transformers.HYV4Model) (HYV4Config model) - [HeliumConfig](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumConfig) configuration class: [HeliumModel](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumModel) (HeliumConfig model) - [HieraConfig](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraConfig) configuration class: [HieraModel](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraModel) (HieraConfig model) - [HiggsAudioV2Config](/docs/transformers/main/ru/model_doc/higgs_audio_v2#transformers.HiggsAudioV2Config) configuration class: [HiggsAudioV2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/higgs_audio_v2#transformers.HiggsAudioV2ForConditionalGeneration) (HiggsAudioV2Config model) - [HiggsAudioV2TokenizerConfig](/docs/transformers/main/ru/model_doc/higgs_audio_v2_tokenizer#transformers.HiggsAudioV2TokenizerConfig) configuration class: [HiggsAudioV2TokenizerModel](/docs/transformers/main/ru/model_doc/higgs_audio_v2_tokenizer#transformers.HiggsAudioV2TokenizerModel) (HiggsAudioV2TokenizerConfig model) - [HrmTextConfig](/docs/transformers/main/ru/model_doc/hrm_text#transformers.HrmTextConfig) configuration class: [HrmTextModel](/docs/transformers/main/ru/model_doc/hrm_text#transformers.HrmTextModel) (HrmTextConfig model) - [HubertConfig](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertConfig) configuration class: [HubertModel](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertModel) (HubertConfig model) - [HunYuanDenseV1Config](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1Config) configuration class: [HunYuanDenseV1Model](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1Model) (HunYuanDenseV1Config model) - [HunYuanMoEV1Config](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1Config) configuration class: [HunYuanMoEV1Model](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1Model) (HunYuanMoEV1Config model) - [HunYuanVLConfig](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLConfig) configuration class: [HunYuanVLModel](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLModel) (HunYuanVLConfig model) - [HunYuanVLTextConfig](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLTextConfig) configuration class: [HunYuanVLTextModel](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLTextModel) (HunYuanVLTextConfig model) - [HunYuanVLVisionConfig](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLVisionConfig) configuration class: [HunYuanVLVisionTransformer](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLVisionTransformer) (HunYuanVLVisionConfig model) - [HyperCLOVAXConfig](/docs/transformers/main/ru/model_doc/hyperclovax#transformers.HyperCLOVAXConfig) configuration class: [HyperCLOVAXModel](/docs/transformers/main/ru/model_doc/hyperclovax#transformers.HyperCLOVAXModel) (HyperCLOVAXConfig model) - [HyperCLOVAXVisionV2Config](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2Config) configuration class: [HyperCLOVAXVisionV2Model](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2Model) (HyperCLOVAXVisionV2Config model) - [IBertConfig](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertConfig) configuration class: [IBertModel](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertModel) (IBertConfig model) - [IJepaConfig](/docs/transformers/main/ru/model_doc/ijepa#transformers.IJepaConfig) configuration class: [IJepaModel](/docs/transformers/main/ru/model_doc/ijepa#transformers.IJepaModel) (IJepaConfig model) - [Idefics2Config](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2Config) configuration class: [Idefics2Model](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2Model) (Idefics2Config model) - [Idefics3Config](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Config) configuration class: [Idefics3Model](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Model) (Idefics3Config model) - [Idefics3VisionConfig](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3VisionConfig) configuration class: [Idefics3VisionTransformer](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3VisionTransformer) (Idefics3VisionConfig model) - [IdeficsConfig](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsConfig) configuration class: [IdeficsModel](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsModel) (IdeficsConfig model) - [ImageGPTConfig](/docs/transformers/main/ru/model_doc/imagegpt#transformers.ImageGPTConfig) configuration class: [ImageGPTModel](/docs/transformers/main/ru/model_doc/imagegpt#transformers.ImageGPTModel) (ImageGPTConfig model) - [InformerConfig](/docs/transformers/main/ru/model_doc/informer#transformers.InformerConfig) configuration class: [InformerModel](/docs/transformers/main/ru/model_doc/informer#transformers.InformerModel) (InformerConfig model) - [InklingConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingConfig) configuration class: [InklingModel](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingModel) (InklingConfig model) - [InklingTextConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingTextConfig) configuration class: [InklingTextModel](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingTextModel) (InklingTextConfig model) - [InstructBlipConfig](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipConfig) configuration class: [InstructBlipModel](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipModel) (InstructBlipConfig model) - [InstructBlipVideoConfig](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoConfig) configuration class: [InstructBlipVideoModel](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoModel) (InstructBlipVideoConfig model) - [InternVLConfig](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLConfig) configuration class: [InternVLModel](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLModel) (InternVLConfig model) - [InternVLVisionConfig](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLVisionConfig) configuration class: [InternVLVisionModel](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLVisionModel) (InternVLVisionConfig model) - [Jais2Config](/docs/transformers/main/ru/model_doc/jais2#transformers.Jais2Config) configuration class: [Jais2Model](/docs/transformers/main/ru/model_doc/jais2#transformers.Jais2Model) (Jais2Config model) - [JambaConfig](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaConfig) configuration class: [JambaModel](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaModel) (JambaConfig model) - [JanusConfig](/docs/transformers/main/ru/model_doc/janus#transformers.JanusConfig) configuration class: [JanusModel](/docs/transformers/main/ru/model_doc/janus#transformers.JanusModel) (JanusConfig model) - [JetMoeConfig](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeConfig) configuration class: [JetMoeModel](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeModel) (JetMoeConfig model) - [JinaEmbeddingsV3Config](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3Config) configuration class: [JinaEmbeddingsV3Model](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3Model) (JinaEmbeddingsV3Config model) - [KimiLinearConfig](/docs/transformers/main/ru/model_doc/kimi_linear#transformers.KimiLinearConfig) configuration class: [KimiLinearModel](/docs/transformers/main/ru/model_doc/kimi_linear#transformers.KimiLinearModel) (KimiLinearConfig model) - [Kimi_K25Config](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25Config) configuration class: [Kimi_K25Model](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25Model) (Kimi_K25Config model) - [Kimi_K25VisionConfig](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25VisionConfig) configuration class: [Kimi_K25VisionModel](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25VisionModel) (Kimi_K25VisionConfig model) - [Kolibri1Config](/docs/transformers/main/ru/model_doc/kolibri1#transformers.Kolibri1Config) configuration class: [Kolibri1Model](/docs/transformers/main/ru/model_doc/kolibri1#transformers.Kolibri1Model) (Kolibri1Config model) - [Kosmos2Config](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2Config) configuration class: [Kosmos2Model](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2Model) (Kosmos2Config model) - [Kosmos2_5Config](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5Config) configuration class: [Kosmos2_5Model](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5Model) (Kosmos2_5Config model) - [KyutaiSpeechToTextConfig](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextConfig) configuration class: [KyutaiSpeechToTextModel](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextModel) (KyutaiSpeechToTextConfig model) - [LEDConfig](/docs/transformers/main/ru/model_doc/led#transformers.LEDConfig) configuration class: [LEDModel](/docs/transformers/main/ru/model_doc/led#transformers.LEDModel) (LEDConfig model) - [LagunaConfig](/docs/transformers/main/ru/model_doc/laguna#transformers.LagunaConfig) configuration class: [LagunaModel](/docs/transformers/main/ru/model_doc/laguna#transformers.LagunaModel) (LagunaConfig model) - [LasrCTCConfig](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrCTCConfig) configuration class: [LasrForCTC](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrForCTC) (LasrCTCConfig model) - [LasrEncoderConfig](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrEncoderConfig) configuration class: [LasrEncoder](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrEncoder) (LasrEncoderConfig model) - [LayoutLMConfig](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMConfig) configuration class: [LayoutLMModel](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMModel) (LayoutLMConfig model) - [LayoutLMv2Config](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Config) configuration class: [LayoutLMv2Model](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Model) (LayoutLMv2Config model) - [LayoutLMv3Config](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Config) configuration class: [LayoutLMv3Model](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Model) (LayoutLMv3Config model) - [LevitConfig](/docs/transformers/main/ru/model_doc/levit#transformers.LevitConfig) configuration class: [LevitModel](/docs/transformers/main/ru/model_doc/levit#transformers.LevitModel) (LevitConfig model) - [Lfm2Config](/docs/transformers/main/ru/model_doc/lfm2#transformers.Lfm2Config) configuration class: [Lfm2Model](/docs/transformers/main/ru/model_doc/lfm2#transformers.Lfm2Model) (Lfm2Config model) - [Lfm2MoeConfig](/docs/transformers/main/ru/model_doc/lfm2_moe#transformers.Lfm2MoeConfig) configuration class: [Lfm2MoeModel](/docs/transformers/main/ru/model_doc/lfm2_moe#transformers.Lfm2MoeModel) (Lfm2MoeConfig model) - [Lfm2VlConfig](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlConfig) configuration class: [Lfm2VlModel](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlModel) (Lfm2VlConfig model) - [LightGlueConfig](/docs/transformers/main/ru/model_doc/lightglue#transformers.LightGlueConfig) configuration class: [LightGlueForKeypointMatching](/docs/transformers/main/ru/model_doc/lightglue#transformers.LightGlueForKeypointMatching) (LightGlueConfig model) - [LightOnOcrConfig](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrConfig) configuration class: [LightOnOcrModel](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrModel) (LightOnOcrConfig model) - [LiltConfig](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltConfig) configuration class: [LiltModel](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltModel) (LiltConfig model) - [Llama4Config](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4Config) configuration class: [Llama4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForConditionalGeneration) (Llama4Config model) - [Llama4TextConfig](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4TextConfig) configuration class: [Llama4TextModel](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4TextModel) (Llama4TextConfig model) - [LlamaConfig](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaConfig) configuration class: [LlamaModel](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaModel) (LlamaConfig model) - [LlavaConfig](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaConfig) configuration class: [LlavaModel](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaModel) (LlavaConfig model) - [LlavaNextConfig](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextConfig) configuration class: [LlavaNextModel](/docs/transformers/main/ru/model_doc/llava_next#transformers.LlavaNextModel) (LlavaNextConfig model) - [LlavaNextVideoConfig](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoConfig) configuration class: [LlavaNextVideoModel](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoModel) (LlavaNextVideoConfig model) - [LlavaOnevisionConfig](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionConfig) configuration class: [LlavaOnevisionModel](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionModel) (LlavaOnevisionConfig model) - [LongT5Config](/docs/transformers/main/ru/model_doc/longt5#transformers.LongT5Config) configuration class: [LongT5Model](/docs/transformers/main/ru/model_doc/longt5#transformers.LongT5Model) (LongT5Config model) - [LongcatFlashConfig](/docs/transformers/main/ru/model_doc/longcat_flash#transformers.LongcatFlashConfig) configuration class: [LongcatFlashModel](/docs/transformers/main/ru/model_doc/longcat_flash#transformers.LongcatFlashModel) (LongcatFlashConfig model) - [LongformerConfig](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerConfig) configuration class: [LongformerModel](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerModel) (LongformerConfig model) - [LukeConfig](/docs/transformers/main/ru/model_doc/luke#transformers.LukeConfig) configuration class: [LukeModel](/docs/transformers/main/ru/model_doc/luke#transformers.LukeModel) (LukeConfig model) - [LwDetrConfig](/docs/transformers/main/ru/model_doc/lw_detr#transformers.LwDetrConfig) configuration class: [LwDetrModel](/docs/transformers/main/ru/model_doc/lw_detr#transformers.LwDetrModel) (LwDetrConfig model) - [LxmertConfig](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertConfig) configuration class: [LxmertModel](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertModel) (LxmertConfig model) - [M2M100Config](/docs/transformers/main/ru/model_doc/m2m_100#transformers.M2M100Config) configuration class: [M2M100Model](/docs/transformers/main/ru/model_doc/m2m_100#transformers.M2M100Model) (M2M100Config model) - [MBartConfig](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartConfig) configuration class: [MBartModel](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartModel) (MBartConfig model) - [MLCDVisionConfig](/docs/transformers/main/ru/model_doc/mlcd#transformers.MLCDVisionConfig) configuration class: [MLCDVisionModel](/docs/transformers/main/ru/model_doc/mlcd#transformers.MLCDVisionModel) (MLCDVisionConfig model) - [MMGroundingDinoConfig](/docs/transformers/main/ru/model_doc/mm-grounding-dino#transformers.MMGroundingDinoConfig) configuration class: [MMGroundingDinoModel](/docs/transformers/main/ru/model_doc/mm-grounding-dino#transformers.MMGroundingDinoModel) (MMGroundingDinoConfig model) - [MPNetConfig](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetConfig) configuration class: [MPNetModel](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetModel) (MPNetConfig model) - [MT5Config](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5Config) configuration class: [MT5Model](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5Model) (MT5Config model) - [Mamba2Config](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2Config) configuration class: [Mamba2Model](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2Model) (Mamba2Config model) - [MambaConfig](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaConfig) configuration class: [MambaModel](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaModel) (MambaConfig model) - [MarianConfig](/docs/transformers/main/ru/model_doc/marian#transformers.MarianConfig) configuration class: [MarianModel](/docs/transformers/main/ru/model_doc/marian#transformers.MarianModel) (MarianConfig model) - [MarkupLMConfig](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMConfig) configuration class: [MarkupLMModel](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMModel) (MarkupLMConfig model) - [Mask2FormerConfig](/docs/transformers/main/ru/model_doc/mask2former#transformers.Mask2FormerConfig) configuration class: [Mask2FormerModel](/docs/transformers/main/ru/model_doc/mask2former#transformers.Mask2FormerModel) (Mask2FormerConfig model) - [MaskFormerConfig](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerConfig) configuration class: [MaskFormerModel](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerModel) (MaskFormerConfig model) - `MaskFormerSwinConfig` configuration class: `MaskFormerSwinModel` (MaskFormerSwinConfig model) - [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig) configuration class: [MegatronBertModel](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertModel) (MegatronBertConfig model) - [MellumConfig](/docs/transformers/main/ru/model_doc/mellum#transformers.MellumConfig) configuration class: [MellumModel](/docs/transformers/main/ru/model_doc/mellum#transformers.MellumModel) (MellumConfig model) - [MetaClip2Config](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2Config) configuration class: [MetaClip2Model](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2Model) (MetaClip2Config model) - [MgpstrConfig](/docs/transformers/main/ru/model_doc/mgp-str#transformers.MgpstrConfig) configuration class: [MgpstrForSceneTextRecognition](/docs/transformers/main/ru/model_doc/mgp-str#transformers.MgpstrForSceneTextRecognition) (MgpstrConfig model) - [MiMoV2FlashConfig](/docs/transformers/main/ru/model_doc/mimo_v2_flash#transformers.MiMoV2FlashConfig) configuration class: [MiMoV2FlashModel](/docs/transformers/main/ru/model_doc/mimo_v2_flash#transformers.MiMoV2FlashModel) (MiMoV2FlashConfig model) - [MimiConfig](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiConfig) configuration class: [MimiModel](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiModel) (MimiConfig model) - [MimiDecoderConfig](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiDecoderConfig) configuration class: [MimiDecoderModel](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiDecoderModel) (MimiDecoderConfig model) - [MimiEncoderConfig](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiEncoderConfig) configuration class: [MimiEncoderModel](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiEncoderModel) (MimiEncoderConfig model) - [MiniCPM3Config](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3Config) configuration class: [MiniCPM3Model](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3Model) (MiniCPM3Config model) - [MiniCPMOcrConfig](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrConfig) configuration class: [MiniCPMOcrModel](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrModel) (MiniCPMOcrConfig model) - [MiniCPMOcrVisionConfig](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrVisionConfig) configuration class: [MiniCPMOcrVisionModel](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrVisionModel) (MiniCPMOcrVisionConfig model) - [MiniCPMV4_6Config](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6Config) configuration class: [MiniCPMV4_6Model](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6Model) (MiniCPMV4_6Config model) - [MiniCPMV4_7Config](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7Config) configuration class: [MiniCPMV4_7Model](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7Model) (MiniCPMV4_7Config model) - [MiniCPMV4_7VisionConfig](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7VisionConfig) configuration class: [MiniCPMV4_7VisionModel](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7VisionModel) (MiniCPMV4_7VisionConfig model) - [MiniMaxConfig](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxConfig) configuration class: [MiniMaxModel](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxModel) (MiniMaxConfig model) - [MiniMaxM2Config](/docs/transformers/main/ru/model_doc/minimax_m2#transformers.MiniMaxM2Config) configuration class: [MiniMaxM2Model](/docs/transformers/main/ru/model_doc/minimax_m2#transformers.MiniMaxM2Model) (MiniMaxM2Config model) - [MiniMaxM3VLConfig](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLConfig) configuration class: [MiniMaxM3VLModel](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLModel) (MiniMaxM3VLConfig model) - [MiniMaxM3VLTextConfig](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLTextConfig) configuration class: [MiniMaxM3VLTextModel](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLTextModel) (MiniMaxM3VLTextConfig model) - [Ministral3Config](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3Config) configuration class: [Ministral3Model](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3Model) (Ministral3Config model) - [MinistralConfig](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralConfig) configuration class: [MinistralModel](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralModel) (MinistralConfig model) - [Mistral3Config](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3Config) configuration class: [Mistral3Model](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3Model) (Mistral3Config model) - [Mistral4Config](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Config) configuration class: [Mistral4Model](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Model) (Mistral4Config model) - [MistralConfig](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralConfig) configuration class: [MistralModel](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralModel) (MistralConfig model) - [MistralLarge4Config](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4Config) configuration class: [MistralLarge4Model](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4Model) (MistralLarge4Config model) - [MistralLarge4TextConfig](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4TextConfig) configuration class: [MistralLarge4TextModel](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4TextModel) (MistralLarge4TextConfig model) - [MixtralConfig](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralConfig) configuration class: [MixtralModel](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralModel) (MixtralConfig model) - [MllamaConfig](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaConfig) configuration class: [MllamaModel](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaModel) (MllamaConfig model) - [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig) configuration class: [MobileBertModel](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertModel) (MobileBertConfig model) - [MobileNetV1Config](/docs/transformers/main/ru/model_doc/mobilenet_v1#transformers.MobileNetV1Config) configuration class: [MobileNetV1Model](/docs/transformers/main/ru/model_doc/mobilenet_v1#transformers.MobileNetV1Model) (MobileNetV1Config model) - [MobileNetV2Config](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2Config) configuration class: [MobileNetV2Model](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2Model) (MobileNetV2Config model) - [MobileViTConfig](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTConfig) configuration class: [MobileViTModel](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTModel) (MobileViTConfig model) - [MobileViTV2Config](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2Config) configuration class: [MobileViTV2Model](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2Model) (MobileViTV2Config model) - [ModernBertConfig](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertConfig) configuration class: [ModernBertModel](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertModel) (ModernBertConfig model) - [ModernBertDecoderConfig](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderConfig) configuration class: [ModernBertDecoderModel](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderModel) (ModernBertDecoderConfig model) - [ModernVBertConfig](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertConfig) configuration class: [ModernVBertModel](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertModel) (ModernVBertConfig model) - [Molmo2Config](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2Config) configuration class: [Molmo2Model](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2Model) (Molmo2Config model) - [Molmo2TextConfig](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2TextConfig) configuration class: [Molmo2TextModel](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2TextModel) (Molmo2TextConfig model) - [MoonshineConfig](/docs/transformers/main/ru/model_doc/moonshine#transformers.MoonshineConfig) configuration class: [MoonshineModel](/docs/transformers/main/ru/model_doc/moonshine#transformers.MoonshineModel) (MoonshineConfig model) - [MoonshineStreamingConfig](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingConfig) configuration class: [MoonshineStreamingModel](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingModel) (MoonshineStreamingConfig model) - [MoshiConfig](/docs/transformers/main/ru/model_doc/moshi#transformers.MoshiConfig) configuration class: [MoshiModel](/docs/transformers/main/ru/model_doc/moshi#transformers.MoshiModel) (MoshiConfig model) - [MossTranscribeDiarizeAudioConfig](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeAudioConfig) configuration class: [MossTranscribeDiarizeAudioModel](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeAudioModel) (MossTranscribeDiarizeAudioConfig model) - [MossTranscribeDiarizeConfig](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeConfig) configuration class: [MossTranscribeDiarizeModel](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeModel) (MossTranscribeDiarizeConfig model) - [MptConfig](/docs/transformers/main/ru/model_doc/mpt#transformers.MptConfig) configuration class: [MptModel](/docs/transformers/main/ru/model_doc/mpt#transformers.MptModel) (MptConfig model) - [MraConfig](/docs/transformers/main/ru/model_doc/mra#transformers.MraConfig) configuration class: [MraModel](/docs/transformers/main/ru/model_doc/mra#transformers.MraModel) (MraConfig model) - [MuseGlimmerAssistantConfig](/docs/transformers/main/ru/model_doc/muse_glimmer_assistant#transformers.MuseGlimmerAssistantConfig) configuration class: [MuseGlimmerAssistantModel](/docs/transformers/main/ru/model_doc/muse_glimmer_assistant#transformers.MuseGlimmerAssistantModel) (MuseGlimmerAssistantConfig model) - [MuseGlimmerConfig](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerConfig) configuration class: [MuseGlimmerModel](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerModel) (MuseGlimmerConfig model) - [MuseGlimmerTextConfig](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerTextConfig) configuration class: [MuseGlimmerTextModel](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerTextModel) (MuseGlimmerTextConfig model) - [MuseGlimmerVisionConfig](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerVisionConfig) configuration class: [MuseGlimmerVisionModel](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerVisionModel) (MuseGlimmerVisionConfig model) - [MuseSparkAudioConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkAudioConfig) configuration class: [MuseSparkAudioModel](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkAudioModel) (MuseSparkAudioConfig model) - [MuseSparkConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkConfig) configuration class: [MuseSparkModel](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkModel) (MuseSparkConfig model) - [MuseSparkTextConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkTextConfig) configuration class: [MuseSparkTextModel](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkTextModel) (MuseSparkTextConfig model) - [MuseSparkVisionConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkVisionConfig) configuration class: [MuseSparkVisionModel](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkVisionModel) (MuseSparkVisionConfig model) - [MusicFlamingoConfig](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoConfig) configuration class: [MusicFlamingoModel](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoModel) (MusicFlamingoConfig model) - [MusicgenConfig](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenConfig) configuration class: [MusicgenModel](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenModel) (MusicgenConfig model) - [MusicgenMelodyConfig](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyConfig) configuration class: [MusicgenMelodyModel](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyModel) (MusicgenMelodyConfig model) - [MvpConfig](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpConfig) configuration class: [MvpModel](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpModel) (MvpConfig model) - [NanoChatConfig](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatConfig) configuration class: [NanoChatModel](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatModel) (NanoChatConfig model) - [Nemotron3DiarizationAudioConfig](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationAudioConfig) configuration class: [Nemotron3DiarizationAudioModel](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationAudioModel) (Nemotron3DiarizationAudioConfig model) - [Nemotron3DiarizationConfig](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationConfig) configuration class: [Nemotron3DiarizationModel](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationModel) (Nemotron3DiarizationConfig model) - [Nemotron3_5AsrConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_asr#transformers.Nemotron3_5AsrConfig) configuration class: [Nemotron3_5AsrForRNNT](/docs/transformers/main/ru/model_doc/nemotron3_5_asr#transformers.Nemotron3_5AsrForRNNT) (Nemotron3_5AsrConfig model) - [Nemotron3_5TranscribeAsrAudioConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeAsrAudioConfig) configuration class: [Nemotron3_5TranscribeAsrAudioModel](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeAsrAudioModel) (Nemotron3_5TranscribeAsrAudioConfig model) - [Nemotron3_5TranscribeAudioConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeAudioConfig) configuration class: [Nemotron3_5TranscribeAudioModel](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeAudioModel) (Nemotron3_5TranscribeAudioConfig model) - [Nemotron3_5TranscribeConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeConfig) configuration class: [Nemotron3_5TranscribeModel](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeModel) (Nemotron3_5TranscribeConfig model) - [Nemotron3_5TranscribeWordTimestampConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeWordTimestampConfig) configuration class: [Nemotron3_5TranscribeWordTimestampModel](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeWordTimestampModel) (Nemotron3_5TranscribeWordTimestampConfig model) - [NemotronAsrStreamingConfig](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingConfig) configuration class: [NemotronAsrStreamingForRNNT](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingForRNNT) (NemotronAsrStreamingConfig model) - [NemotronAsrStreamingEncoderConfig](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingEncoderConfig) configuration class: [NemotronAsrStreamingEncoder](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingEncoder) (NemotronAsrStreamingEncoderConfig model) - [NemotronConfig](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronConfig) configuration class: [NemotronModel](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronModel) (NemotronConfig model) - [NemotronHConfig](/docs/transformers/main/ru/model_doc/nemotron_h#transformers.NemotronHConfig) configuration class: [NemotronHModel](/docs/transformers/main/ru/model_doc/nemotron_h#transformers.NemotronHModel) (NemotronHConfig model) - [NeoMMEConfig](/docs/transformers/main/ru/model_doc/neomme#transformers.NeoMMEConfig) configuration class: [NeoMMEModel](/docs/transformers/main/ru/model_doc/neomme#transformers.NeoMMEModel) (NeoMMEConfig model) - [NeuCodecConfig](/docs/transformers/main/ru/model_doc/neucodec#transformers.NeuCodecConfig) configuration class: [NeuCodecModel](/docs/transformers/main/ru/model_doc/neucodec#transformers.NeuCodecModel) (NeuCodecConfig model) - [NllbMoeConfig](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeConfig) configuration class: [NllbMoeModel](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeModel) (NllbMoeConfig model) - [NomicBertConfig](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertConfig) configuration class: [NomicBertModel](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertModel) (NomicBertConfig model) - [NystromformerConfig](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerConfig) configuration class: [NystromformerModel](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerModel) (NystromformerConfig model) - [OPTConfig](/docs/transformers/main/ru/model_doc/opt#transformers.OPTConfig) configuration class: [OPTModel](/docs/transformers/main/ru/model_doc/opt#transformers.OPTModel) (OPTConfig model) - [Olmo2Config](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2Config) configuration class: [Olmo2Model](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2Model) (Olmo2Config model) - [Olmo3Config](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3Config) configuration class: [Olmo3Model](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3Model) (Olmo3Config model) - [OlmoConfig](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoConfig) configuration class: [OlmoModel](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoModel) (OlmoConfig model) - [OlmoHybridConfig](/docs/transformers/main/ru/model_doc/olmo_hybrid#transformers.OlmoHybridConfig) configuration class: [OlmoHybridModel](/docs/transformers/main/ru/model_doc/olmo_hybrid#transformers.OlmoHybridModel) (OlmoHybridConfig model) - [OlmoeConfig](/docs/transformers/main/ru/model_doc/olmoe#transformers.OlmoeConfig) configuration class: [OlmoeModel](/docs/transformers/main/ru/model_doc/olmoe#transformers.OlmoeModel) (OlmoeConfig model) - [OmDetTurboConfig](/docs/transformers/main/ru/model_doc/omdet-turbo#transformers.OmDetTurboConfig) configuration class: [OmDetTurboForObjectDetection](/docs/transformers/main/ru/model_doc/omdet-turbo#transformers.OmDetTurboForObjectDetection) (OmDetTurboConfig model) - [OneFormerConfig](/docs/transformers/main/ru/model_doc/oneformer#transformers.OneFormerConfig) configuration class: [OneFormerModel](/docs/transformers/main/ru/model_doc/oneformer#transformers.OneFormerModel) (OneFormerConfig model) - [OpenAIGPTConfig](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTConfig) configuration class: [OpenAIGPTModel](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTModel) (OpenAIGPTConfig model) - [OpenAIPrivacyFilterConfig](/docs/transformers/main/ru/model_doc/openai_privacy_filter#transformers.OpenAIPrivacyFilterConfig) configuration class: [OpenAIPrivacyFilterModel](/docs/transformers/main/ru/model_doc/openai_privacy_filter#transformers.OpenAIPrivacyFilterModel) (OpenAIPrivacyFilterConfig model) - [Ovis2Config](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2Config) configuration class: [Ovis2Model](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2Model) (Ovis2Config model) - [OwlViTConfig](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTConfig) configuration class: [OwlViTModel](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTModel) (OwlViTConfig model) - [Owlv2Config](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2Config) configuration class: [Owlv2Model](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2Model) (Owlv2Config model) - [PI0Config](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0Config) configuration class: [PI0Model](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0Model) (PI0Config model) - [PLBartConfig](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartConfig) configuration class: [PLBartModel](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartModel) (PLBartConfig model) - [PPDocLayoutV3Config](/docs/transformers/main/ru/model_doc/pp_doclayout_v3#transformers.PPDocLayoutV3Config) configuration class: [PPDocLayoutV3Model](/docs/transformers/main/ru/model_doc/pp_doclayout_v3#transformers.PPDocLayoutV3Model) (PPDocLayoutV3Config model) - [PPDocLayoutV4Config](/docs/transformers/main/ru/model_doc/pp_doclayout_v4#transformers.PPDocLayoutV4Config) configuration class: [PPDocLayoutV4Model](/docs/transformers/main/ru/model_doc/pp_doclayout_v4#transformers.PPDocLayoutV4Model) (PPDocLayoutV4Config model) - [PPOCRV5MobileRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_rec#transformers.PPOCRV5MobileRecConfig) configuration class: [PPOCRV5MobileRecModel](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_rec#transformers.PPOCRV5MobileRecModel) (PPOCRV5MobileRecConfig model) - [PPOCRV5ServerRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_rec#transformers.PPOCRV5ServerRecConfig) configuration class: [PPOCRV5ServerRecModel](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_rec#transformers.PPOCRV5ServerRecModel) (PPOCRV5ServerRecConfig model) - [PPOCRV6MediumDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_medium_det#transformers.PPOCRV6MediumDetConfig) configuration class: [PPOCRV6MediumDetModel](/docs/transformers/main/ru/model_doc/pp_ocrv6_medium_det#transformers.PPOCRV6MediumDetModel) (PPOCRV6MediumDetConfig model) - [PPOCRV6SmallDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_det#transformers.PPOCRV6SmallDetConfig) configuration class: [PPOCRV6SmallDetModel](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_det#transformers.PPOCRV6SmallDetModel) (PPOCRV6SmallDetConfig model) - [PPOCRV6SmallRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_rec#transformers.PPOCRV6SmallRecConfig) configuration class: [PPOCRV6SmallRecModel](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_rec#transformers.PPOCRV6SmallRecModel) (PPOCRV6SmallRecConfig model) - [PPOCRV6TinyRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_tiny_rec#transformers.PPOCRV6TinyRecConfig) configuration class: [PPOCRV6TinyRecModel](/docs/transformers/main/ru/model_doc/pp_ocrv6_tiny_rec#transformers.PPOCRV6TinyRecModel) (PPOCRV6TinyRecConfig model) - [PaddleOCRVLConfig](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLConfig) configuration class: [PaddleOCRVLModel](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLModel) (PaddleOCRVLConfig model) - [PaliGemmaConfig](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaConfig) configuration class: [PaliGemmaModel](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaModel) (PaliGemmaConfig model) - [ParakeetCTCConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetCTCConfig) configuration class: [ParakeetForCTC](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForCTC) (ParakeetCTCConfig model) - [ParakeetEncoderConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetEncoderConfig) configuration class: [ParakeetEncoder](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetEncoder) (ParakeetEncoderConfig model) - [ParakeetRNNTConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetRNNTConfig) configuration class: [ParakeetForRNNT](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForRNNT) (ParakeetRNNTConfig model) - [ParakeetTDTConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTDTConfig) configuration class: [ParakeetForTDT](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForTDT) (ParakeetTDTConfig model) - [PatchTSMixerConfig](/docs/transformers/main/ru/model_doc/patchtsmixer#transformers.PatchTSMixerConfig) configuration class: [PatchTSMixerModel](/docs/transformers/main/ru/model_doc/patchtsmixer#transformers.PatchTSMixerModel) (PatchTSMixerConfig model) - [PatchTSTConfig](/docs/transformers/main/ru/model_doc/patchtst#transformers.PatchTSTConfig) configuration class: [PatchTSTModel](/docs/transformers/main/ru/model_doc/patchtst#transformers.PatchTSTModel) (PatchTSTConfig model) - [PeAudioConfig](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioConfig) configuration class: [PeAudioModel](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioModel) (PeAudioConfig model) - [PeAudioEncoderConfig](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioEncoderConfig) configuration class: [PeAudioEncoder](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioEncoder) (PeAudioEncoderConfig model) - [PeAudioVideoConfig](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoConfig) configuration class: [PeAudioVideoModel](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoModel) (PeAudioVideoConfig model) - [PeAudioVideoEncoderConfig](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoEncoderConfig) configuration class: [PeAudioVideoEncoder](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoEncoder) (PeAudioVideoEncoderConfig model) - [PeVideoConfig](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoConfig) configuration class: [PeVideoModel](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoModel) (PeVideoConfig model) - [PeVideoEncoderConfig](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoEncoderConfig) configuration class: [PeVideoEncoder](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoEncoder) (PeVideoEncoderConfig model) - [PegasusConfig](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusConfig) configuration class: [PegasusModel](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusModel) (PegasusConfig model) - [PegasusXConfig](/docs/transformers/main/ru/model_doc/pegasus_x#transformers.PegasusXConfig) configuration class: [PegasusXModel](/docs/transformers/main/ru/model_doc/pegasus_x#transformers.PegasusXModel) (PegasusXConfig model) - [PerceiverConfig](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverConfig) configuration class: [PerceiverModel](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverModel) (PerceiverConfig model) - [PerceptionLMConfig](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMConfig) configuration class: [PerceptionLMModel](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMModel) (PerceptionLMConfig model) - [PersimmonConfig](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonConfig) configuration class: [PersimmonModel](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonModel) (PersimmonConfig model) - [Phi3Config](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3Config) configuration class: [Phi3Model](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3Model) (Phi3Config model) - [Phi4MultimodalConfig](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalConfig) configuration class: [Phi4MultimodalModel](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalModel) (Phi4MultimodalConfig model) - [PhiConfig](/docs/transformers/main/ru/model_doc/phi#transformers.PhiConfig) configuration class: [PhiModel](/docs/transformers/main/ru/model_doc/phi#transformers.PhiModel) (PhiConfig model) - [PhimoeConfig](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeConfig) configuration class: [PhimoeModel](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeModel) (PhimoeConfig model) - [PixioConfig](/docs/transformers/main/ru/model_doc/pixio#transformers.PixioConfig) configuration class: [PixioModel](/docs/transformers/main/ru/model_doc/pixio#transformers.PixioModel) (PixioConfig model) - [PixtralVisionConfig](/docs/transformers/main/ru/model_doc/pixtral#transformers.PixtralVisionConfig) configuration class: [PixtralVisionModel](/docs/transformers/main/ru/model_doc/pixtral#transformers.PixtralVisionModel) (PixtralVisionConfig model) - [PocketTTSAudioTokenizerConfig](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerConfig) configuration class: [PocketTTSAudioTokenizerModel](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerModel) (PocketTTSAudioTokenizerConfig model) - [PocketTTSAudioTokenizerDecoderConfig](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerDecoderConfig) configuration class: [PocketTTSAudioTokenizerDecoderModel](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerDecoderModel) (PocketTTSAudioTokenizerDecoderConfig model) - [PocketTTSAudioTokenizerEncoderConfig](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerEncoderConfig) configuration class: [PocketTTSAudioTokenizerEncoderModel](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerEncoderModel) (PocketTTSAudioTokenizerEncoderConfig model) - [PocketTTSConfig](/docs/transformers/main/ru/model_doc/pocket_tts#transformers.PocketTTSConfig) configuration class: [PocketTTSModel](/docs/transformers/main/ru/model_doc/pocket_tts#transformers.PocketTTSModel) (PocketTTSConfig model) - [PoolFormerConfig](/docs/transformers/main/ru/model_doc/poolformer#transformers.PoolFormerConfig) configuration class: [PoolFormerModel](/docs/transformers/main/ru/model_doc/poolformer#transformers.PoolFormerModel) (PoolFormerConfig model) - [ProphetNetConfig](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetConfig) configuration class: [ProphetNetModel](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetModel) (ProphetNetConfig model) - [PvtConfig](/docs/transformers/main/ru/model_doc/pvt#transformers.PvtConfig) configuration class: [PvtModel](/docs/transformers/main/ru/model_doc/pvt#transformers.PvtModel) (PvtConfig model) - [PvtV2Config](/docs/transformers/main/ru/model_doc/pvt_v2#transformers.PvtV2Config) configuration class: [PvtV2Model](/docs/transformers/main/ru/model_doc/pvt_v2#transformers.PvtV2Model) (PvtV2Config model) - [QianfanOCRConfig](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRConfig) configuration class: [QianfanOCRModel](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRModel) (QianfanOCRConfig model) - [QianfanOCRVisionConfig](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRVisionConfig) configuration class: [QianfanOCRVisionModel](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRVisionModel) (QianfanOCRVisionConfig model) - [Qwen2AudioConfig](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioConfig) configuration class: [Qwen2AudioModel](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioModel) (Qwen2AudioConfig model) - [Qwen2AudioEncoderConfig](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioEncoderConfig) configuration class: [Qwen2AudioEncoder](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioEncoder) (Qwen2AudioEncoderConfig model) - [Qwen2Config](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Config) configuration class: [Qwen2Model](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Model) (Qwen2Config model) - [Qwen2MoeConfig](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeConfig) configuration class: [Qwen2MoeModel](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeModel) (Qwen2MoeConfig model) - [Qwen2VLConfig](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLConfig) configuration class: [Qwen2VLModel](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLModel) (Qwen2VLConfig model) - [Qwen2VLTextConfig](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLTextConfig) configuration class: [Qwen2VLTextModel](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLTextModel) (Qwen2VLTextConfig model) - [Qwen2_5OmniThinkerConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerConfig) configuration class: [Qwen2_5OmniThinkerModel](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerModel) (Qwen2_5OmniThinkerConfig model) - [Qwen2_5_VLConfig](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLConfig) configuration class: [Qwen2_5_VLModel](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLModel) (Qwen2_5_VLConfig model) - [Qwen2_5_VLTextConfig](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLTextConfig) configuration class: [Qwen2_5_VLTextModel](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLTextModel) (Qwen2_5_VLTextConfig model) - [Qwen2_5_VLVisionConfig](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLVisionConfig) configuration class: [Qwen2_5_VisionTransformerPretrainedModel](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VisionTransformerPretrainedModel) (Qwen2_5_VLVisionConfig model) - [Qwen3ASRConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRConfig) configuration class: [Qwen3ASRModel](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRModel) (Qwen3ASRConfig model) - [Qwen3ASREncoderConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASREncoderConfig) configuration class: [Qwen3ASREncoder](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASREncoder) (Qwen3ASREncoderConfig model) - [Qwen3Config](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3Config) configuration class: [Qwen3Model](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3Model) (Qwen3Config model) - [Qwen3MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeConfig) configuration class: [Qwen3MoeModel](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeModel) (Qwen3MoeConfig model) - [Qwen3NextConfig](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextConfig) configuration class: [Qwen3NextModel](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextModel) (Qwen3NextConfig model) - [Qwen3OmniMoeThinkerConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerConfig) configuration class: [Qwen3OmniMoeThinkerModel](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerModel) (Qwen3OmniMoeThinkerConfig model) - [Qwen3VLConfig](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLConfig) configuration class: [Qwen3VLModel](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLModel) (Qwen3VLConfig model) - [Qwen3VLMoeConfig](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeConfig) configuration class: [Qwen3VLMoeModel](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeModel) (Qwen3VLMoeConfig model) - [Qwen3VLMoeTextConfig](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeTextConfig) configuration class: [Qwen3VLMoeTextModel](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeTextModel) (Qwen3VLMoeTextConfig model) - [Qwen3VLMoeVisionConfig](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeVisionConfig) configuration class: [Qwen3VLMoeVisionModel](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeVisionModel) (Qwen3VLMoeVisionConfig model) - [Qwen3VLTextConfig](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLTextConfig) configuration class: [Qwen3VLTextModel](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLTextModel) (Qwen3VLTextConfig model) - [Qwen3VLVisionConfig](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLVisionConfig) configuration class: [Qwen3VLVisionModel](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLVisionModel) (Qwen3VLVisionConfig model) - [Qwen3_5Config](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Config) configuration class: [Qwen3_5Model](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Model) (Qwen3_5Config model) - [Qwen3_5MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeConfig) configuration class: [Qwen3_5MoeModel](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeModel) (Qwen3_5MoeConfig model) - [Qwen3_5MoeTextConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeTextConfig) configuration class: [Qwen3_5MoeTextModel](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeTextModel) (Qwen3_5MoeTextConfig model) - [Qwen3_5MoeVisionConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeVisionConfig) configuration class: [Qwen3_5MoeVisionModel](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeVisionModel) (Qwen3_5MoeVisionConfig model) - [Qwen3_5TextConfig](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5TextConfig) configuration class: [Qwen3_5TextModel](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5TextModel) (Qwen3_5TextConfig model) - [Qwen3_5VisionConfig](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5VisionConfig) configuration class: [Qwen3_5VisionModel](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5VisionModel) (Qwen3_5VisionConfig model) - [Qwen4ExpConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpConfig) configuration class: [Qwen4ExpModel](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpModel) (Qwen4ExpConfig model) - [Qwen4ExpTextConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpTextConfig) configuration class: [Qwen4ExpTextModel](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpTextModel) (Qwen4ExpTextConfig model) - [Qwen4ExpVisionConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpVisionConfig) configuration class: [Qwen4ExpVisionModel](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpVisionModel) (Qwen4ExpVisionConfig model) - [RTDetrConfig](/docs/transformers/main/ru/model_doc/rt_detr#transformers.RTDetrConfig) configuration class: [RTDetrModel](/docs/transformers/main/ru/model_doc/rt_detr#transformers.RTDetrModel) (RTDetrConfig model) - [RTDetrV2Config](/docs/transformers/main/ru/model_doc/rt_detr_v2#transformers.RTDetrV2Config) configuration class: [RTDetrV2Model](/docs/transformers/main/ru/model_doc/rt_detr_v2#transformers.RTDetrV2Model) (RTDetrV2Config model) - [RadioConfig](/docs/transformers/main/ru/model_doc/radio#transformers.RadioConfig) configuration class: [RadioModel](/docs/transformers/main/ru/model_doc/radio#transformers.RadioModel) (RadioConfig model) - [RecurrentGemmaConfig](/docs/transformers/main/ru/model_doc/recurrent_gemma#transformers.RecurrentGemmaConfig) configuration class: [RecurrentGemmaModel](/docs/transformers/main/ru/model_doc/recurrent_gemma#transformers.RecurrentGemmaModel) (RecurrentGemmaConfig model) - [ReformerConfig](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerConfig) configuration class: [ReformerModel](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerModel) (ReformerConfig model) - [RegNetConfig](/docs/transformers/main/ru/model_doc/regnet#transformers.RegNetConfig) configuration class: [RegNetModel](/docs/transformers/main/ru/model_doc/regnet#transformers.RegNetModel) (RegNetConfig model) - [RemBertConfig](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertConfig) configuration class: [RemBertModel](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertModel) (RemBertConfig model) - [ResNetConfig](/docs/transformers/main/ru/model_doc/resnet#transformers.ResNetConfig) configuration class: [ResNetModel](/docs/transformers/main/ru/model_doc/resnet#transformers.ResNetModel) (ResNetConfig model) - [RfDetrConfig](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrConfig) configuration class: [RfDetrModel](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrModel) (RfDetrConfig model) - [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig) configuration class: [RoCBertModel](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertModel) (RoCBertConfig model) - [RoFormerConfig](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerConfig) configuration class: [RoFormerModel](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerModel) (RoFormerConfig model) - [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig) configuration class: [RobertaModel](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaModel) (RobertaConfig model) - [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig) configuration class: [RobertaPreLayerNormModel](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormModel) (RobertaPreLayerNormConfig model) - [RwkvConfig](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvConfig) configuration class: [RwkvModel](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvModel) (RwkvConfig model) - [SEWConfig](/docs/transformers/main/ru/model_doc/sew#transformers.SEWConfig) configuration class: [SEWModel](/docs/transformers/main/ru/model_doc/sew#transformers.SEWModel) (SEWConfig model) - [SEWDConfig](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDConfig) configuration class: [SEWDModel](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDModel) (SEWDConfig model) - [Sam2Config](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2Config) configuration class: [Sam2Model](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2Model) (Sam2Config model) - [Sam2HieraDetConfig](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2HieraDetConfig) configuration class: [Sam2HieraDetModel](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2HieraDetModel) (Sam2HieraDetConfig model) - [Sam2VideoConfig](/docs/transformers/main/ru/model_doc/sam2_video#transformers.Sam2VideoConfig) configuration class: [Sam2VideoModel](/docs/transformers/main/ru/model_doc/sam2_video#transformers.Sam2VideoModel) (Sam2VideoConfig model) - [Sam2VisionConfig](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2VisionConfig) configuration class: [Sam2VisionModel](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2VisionModel) (Sam2VisionConfig model) - [Sam3Config](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3Config) configuration class: [Sam3Model](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3Model) (Sam3Config model) - [Sam3LiteTextConfig](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextConfig) configuration class: [Sam3LiteTextModel](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextModel) (Sam3LiteTextConfig model) - [Sam3LiteTextTextConfig](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextTextConfig) configuration class: [Sam3LiteTextTextModel](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextTextModel) (Sam3LiteTextTextConfig model) - [Sam3TrackerConfig](/docs/transformers/main/ru/model_doc/sam3_tracker#transformers.Sam3TrackerConfig) configuration class: [Sam3TrackerModel](/docs/transformers/main/ru/model_doc/sam3_tracker#transformers.Sam3TrackerModel) (Sam3TrackerConfig model) - [Sam3TrackerVideoConfig](/docs/transformers/main/ru/model_doc/sam3_tracker_video#transformers.Sam3TrackerVideoConfig) configuration class: [Sam3TrackerVideoModel](/docs/transformers/main/ru/model_doc/sam3_tracker_video#transformers.Sam3TrackerVideoModel) (Sam3TrackerVideoConfig model) - [Sam3ViTConfig](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3ViTConfig) configuration class: [Sam3ViTModel](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3ViTModel) (Sam3ViTConfig model) - [Sam3VideoConfig](/docs/transformers/main/ru/model_doc/sam3_video#transformers.Sam3VideoConfig) configuration class: [Sam3VideoModel](/docs/transformers/main/ru/model_doc/sam3_video#transformers.Sam3VideoModel) (Sam3VideoConfig model) - [Sam3VisionConfig](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3VisionConfig) configuration class: [Sam3VisionModel](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3VisionModel) (Sam3VisionConfig model) - [SamConfig](/docs/transformers/main/ru/model_doc/sam#transformers.SamConfig) configuration class: [SamModel](/docs/transformers/main/ru/model_doc/sam#transformers.SamModel) (SamConfig model) - [SamHQConfig](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQConfig) configuration class: [SamHQModel](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQModel) (SamHQConfig model) - [SamHQVisionConfig](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQVisionConfig) configuration class: [SamHQVisionModel](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQVisionModel) (SamHQVisionConfig model) - [SamVisionConfig](/docs/transformers/main/ru/model_doc/sam#transformers.SamVisionConfig) configuration class: [SamVisionModel](/docs/transformers/main/ru/model_doc/sam#transformers.SamVisionModel) (SamVisionConfig model) - [Sapiens2Config](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Config) configuration class: [Sapiens2Model](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Model) (Sapiens2Config model) - [SeamlessM4TConfig](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TConfig) configuration class: [SeamlessM4TModel](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TModel) (SeamlessM4TConfig model) - [SeamlessM4Tv2Config](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2Config) configuration class: [SeamlessM4Tv2Model](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2Model) (SeamlessM4Tv2Config model) - [SeedOssConfig](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssConfig) configuration class: [SeedOssModel](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssModel) (SeedOssConfig model) - [SegGptConfig](/docs/transformers/main/ru/model_doc/seggpt#transformers.SegGptConfig) configuration class: [SegGptModel](/docs/transformers/main/ru/model_doc/seggpt#transformers.SegGptModel) (SegGptConfig model) - [SegformerConfig](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerConfig) configuration class: [SegformerModel](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerModel) (SegformerConfig model) - [Siglip2Config](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Config) configuration class: [Siglip2Model](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Model) (Siglip2Config model) - [Siglip2VisionConfig](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2VisionConfig) configuration class: [Siglip2VisionModel](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2VisionModel) (Siglip2VisionConfig model) - [SiglipConfig](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipConfig) configuration class: [SiglipModel](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipModel) (SiglipConfig model) - [SiglipVisionConfig](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipVisionConfig) configuration class: [SiglipVisionModel](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipVisionModel) (SiglipVisionConfig model) - [SmolLM3Config](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3Config) configuration class: [SmolLM3Model](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3Model) (SmolLM3Config model) - [SmolVLMConfig](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMConfig) configuration class: [SmolVLMModel](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMModel) (SmolVLMConfig model) - [SmolVLMVisionConfig](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMVisionConfig) configuration class: [SmolVLMVisionTransformer](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMVisionTransformer) (SmolVLMVisionConfig model) - [SolarOpenConfig](/docs/transformers/main/ru/model_doc/solar_open#transformers.SolarOpenConfig) configuration class: [SolarOpenModel](/docs/transformers/main/ru/model_doc/solar_open#transformers.SolarOpenModel) (SolarOpenConfig model) - [Speech2TextConfig](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextConfig) configuration class: [Speech2TextModel](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextModel) (Speech2TextConfig model) - [SpeechT5Config](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5Config) configuration class: [SpeechT5Model](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5Model) (SpeechT5Config model) - [SplinterConfig](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterConfig) configuration class: [SplinterModel](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterModel) (SplinterConfig model) - [SqueezeBertConfig](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertConfig) configuration class: [SqueezeBertModel](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertModel) (SqueezeBertConfig model) - [StableLmConfig](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmConfig) configuration class: [StableLmModel](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmModel) (StableLmConfig model) - [Starcoder2Config](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2Config) configuration class: [Starcoder2Model](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2Model) (Starcoder2Config model) - [Step3p7Config](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7Config) configuration class: [Step3p7Model](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7Model) (Step3p7Config model) - [SwiftFormerConfig](/docs/transformers/main/ru/model_doc/swiftformer#transformers.SwiftFormerConfig) configuration class: [SwiftFormerModel](/docs/transformers/main/ru/model_doc/swiftformer#transformers.SwiftFormerModel) (SwiftFormerConfig model) - [Swin2SRConfig](/docs/transformers/main/ru/model_doc/swin2sr#transformers.Swin2SRConfig) configuration class: [Swin2SRModel](/docs/transformers/main/ru/model_doc/swin2sr#transformers.Swin2SRModel) (Swin2SRConfig model) - [SwinConfig](/docs/transformers/main/ru/model_doc/swin#transformers.SwinConfig) configuration class: [SwinModel](/docs/transformers/main/ru/model_doc/swin#transformers.SwinModel) (SwinConfig model) - [Swinv2Config](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2Config) configuration class: [Swinv2Model](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2Model) (Swinv2Config model) - [SwitchTransformersConfig](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersConfig) configuration class: [SwitchTransformersModel](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersModel) (SwitchTransformersConfig model) - [T5Config](/docs/transformers/main/ru/model_doc/t5#transformers.T5Config) configuration class: [T5Model](/docs/transformers/main/ru/model_doc/t5#transformers.T5Model) (T5Config model) - [T5Gemma2Config](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Config) configuration class: [T5Gemma2Model](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Model) (T5Gemma2Config model) - [T5Gemma2EncoderConfig](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2EncoderConfig) configuration class: `T5Gemma2Encoder` (T5Gemma2EncoderConfig model) - [T5GemmaConfig](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaConfig) configuration class: [T5GemmaModel](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaModel) (T5GemmaConfig model) - [TableTransformerConfig](/docs/transformers/main/ru/model_doc/table-transformer#transformers.TableTransformerConfig) configuration class: [TableTransformerModel](/docs/transformers/main/ru/model_doc/table-transformer#transformers.TableTransformerModel) (TableTransformerConfig model) - [TapasConfig](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasConfig) configuration class: [TapasModel](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasModel) (TapasConfig model) - [TextNetConfig](/docs/transformers/main/ru/model_doc/textnet#transformers.TextNetConfig) configuration class: [TextNetModel](/docs/transformers/main/ru/model_doc/textnet#transformers.TextNetModel) (TextNetConfig model) - [TimeSeriesTransformerConfig](/docs/transformers/main/ru/model_doc/time_series_transformer#transformers.TimeSeriesTransformerConfig) configuration class: [TimeSeriesTransformerModel](/docs/transformers/main/ru/model_doc/time_series_transformer#transformers.TimeSeriesTransformerModel) (TimeSeriesTransformerConfig model) - [TimesFm2_5Config](/docs/transformers/main/ru/model_doc/timesfm2_5#transformers.TimesFm2_5Config) configuration class: [TimesFm2_5Model](/docs/transformers/main/ru/model_doc/timesfm2_5#transformers.TimesFm2_5Model) (TimesFm2_5Config model) - [TimesFmConfig](/docs/transformers/main/ru/model_doc/timesfm#transformers.TimesFmConfig) configuration class: [TimesFmModel](/docs/transformers/main/ru/model_doc/timesfm#transformers.TimesFmModel) (TimesFmConfig model) - [TimesformerConfig](/docs/transformers/main/ru/model_doc/timesformer#transformers.TimesformerConfig) configuration class: [TimesformerModel](/docs/transformers/main/ru/model_doc/timesformer#transformers.TimesformerModel) (TimesformerConfig model) - [TimmBackboneConfig](/docs/transformers/main/ru/main_classes/backbones#transformers.TimmBackboneConfig) configuration class: [TimmBackbone](/docs/transformers/main/ru/main_classes/backbones#transformers.TimmBackbone) (TimmBackboneConfig model) - [TimmWrapperConfig](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperConfig) configuration class: [TimmWrapperModel](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperModel) (TimmWrapperConfig model) - [Tipsv2Config](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Config) configuration class: [Tipsv2Model](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Model) (Tipsv2Config model) - [Tipsv2TextConfig](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2TextConfig) configuration class: [Tipsv2TextModel](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2TextModel) (Tipsv2TextConfig model) - [Tipsv2VisionConfig](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2VisionConfig) configuration class: [Tipsv2VisionModel](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2VisionModel) (Tipsv2VisionConfig model) - [TvpConfig](/docs/transformers/main/ru/model_doc/tvp#transformers.TvpConfig) configuration class: [TvpModel](/docs/transformers/main/ru/model_doc/tvp#transformers.TvpModel) (TvpConfig model) - [UMT5Config](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5Config) configuration class: [UMT5Model](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5Model) (UMT5Config model) - [UVDocConfig](/docs/transformers/main/ru/model_doc/uvdoc#transformers.UVDocConfig) configuration class: [UVDocModel](/docs/transformers/main/ru/model_doc/uvdoc#transformers.UVDocModel) (UVDocConfig model) - [UdopConfig](/docs/transformers/main/ru/model_doc/udop#transformers.UdopConfig) configuration class: [UdopModel](/docs/transformers/main/ru/model_doc/udop#transformers.UdopModel) (UdopConfig model) - [UltraVBertConfig](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertConfig) configuration class: [UltraVBertModel](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertModel) (UltraVBertConfig model) - [UltrabertConfig](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertConfig) configuration class: [UltrabertModel](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertModel) (UltrabertConfig model) - [UniSpeechConfig](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechConfig) configuration class: [UniSpeechModel](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechModel) (UniSpeechConfig model) - [UniSpeechSatConfig](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatConfig) configuration class: [UniSpeechSatModel](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatModel) (UniSpeechSatConfig model) - [UnivNetConfig](/docs/transformers/main/ru/model_doc/univnet#transformers.UnivNetConfig) configuration class: [UnivNetModel](/docs/transformers/main/ru/model_doc/univnet#transformers.UnivNetModel) (UnivNetConfig model) - [UnlimitedOcrConfig](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrConfig) configuration class: [UnlimitedOcrModel](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrModel) (UnlimitedOcrConfig model) - [VJEPA2Config](/docs/transformers/main/ru/model_doc/vjepa2#transformers.VJEPA2Config) configuration class: [VJEPA2Model](/docs/transformers/main/ru/model_doc/vjepa2#transformers.VJEPA2Model) (VJEPA2Config model) - [VaultGemmaConfig](/docs/transformers/main/ru/model_doc/vaultgemma#transformers.VaultGemmaConfig) configuration class: [VaultGemmaModel](/docs/transformers/main/ru/model_doc/vaultgemma#transformers.VaultGemmaModel) (VaultGemmaConfig model) - [ViTConfig](/docs/transformers/main/ru/model_doc/vit#transformers.ViTConfig) configuration class: [ViTModel](/docs/transformers/main/ru/model_doc/vit#transformers.ViTModel) (ViTConfig model) - [ViTMAEConfig](/docs/transformers/main/ru/model_doc/vit_mae#transformers.ViTMAEConfig) configuration class: [ViTMAEModel](/docs/transformers/main/ru/model_doc/vit_mae#transformers.ViTMAEModel) (ViTMAEConfig model) - [ViTMSNConfig](/docs/transformers/main/ru/model_doc/vit_msn#transformers.ViTMSNConfig) configuration class: [ViTMSNModel](/docs/transformers/main/ru/model_doc/vit_msn#transformers.ViTMSNModel) (ViTMSNConfig model) - [VibeVoiceAcousticTokenizerConfig](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerConfig) configuration class: [VibeVoiceAcousticTokenizerModel](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerModel) (VibeVoiceAcousticTokenizerConfig model) - [VibeVoiceAcousticTokenizerDecoderConfig](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerDecoderConfig) configuration class: [VibeVoiceAcousticTokenizerDecoderModel](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerDecoderModel) (VibeVoiceAcousticTokenizerDecoderConfig model) - [VibeVoiceAcousticTokenizerEncoderConfig](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerEncoderConfig) configuration class: [VibeVoiceAcousticTokenizerEncoderModel](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerEncoderModel) (VibeVoiceAcousticTokenizerEncoderConfig model) - [VibeVoiceAsrConfig](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrConfig) configuration class: [VibeVoiceAsrModel](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrModel) (VibeVoiceAsrConfig model) - [VibeVoiceConfig](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceConfig) configuration class: [VibeVoiceForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceForConditionalGeneration) (VibeVoiceConfig model) - [VideoLlama3Config](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3Config) configuration class: [VideoLlama3Model](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3Model) (VideoLlama3Config model) - [VideoLlama3VisionConfig](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3VisionConfig) configuration class: [VideoLlama3VisionModel](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3VisionModel) (VideoLlama3VisionConfig model) - [VideoLlavaConfig](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaConfig) configuration class: [VideoLlavaModel](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaModel) (VideoLlavaConfig model) - [VideoMAEConfig](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEConfig) configuration class: [VideoMAEModel](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEModel) (VideoMAEConfig model) - [VideoPrismConfig](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismConfig) configuration class: [VideoPrismClipModel](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismClipModel) (VideoPrismConfig model) - [VideoPrismVisionConfig](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismVisionConfig) configuration class: [VideoPrismVisionModel](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismVisionModel) (VideoPrismVisionConfig model) - [ViltConfig](/docs/transformers/main/ru/model_doc/vilt#transformers.ViltConfig) configuration class: [ViltModel](/docs/transformers/main/ru/model_doc/vilt#transformers.ViltModel) (ViltConfig model) - [VipLlavaConfig](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaConfig) configuration class: [VipLlavaModel](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaModel) (VipLlavaConfig model) - [VisionTextDualEncoderConfig](/docs/transformers/main/ru/model_doc/vision-text-dual-encoder#transformers.VisionTextDualEncoderConfig) configuration class: [VisionTextDualEncoderModel](/docs/transformers/main/ru/model_doc/vision-text-dual-encoder#transformers.VisionTextDualEncoderModel) (VisionTextDualEncoderConfig model) - [VisualBertConfig](/docs/transformers/main/ru/model_doc/visual_bert#transformers.VisualBertConfig) configuration class: [VisualBertModel](/docs/transformers/main/ru/model_doc/visual_bert#transformers.VisualBertModel) (VisualBertConfig model) - [VitDetConfig](/docs/transformers/main/ru/model_doc/vitdet#transformers.VitDetConfig) configuration class: [VitDetModel](/docs/transformers/main/ru/model_doc/vitdet#transformers.VitDetModel) (VitDetConfig model) - [VitsConfig](/docs/transformers/main/ru/model_doc/vits#transformers.VitsConfig) configuration class: [VitsModel](/docs/transformers/main/ru/model_doc/vits#transformers.VitsModel) (VitsConfig model) - [VivitConfig](/docs/transformers/main/ru/model_doc/vivit#transformers.VivitConfig) configuration class: [VivitModel](/docs/transformers/main/ru/model_doc/vivit#transformers.VivitModel) (VivitConfig model) - [VoxtralConfig](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralConfig) configuration class: [VoxtralModel](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralModel) (VoxtralConfig model) - [VoxtralEncoderConfig](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralEncoderConfig) configuration class: [VoxtralEncoder](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralEncoder) (VoxtralEncoderConfig model) - [VoxtralRealtimeConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeConfig) configuration class: [VoxtralRealtimeModel](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeModel) (VoxtralRealtimeConfig model) - [VoxtralRealtimeEncoderConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeEncoderConfig) configuration class: [VoxtralRealtimeEncoder](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeEncoder) (VoxtralRealtimeEncoderConfig model) - [VoxtralRealtimeTextConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeTextConfig) configuration class: `VoxtralRealtimeTextModel` (VoxtralRealtimeTextConfig model) - [Wav2Vec2BertConfig](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertConfig) configuration class: [Wav2Vec2BertModel](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertModel) (Wav2Vec2BertConfig model) - [Wav2Vec2Config](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Config) configuration class: [Wav2Vec2Model](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Model) (Wav2Vec2Config model) - [Wav2Vec2ConformerConfig](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerConfig) configuration class: [Wav2Vec2ConformerModel](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerModel) (Wav2Vec2ConformerConfig model) - [WavLMConfig](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMConfig) configuration class: [WavLMModel](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMModel) (WavLMConfig model) - [WhisperConfig](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperConfig) configuration class: [WhisperModel](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperModel) (WhisperConfig model) - [XCLIPConfig](/docs/transformers/main/ru/model_doc/xclip#transformers.XCLIPConfig) configuration class: [XCLIPModel](/docs/transformers/main/ru/model_doc/xclip#transformers.XCLIPModel) (XCLIPConfig model) - [XGLMConfig](/docs/transformers/main/ru/model_doc/xglm#transformers.XGLMConfig) configuration class: [XGLMModel](/docs/transformers/main/ru/model_doc/xglm#transformers.XGLMModel) (XGLMConfig model) - [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig) configuration class: [XLMModel](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMModel) (XLMConfig model) - [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig) configuration class: [XLMRobertaModel](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaModel) (XLMRobertaConfig model) - [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig) configuration class: [XLMRobertaXLModel](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLModel) (XLMRobertaXLConfig model) - [XLNetConfig](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetConfig) configuration class: [XLNetModel](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetModel) (XLNetConfig model) - [Xcodec2Config](/docs/transformers/main/ru/model_doc/xcodec2#transformers.Xcodec2Config) configuration class: [Xcodec2Model](/docs/transformers/main/ru/model_doc/xcodec2#transformers.Xcodec2Model) (Xcodec2Config model) - [XcodecConfig](/docs/transformers/main/ru/model_doc/xcodec#transformers.XcodecConfig) configuration class: [XcodecModel](/docs/transformers/main/ru/model_doc/xcodec#transformers.XcodecModel) (XcodecConfig model) - [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig) configuration class: [XmodModel](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodModel) (XmodConfig model) - [YolosConfig](/docs/transformers/main/ru/model_doc/yolos#transformers.YolosConfig) configuration class: [YolosModel](/docs/transformers/main/ru/model_doc/yolos#transformers.YolosModel) (YolosConfig model) - [YosoConfig](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoConfig) configuration class: [YosoModel](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoModel) (YosoConfig model) - [YoutuConfig](/docs/transformers/main/ru/model_doc/youtu#transformers.YoutuConfig) configuration class: [YoutuModel](/docs/transformers/main/ru/model_doc/youtu#transformers.YoutuModel) (YoutuConfig model) - [Zamba2Config](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2Config) configuration class: [Zamba2Model](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2Model) (Zamba2Config model) - [ZambaConfig](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaConfig) configuration class: [ZambaModel](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaModel) (ZambaConfig model) - [ZayaConfig](/docs/transformers/main/ru/model_doc/zaya#transformers.ZayaConfig) configuration class: [ZayaModel](/docs/transformers/main/ru/model_doc/zaya#transformers.ZayaModel) (ZayaConfig model) - [xLSTMConfig](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMConfig) configuration class: [xLSTMModel](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMModel) (xLSTMConfig model)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из базовых классов моделей библиотеки на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModel

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModel.from_config(config)
```

#### from_pretrained[[transformers.AutoModel.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из базовых классов моделей библиотеки из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **afmoe** -- [AfmoeModel](/docs/transformers/main/ru/model_doc/afmoe#transformers.AfmoeModel) (модель AfmoeConfig)
- **aimv2** -- [Aimv2Model](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2Model) (модель Aimv2Config)
- **aimv2_vision_model** -- [Aimv2VisionModel](/docs/transformers/main/ru/model_doc/aimv2#transformers.Aimv2VisionModel) (модель Aimv2VisionConfig)
- **albert** -- [AlbertModel](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertModel) (модель AlbertConfig)
- **align** -- [AlignModel](/docs/transformers/main/ru/model_doc/align#transformers.AlignModel) (модель AlignConfig)
- **altclip** -- [AltCLIPModel](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPModel) (модель AltCLIPConfig)
- **apertus** -- [ApertusModel](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusModel) (модель ApertusConfig)
- **arcee** -- [ArceeModel](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeModel) (модель ArceeConfig)
- **aria** -- [AriaModel](/docs/transformers/main/ru/model_doc/aria#transformers.AriaModel) (модель AriaConfig)
- **aria_text** -- [AriaTextModel](/docs/transformers/main/ru/model_doc/aria#transformers.AriaTextModel) (модель AriaTextConfig)
- **audio-spectrogram-transformer** -- [ASTModel](/docs/transformers/main/ru/model_doc/audio-spectrogram-transformer#transformers.ASTModel) (модель ASTConfig)
- **audioflamingo3** -- [AudioFlamingo3Model](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Model) (модель AudioFlamingo3Config)
- **audioflamingo3_encoder** -- [AudioFlamingo3Encoder](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Encoder) (модель AudioFlamingo3EncoderConfig)
- **autoformer** -- [AutoformerModel](/docs/transformers/main/ru/model_doc/autoformer#transformers.AutoformerModel) (модель AutoformerConfig)
- **axk1** -- [AXK1Model](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1Model) (модель AXK1Config)
- **axk2** -- [AXK2Model](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2Model) (модель AXK2Config)
- **aya_vision** -- [AyaVisionModel](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionModel) (модель AyaVisionConfig)
- **bailing_hybrid** -- [BailingHybridModel](/docs/transformers/main/ru/model_doc/bailing_hybrid#transformers.BailingHybridModel) (модель BailingHybridConfig)
- **bamba** -- [BambaModel](/docs/transformers/main/ru/model_doc/bamba#transformers.BambaModel) (модель BambaConfig)
- **bark** -- [BarkModel](/docs/transformers/main/ru/model_doc/bark#transformers.BarkModel) (модель BarkConfig)
- **bart** -- [BartModel](/docs/transformers/main/ru/model_doc/bart#transformers.BartModel) (модель BartConfig)
- **beam** -- [BeamModel](/docs/transformers/main/ru/model_doc/beam#transformers.BeamModel) (модель BeamConfig)
- **beit** -- [BeitModel](/docs/transformers/main/ru/model_doc/beit#transformers.BeitModel) (модель BeitConfig)
- **bert** -- [BertModel](/docs/transformers/main/ru/model_doc/bert#transformers.BertModel) (модель BertConfig)
- **bert-generation** -- [BertGenerationEncoder](/docs/transformers/main/ru/model_doc/bert-generation#transformers.BertGenerationEncoder) (модель BertGenerationConfig)
- **big_bird** -- [BigBirdModel](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdModel) (модель BigBirdConfig)
- **bigbird_pegasus** -- [BigBirdPegasusModel](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusModel) (модель BigBirdPegasusConfig)
- **biogpt** -- [BioGptModel](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptModel) (модель BioGptConfig)
- **bit** -- [BitModel](/docs/transformers/main/ru/model_doc/bit#transformers.BitModel) (модель BitConfig)
- **bitnet** -- [BitNetModel](/docs/transformers/main/ru/model_doc/bitnet#transformers.BitNetModel) (модель BitNetConfig)
- **blenderbot** -- [BlenderbotModel](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotModel) (модель BlenderbotConfig)
- **blenderbot-small** -- [BlenderbotSmallModel](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallModel) (модель BlenderbotSmallConfig)
- **blip** -- [BlipModel](/docs/transformers/main/ru/model_doc/blip#transformers.BlipModel) (модель BlipConfig)
- **blip-2** -- [Blip2Model](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Model) (модель Blip2Config)
- **blip_2_qformer** -- [Blip2QFormerModel](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2QFormerModel) (модель Blip2QFormerConfig)
- **bloom** -- [BloomModel](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomModel) (модель BloomConfig)
- **blt** -- [BltModel](/docs/transformers/main/ru/model_doc/blt#transformers.BltModel) (модель BltConfig)
- **bridgetower** -- [BridgeTowerModel](/docs/transformers/main/ru/model_doc/bridgetower#transformers.BridgeTowerModel) (модель BridgeTowerConfig)
- **bros** -- [BrosModel](/docs/transformers/main/ru/model_doc/bros#transformers.BrosModel) (модель BrosConfig)
- **camembert** -- [CamembertModel](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertModel) (модель CamembertConfig)
- **canary** -- [CanaryModel](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryModel) (модель CanaryConfig)
- **canine** -- [CanineModel](/docs/transformers/main/ru/model_doc/canine#transformers.CanineModel) (модель CanineConfig)
- **chameleon** -- [ChameleonModel](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonModel) (модель ChameleonConfig)
- **chinese_clip** -- [ChineseCLIPModel](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPModel) (модель ChineseCLIPConfig)
- **chinese_clip_vision_model** -- [ChineseCLIPVisionModel](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPVisionModel) (модель ChineseCLIPVisionConfig)
- **clap** -- [ClapModel](/docs/transformers/main/ru/model_doc/clap#transformers.ClapModel) (модель ClapConfig)
- **clip** -- [CLIPModel](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPModel) (модель CLIPConfig)
- **clip_text_model** -- [CLIPTextModel](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPTextModel) (модель CLIPTextConfig)
- **clip_vision_model** -- [CLIPVisionModel](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPVisionModel) (модель CLIPVisionConfig)
- **clipseg** -- [CLIPSegModel](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegModel) (модель CLIPSegConfig)
- **clvp** -- [ClvpModelForConditionalGeneration](/docs/transformers/main/ru/model_doc/clvp#transformers.ClvpModelForConditionalGeneration) (модель ClvpConfig)
- **codegen** -- [CodeGenModel](/docs/transformers/main/ru/model_doc/codegen#transformers.CodeGenModel) (модель CodeGenConfig)
- **cohere** -- [CohereModel](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereModel) (модель CohereConfig)
- **cohere2** -- [Cohere2Model](/docs/transformers/main/ru/model_doc/cohere2#transformers.Cohere2Model) (модель Cohere2Config)
- **cohere2_moe** -- [Cohere2MoeModel](/docs/transformers/main/ru/model_doc/cohere2_moe#transformers.Cohere2MoeModel) (модель Cohere2MoeConfig)
- **cohere2_vision** -- [Cohere2VisionModel](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionModel) (модель Cohere2VisionConfig)
- **cohere_asr** -- [CohereAsrModel](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrModel) (модель CohereAsrConfig)
- **cohere_compass** -- [CohereCompassModel](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassModel) (модель CohereCompassConfig)
- **cohere_compass_text** -- [CohereCompassTextModel](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassTextModel) (модель CohereCompassTextConfig)
- **cohere_compass_vision** -- [CohereCompassVisionModel](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassVisionModel) (модель CohereCompassVisionConfig)
- **conditional_detr** -- [ConditionalDetrModel](/docs/transformers/main/ru/model_doc/conditional_detr#transformers.ConditionalDetrModel) (модель ConditionalDetrConfig)
- **convbert** -- [ConvBertModel](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertModel) (модель ConvBertConfig)
- **convnext** -- [ConvNextModel](/docs/transformers/main/ru/model_doc/convnext#transformers.ConvNextModel) (модель ConvNextConfig)
- **convnextv2** -- [ConvNextV2Model](/docs/transformers/main/ru/model_doc/convnextv2#transformers.ConvNextV2Model) (модель ConvNextV2Config)
- **cosmos3_edge** -- [Cosmos3EdgeModel](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeModel) (модель Cosmos3EdgeConfig)
- **cosmos3_edge_text** -- [Cosmos3EdgeTextModel](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeTextModel) (модель Cosmos3EdgeTextConfig)
- **cosmos3_edge_vision** -- [Cosmos3EdgeVisionModel](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeVisionModel) (модель Cosmos3EdgeVisionConfig)
- **cosmos3_omni** -- [Cosmos3OmniModel](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniModel) (модель Cosmos3OmniConfig)
- **cpmant** -- [CpmAntModel](/docs/transformers/main/ru/model_doc/cpmant#transformers.CpmAntModel) (модель CpmAntConfig)
- **csm** -- [CsmForConditionalGeneration](/docs/transformers/main/ru/model_doc/csm#transformers.CsmForConditionalGeneration) (модель CsmConfig)
- **ctrl** -- [CTRLModel](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLModel) (модель CTRLConfig)
- **cvt** -- [CvtModel](/docs/transformers/main/ru/model_doc/cvt#transformers.CvtModel) (модель CvtConfig)
- **cwm** -- [CwmModel](/docs/transformers/main/ru/model_doc/cwm#transformers.CwmModel) (модель CwmConfig)
- **d_fine** -- [DFineModel](/docs/transformers/main/ru/model_doc/d_fine#transformers.DFineModel) (модель DFineConfig)
- **dab-detr** -- [DabDetrModel](/docs/transformers/main/ru/model_doc/dab-detr#transformers.DabDetrModel) (модель DabDetrConfig)
- **dac** -- [DacModel](/docs/transformers/main/ru/model_doc/dac#transformers.DacModel) (модель DacConfig)
- **data2vec-audio** -- [Data2VecAudioModel](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioModel) (модель Data2VecAudioConfig)
- **data2vec-text** -- [Data2VecTextModel](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextModel) (модель Data2VecTextConfig)
- **data2vec-vision** -- [Data2VecVisionModel](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionModel) (модель Data2VecVisionConfig)
- **dbrx** -- [DbrxModel](/docs/transformers/main/ru/model_doc/dbrx#transformers.DbrxModel) (модель DbrxConfig)
- **deberta** -- [DebertaModel](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaModel) (модель DebertaConfig)
- **deberta-v2** -- [DebertaV2Model](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Model) (модель DebertaV2Config)
- **decision_transformer** -- [DecisionTransformerModel](/docs/transformers/main/ru/model_doc/decision_transformer#transformers.DecisionTransformerModel) (модель DecisionTransformerConfig)
- **deepseek_ocr2** -- [DeepseekOcr2Model](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2Model) (модель DeepseekOcr2Config)
- **deepseek_v2** -- [DeepseekV2Model](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2Model) (модель DeepseekV2Config)
- **deepseek_v3** -- [DeepseekV3Model](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3Model) (модель DeepseekV3Config)
- **deepseek_v32** -- [DeepseekV32Model](/docs/transformers/main/ru/model_doc/deepseek_v32#transformers.DeepseekV32Model) (модель DeepseekV32Config)
- **deepseek_v4** -- [DeepseekV4Model](/docs/transformers/main/ru/model_doc/deepseek_v4#transformers.DeepseekV4Model) (модель DeepseekV4Config)
- **deepseek_vl** -- [DeepseekVLModel](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLModel) (модель DeepseekVLConfig)
- **deepseek_vl_hybrid** -- [DeepseekVLHybridModel](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridModel) (модель DeepseekVLHybridConfig)
- **deformable_detr** -- [DeformableDetrModel](/docs/transformers/main/ru/model_doc/deformable_detr#transformers.DeformableDetrModel) (модель DeformableDetrConfig)
- **deimv2** -- [Deimv2Model](/docs/transformers/main/ru/model_doc/deimv2#transformers.Deimv2Model) (модель Deimv2Config)
- **deit** -- [DeiTModel](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTModel) (модель DeiTConfig)
- **depth_pro** -- [DepthProModel](/docs/transformers/main/ru/model_doc/depth_pro#transformers.DepthProModel) (модель DepthProConfig)
- **detr** -- [DetrModel](/docs/transformers/main/ru/model_doc/detr#transformers.DetrModel) (модель DetrConfig)
- **dia** -- [DiaModel](/docs/transformers/main/ru/model_doc/dia#transformers.DiaModel) (модель DiaConfig)
- **diffllama** -- [DiffLlamaModel](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaModel) (модель DiffLlamaConfig)
- **diffusion_gemma** -- [DiffusionGemmaModel](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaModel) (модель DiffusionGemmaConfig)
- **dinat** -- [DinatModel](/docs/transformers/main/ru/model_doc/dinat#transformers.DinatModel) (модель DinatConfig)
- **dinov2** -- [Dinov2Model](/docs/transformers/main/ru/model_doc/dinov2#transformers.Dinov2Model) (модель Dinov2Config)
- **dinov2_with_registers** -- [Dinov2WithRegistersModel](/docs/transformers/main/ru/model_doc/dinov2_with_registers#transformers.Dinov2WithRegistersModel) (модель Dinov2WithRegistersConfig)
- **dinov3_convnext** -- [DINOv3ConvNextModel](/docs/transformers/main/ru/model_doc/dinov3#transformers.DINOv3ConvNextModel) (модель DINOv3ConvNextConfig)
- **dinov3_vit** -- [DINOv3ViTModel](/docs/transformers/main/ru/model_doc/dinov3#transformers.DINOv3ViTModel) (модель DINOv3ViTConfig)
- **distilbert** -- [DistilBertModel](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertModel) (модель DistilBertConfig)
- **doge** -- [DogeModel](/docs/transformers/main/ru/model_doc/doge#transformers.DogeModel) (модель DogeConfig)
- **donut-swin** -- [DonutSwinModel](/docs/transformers/main/ru/model_doc/donut#transformers.DonutSwinModel) (модель DonutSwinConfig)
- **dots1** -- [Dots1Model](/docs/transformers/main/ru/model_doc/dots1#transformers.Dots1Model) (модель Dots1Config)
- **dpr** -- [DPRQuestionEncoder](/docs/transformers/main/ru/model_doc/dpr#transformers.DPRQuestionEncoder) (модель DPRConfig)
- **dpt** -- [DPTModel](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTModel) (модель DPTConfig)
- **edgetam** -- [EdgeTamModel](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamModel) (модель EdgeTamConfig)
- **edgetam_video** -- [EdgeTamVideoModel](/docs/transformers/main/ru/model_doc/edgetam_video#transformers.EdgeTamVideoModel) (модель EdgeTamVideoConfig)
- **edgetam_vision_model** -- [EdgeTamVisionModel](/docs/transformers/main/ru/model_doc/edgetam#transformers.EdgeTamVisionModel) (модель EdgeTamVisionConfig)
- **efficientloftr** -- [EfficientLoFTRModel](/docs/transformers/main/ru/model_doc/efficientloftr#transformers.EfficientLoFTRModel) (модель EfficientLoFTRConfig)
- **efficientnet** -- [EfficientNetModel](/docs/transformers/main/ru/model_doc/efficientnet#transformers.EfficientNetModel) (модель EfficientNetConfig)
- **electra** -- [ElectraModel](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraModel) (модель ElectraConfig)
- **embedding_gemma2** -- [EmbeddingGemma2Model](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2Model) (модель EmbeddingGemma2Config)
- **embedding_gemma2_text** -- [EmbeddingGemma2TextModel](/docs/transformers/main/ru/model_doc/embedding_gemma2#transformers.EmbeddingGemma2TextModel) (модель EmbeddingGemma2TextConfig)
- **emu3** -- [Emu3Model](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3Model) (модель Emu3Config)
- **encodec** -- [EncodecModel](/docs/transformers/main/ru/model_doc/encodec#transformers.EncodecModel) (модель EncodecConfig)
- **ernie** -- [ErnieModel](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieModel) (модель ErnieConfig)
- **ernie4_5** -- [Ernie4_5Model](/docs/transformers/main/ru/model_doc/ernie4_5#transformers.Ernie4_5Model) (модель Ernie4_5Config)
- **ernie4_5_moe** -- [Ernie4_5_MoeModel](/docs/transformers/main/ru/model_doc/ernie4_5_moe#transformers.Ernie4_5_MoeModel) (модель Ernie4_5_MoeConfig)
- **ernie4_5_vl_moe** -- [Ernie4_5_VLMoeModel](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeModel) (модель Ernie4_5_VLMoeConfig)
- **esm** -- [EsmModel](/docs/transformers/main/ru/model_doc/esm#transformers.EsmModel) (модель EsmConfig)
- **esmc** -- [EsmcModel](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcModel) (модель EsmcConfig)
- **eurobert** -- [EuroBertModel](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertModel) (модель EuroBertConfig)
- **evolla** -- [EvollaModel](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaModel) (модель EvollaConfig)
- **exaone4** -- [Exaone4Model](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Model) (модель Exaone4Config)
- **exaone4_5** -- [Exaone4_5_Model](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_Model) (модель Exaone4_5_Config)
- **exaone4_5_vision** -- [Exaone4_5_VisionModel](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_VisionModel) (модель Exaone4_5_VisionConfig)
- **exaone_moe** -- [ExaoneMoeModel](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeModel) (модель ExaoneMoeConfig)
- **falcon** -- [FalconModel](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconModel) (модель FalconConfig)
- **falcon_h1** -- [FalconH1Model](/docs/transformers/main/ru/model_doc/falcon_h1#transformers.FalconH1Model) (модель FalconH1Config)
- **falcon_mamba** -- [FalconMambaModel](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaModel) (модель FalconMambaConfig)
- **fast_vlm** -- [FastVlmModel](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmModel) (модель FastVlmConfig)
- **fastspeech2_conformer** -- [FastSpeech2ConformerModel](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerModel) (модель FastSpeech2ConformerConfig)
- **fastspeech2_conformer_with_hifigan** -- [FastSpeech2ConformerWithHifiGan](/docs/transformers/main/ru/model_doc/fastspeech2_conformer#transformers.FastSpeech2ConformerWithHifiGan) (модель FastSpeech2ConformerWithHifiGanConfig)
- **flaubert** -- [FlaubertModel](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertModel) (модель FlaubertConfig)
- **flava** -- [FlavaModel](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaModel) (модель FlavaConfig)
- **flex_olmo** -- [FlexOlmoModel](/docs/transformers/main/ru/model_doc/flex_olmo#transformers.FlexOlmoModel) (модель FlexOlmoConfig)
- **flint** -- [FlintModel](/docs/transformers/main/ru/model_doc/flint#transformers.FlintModel) (модель FlintConfig)
- **florence2** -- [Florence2Model](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2Model) (модель Florence2Config)
- **fnet** -- [FNetModel](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetModel) (модель FNetConfig)
- **focalnet** -- [FocalNetModel](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetModel) (модель FocalNetConfig)
- **fsmt** -- [FSMTModel](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTModel) (модель FSMTConfig)
- **fun_asr_nano** -- [FunAsrNanoModel](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoModel) (модель FunAsrNanoConfig)
- **fun_asr_nano_encoder** -- [FunAsrNanoEncoder](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoEncoder) (модель FunAsrNanoEncoderConfig)
- **funnel** -- [FunnelModel](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelModel) или [FunnelBaseModel](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelBaseModel) (модель FunnelConfig)
- **fuyu** -- [FuyuModel](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuModel) (модель FuyuConfig)
- **gemma** -- [GemmaModel](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaModel) (модель GemmaConfig)
- **gemma2** -- [Gemma2Model](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2Model) (модель Gemma2Config)
- **gemma3** -- [Gemma3Model](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Model) (модель Gemma3Config)
- **gemma3_text** -- [Gemma3TextModel](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3TextModel) (модель Gemma3TextConfig)
- **gemma3n** -- [Gemma3nModel](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nModel) (модель Gemma3nConfig)
- **gemma3n_audio** -- `Gemma3nAudioEncoder` (модель Gemma3nAudioConfig)
- **gemma3n_text** -- [Gemma3nTextModel](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nTextModel) (модель Gemma3nTextConfig)
- **gemma3n_vision** -- [TimmWrapperModel](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperModel) (модель Gemma3nVisionConfig)
- **gemma4** -- [Gemma4Model](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Model) (модель Gemma4Config)
- **gemma4_audio** -- [Gemma4AudioModel](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4AudioModel) (модель Gemma4AudioConfig)
- **gemma4_text** -- [Gemma4TextModel](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4TextModel) (модель Gemma4TextConfig)
- **gemma4_unified** -- [Gemma4UnifiedModel](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedModel) (модель Gemma4UnifiedConfig)
- **gemma4_unified_text** -- [Gemma4UnifiedTextModel](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedTextModel) (модель Gemma4UnifiedTextConfig)
- **gemma4_vision** -- [Gemma4VisionModel](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4VisionModel) (модель Gemma4VisionConfig)
- **git** -- [GitModel](/docs/transformers/main/ru/model_doc/git#transformers.GitModel) (модель GitConfig)
- **glm** -- [GlmModel](/docs/transformers/main/ru/model_doc/glm#transformers.GlmModel) (модель GlmConfig)
- **glm4** -- [Glm4Model](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4Model) (модель Glm4Config)
- **glm46v** -- [Glm46VModel](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VModel) (модель Glm46VConfig)
- **glm4_moe** -- [Glm4MoeModel](/docs/transformers/main/ru/model_doc/glm4_moe#transformers.Glm4MoeModel) (модель Glm4MoeConfig)
- **glm4_moe_lite** -- [Glm4MoeLiteModel](/docs/transformers/main/ru/model_doc/glm4_moe_lite#transformers.Glm4MoeLiteModel) (модель Glm4MoeLiteConfig)
- **glm4v** -- [Glm4vModel](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vModel) (модель Glm4vConfig)
- **glm4v_moe** -- [Glm4vMoeModel](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeModel) (модель Glm4vMoeConfig)
- **glm4v_moe_text** -- [Glm4vMoeTextModel](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeTextModel) (модель Glm4vMoeTextConfig)
- **glm4v_moe_vision** -- [Glm4vMoeVisionModel](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeVisionModel) (модель Glm4vMoeVisionConfig)
- **glm4v_text** -- [Glm4vTextModel](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vTextModel) (модель Glm4vTextConfig)
- **glm4v_vision** -- [Glm4vVisionModel](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vVisionModel) (модель Glm4vVisionConfig)
- **glm5_next** -- [Glm5NextModel](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextModel) (модель Glm5NextConfig)
- **glm5_next_text** -- [Glm5NextTextModel](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextTextModel) (модель Glm5NextTextConfig)
- **glm5_next_vision** -- [Glm5NextVisionModel](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextVisionModel) (модель Glm5NextVisionConfig)
- **glm_image** -- [GlmImageModel](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageModel) (модель GlmImageConfig)
- **glm_image_text** -- [GlmImageTextModel](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageTextModel) (модель GlmImageTextConfig)
- **glm_image_vision** -- [GlmImageVisionModel](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageVisionModel) (модель GlmImageVisionConfig)
- **glm_image_vqmodel** -- [GlmImageVQVAE](/docs/transformers/main/ru/model_doc/glm_image#transformers.GlmImageVQVAE) (модель GlmImageVQVAEConfig)
- **glm_moe_dsa** -- [GlmMoeDsaModel](/docs/transformers/main/ru/model_doc/glm_moe_dsa#transformers.GlmMoeDsaModel) (модель GlmMoeDsaConfig)
- **glm_ocr** -- [GlmOcrModel](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrModel) (модель GlmOcrConfig)
- **glm_ocr_text** -- [GlmOcrTextModel](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrTextModel) (модель GlmOcrTextConfig)
- **glm_ocr_vision** -- [GlmOcrVisionModel](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrVisionModel) (модель GlmOcrVisionConfig)
- **glmasr** -- [GlmAsrModel](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrModel) (модель GlmAsrConfig)
- **glmasr_encoder** -- [GlmAsrEncoder](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrEncoder) (модель GlmAsrEncoderConfig)
- **glmga** -- [Glm46VModel](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VModel) (модель GlmgaConfig)
- **glpn** -- [GLPNModel](/docs/transformers/main/ru/model_doc/glpn#transformers.GLPNModel) (модель GLPNConfig)
- **got_ocr2** -- [GotOcr2Model](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2Model) (модель GotOcr2Config)
- **gpt-sw3** -- [GPT2Model](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Model) (модель GPT2Config)
- **gpt2** -- [GPT2Model](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Model) (модель GPT2Config)
- **gpt_bigcode** -- [GPTBigCodeModel](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeModel) (модель GPTBigCodeConfig)
- **gpt_neo** -- [GPTNeoModel](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoModel) (модель GPTNeoConfig)
- **gpt_neox** -- [GPTNeoXModel](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXModel) (модель GPTNeoXConfig)
- **gpt_neox_japanese** -- [GPTNeoXJapaneseModel](/docs/transformers/main/ru/model_doc/gpt_neox_japanese#transformers.GPTNeoXJapaneseModel) (модель GPTNeoXJapaneseConfig)
- **gpt_oss** -- [GptOssModel](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssModel) (модель GptOssConfig)
- **gptj** -- [GPTJModel](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJModel) (модель GPTJConfig)
- **gradium_phonon_tts** -- [GradiumPhononTTSModel](/docs/transformers/main/ru/model_doc/gradium_phonon_tts#transformers.GradiumPhononTTSModel) (модель GradiumPhononTTSConfig)
- **granite** -- [GraniteModel](/docs/transformers/main/ru/model_doc/granite#transformers.GraniteModel) (модель GraniteConfig)
- **granite4_vision** -- [Granite4VisionModel](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionModel) (модель Granite4VisionConfig)
- **granite_speech** -- [GraniteSpeechModel](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechModel) (модель GraniteSpeechConfig)
- **granite_speech5_ctc** -- [GraniteSpeech5ForCTC](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5ForCTC) (модель GraniteSpeech5CTCConfig)
- **granite_speech5_encoder** -- [GraniteSpeech5Encoder](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5Encoder) (модель GraniteSpeech5EncoderConfig)
- **granite_speech_plus** -- [GraniteSpeechPlusModel](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusModel) (модель GraniteSpeechPlusConfig)
- **granite_swa** -- [GraniteSWAModel](/docs/transformers/main/ru/model_doc/granite_swa#transformers.GraniteSWAModel) (модель GraniteSWAConfig)
- **granitemoe** -- [GraniteMoeModel](/docs/transformers/main/ru/model_doc/granitemoe#transformers.GraniteMoeModel) (модель GraniteMoeConfig)
- **granitemoe_swa** -- [GraniteMoeSWAModel](/docs/transformers/main/ru/model_doc/granitemoe_swa#transformers.GraniteMoeSWAModel) (модель GraniteMoeSWAConfig)
- **granitemoehybrid** -- [GraniteMoeHybridModel](/docs/transformers/main/ru/model_doc/granitemoehybrid#transformers.GraniteMoeHybridModel) (модель GraniteMoeHybridConfig)
- **granitemoeshared** -- [GraniteMoeSharedModel](/docs/transformers/main/ru/model_doc/granitemoeshared#transformers.GraniteMoeSharedModel) (модель GraniteMoeSharedConfig)
- **grounding-dino** -- [GroundingDinoModel](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoModel) (модель GroundingDinoConfig)
- **groupvit** -- [GroupViTModel](/docs/transformers/main/ru/model_doc/groupvit#transformers.GroupViTModel) (модель GroupViTConfig)
- **gte** -- [GteModel](/docs/transformers/main/ru/model_doc/gte#transformers.GteModel) (модель GteConfig)
- **helium** -- [HeliumModel](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumModel) (модель HeliumConfig)
- **hgnet_v2** -- [HGNetV2Backbone](/docs/transformers/main/ru/model_doc/hgnet_v2#transformers.HGNetV2Backbone) (модель HGNetV2Config)
- **hiera** -- [HieraModel](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraModel) (модель HieraConfig)
- **higgs_audio_v2** -- [HiggsAudioV2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/higgs_audio_v2#transformers.HiggsAudioV2ForConditionalGeneration) (модель HiggsAudioV2Config)
- **higgs_audio_v2_tokenizer** -- [HiggsAudioV2TokenizerModel](/docs/transformers/main/ru/model_doc/higgs_audio_v2_tokenizer#transformers.HiggsAudioV2TokenizerModel) (модель HiggsAudioV2TokenizerConfig)
- **hrm_text** -- [HrmTextModel](/docs/transformers/main/ru/model_doc/hrm_text#transformers.HrmTextModel) (модель HrmTextConfig)
- **hubert** -- [HubertModel](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertModel) (модель HubertConfig)
- **hunyuan_v1_dense** -- [HunYuanDenseV1Model](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1Model) (модель HunYuanDenseV1Config)
- **hunyuan_v1_moe** -- [HunYuanMoEV1Model](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1Model) (модель HunYuanMoEV1Config)
- **hunyuan_vl** -- [HunYuanVLModel](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLModel) (модель HunYuanVLConfig)
- **hunyuan_vl_text** -- [HunYuanVLTextModel](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLTextModel) (модель HunYuanVLTextConfig)
- **hunyuan_vl_vision** -- [HunYuanVLVisionTransformer](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLVisionTransformer) (модель HunYuanVLVisionConfig)
- **hy_v3** -- [HYV3Model](/docs/transformers/main/ru/model_doc/hy_v3#transformers.HYV3Model) (модель HYV3Config)
- **hy_v4** -- [HYV4Model](/docs/transformers/main/ru/model_doc/hy_v4#transformers.HYV4Model) (модель HYV4Config)
- **hyperclovax** -- [HyperCLOVAXModel](/docs/transformers/main/ru/model_doc/hyperclovax#transformers.HyperCLOVAXModel) (модель HyperCLOVAXConfig)
- **hyperclovax_vision_v2** -- [HyperCLOVAXVisionV2Model](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2Model) (модель HyperCLOVAXVisionV2Config)
- **ibert** -- [IBertModel](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertModel) (модель IBertConfig)
- **idefics** -- [IdeficsModel](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsModel) (модель IdeficsConfig)
- **idefics2** -- [Idefics2Model](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2Model) (модель Idefics2Config)
- **idefics3** -- [Idefics3Model](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Model) (модель Idefics3Config)
- **idefics3_vision** -- [Idefics3VisionTransformer](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3VisionTransformer) (модель Idefics3VisionConfig)
- **ijepa** -- [IJepaModel](/docs/transformers/main/ru/model_doc/ijepa#transformers.IJepaModel) (модель IJepaConfig)
- **imagegpt** -- [ImageGPTModel](/docs/transformers/main/ru/model_doc/imagegpt#transformers.ImageGPTModel) (модель ImageGPTConfig)
- **informer** -- [InformerModel](/docs/transformers/main/ru/model_doc/informer#transformers.InformerModel) (модель InformerConfig)
- **inkling_mm_model** -- [InklingModel](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingModel) (модель InklingConfig)
- **inkling_text** -- [InklingTextModel](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingTextModel) (модель InklingTextConfig)
- **instructblip** -- [InstructBlipModel](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipModel) (модель InstructBlipConfig)
- **instructblipvideo** -- [InstructBlipVideoModel](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoModel) (модель InstructBlipVideoConfig)
- **internvl** -- [InternVLModel](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLModel) (модель InternVLConfig)
- **internvl_vision** -- [InternVLVisionModel](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLVisionModel) (модель InternVLVisionConfig)
- **jais2** -- [Jais2Model](/docs/transformers/main/ru/model_doc/jais2#transformers.Jais2Model) (модель Jais2Config)
- **jamba** -- [JambaModel](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaModel) (модель JambaConfig)
- **janus** -- [JanusModel](/docs/transformers/main/ru/model_doc/janus#transformers.JanusModel) (модель JanusConfig)
- **jetmoe** -- [JetMoeModel](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeModel) (модель JetMoeConfig)
- **jina_embeddings_v3** -- [JinaEmbeddingsV3Model](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3Model) (модель JinaEmbeddingsV3Config)
- **kimi_k25** -- [Kimi_K25Model](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25Model) (модель Kimi_K25Config)
- **kimi_k25_vision** -- [Kimi_K25VisionModel](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25VisionModel) (модель Kimi_K25VisionConfig)
- **kimi_linear** -- [KimiLinearModel](/docs/transformers/main/ru/model_doc/kimi_linear#transformers.KimiLinearModel) (модель KimiLinearConfig)
- **kolibri1** -- [Kolibri1Model](/docs/transformers/main/ru/model_doc/kolibri1#transformers.Kolibri1Model) (модель Kolibri1Config)
- **kosmos-2** -- [Kosmos2Model](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2Model) (модель Kosmos2Config)
- **kosmos-2.5** -- [Kosmos2_5Model](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5Model) (модель Kosmos2_5Config)
- **kyutai_speech_to_text** -- [KyutaiSpeechToTextModel](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextModel) (модель KyutaiSpeechToTextConfig)
- **laguna** -- [LagunaModel](/docs/transformers/main/ru/model_doc/laguna#transformers.LagunaModel) (модель LagunaConfig)
- **lasr_ctc** -- [LasrForCTC](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrForCTC) (модель LasrCTCConfig)
- **lasr_encoder** -- [LasrEncoder](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrEncoder) (модель LasrEncoderConfig)
- **layoutlm** -- [LayoutLMModel](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMModel) (модель LayoutLMConfig)
- **layoutlmv2** -- [LayoutLMv2Model](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Model) (модель LayoutLMv2Config)
- **layoutlmv3** -- [LayoutLMv3Model](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Model) (модель LayoutLMv3Config)
- **led** -- [LEDModel](/docs/transformers/main/ru/model_doc/led#transformers.LEDModel) (модель LEDConfig)
- **levit** -- [LevitModel](/docs/transformers/main/ru/model_doc/levit#transformers.LevitModel) (модель LevitConfig)
- **lfm2** -- [Lfm2Model](/docs/transformers/main/ru/model_doc/lfm2#transformers.Lfm2Model) (модель Lfm2Config)
- **lfm2_moe** -- [Lfm2MoeModel](/docs/transformers/main/ru/model_doc/lfm2_moe#transformers.Lfm2MoeModel) (модель Lfm2MoeConfig)
- **lfm2_vl** -- [Lfm2VlModel](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlModel) (модель Lfm2VlConfig)
- **lightglue** -- [LightGlueForKeypointMatching](/docs/transformers/main/ru/model_doc/lightglue#transformers.LightGlueForKeypointMatching) (модель LightGlueConfig)
- **lighton_ocr** -- [LightOnOcrModel](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrModel) (модель LightOnOcrConfig)
- **lilt** -- [LiltModel](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltModel) (модель LiltConfig)
- **llama** -- [LlamaModel](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaModel) (модель LlamaConfig)
- **llama4** -- [Llama4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForConditionalGeneration) (модель Llama4Config)
- **llama4_text** -- [Llama4TextModel](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4TextModel) (модель Llama4TextConfig)
- **llava** -- [LlavaModel](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaModel) (модель LlavaConfig)
- **llava_next** -- [LlavaNextModel](/docs/transformers/main/ru/model_doc/llava_next#transformers.LlavaNextModel) (модель LlavaNextConfig)
- **llava_next_video** -- [LlavaNextVideoModel](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoModel) (модель LlavaNextVideoConfig)
- **llava_onevision** -- [LlavaOnevisionModel](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionModel) (модель LlavaOnevisionConfig)
- **longcat_flash** -- [LongcatFlashModel](/docs/transformers/main/ru/model_doc/longcat_flash#transformers.LongcatFlashModel) (модель LongcatFlashConfig)
- **longformer** -- [LongformerModel](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerModel) (модель LongformerConfig)
- **longt5** -- [LongT5Model](/docs/transformers/main/ru/model_doc/longt5#transformers.LongT5Model) (модель LongT5Config)
- **luke** -- [LukeModel](/docs/transformers/main/ru/model_doc/luke#transformers.LukeModel) (модель LukeConfig)
- **lw_detr** -- [LwDetrModel](/docs/transformers/main/ru/model_doc/lw_detr#transformers.LwDetrModel) (модель LwDetrConfig)
- **lxmert** -- [LxmertModel](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertModel) (модель LxmertConfig)
- **m2m_100** -- [M2M100Model](/docs/transformers/main/ru/model_doc/m2m_100#transformers.M2M100Model) (модель M2M100Config)
- **mamba** -- [MambaModel](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaModel) (модель MambaConfig)
- **mamba2** -- [Mamba2Model](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2Model) (модель Mamba2Config)
- **marian** -- [MarianModel](/docs/transformers/main/ru/model_doc/marian#transformers.MarianModel) (модель MarianConfig)
- **markuplm** -- [MarkupLMModel](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMModel) (модель MarkupLMConfig)
- **mask2former** -- [Mask2FormerModel](/docs/transformers/main/ru/model_doc/mask2former#transformers.Mask2FormerModel) (модель Mask2FormerConfig)
- **maskformer** -- [MaskFormerModel](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerModel) (модель MaskFormerConfig)
- **maskformer-swin** -- `MaskFormerSwinModel` (модель MaskFormerSwinConfig)
- **mbart** -- [MBartModel](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartModel) (модель MBartConfig)
- **megatron-bert** -- [MegatronBertModel](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertModel) (модель MegatronBertConfig)
- **mellum** -- [MellumModel](/docs/transformers/main/ru/model_doc/mellum#transformers.MellumModel) (модель MellumConfig)
- **metaclip_2** -- [MetaClip2Model](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2Model) (модель MetaClip2Config)
- **mgp-str** -- [MgpstrForSceneTextRecognition](/docs/transformers/main/ru/model_doc/mgp-str#transformers.MgpstrForSceneTextRecognition) (модель MgpstrConfig)
- **mimi** -- [MimiModel](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiModel) (модель MimiConfig)
- **mimi_decoder** -- [MimiDecoderModel](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiDecoderModel) (модель MimiDecoderConfig)
- **mimi_encoder** -- [MimiEncoderModel](/docs/transformers/main/ru/model_doc/mimi#transformers.MimiEncoderModel) (модель MimiEncoderConfig)
- **mimo_v2_flash** -- [MiMoV2FlashModel](/docs/transformers/main/ru/model_doc/mimo_v2_flash#transformers.MiMoV2FlashModel) (модель MiMoV2FlashConfig)
- **minicpm3** -- [MiniCPM3Model](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3Model) (модель MiniCPM3Config)
- **minicpm_ocr** -- [MiniCPMOcrModel](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrModel) (модель MiniCPMOcrConfig)
- **minicpm_ocr_vision** -- [MiniCPMOcrVisionModel](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrVisionModel) (модель MiniCPMOcrVisionConfig)
- **minicpmv4_6** -- [MiniCPMV4_6Model](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6Model) (модель MiniCPMV4_6Config)
- **minicpmv4_7** -- [MiniCPMV4_7Model](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7Model) (модель MiniCPMV4_7Config)
- **minicpmv4_7_vision** -- [MiniCPMV4_7VisionModel](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7VisionModel) (модель MiniCPMV4_7VisionConfig)
- **minimax** -- [MiniMaxModel](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxModel) (модель MiniMaxConfig)
- **minimax_m2** -- [MiniMaxM2Model](/docs/transformers/main/ru/model_doc/minimax_m2#transformers.MiniMaxM2Model) (модель MiniMaxM2Config)
- **minimax_m3_vl** -- [MiniMaxM3VLModel](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLModel) (модель MiniMaxM3VLConfig)
- **minimax_m3_vl_text** -- [MiniMaxM3VLTextModel](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLTextModel) (модель MiniMaxM3VLTextConfig)
- **ministral** -- [MinistralModel](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralModel) (модель MinistralConfig)
- **ministral3** -- [Ministral3Model](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3Model) (модель Ministral3Config)
- **mistral** -- [MistralModel](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralModel) (модель MistralConfig)
- **mistral3** -- [Mistral3Model](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3Model) (модель Mistral3Config)
- **mistral4** -- [Mistral4Model](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Model) (модель Mistral4Config)
- **mistral_large4** -- [MistralLarge4Model](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4Model) (модель MistralLarge4Config)
- **mistral_large4_text** -- [MistralLarge4TextModel](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4TextModel) (модель MistralLarge4TextConfig)
- **mixtral** -- [MixtralModel](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralModel) (модель MixtralConfig)
- **mlcd** -- [MLCDVisionModel](/docs/transformers/main/ru/model_doc/mlcd#transformers.MLCDVisionModel) (модель MLCDVisionConfig)
- **mlcd_vision_model** -- [MLCDVisionModel](/docs/transformers/main/ru/model_doc/mlcd#transformers.MLCDVisionModel) (модель MLCDVisionConfig)
- **mllama** -- [MllamaModel](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaModel) (модель MllamaConfig)
- **mm-grounding-dino** -- [MMGroundingDinoModel](/docs/transformers/main/ru/model_doc/mm-grounding-dino#transformers.MMGroundingDinoModel) (модель MMGroundingDinoConfig)
- **mobilebert** -- [MobileBertModel](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertModel) (модель MobileBertConfig)
- **mobilenet_v1** -- [MobileNetV1Model](/docs/transformers/main/ru/model_doc/mobilenet_v1#transformers.MobileNetV1Model) (модель MobileNetV1Config)
- **mobilenet_v2** -- [MobileNetV2Model](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2Model) (модель MobileNetV2Config)
- **mobilevit** -- [MobileViTModel](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTModel) (модель MobileViTConfig)
- **mobilevitv2** -- [MobileViTV2Model](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2Model) (модель MobileViTV2Config)
- **modernbert** -- [ModernBertModel](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertModel) (модель ModernBertConfig)
- **modernbert-decoder** -- [ModernBertDecoderModel](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderModel) (модель ModernBertDecoderConfig)
- **modernvbert** -- [ModernVBertModel](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertModel) (модель ModernVBertConfig)
- **molmo2** -- [Molmo2Model](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2Model) (модель Molmo2Config)
- **molmo2_text** -- [Molmo2TextModel](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2TextModel) (модель Molmo2TextConfig)
- **moonshine** -- [MoonshineModel](/docs/transformers/main/ru/model_doc/moonshine#transformers.MoonshineModel) (модель MoonshineConfig)
- **moonshine_streaming** -- [MoonshineStreamingModel](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingModel) (модель MoonshineStreamingConfig)
- **moshi** -- [MoshiModel](/docs/transformers/main/ru/model_doc/moshi#transformers.MoshiModel) (модель MoshiConfig)
- **moss_transcribe_diarize** -- [MossTranscribeDiarizeModel](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeModel) (модель MossTranscribeDiarizeConfig)
- **moss_transcribe_diarize_audio** -- [MossTranscribeDiarizeAudioModel](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeAudioModel) (модель MossTranscribeDiarizeAudioConfig)
- **mpnet** -- [MPNetModel](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetModel) (модель MPNetConfig)
- **mpt** -- [MptModel](/docs/transformers/main/ru/model_doc/mpt#transformers.MptModel) (модель MptConfig)
- **mra** -- [MraModel](/docs/transformers/main/ru/model_doc/mra#transformers.MraModel) (модель MraConfig)
- **mt5** -- [MT5Model](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5Model) (модель MT5Config)
- **muse_glimmer** -- [MuseGlimmerModel](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerModel) (модель MuseGlimmerConfig)
- **muse_glimmer_assistant** -- [MuseGlimmerAssistantModel](/docs/transformers/main/ru/model_doc/muse_glimmer_assistant#transformers.MuseGlimmerAssistantModel) (модель MuseGlimmerAssistantConfig)
- **muse_glimmer_text** -- [MuseGlimmerTextModel](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerTextModel) (модель MuseGlimmerTextConfig)
- **muse_glimmer_vision** -- [MuseGlimmerVisionModel](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerVisionModel) (модель MuseGlimmerVisionConfig)
- **muse_spark** -- [MuseSparkModel](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkModel) (модель MuseSparkConfig)
- **muse_spark_audio** -- [MuseSparkAudioModel](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkAudioModel) (модель MuseSparkAudioConfig)
- **muse_spark_text** -- [MuseSparkTextModel](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkTextModel) (модель MuseSparkTextConfig)
- **muse_spark_vision** -- [MuseSparkVisionModel](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkVisionModel) (модель MuseSparkVisionConfig)
- **musicflamingo** -- [MusicFlamingoModel](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoModel) (модель MusicFlamingoConfig)
- **musicgen** -- [MusicgenModel](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenModel) (модель MusicgenConfig)
- **musicgen_melody** -- [MusicgenMelodyModel](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyModel) (модель MusicgenMelodyConfig)
- **mvp** -- [MvpModel](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpModel) (модель MvpConfig)
- **nanochat** -- [NanoChatModel](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatModel) (модель NanoChatConfig)
- **nemo_speechlm** -- [Nemotron3_5TranscribeModel](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeModel) (модель Nemotron3_5TranscribeConfig)
- **nemotron** -- [NemotronModel](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronModel) (модель NemotronConfig)
- **nemotron3_5_asr** -- [Nemotron3_5AsrForRNNT](/docs/transformers/main/ru/model_doc/nemotron3_5_asr#transformers.Nemotron3_5AsrForRNNT) (модель Nemotron3_5AsrConfig)
- **nemotron3_5_transcribe_asr_audio** -- [Nemotron3_5TranscribeAsrAudioModel](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeAsrAudioModel) (модель Nemotron3_5TranscribeAsrAudioConfig)
- **nemotron3_5_transcribe_audio** -- [Nemotron3_5TranscribeAudioModel](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeAudioModel) (модель Nemotron3_5TranscribeAudioConfig)
- **nemotron3_5_transcribe_word_timestamp** -- [Nemotron3_5TranscribeWordTimestampModel](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeWordTimestampModel) (модель Nemotron3_5TranscribeWordTimestampConfig)
- **nemotron3_diarization** -- [Nemotron3DiarizationModel](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationModel) (модель Nemotron3DiarizationConfig)
- **nemotron3_diarization_audio** -- [Nemotron3DiarizationAudioModel](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationAudioModel) (модель Nemotron3DiarizationAudioConfig)
- **nemotron_asr_streaming** -- [NemotronAsrStreamingForRNNT](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingForRNNT) (модель NemotronAsrStreamingConfig)
- **nemotron_asr_streaming_encoder** -- [NemotronAsrStreamingEncoder](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingEncoder) (модель NemotronAsrStreamingEncoderConfig)
- **nemotron_h** -- [NemotronHModel](/docs/transformers/main/ru/model_doc/nemotron_h#transformers.NemotronHModel) (модель NemotronHConfig)
- **neomme** -- [NeoMMEModel](/docs/transformers/main/ru/model_doc/neomme#transformers.NeoMMEModel) (модель NeoMMEConfig)
- **neucodec** -- [NeuCodecModel](/docs/transformers/main/ru/model_doc/neucodec#transformers.NeuCodecModel) (модель NeuCodecConfig)
- **nllb-moe** -- [NllbMoeModel](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeModel) (модель NllbMoeConfig)
- **nomic_bert** -- [NomicBertModel](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertModel) (модель NomicBertConfig)
- **nystromformer** -- [NystromformerModel](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerModel) (модель NystromformerConfig)
- **olmo** -- [OlmoModel](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoModel) (модель OlmoConfig)
- **olmo2** -- [Olmo2Model](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2Model) (модель Olmo2Config)
- **olmo3** -- [Olmo3Model](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3Model) (модель Olmo3Config)
- **olmo_hybrid** -- [OlmoHybridModel](/docs/transformers/main/ru/model_doc/olmo_hybrid#transformers.OlmoHybridModel) (модель OlmoHybridConfig)
- **olmoe** -- [OlmoeModel](/docs/transformers/main/ru/model_doc/olmoe#transformers.OlmoeModel) (модель OlmoeConfig)
- **omdet-turbo** -- [OmDetTurboForObjectDetection](/docs/transformers/main/ru/model_doc/omdet-turbo#transformers.OmDetTurboForObjectDetection) (модель OmDetTurboConfig)
- **oneformer** -- [OneFormerModel](/docs/transformers/main/ru/model_doc/oneformer#transformers.OneFormerModel) (модель OneFormerConfig)
- **openai-gpt** -- [OpenAIGPTModel](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTModel) (модель OpenAIGPTConfig)
- **openai_privacy_filter** -- [OpenAIPrivacyFilterModel](/docs/transformers/main/ru/model_doc/openai_privacy_filter#transformers.OpenAIPrivacyFilterModel) (модель OpenAIPrivacyFilterConfig)
- **opt** -- [OPTModel](/docs/transformers/main/ru/model_doc/opt#transformers.OPTModel) (модель OPTConfig)
- **ovis2** -- [Ovis2Model](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2Model) (модель Ovis2Config)
- **owlv2** -- [Owlv2Model](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2Model) (модель Owlv2Config)
- **owlvit** -- [OwlViTModel](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTModel) (модель OwlViTConfig)
- **paddleocr_vl** -- [PaddleOCRVLModel](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLModel) (модель PaddleOCRVLConfig)
- **paligemma** -- [PaliGemmaModel](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaModel) (модель PaliGemmaConfig)
- **parakeet_ctc** -- [ParakeetForCTC](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForCTC) (модель ParakeetCTCConfig)
- **parakeet_encoder** -- [ParakeetEncoder](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetEncoder) (модель ParakeetEncoderConfig)
- **parakeet_rnnt** -- [ParakeetForRNNT](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForRNNT) (модель ParakeetRNNTConfig)
- **parakeet_tdt** -- [ParakeetForTDT](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForTDT) (модель ParakeetTDTConfig)
- **patchtsmixer** -- [PatchTSMixerModel](/docs/transformers/main/ru/model_doc/patchtsmixer#transformers.PatchTSMixerModel) (модель PatchTSMixerConfig)
- **patchtst** -- [PatchTSTModel](/docs/transformers/main/ru/model_doc/patchtst#transformers.PatchTSTModel) (модель PatchTSTConfig)
- **pe_audio** -- [PeAudioModel](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioModel) (модель PeAudioConfig)
- **pe_audio_encoder** -- [PeAudioEncoder](/docs/transformers/main/ru/model_doc/pe_audio#transformers.PeAudioEncoder) (модель PeAudioEncoderConfig)
- **pe_audio_video** -- [PeAudioVideoModel](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoModel) (модель PeAudioVideoConfig)
- **pe_audio_video_encoder** -- [PeAudioVideoEncoder](/docs/transformers/main/ru/model_doc/pe_audio_video#transformers.PeAudioVideoEncoder) (модель PeAudioVideoEncoderConfig)
- **pe_video** -- [PeVideoModel](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoModel) (модель PeVideoConfig)
- **pe_video_encoder** -- [PeVideoEncoder](/docs/transformers/main/ru/model_doc/pe_video#transformers.PeVideoEncoder) (модель PeVideoEncoderConfig)
- **pegasus** -- [PegasusModel](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusModel) (модель PegasusConfig)
- **pegasus_x** -- [PegasusXModel](/docs/transformers/main/ru/model_doc/pegasus_x#transformers.PegasusXModel) (модель PegasusXConfig)
- **perceiver** -- [PerceiverModel](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverModel) (модель PerceiverConfig)
- **perception_lm** -- [PerceptionLMModel](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMModel) (модель PerceptionLMConfig)
- **persimmon** -- [PersimmonModel](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonModel) (модель PersimmonConfig)
- **phi** -- [PhiModel](/docs/transformers/main/ru/model_doc/phi#transformers.PhiModel) (модель PhiConfig)
- **phi3** -- [Phi3Model](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3Model) (модель Phi3Config)
- **phi4_multimodal** -- [Phi4MultimodalModel](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalModel) (модель Phi4MultimodalConfig)
- **phimoe** -- [PhimoeModel](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeModel) (модель PhimoeConfig)
- **pi0** -- [PI0Model](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0Model) (модель PI0Config)
- **pixio** -- [PixioModel](/docs/transformers/main/ru/model_doc/pixio#transformers.PixioModel) (модель PixioConfig)
- **pixtral** -- [PixtralVisionModel](/docs/transformers/main/ru/model_doc/pixtral#transformers.PixtralVisionModel) (модель PixtralVisionConfig)
- **plbart** -- [PLBartModel](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartModel) (модель PLBartConfig)
- **pocket_tts** -- [PocketTTSModel](/docs/transformers/main/ru/model_doc/pocket_tts#transformers.PocketTTSModel) (модель PocketTTSConfig)
- **pocket_tts_audio_tokenizer** -- [PocketTTSAudioTokenizerModel](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerModel) (модель PocketTTSAudioTokenizerConfig)
- **pocket_tts_audio_tokenizer_decoder** -- [PocketTTSAudioTokenizerDecoderModel](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerDecoderModel) (модель PocketTTSAudioTokenizerDecoderConfig)
- **pocket_tts_audio_tokenizer_encoder** -- [PocketTTSAudioTokenizerEncoderModel](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerEncoderModel) (модель PocketTTSAudioTokenizerEncoderConfig)
- **poolformer** -- [PoolFormerModel](/docs/transformers/main/ru/model_doc/poolformer#transformers.PoolFormerModel) (модель PoolFormerConfig)
- **pp_doclayout_v3** -- [PPDocLayoutV3Model](/docs/transformers/main/ru/model_doc/pp_doclayout_v3#transformers.PPDocLayoutV3Model) (модель PPDocLayoutV3Config)
- **pp_doclayout_v4** -- [PPDocLayoutV4Model](/docs/transformers/main/ru/model_doc/pp_doclayout_v4#transformers.PPDocLayoutV4Model) (модель PPDocLayoutV4Config)
- **pp_ocrv5_mobile_rec** -- [PPOCRV5MobileRecModel](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_rec#transformers.PPOCRV5MobileRecModel) (модель PPOCRV5MobileRecConfig)
- **pp_ocrv5_server_rec** -- [PPOCRV5ServerRecModel](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_rec#transformers.PPOCRV5ServerRecModel) (модель PPOCRV5ServerRecConfig)
- **pp_ocrv6_medium_det** -- [PPOCRV6MediumDetModel](/docs/transformers/main/ru/model_doc/pp_ocrv6_medium_det#transformers.PPOCRV6MediumDetModel) (модель PPOCRV6MediumDetConfig)
- **pp_ocrv6_small_det** -- [PPOCRV6SmallDetModel](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_det#transformers.PPOCRV6SmallDetModel) (модель PPOCRV6SmallDetConfig)
- **pp_ocrv6_small_rec** -- [PPOCRV6SmallRecModel](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_rec#transformers.PPOCRV6SmallRecModel) (модель PPOCRV6SmallRecConfig)
- **pp_ocrv6_tiny_rec** -- [PPOCRV6TinyRecModel](/docs/transformers/main/ru/model_doc/pp_ocrv6_tiny_rec#transformers.PPOCRV6TinyRecModel) (модель PPOCRV6TinyRecConfig)
- **prophetnet** -- [ProphetNetModel](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetModel) (модель ProphetNetConfig)
- **pvt** -- [PvtModel](/docs/transformers/main/ru/model_doc/pvt#transformers.PvtModel) (модель PvtConfig)
- **pvt_v2** -- [PvtV2Model](/docs/transformers/main/ru/model_doc/pvt_v2#transformers.PvtV2Model) (модель PvtV2Config)
- **qianfan_ocr** -- [QianfanOCRModel](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRModel) (модель QianfanOCRConfig)
- **qianfan_ocr_vision** -- [QianfanOCRVisionModel](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRVisionModel) (модель QianfanOCRVisionConfig)
- **qwen2** -- [Qwen2Model](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Model) (модель Qwen2Config)
- **qwen2_5_omni_thinker** -- [Qwen2_5OmniThinkerModel](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerModel) (модель Qwen2_5OmniThinkerConfig)
- **qwen2_5_vl** -- [Qwen2_5_VLModel](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLModel) (модель Qwen2_5_VLConfig)
- **qwen2_5_vl_text** -- [Qwen2_5_VLTextModel](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLTextModel) (модель Qwen2_5_VLTextConfig)
- **qwen2_5_vl_vision** -- [Qwen2_5_VisionTransformerPretrainedModel](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VisionTransformerPretrainedModel) (модель Qwen2_5_VLVisionConfig)
- **qwen2_audio** -- [Qwen2AudioModel](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioModel) (модель Qwen2AudioConfig)
- **qwen2_audio_encoder** -- [Qwen2AudioEncoder](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioEncoder) (модель Qwen2AudioEncoderConfig)
- **qwen2_moe** -- [Qwen2MoeModel](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeModel) (модель Qwen2MoeConfig)
- **qwen2_vl** -- [Qwen2VLModel](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLModel) (модель Qwen2VLConfig)
- **qwen2_vl_text** -- [Qwen2VLTextModel](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLTextModel) (модель Qwen2VLTextConfig)
- **qwen3** -- [Qwen3Model](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3Model) (модель Qwen3Config)
- **qwen3_5** -- [Qwen3_5Model](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Model) (модель Qwen3_5Config)
- **qwen3_5_moe** -- [Qwen3_5MoeModel](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeModel) (модель Qwen3_5MoeConfig)
- **qwen3_5_moe_text** -- [Qwen3_5MoeTextModel](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeTextModel) (модель Qwen3_5MoeTextConfig)
- **qwen3_5_moe_vision** -- [Qwen3_5MoeVisionModel](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeVisionModel) (модель Qwen3_5MoeVisionConfig)
- **qwen3_5_text** -- [Qwen3_5TextModel](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5TextModel) (модель Qwen3_5TextConfig)
- **qwen3_5_vision** -- [Qwen3_5VisionModel](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5VisionModel) (модель Qwen3_5VisionConfig)
- **qwen3_asr** -- [Qwen3ASRModel](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRModel) (модель Qwen3ASRConfig)
- **qwen3_asr_encoder** -- [Qwen3ASREncoder](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASREncoder) (модель Qwen3ASREncoderConfig)
- **qwen3_moe** -- [Qwen3MoeModel](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeModel) (модель Qwen3MoeConfig)
- **qwen3_next** -- [Qwen3NextModel](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextModel) (модель Qwen3NextConfig)
- **qwen3_omni_moe_thinker** -- [Qwen3OmniMoeThinkerModel](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerModel) (модель Qwen3OmniMoeThinkerConfig)
- **qwen3_vl** -- [Qwen3VLModel](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLModel) (модель Qwen3VLConfig)
- **qwen3_vl_moe** -- [Qwen3VLMoeModel](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeModel) (модель Qwen3VLMoeConfig)
- **qwen3_vl_moe_text** -- [Qwen3VLMoeTextModel](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeTextModel) (модель Qwen3VLMoeTextConfig)
- **qwen3_vl_moe_vision** -- [Qwen3VLMoeVisionModel](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeVisionModel) (модель Qwen3VLMoeVisionConfig)
- **qwen3_vl_text** -- [Qwen3VLTextModel](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLTextModel) (модель Qwen3VLTextConfig)
- **qwen3_vl_vision** -- [Qwen3VLVisionModel](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLVisionModel) (модель Qwen3VLVisionConfig)
- **qwen4_exp** -- [Qwen4ExpModel](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpModel) (модель Qwen4ExpConfig)
- **qwen4_exp_text** -- [Qwen4ExpTextModel](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpTextModel) (модель Qwen4ExpTextConfig)
- **qwen4_exp_vision** -- [Qwen4ExpVisionModel](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpVisionModel) (модель Qwen4ExpVisionConfig)
- **radio** -- [RadioModel](/docs/transformers/main/ru/model_doc/radio#transformers.RadioModel) (модель RadioConfig)
- **recurrent_gemma** -- [RecurrentGemmaModel](/docs/transformers/main/ru/model_doc/recurrent_gemma#transformers.RecurrentGemmaModel) (модель RecurrentGemmaConfig)
- **reformer** -- [ReformerModel](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerModel) (модель ReformerConfig)
- **regnet** -- [RegNetModel](/docs/transformers/main/ru/model_doc/regnet#transformers.RegNetModel) (модель RegNetConfig)
- **rembert** -- [RemBertModel](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertModel) (модель RemBertConfig)
- **resnet** -- [ResNetModel](/docs/transformers/main/ru/model_doc/resnet#transformers.ResNetModel) (модель ResNetConfig)
- **rf_detr** -- [RfDetrModel](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrModel) (модель RfDetrConfig)
- **roberta** -- [RobertaModel](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaModel) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormModel](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormModel) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertModel](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertModel) (модель RoCBertConfig)
- **roformer** -- [RoFormerModel](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerModel) (модель RoFormerConfig)
- **rt_detr** -- [RTDetrModel](/docs/transformers/main/ru/model_doc/rt_detr#transformers.RTDetrModel) (модель RTDetrConfig)
- **rt_detr_v2** -- [RTDetrV2Model](/docs/transformers/main/ru/model_doc/rt_detr_v2#transformers.RTDetrV2Model) (модель RTDetrV2Config)
- **rwkv** -- [RwkvModel](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvModel) (модель RwkvConfig)
- **sam** -- [SamModel](/docs/transformers/main/ru/model_doc/sam#transformers.SamModel) (модель SamConfig)
- **sam2** -- [Sam2Model](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2Model) (модель Sam2Config)
- **sam2_hiera_det_model** -- [Sam2HieraDetModel](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2HieraDetModel) (модель Sam2HieraDetConfig)
- **sam2_video** -- [Sam2VideoModel](/docs/transformers/main/ru/model_doc/sam2_video#transformers.Sam2VideoModel) (модель Sam2VideoConfig)
- **sam2_vision_model** -- [Sam2VisionModel](/docs/transformers/main/ru/model_doc/sam2#transformers.Sam2VisionModel) (модель Sam2VisionConfig)
- **sam3** -- [Sam3Model](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3Model) (модель Sam3Config)
- **sam3_lite_text** -- [Sam3LiteTextModel](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextModel) (модель Sam3LiteTextConfig)
- **sam3_lite_text_text_model** -- [Sam3LiteTextTextModel](/docs/transformers/main/ru/model_doc/sam3_lite_text#transformers.Sam3LiteTextTextModel) (модель Sam3LiteTextTextConfig)
- **sam3_tracker** -- [Sam3TrackerModel](/docs/transformers/main/ru/model_doc/sam3_tracker#transformers.Sam3TrackerModel) (модель Sam3TrackerConfig)
- **sam3_tracker_video** -- [Sam3TrackerVideoModel](/docs/transformers/main/ru/model_doc/sam3_tracker_video#transformers.Sam3TrackerVideoModel) (модель Sam3TrackerVideoConfig)
- **sam3_video** -- [Sam3VideoModel](/docs/transformers/main/ru/model_doc/sam3_video#transformers.Sam3VideoModel) (модель Sam3VideoConfig)
- **sam3_vision_model** -- [Sam3VisionModel](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3VisionModel) (модель Sam3VisionConfig)
- **sam3_vit_model** -- [Sam3ViTModel](/docs/transformers/main/ru/model_doc/sam3#transformers.Sam3ViTModel) (модель Sam3ViTConfig)
- **sam_hq** -- [SamHQModel](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQModel) (модель SamHQConfig)
- **sam_hq_vision_model** -- [SamHQVisionModel](/docs/transformers/main/ru/model_doc/sam_hq#transformers.SamHQVisionModel) (модель SamHQVisionConfig)
- **sam_vision_model** -- [SamVisionModel](/docs/transformers/main/ru/model_doc/sam#transformers.SamVisionModel) (модель SamVisionConfig)
- **sapiens2** -- [Sapiens2Model](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Model) (модель Sapiens2Config)
- **seamless_m4t** -- [SeamlessM4TModel](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TModel) (модель SeamlessM4TConfig)
- **seamless_m4t_v2** -- [SeamlessM4Tv2Model](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2Model) (модель SeamlessM4Tv2Config)
- **seed_oss** -- [SeedOssModel](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssModel) (модель SeedOssConfig)
- **segformer** -- [SegformerModel](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerModel) (модель SegformerConfig)
- **seggpt** -- [SegGptModel](/docs/transformers/main/ru/model_doc/seggpt#transformers.SegGptModel) (модель SegGptConfig)
- **sew** -- [SEWModel](/docs/transformers/main/ru/model_doc/sew#transformers.SEWModel) (модель SEWConfig)
- **sew-d** -- [SEWDModel](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDModel) (модель SEWDConfig)
- **siglip** -- [SiglipModel](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipModel) (модель SiglipConfig)
- **siglip2** -- [Siglip2Model](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Model) (модель Siglip2Config)
- **siglip2_vision_model** -- [Siglip2VisionModel](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2VisionModel) (модель Siglip2VisionConfig)
- **siglip_vision_model** -- [SiglipVisionModel](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipVisionModel) (модель SiglipVisionConfig)
- **smollm3** -- [SmolLM3Model](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3Model) (модель SmolLM3Config)
- **smolvlm** -- [SmolVLMModel](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMModel) (модель SmolVLMConfig)
- **smolvlm_vision** -- [SmolVLMVisionTransformer](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMVisionTransformer) (модель SmolVLMVisionConfig)
- **solar_open** -- [SolarOpenModel](/docs/transformers/main/ru/model_doc/solar_open#transformers.SolarOpenModel) (модель SolarOpenConfig)
- **speech_to_text** -- [Speech2TextModel](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextModel) (модель Speech2TextConfig)
- **speecht5** -- [SpeechT5Model](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5Model) (модель SpeechT5Config)
- **splinter** -- [SplinterModel](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterModel) (модель SplinterConfig)
- **squeezebert** -- [SqueezeBertModel](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertModel) (модель SqueezeBertConfig)
- **stablelm** -- [StableLmModel](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmModel) (модель StableLmConfig)
- **starcoder2** -- [Starcoder2Model](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2Model) (модель Starcoder2Config)
- **step3p7** -- [Step3p7Model](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7Model) (модель Step3p7Config)
- **swiftformer** -- [SwiftFormerModel](/docs/transformers/main/ru/model_doc/swiftformer#transformers.SwiftFormerModel) (модель SwiftFormerConfig)
- **swin** -- [SwinModel](/docs/transformers/main/ru/model_doc/swin#transformers.SwinModel) (модель SwinConfig)
- **swin2sr** -- [Swin2SRModel](/docs/transformers/main/ru/model_doc/swin2sr#transformers.Swin2SRModel) (модель Swin2SRConfig)
- **swinv2** -- [Swinv2Model](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2Model) (модель Swinv2Config)
- **switch_transformers** -- [SwitchTransformersModel](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersModel) (модель SwitchTransformersConfig)
- **t5** -- [T5Model](/docs/transformers/main/ru/model_doc/t5#transformers.T5Model) (модель T5Config)
- **t5gemma** -- [T5GemmaModel](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaModel) (модель T5GemmaConfig)
- **t5gemma2** -- [T5Gemma2Model](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Model) (модель T5Gemma2Config)
- **t5gemma2_encoder** -- `T5Gemma2Encoder` (модель T5Gemma2EncoderConfig)
- **table-transformer** -- [TableTransformerModel](/docs/transformers/main/ru/model_doc/table-transformer#transformers.TableTransformerModel) (модель TableTransformerConfig)
- **tapas** -- [TapasModel](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasModel) (модель TapasConfig)
- **textnet** -- [TextNetModel](/docs/transformers/main/ru/model_doc/textnet#transformers.TextNetModel) (модель TextNetConfig)
- **time_series_transformer** -- [TimeSeriesTransformerModel](/docs/transformers/main/ru/model_doc/time_series_transformer#transformers.TimeSeriesTransformerModel) (модель TimeSeriesTransformerConfig)
- **timesfm** -- [TimesFmModel](/docs/transformers/main/ru/model_doc/timesfm#transformers.TimesFmModel) (модель TimesFmConfig)
- **timesfm2_5** -- [TimesFm2_5Model](/docs/transformers/main/ru/model_doc/timesfm2_5#transformers.TimesFm2_5Model) (модель TimesFm2_5Config)
- **timesformer** -- [TimesformerModel](/docs/transformers/main/ru/model_doc/timesformer#transformers.TimesformerModel) (модель TimesformerConfig)
- **timm_backbone** -- [TimmBackbone](/docs/transformers/main/ru/main_classes/backbones#transformers.TimmBackbone) (модель TimmBackboneConfig)
- **timm_wrapper** -- [TimmWrapperModel](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperModel) (модель TimmWrapperConfig)
- **tipsv2** -- [Tipsv2Model](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Model) (модель Tipsv2Config)
- **tipsv2_text_model** -- [Tipsv2TextModel](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2TextModel) (модель Tipsv2TextConfig)
- **tipsv2_vision_model** -- [Tipsv2VisionModel](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2VisionModel) (модель Tipsv2VisionConfig)
- **tvp** -- [TvpModel](/docs/transformers/main/ru/model_doc/tvp#transformers.TvpModel) (модель TvpConfig)
- **udop** -- [UdopModel](/docs/transformers/main/ru/model_doc/udop#transformers.UdopModel) (модель UdopConfig)
- **ultrabert** -- [UltrabertModel](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertModel) (модель UltrabertConfig)
- **ultravbert** -- [UltraVBertModel](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertModel) (модель UltraVBertConfig)
- **umt5** -- [UMT5Model](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5Model) (модель UMT5Config)
- **unispeech** -- [UniSpeechModel](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechModel) (модель UniSpeechConfig)
- **unispeech-sat** -- [UniSpeechSatModel](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatModel) (модель UniSpeechSatConfig)
- **univnet** -- [UnivNetModel](/docs/transformers/main/ru/model_doc/univnet#transformers.UnivNetModel) (модель UnivNetConfig)
- **unlimited_ocr** -- [UnlimitedOcrModel](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrModel) (модель UnlimitedOcrConfig)
- **uvdoc** -- [UVDocModel](/docs/transformers/main/ru/model_doc/uvdoc#transformers.UVDocModel) (модель UVDocConfig)
- **vaultgemma** -- [VaultGemmaModel](/docs/transformers/main/ru/model_doc/vaultgemma#transformers.VaultGemmaModel) (модель VaultGemmaConfig)
- **vibevoice** -- [VibeVoiceForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceForConditionalGeneration) (модель VibeVoiceConfig)
- **vibevoice_acoustic_tokenizer** -- [VibeVoiceAcousticTokenizerModel](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerModel) (модель VibeVoiceAcousticTokenizerConfig)
- **vibevoice_acoustic_tokenizer_decoder** -- [VibeVoiceAcousticTokenizerDecoderModel](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerDecoderModel) (модель VibeVoiceAcousticTokenizerDecoderConfig)
- **vibevoice_acoustic_tokenizer_encoder** -- [VibeVoiceAcousticTokenizerEncoderModel](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerEncoderModel) (модель VibeVoiceAcousticTokenizerEncoderConfig)
- **vibevoice_asr** -- [VibeVoiceAsrModel](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrModel) (модель VibeVoiceAsrConfig)
- **video_llama_3** -- [VideoLlama3Model](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3Model) (модель VideoLlama3Config)
- **video_llama_3_vision** -- [VideoLlama3VisionModel](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3VisionModel) (модель VideoLlama3VisionConfig)
- **video_llava** -- [VideoLlavaModel](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaModel) (модель VideoLlavaConfig)
- **videomae** -- [VideoMAEModel](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEModel) (модель VideoMAEConfig)
- **videoprism** -- [VideoPrismClipModel](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismClipModel) (модель VideoPrismConfig)
- **videoprism_vision_model** -- [VideoPrismVisionModel](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismVisionModel) (модель VideoPrismVisionConfig)
- **vilt** -- [ViltModel](/docs/transformers/main/ru/model_doc/vilt#transformers.ViltModel) (модель ViltConfig)
- **vipllava** -- [VipLlavaModel](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaModel) (модель VipLlavaConfig)
- **vision-text-dual-encoder** -- [VisionTextDualEncoderModel](/docs/transformers/main/ru/model_doc/vision-text-dual-encoder#transformers.VisionTextDualEncoderModel) (модель VisionTextDualEncoderConfig)
- **visual_bert** -- [VisualBertModel](/docs/transformers/main/ru/model_doc/visual_bert#transformers.VisualBertModel) (модель VisualBertConfig)
- **vit** -- [ViTModel](/docs/transformers/main/ru/model_doc/vit#transformers.ViTModel) (модель ViTConfig)
- **vit_mae** -- [ViTMAEModel](/docs/transformers/main/ru/model_doc/vit_mae#transformers.ViTMAEModel) (модель ViTMAEConfig)
- **vit_msn** -- [ViTMSNModel](/docs/transformers/main/ru/model_doc/vit_msn#transformers.ViTMSNModel) (модель ViTMSNConfig)
- **vitdet** -- [VitDetModel](/docs/transformers/main/ru/model_doc/vitdet#transformers.VitDetModel) (модель VitDetConfig)
- **vits** -- [VitsModel](/docs/transformers/main/ru/model_doc/vits#transformers.VitsModel) (модель VitsConfig)
- **vivit** -- [VivitModel](/docs/transformers/main/ru/model_doc/vivit#transformers.VivitModel) (модель VivitConfig)
- **vjepa2** -- [VJEPA2Model](/docs/transformers/main/ru/model_doc/vjepa2#transformers.VJEPA2Model) (модель VJEPA2Config)
- **voxtral** -- [VoxtralModel](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralModel) (модель VoxtralConfig)
- **voxtral_encoder** -- [VoxtralEncoder](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralEncoder) (модель VoxtralEncoderConfig)
- **voxtral_realtime** -- [VoxtralRealtimeModel](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeModel) (модель VoxtralRealtimeConfig)
- **voxtral_realtime_encoder** -- [VoxtralRealtimeEncoder](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeEncoder) (модель VoxtralRealtimeEncoderConfig)
- **voxtral_realtime_text** -- `VoxtralRealtimeTextModel` (модель VoxtralRealtimeTextConfig)
- **wav2vec2** -- [Wav2Vec2Model](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Model) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2BertModel](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertModel) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2ConformerModel](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerModel) (модель Wav2Vec2ConformerConfig)
- **wavlm** -- [WavLMModel](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMModel) (модель WavLMConfig)
- **whisper** -- [WhisperModel](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperModel) (модель WhisperConfig)
- **xclip** -- [XCLIPModel](/docs/transformers/main/ru/model_doc/xclip#transformers.XCLIPModel) (модель XCLIPConfig)
- **xcodec** -- [XcodecModel](/docs/transformers/main/ru/model_doc/xcodec#transformers.XcodecModel) (модель XcodecConfig)
- **xcodec2** -- [Xcodec2Model](/docs/transformers/main/ru/model_doc/xcodec2#transformers.Xcodec2Model) (модель Xcodec2Config)
- **xglm** -- [XGLMModel](/docs/transformers/main/ru/model_doc/xglm#transformers.XGLMModel) (модель XGLMConfig)
- **xlm** -- [XLMModel](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMModel) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaModel](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaModel) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLModel](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLModel) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetModel](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetModel) (модель XLNetConfig)
- **xlstm** -- [xLSTMModel](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMModel) (модель xLSTMConfig)
- **xmod** -- [XmodModel](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodModel) (модель XmodConfig)
- **yolos** -- [YolosModel](/docs/transformers/main/ru/model_doc/yolos#transformers.YolosModel) (модель YolosConfig)
- **yoso** -- [YosoModel](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoModel) (модель YosoConfig)
- **youtu** -- [YoutuModel](/docs/transformers/main/ru/model_doc/youtu#transformers.YoutuModel) (модель YoutuConfig)
- **zamba** -- [ZambaModel](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaModel) (модель ZambaConfig)
- **zamba2** -- [Zamba2Model](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2Model) (модель Zamba2Config)
- **zaya** -- [ZayaModel](/docs/transformers/main/ru/model_doc/zaya#transformers.ZayaModel) (модель ZayaConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModel

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModel.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModel.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

## Универсальные классы предварительного обучения

Для создания модели с головой предобучения доступны следующие автоклассы.

### AutoModelForPreTraining[[transformers.AutoModelForPreTraining]]

#### transformers.AutoModelForPreTraining[[transformers.AutoModelForPreTraining]]

```python
transformers.AutoModelForPreTraining(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2302)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой предобучения).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForPreTraining.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : The model class to instantiate is selected based on the configuration class:  - [AlbertConfig](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertConfig) configuration class: [AlbertForPreTraining](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForPreTraining) (AlbertConfig model) - [AudioFlamingo3Config](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Config) configuration class: [AudioFlamingo3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3ForConditionalGeneration) (AudioFlamingo3Config model) - [BartConfig](/docs/transformers/main/ru/model_doc/bart#transformers.BartConfig) configuration class: [BartForConditionalGeneration](/docs/transformers/main/ru/model_doc/bart#transformers.BartForConditionalGeneration) (BartConfig model) - [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig) configuration class: [BertForPreTraining](/docs/transformers/main/ru/model_doc/bert#transformers.BertForPreTraining) (BertConfig model) - [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig) configuration class: [BigBirdForPreTraining](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForPreTraining) (BigBirdConfig model) - [BloomConfig](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomConfig) configuration class: [BloomForCausalLM](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForCausalLM) (BloomConfig model) - [CTRLConfig](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLConfig) configuration class: [CTRLLMHeadModel](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLLMHeadModel) (CTRLConfig model) - [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig) configuration class: [CamembertForMaskedLM](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForMaskedLM) (CamembertConfig model) - [ColModernVBertConfig](/docs/transformers/main/ru/model_doc/colmodernvbert#transformers.ColModernVBertConfig) configuration class: [ColModernVBertForRetrieval](/docs/transformers/main/ru/model_doc/colmodernvbert#transformers.ColModernVBertForRetrieval) (ColModernVBertConfig model) - [ColPaliConfig](/docs/transformers/main/ru/model_doc/colpali#transformers.ColPaliConfig) configuration class: [ColPaliForRetrieval](/docs/transformers/main/ru/model_doc/colpali#transformers.ColPaliForRetrieval) (ColPaliConfig model) - [ColQwen2Config](/docs/transformers/main/ru/model_doc/colqwen2#transformers.ColQwen2Config) configuration class: [ColQwen2ForRetrieval](/docs/transformers/main/ru/model_doc/colqwen2#transformers.ColQwen2ForRetrieval) (ColQwen2Config model) - [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig) configuration class: [Data2VecTextForMaskedLM](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForMaskedLM) (Data2VecTextConfig model) - [DebertaConfig](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaConfig) configuration class: [DebertaForMaskedLM](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForMaskedLM) (DebertaConfig model) - [DebertaV2Config](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Config) configuration class: [DebertaV2ForMaskedLM](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForMaskedLM) (DebertaV2Config model) - [DistilBertConfig](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertConfig) configuration class: [DistilBertForMaskedLM](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForMaskedLM) (DistilBertConfig model) - [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig) configuration class: [ElectraForPreTraining](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForPreTraining) (ElectraConfig model) - [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig) configuration class: [ErnieForPreTraining](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForPreTraining) (ErnieConfig model) - [EvollaConfig](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaConfig) configuration class: [EvollaForProteinText2Text](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaForProteinText2Text) (EvollaConfig model) - [Exaone4Config](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Config) configuration class: [Exaone4ForCausalLM](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForCausalLM) (Exaone4Config model) - [ExaoneMoeConfig](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeConfig) configuration class: [ExaoneMoeForCausalLM](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeForCausalLM) (ExaoneMoeConfig model) - [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig) configuration class: [FNetForPreTraining](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForPreTraining) (FNetConfig model) - [FSMTConfig](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTConfig) configuration class: [FSMTForConditionalGeneration](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTForConditionalGeneration) (FSMTConfig model) - [FalconMambaConfig](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaConfig) configuration class: [FalconMambaForCausalLM](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaForCausalLM) (FalconMambaConfig model) - [FlaubertConfig](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertConfig) configuration class: [FlaubertWithLMHeadModel](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertWithLMHeadModel) (FlaubertConfig model) - [FlavaConfig](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaConfig) configuration class: [FlavaForPreTraining](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaForPreTraining) (FlavaConfig model) - [Florence2Config](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2Config) configuration class: [Florence2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2ForConditionalGeneration) (Florence2Config model) - [FunAsrNanoConfig](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoConfig) configuration class: [FunAsrNanoForConditionalGeneration](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoForConditionalGeneration) (FunAsrNanoConfig model) - [FunnelConfig](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelConfig) configuration class: [FunnelForPreTraining](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForPreTraining) (FunnelConfig model) - [GPT2Config](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Config) configuration class: [GPT2LMHeadModel](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2LMHeadModel) (GPT2Config model) - [GPTBigCodeConfig](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeConfig) configuration class: [GPTBigCodeForCausalLM](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeForCausalLM) (GPTBigCodeConfig model) - [Gemma3Config](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Config) configuration class: [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (Gemma3Config model) - [Gemma4Config](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Config) configuration class: [Gemma4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForConditionalGeneration) (Gemma4Config model) - [Gemma4UnifiedConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedConfig) configuration class: [Gemma4UnifiedForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForConditionalGeneration) (Gemma4UnifiedConfig model) - [GlmAsrConfig](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrConfig) configuration class: [GlmAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrForConditionalGeneration) (GlmAsrConfig model) - [HieraConfig](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraConfig) configuration class: [HieraForPreTraining](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraForPreTraining) (HieraConfig model) - [IBertConfig](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertConfig) configuration class: [IBertForMaskedLM](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForMaskedLM) (IBertConfig model) - [Idefics2Config](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2Config) configuration class: [Idefics2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2ForConditionalGeneration) (Idefics2Config model) - [Idefics3Config](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Config) configuration class: [Idefics3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3ForConditionalGeneration) (Idefics3Config model) - [IdeficsConfig](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsConfig) configuration class: [IdeficsForVisionText2Text](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsForVisionText2Text) (IdeficsConfig model) - [InklingConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingConfig) configuration class: [InklingForConditionalGeneration](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingForConditionalGeneration) (InklingConfig model) - [JanusConfig](/docs/transformers/main/ru/model_doc/janus#transformers.JanusConfig) configuration class: [JanusForConditionalGeneration](/docs/transformers/main/ru/model_doc/janus#transformers.JanusForConditionalGeneration) (JanusConfig model) - [LayoutLMConfig](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMConfig) configuration class: [LayoutLMForMaskedLM](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForMaskedLM) (LayoutLMConfig model) - [LlavaConfig](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaConfig) configuration class: [LlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaForConditionalGeneration) (LlavaConfig model) - [LlavaNextConfig](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextConfig) configuration class: [LlavaNextForConditionalGeneration](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextForConditionalGeneration) (LlavaNextConfig model) - [LlavaNextVideoConfig](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoConfig) configuration class: [LlavaNextVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoForConditionalGeneration) (LlavaNextVideoConfig model) - [LlavaOnevisionConfig](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionConfig) configuration class: [LlavaOnevisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionForConditionalGeneration) (LlavaOnevisionConfig model) - [LongformerConfig](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerConfig) configuration class: [LongformerForMaskedLM](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForMaskedLM) (LongformerConfig model) - [LukeConfig](/docs/transformers/main/ru/model_doc/luke#transformers.LukeConfig) configuration class: [LukeForMaskedLM](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForMaskedLM) (LukeConfig model) - [LxmertConfig](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertConfig) configuration class: [LxmertForPreTraining](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertForPreTraining) (LxmertConfig model) - [MPNetConfig](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetConfig) configuration class: [MPNetForMaskedLM](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForMaskedLM) (MPNetConfig model) - [Mamba2Config](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2Config) configuration class: [Mamba2ForCausalLM](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2ForCausalLM) (Mamba2Config model) - [MambaConfig](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaConfig) configuration class: [MambaForCausalLM](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaForCausalLM) (MambaConfig model) - [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig) configuration class: [MegatronBertForPreTraining](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForPreTraining) (MegatronBertConfig model) - [Mistral3Config](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3Config) configuration class: [Mistral3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3ForConditionalGeneration) (Mistral3Config model) - [Mistral4Config](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Config) configuration class: [Mistral4ForCausalLM](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForCausalLM) (Mistral4Config model) - [MistralLarge4Config](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4Config) configuration class: [MistralLarge4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4ForConditionalGeneration) (MistralLarge4Config model) - [MllamaConfig](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaConfig) configuration class: [MllamaForConditionalGeneration](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaForConditionalGeneration) (MllamaConfig model) - [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig) configuration class: [MobileBertForPreTraining](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForPreTraining) (MobileBertConfig model) - [MossTranscribeDiarizeConfig](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeConfig) configuration class: [MossTranscribeDiarizeForConditionalGeneration](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeForConditionalGeneration) (MossTranscribeDiarizeConfig model) - [MptConfig](/docs/transformers/main/ru/model_doc/mpt#transformers.MptConfig) configuration class: [MptForCausalLM](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForCausalLM) (MptConfig model) - [MraConfig](/docs/transformers/main/ru/model_doc/mra#transformers.MraConfig) configuration class: [MraForMaskedLM](/docs/transformers/main/ru/model_doc/mra#transformers.MraForMaskedLM) (MraConfig model) - [MusicFlamingoConfig](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoConfig) configuration class: [MusicFlamingoForConditionalGeneration](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoForConditionalGeneration) (MusicFlamingoConfig model) - [MvpConfig](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpConfig) configuration class: [MvpForConditionalGeneration](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForConditionalGeneration) (MvpConfig model) - [NanoChatConfig](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatConfig) configuration class: [NanoChatForCausalLM](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatForCausalLM) (NanoChatConfig model) - [Nemotron3_5TranscribeConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeConfig) configuration class: [Nemotron3_5TranscribeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeForConditionalGeneration) (Nemotron3_5TranscribeConfig model) - [NllbMoeConfig](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeConfig) configuration class: [NllbMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeForConditionalGeneration) (NllbMoeConfig model) - [OpenAIGPTConfig](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTConfig) configuration class: [OpenAIGPTLMHeadModel](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTLMHeadModel) (OpenAIGPTConfig model) - [PaliGemmaConfig](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaConfig) configuration class: [PaliGemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration) (PaliGemmaConfig model) - [Qwen2AudioConfig](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioConfig) configuration class: [Qwen2AudioForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioForConditionalGeneration) (Qwen2AudioConfig model) - [Qwen3ASRConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRConfig) configuration class: [Qwen3ASRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForConditionalGeneration) (Qwen3ASRConfig model) - [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig) configuration class: [RoCBertForPreTraining](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForPreTraining) (RoCBertConfig model) - [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig) configuration class: [RobertaForMaskedLM](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForMaskedLM) (RobertaConfig model) - [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig) configuration class: [RobertaPreLayerNormForMaskedLM](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForMaskedLM) (RobertaPreLayerNormConfig model) - [RwkvConfig](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvConfig) configuration class: [RwkvForCausalLM](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvForCausalLM) (RwkvConfig model) - [SplinterConfig](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterConfig) configuration class: [SplinterForPreTraining](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterForPreTraining) (SplinterConfig model) - [SqueezeBertConfig](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertConfig) configuration class: [SqueezeBertForMaskedLM](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForMaskedLM) (SqueezeBertConfig model) - [SwitchTransformersConfig](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersConfig) configuration class: [SwitchTransformersForConditionalGeneration](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersForConditionalGeneration) (SwitchTransformersConfig model) - [T5Config](/docs/transformers/main/ru/model_doc/t5#transformers.T5Config) configuration class: [T5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForConditionalGeneration) (T5Config model) - [T5Gemma2Config](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Config) configuration class: [T5Gemma2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForConditionalGeneration) (T5Gemma2Config model) - [T5GemmaConfig](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaConfig) configuration class: [T5GemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaForConditionalGeneration) (T5GemmaConfig model) - [TapasConfig](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasConfig) configuration class: [TapasForMaskedLM](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasForMaskedLM) (TapasConfig model) - [UniSpeechConfig](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechConfig) configuration class: [UniSpeechForPreTraining](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechForPreTraining) (UniSpeechConfig model) - [UniSpeechSatConfig](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatConfig) configuration class: [UniSpeechSatForPreTraining](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForPreTraining) (UniSpeechSatConfig model) - [ViTMAEConfig](/docs/transformers/main/ru/model_doc/vit_mae#transformers.ViTMAEConfig) configuration class: [ViTMAEForPreTraining](/docs/transformers/main/ru/model_doc/vit_mae#transformers.ViTMAEForPreTraining) (ViTMAEConfig model) - [VibeVoiceAsrConfig](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrConfig) configuration class: [VibeVoiceAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrForConditionalGeneration) (VibeVoiceAsrConfig model) - [VideoLlavaConfig](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaConfig) configuration class: [VideoLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaForConditionalGeneration) (VideoLlavaConfig model) - [VideoMAEConfig](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEConfig) configuration class: [VideoMAEForPreTraining](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEForPreTraining) (VideoMAEConfig model) - [VipLlavaConfig](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaConfig) configuration class: [VipLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaForConditionalGeneration) (VipLlavaConfig model) - [VisualBertConfig](/docs/transformers/main/ru/model_doc/visual_bert#transformers.VisualBertConfig) configuration class: [VisualBertForPreTraining](/docs/transformers/main/ru/model_doc/visual_bert#transformers.VisualBertForPreTraining) (VisualBertConfig model) - [VoxtralConfig](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralConfig) configuration class: [VoxtralForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralForConditionalGeneration) (VoxtralConfig model) - [VoxtralRealtimeConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeConfig) configuration class: [VoxtralRealtimeForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeForConditionalGeneration) (VoxtralRealtimeConfig model) - [Wav2Vec2Config](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Config) configuration class: [Wav2Vec2ForPreTraining](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForPreTraining) (Wav2Vec2Config model) - [Wav2Vec2ConformerConfig](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerConfig) configuration class: [Wav2Vec2ConformerForPreTraining](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForPreTraining) (Wav2Vec2ConformerConfig model) - [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig) configuration class: [XLMWithLMHeadModel](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMWithLMHeadModel) (XLMConfig model) - [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig) configuration class: [XLMRobertaForMaskedLM](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForMaskedLM) (XLMRobertaConfig model) - [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig) configuration class: [XLMRobertaXLForMaskedLM](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForMaskedLM) (XLMRobertaXLConfig model) - [XLNetConfig](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetConfig) configuration class: [XLNetLMHeadModel](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetLMHeadModel) (XLNetConfig model) - [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig) configuration class: [XmodForMaskedLM](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForMaskedLM) (XmodConfig model) - [xLSTMConfig](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMConfig) configuration class: [xLSTMForCausalLM](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMForCausalLM) (xLSTMConfig model)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой предобучения) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForPreTraining

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForPreTraining.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForPreTraining.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой предобучения) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **albert** -- [AlbertForPreTraining](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForPreTraining) (модель AlbertConfig)
- **audioflamingo3** -- [AudioFlamingo3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3ForConditionalGeneration) (модель AudioFlamingo3Config)
- **bart** -- [BartForConditionalGeneration](/docs/transformers/main/ru/model_doc/bart#transformers.BartForConditionalGeneration) (модель BartConfig)
- **bert** -- [BertForPreTraining](/docs/transformers/main/ru/model_doc/bert#transformers.BertForPreTraining) (модель BertConfig)
- **big_bird** -- [BigBirdForPreTraining](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForPreTraining) (модель BigBirdConfig)
- **bloom** -- [BloomForCausalLM](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForCausalLM) (модель BloomConfig)
- **camembert** -- [CamembertForMaskedLM](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForMaskedLM) (модель CamembertConfig)
- **colmodernvbert** -- [ColModernVBertForRetrieval](/docs/transformers/main/ru/model_doc/colmodernvbert#transformers.ColModernVBertForRetrieval) (модель ColModernVBertConfig)
- **colpali** -- [ColPaliForRetrieval](/docs/transformers/main/ru/model_doc/colpali#transformers.ColPaliForRetrieval) (модель ColPaliConfig)
- **colqwen2** -- [ColQwen2ForRetrieval](/docs/transformers/main/ru/model_doc/colqwen2#transformers.ColQwen2ForRetrieval) (модель ColQwen2Config)
- **ctrl** -- [CTRLLMHeadModel](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLLMHeadModel) (модель CTRLConfig)
- **data2vec-text** -- [Data2VecTextForMaskedLM](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForMaskedLM) (модель Data2VecTextConfig)
- **deberta** -- [DebertaForMaskedLM](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForMaskedLM) (модель DebertaConfig)
- **deberta-v2** -- [DebertaV2ForMaskedLM](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForMaskedLM) (модель DebertaV2Config)
- **distilbert** -- [DistilBertForMaskedLM](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForMaskedLM) (модель DistilBertConfig)
- **electra** -- [ElectraForPreTraining](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForPreTraining) (модель ElectraConfig)
- **ernie** -- [ErnieForPreTraining](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForPreTraining) (модель ErnieConfig)
- **evolla** -- [EvollaForProteinText2Text](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaForProteinText2Text) (модель EvollaConfig)
- **exaone4** -- [Exaone4ForCausalLM](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForCausalLM) (модель Exaone4Config)
- **exaone_moe** -- [ExaoneMoeForCausalLM](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeForCausalLM) (модель ExaoneMoeConfig)
- **falcon_mamba** -- [FalconMambaForCausalLM](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaForCausalLM) (модель FalconMambaConfig)
- **flaubert** -- [FlaubertWithLMHeadModel](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertWithLMHeadModel) (модель FlaubertConfig)
- **flava** -- [FlavaForPreTraining](/docs/transformers/main/ru/model_doc/flava#transformers.FlavaForPreTraining) (модель FlavaConfig)
- **florence2** -- [Florence2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2ForConditionalGeneration) (модель Florence2Config)
- **fnet** -- [FNetForPreTraining](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForPreTraining) (модель FNetConfig)
- **fsmt** -- [FSMTForConditionalGeneration](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTForConditionalGeneration) (модель FSMTConfig)
- **fun_asr_nano** -- [FunAsrNanoForConditionalGeneration](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoForConditionalGeneration) (модель FunAsrNanoConfig)
- **funnel** -- [FunnelForPreTraining](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForPreTraining) (модель FunnelConfig)
- **gemma3** -- [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (модель Gemma3Config)
- **gemma4** -- [Gemma4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForConditionalGeneration) (модель Gemma4Config)
- **gemma4_unified** -- [Gemma4UnifiedForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForConditionalGeneration) (модель Gemma4UnifiedConfig)
- **glmasr** -- [GlmAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrForConditionalGeneration) (модель GlmAsrConfig)
- **gpt-sw3** -- [GPT2LMHeadModel](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2LMHeadModel) (модель GPT2Config)
- **gpt2** -- [GPT2LMHeadModel](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2LMHeadModel) (модель GPT2Config)
- **gpt_bigcode** -- [GPTBigCodeForCausalLM](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeForCausalLM) (модель GPTBigCodeConfig)
- **hiera** -- [HieraForPreTraining](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraForPreTraining) (модель HieraConfig)
- **ibert** -- [IBertForMaskedLM](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForMaskedLM) (модель IBertConfig)
- **idefics** -- [IdeficsForVisionText2Text](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsForVisionText2Text) (модель IdeficsConfig)
- **idefics2** -- [Idefics2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2ForConditionalGeneration) (модель Idefics2Config)
- **idefics3** -- [Idefics3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3ForConditionalGeneration) (модель Idefics3Config)
- **inkling_mm_model** -- [InklingForConditionalGeneration](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingForConditionalGeneration) (модель InklingConfig)
- **janus** -- [JanusForConditionalGeneration](/docs/transformers/main/ru/model_doc/janus#transformers.JanusForConditionalGeneration) (модель JanusConfig)
- **layoutlm** -- [LayoutLMForMaskedLM](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForMaskedLM) (модель LayoutLMConfig)
- **llava** -- [LlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaForConditionalGeneration) (модель LlavaConfig)
- **llava_next** -- [LlavaNextForConditionalGeneration](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextForConditionalGeneration) (модель LlavaNextConfig)
- **llava_next_video** -- [LlavaNextVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoForConditionalGeneration) (модель LlavaNextVideoConfig)
- **llava_onevision** -- [LlavaOnevisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionForConditionalGeneration) (модель LlavaOnevisionConfig)
- **longformer** -- [LongformerForMaskedLM](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForMaskedLM) (модель LongformerConfig)
- **luke** -- [LukeForMaskedLM](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForMaskedLM) (модель LukeConfig)
- **lxmert** -- [LxmertForPreTraining](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertForPreTraining) (модель LxmertConfig)
- **mamba** -- [MambaForCausalLM](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaForCausalLM) (модель MambaConfig)
- **mamba2** -- [Mamba2ForCausalLM](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2ForCausalLM) (модель Mamba2Config)
- **megatron-bert** -- [MegatronBertForPreTraining](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForPreTraining) (модель MegatronBertConfig)
- **mistral3** -- [Mistral3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3ForConditionalGeneration) (модель Mistral3Config)
- **mistral4** -- [Mistral4ForCausalLM](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForCausalLM) (модель Mistral4Config)
- **mistral_large4** -- [MistralLarge4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4ForConditionalGeneration) (модель MistralLarge4Config)
- **mllama** -- [MllamaForConditionalGeneration](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaForConditionalGeneration) (модель MllamaConfig)
- **mobilebert** -- [MobileBertForPreTraining](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForPreTraining) (модель MobileBertConfig)
- **moss_transcribe_diarize** -- [MossTranscribeDiarizeForConditionalGeneration](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeForConditionalGeneration) (модель MossTranscribeDiarizeConfig)
- **mpnet** -- [MPNetForMaskedLM](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForMaskedLM) (модель MPNetConfig)
- **mpt** -- [MptForCausalLM](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForCausalLM) (модель MptConfig)
- **mra** -- [MraForMaskedLM](/docs/transformers/main/ru/model_doc/mra#transformers.MraForMaskedLM) (модель MraConfig)
- **musicflamingo** -- [MusicFlamingoForConditionalGeneration](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoForConditionalGeneration) (модель MusicFlamingoConfig)
- **mvp** -- [MvpForConditionalGeneration](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForConditionalGeneration) (модель MvpConfig)
- **nanochat** -- [NanoChatForCausalLM](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatForCausalLM) (модель NanoChatConfig)
- **nemo_speechlm** -- [Nemotron3_5TranscribeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeForConditionalGeneration) (модель Nemotron3_5TranscribeConfig)
- **nllb-moe** -- [NllbMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeForConditionalGeneration) (модель NllbMoeConfig)
- **openai-gpt** -- [OpenAIGPTLMHeadModel](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTLMHeadModel) (модель OpenAIGPTConfig)
- **paligemma** -- [PaliGemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration) (модель PaliGemmaConfig)
- **qwen2_audio** -- [Qwen2AudioForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioForConditionalGeneration) (модель Qwen2AudioConfig)
- **qwen3_asr** -- [Qwen3ASRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForConditionalGeneration) (модель Qwen3ASRConfig)
- **roberta** -- [RobertaForMaskedLM](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForMaskedLM) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormForMaskedLM](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForMaskedLM) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertForPreTraining](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForPreTraining) (модель RoCBertConfig)
- **rwkv** -- [RwkvForCausalLM](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvForCausalLM) (модель RwkvConfig)
- **splinter** -- [SplinterForPreTraining](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterForPreTraining) (модель SplinterConfig)
- **squeezebert** -- [SqueezeBertForMaskedLM](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForMaskedLM) (модель SqueezeBertConfig)
- **switch_transformers** -- [SwitchTransformersForConditionalGeneration](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersForConditionalGeneration) (модель SwitchTransformersConfig)
- **t5** -- [T5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForConditionalGeneration) (модель T5Config)
- **t5gemma** -- [T5GemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaForConditionalGeneration) (модель T5GemmaConfig)
- **t5gemma2** -- [T5Gemma2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForConditionalGeneration) (модель T5Gemma2Config)
- **tapas** -- [TapasForMaskedLM](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasForMaskedLM) (модель TapasConfig)
- **unispeech** -- [UniSpeechForPreTraining](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechForPreTraining) (модель UniSpeechConfig)
- **unispeech-sat** -- [UniSpeechSatForPreTraining](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForPreTraining) (модель UniSpeechSatConfig)
- **vibevoice_asr** -- [VibeVoiceAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrForConditionalGeneration) (модель VibeVoiceAsrConfig)
- **video_llava** -- [VideoLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaForConditionalGeneration) (модель VideoLlavaConfig)
- **videomae** -- [VideoMAEForPreTraining](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEForPreTraining) (модель VideoMAEConfig)
- **vipllava** -- [VipLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaForConditionalGeneration) (модель VipLlavaConfig)
- **visual_bert** -- [VisualBertForPreTraining](/docs/transformers/main/ru/model_doc/visual_bert#transformers.VisualBertForPreTraining) (модель VisualBertConfig)
- **vit_mae** -- [ViTMAEForPreTraining](/docs/transformers/main/ru/model_doc/vit_mae#transformers.ViTMAEForPreTraining) (модель ViTMAEConfig)
- **voxtral** -- [VoxtralForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralForConditionalGeneration) (модель VoxtralConfig)
- **voxtral_realtime** -- [VoxtralRealtimeForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeForConditionalGeneration) (модель VoxtralRealtimeConfig)
- **wav2vec2** -- [Wav2Vec2ForPreTraining](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForPreTraining) (модель Wav2Vec2Config)
- **wav2vec2-conformer** -- [Wav2Vec2ConformerForPreTraining](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForPreTraining) (модель Wav2Vec2ConformerConfig)
- **xlm** -- [XLMWithLMHeadModel](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMWithLMHeadModel) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaForMaskedLM](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForMaskedLM) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLForMaskedLM](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForMaskedLM) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetLMHeadModel](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetLMHeadModel) (модель XLNetConfig)
- **xlstm** -- [xLSTMForCausalLM](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMForCausalLM) (модель xLSTMConfig)
- **xmod** -- [XmodForMaskedLM](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForMaskedLM) (модель XmodConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForPreTraining

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForPreTraining.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForPreTraining.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

## Обработка естественного языка

Для следующих задач обработки естественного языка доступны следующие автоклассы.

### AutoModelForCausalLM[[transformers.AutoModelForCausalLM]]

#### transformers.AutoModelForCausalLM[[transformers.AutoModelForCausalLM]]

```python
transformers.AutoModelForCausalLM(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2309)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для каузального языкового моделирования).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForCausalLM.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : The model class to instantiate is selected based on the configuration class:  - [AXK1Config](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1Config) configuration class: [AXK1ForCausalLM](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1ForCausalLM) (AXK1Config model) - [AXK2Config](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2Config) configuration class: [AXK2ForCausalLM](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2ForCausalLM) (AXK2Config model) - [AfmoeConfig](/docs/transformers/main/ru/model_doc/afmoe#transformers.AfmoeConfig) configuration class: [AfmoeForCausalLM](/docs/transformers/main/ru/model_doc/afmoe#transformers.AfmoeForCausalLM) (AfmoeConfig model) - [ApertusConfig](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusConfig) configuration class: [ApertusForCausalLM](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusForCausalLM) (ApertusConfig model) - [ArceeConfig](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeConfig) configuration class: [ArceeForCausalLM](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeForCausalLM) (ArceeConfig model) - [AriaTextConfig](/docs/transformers/main/ru/model_doc/aria#transformers.AriaTextConfig) configuration class: [AriaTextForCausalLM](/docs/transformers/main/ru/model_doc/aria#transformers.AriaTextForCausalLM) (AriaTextConfig model) - [BailingHybridConfig](/docs/transformers/main/ru/model_doc/bailing_hybrid#transformers.BailingHybridConfig) configuration class: [BailingHybridForCausalLM](/docs/transformers/main/ru/model_doc/bailing_hybrid#transformers.BailingHybridForCausalLM) (BailingHybridConfig model) - [BambaConfig](/docs/transformers/main/ru/model_doc/bamba#transformers.BambaConfig) configuration class: [BambaForCausalLM](/docs/transformers/main/ru/model_doc/bamba#transformers.BambaForCausalLM) (BambaConfig model) - [BartConfig](/docs/transformers/main/ru/model_doc/bart#transformers.BartConfig) configuration class: [BartForCausalLM](/docs/transformers/main/ru/model_doc/bart#transformers.BartForCausalLM) (BartConfig model) - [BeamConfig](/docs/transformers/main/ru/model_doc/beam#transformers.BeamConfig) configuration class: [BeamForCausalLM](/docs/transformers/main/ru/model_doc/beam#transformers.BeamForCausalLM) (BeamConfig model) - [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig) configuration class: [BertLMHeadModel](/docs/transformers/main/ru/model_doc/bert#transformers.BertLMHeadModel) (BertConfig model) - [BertGenerationConfig](/docs/transformers/main/ru/model_doc/bert-generation#transformers.BertGenerationConfig) configuration class: [BertGenerationDecoder](/docs/transformers/main/ru/model_doc/bert-generation#transformers.BertGenerationDecoder) (BertGenerationConfig model) - [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig) configuration class: [BigBirdForCausalLM](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForCausalLM) (BigBirdConfig model) - [BigBirdPegasusConfig](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusConfig) configuration class: [BigBirdPegasusForCausalLM](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusForCausalLM) (BigBirdPegasusConfig model) - [BioGptConfig](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptConfig) configuration class: [BioGptForCausalLM](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptForCausalLM) (BioGptConfig model) - [BitNetConfig](/docs/transformers/main/ru/model_doc/bitnet#transformers.BitNetConfig) configuration class: [BitNetForCausalLM](/docs/transformers/main/ru/model_doc/bitnet#transformers.BitNetForCausalLM) (BitNetConfig model) - [BlenderbotConfig](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotConfig) configuration class: [BlenderbotForCausalLM](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotForCausalLM) (BlenderbotConfig model) - [BlenderbotSmallConfig](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallConfig) configuration class: [BlenderbotSmallForCausalLM](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallForCausalLM) (BlenderbotSmallConfig model) - [BloomConfig](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomConfig) configuration class: [BloomForCausalLM](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForCausalLM) (BloomConfig model) - [BltConfig](/docs/transformers/main/ru/model_doc/blt#transformers.BltConfig) configuration class: [BltForCausalLM](/docs/transformers/main/ru/model_doc/blt#transformers.BltForCausalLM) (BltConfig model) - [CTRLConfig](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLConfig) configuration class: [CTRLLMHeadModel](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLLMHeadModel) (CTRLConfig model) - [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig) configuration class: [CamembertForCausalLM](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForCausalLM) (CamembertConfig model) - [CodeGenConfig](/docs/transformers/main/ru/model_doc/codegen#transformers.CodeGenConfig) configuration class: [CodeGenForCausalLM](/docs/transformers/main/ru/model_doc/codegen#transformers.CodeGenForCausalLM) (CodeGenConfig model) - [Cohere2Config](/docs/transformers/main/ru/model_doc/cohere2#transformers.Cohere2Config) configuration class: [Cohere2ForCausalLM](/docs/transformers/main/ru/model_doc/cohere2#transformers.Cohere2ForCausalLM) (Cohere2Config model) - [Cohere2MoeConfig](/docs/transformers/main/ru/model_doc/cohere2_moe#transformers.Cohere2MoeConfig) configuration class: [Cohere2MoeForCausalLM](/docs/transformers/main/ru/model_doc/cohere2_moe#transformers.Cohere2MoeForCausalLM) (Cohere2MoeConfig model) - [CohereCompassTextConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassTextConfig) configuration class: [CohereCompassForCausalLM](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassForCausalLM) (CohereCompassTextConfig model) - [CohereConfig](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereConfig) configuration class: [CohereForCausalLM](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereForCausalLM) (CohereConfig model) - [CpmAntConfig](/docs/transformers/main/ru/model_doc/cpmant#transformers.CpmAntConfig) configuration class: [CpmAntForCausalLM](/docs/transformers/main/ru/model_doc/cpmant#transformers.CpmAntForCausalLM) (CpmAntConfig model) - [CwmConfig](/docs/transformers/main/ru/model_doc/cwm#transformers.CwmConfig) configuration class: [CwmForCausalLM](/docs/transformers/main/ru/model_doc/cwm#transformers.CwmForCausalLM) (CwmConfig model) - [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig) configuration class: [Data2VecTextForCausalLM](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForCausalLM) (Data2VecTextConfig model) - [DbrxConfig](/docs/transformers/main/ru/model_doc/dbrx#transformers.DbrxConfig) configuration class: [DbrxForCausalLM](/docs/transformers/main/ru/model_doc/dbrx#transformers.DbrxForCausalLM) (DbrxConfig model) - [DeepseekV2Config](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2Config) configuration class: [DeepseekV2ForCausalLM](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2ForCausalLM) (DeepseekV2Config model) - [DeepseekV32Config](/docs/transformers/main/ru/model_doc/deepseek_v32#transformers.DeepseekV32Config) configuration class: [DeepseekV32ForCausalLM](/docs/transformers/main/ru/model_doc/deepseek_v32#transformers.DeepseekV32ForCausalLM) (DeepseekV32Config model) - [DeepseekV3Config](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3Config) configuration class: [DeepseekV3ForCausalLM](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3ForCausalLM) (DeepseekV3Config model) - [DeepseekV4Config](/docs/transformers/main/ru/model_doc/deepseek_v4#transformers.DeepseekV4Config) configuration class: [DeepseekV4ForCausalLM](/docs/transformers/main/ru/model_doc/deepseek_v4#transformers.DeepseekV4ForCausalLM) (DeepseekV4Config model) - [DiffLlamaConfig](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaConfig) configuration class: [DiffLlamaForCausalLM](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaForCausalLM) (DiffLlamaConfig model) - [DogeConfig](/docs/transformers/main/ru/model_doc/doge#transformers.DogeConfig) configuration class: [DogeForCausalLM](/docs/transformers/main/ru/model_doc/doge#transformers.DogeForCausalLM) (DogeConfig model) - [Dots1Config](/docs/transformers/main/ru/model_doc/dots1#transformers.Dots1Config) configuration class: [Dots1ForCausalLM](/docs/transformers/main/ru/model_doc/dots1#transformers.Dots1ForCausalLM) (Dots1Config model) - [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig) configuration class: [ElectraForCausalLM](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForCausalLM) (ElectraConfig model) - [Emu3Config](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3Config) configuration class: [Emu3ForCausalLM](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3ForCausalLM) (Emu3Config model) - [Ernie4_5Config](/docs/transformers/main/ru/model_doc/ernie4_5#transformers.Ernie4_5Config) configuration class: [Ernie4_5ForCausalLM](/docs/transformers/main/ru/model_doc/ernie4_5#transformers.Ernie4_5ForCausalLM) (Ernie4_5Config model) - [Ernie4_5_MoeConfig](/docs/transformers/main/ru/model_doc/ernie4_5_moe#transformers.Ernie4_5_MoeConfig) configuration class: [Ernie4_5_MoeForCausalLM](/docs/transformers/main/ru/model_doc/ernie4_5_moe#transformers.Ernie4_5_MoeForCausalLM) (Ernie4_5_MoeConfig model) - [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig) configuration class: [ErnieForCausalLM](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForCausalLM) (ErnieConfig model) - [Exaone4Config](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Config) configuration class: [Exaone4ForCausalLM](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForCausalLM) (Exaone4Config model) - [ExaoneMoeConfig](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeConfig) configuration class: [ExaoneMoeForCausalLM](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeForCausalLM) (ExaoneMoeConfig model) - [FalconConfig](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconConfig) configuration class: [FalconForCausalLM](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconForCausalLM) (FalconConfig model) - [FalconH1Config](/docs/transformers/main/ru/model_doc/falcon_h1#transformers.FalconH1Config) configuration class: [FalconH1ForCausalLM](/docs/transformers/main/ru/model_doc/falcon_h1#transformers.FalconH1ForCausalLM) (FalconH1Config model) - [FalconMambaConfig](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaConfig) configuration class: [FalconMambaForCausalLM](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaForCausalLM) (FalconMambaConfig model) - [FlexOlmoConfig](/docs/transformers/main/ru/model_doc/flex_olmo#transformers.FlexOlmoConfig) configuration class: [FlexOlmoForCausalLM](/docs/transformers/main/ru/model_doc/flex_olmo#transformers.FlexOlmoForCausalLM) (FlexOlmoConfig model) - [FlintConfig](/docs/transformers/main/ru/model_doc/flint#transformers.FlintConfig) configuration class: [FlintForCausalLM](/docs/transformers/main/ru/model_doc/flint#transformers.FlintForCausalLM) (FlintConfig model) - [FuyuConfig](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuConfig) configuration class: [FuyuForCausalLM](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuForCausalLM) (FuyuConfig model) - [GPT2Config](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Config) configuration class: [GPT2LMHeadModel](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2LMHeadModel) (GPT2Config model) - [GPTBigCodeConfig](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeConfig) configuration class: [GPTBigCodeForCausalLM](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeForCausalLM) (GPTBigCodeConfig model) - [GPTJConfig](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJConfig) configuration class: [GPTJForCausalLM](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJForCausalLM) (GPTJConfig model) - [GPTNeoConfig](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoConfig) configuration class: [GPTNeoForCausalLM](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoForCausalLM) (GPTNeoConfig model) - [GPTNeoXConfig](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXConfig) configuration class: [GPTNeoXForCausalLM](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXForCausalLM) (GPTNeoXConfig model) - [GPTNeoXJapaneseConfig](/docs/transformers/main/ru/model_doc/gpt_neox_japanese#transformers.GPTNeoXJapaneseConfig) configuration class: [GPTNeoXJapaneseForCausalLM](/docs/transformers/main/ru/model_doc/gpt_neox_japanese#transformers.GPTNeoXJapaneseForCausalLM) (GPTNeoXJapaneseConfig model) - [Gemma2Config](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2Config) configuration class: [Gemma2ForCausalLM](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2ForCausalLM) (Gemma2Config model) - [Gemma3Config](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Config) configuration class: [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (Gemma3Config model) - [Gemma3TextConfig](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3TextConfig) configuration class: [Gemma3ForCausalLM](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForCausalLM) (Gemma3TextConfig model) - [Gemma3nConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nConfig) configuration class: [Gemma3nForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nForConditionalGeneration) (Gemma3nConfig model) - [Gemma3nTextConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nTextConfig) configuration class: [Gemma3nForCausalLM](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nForCausalLM) (Gemma3nTextConfig model) - [Gemma4AssistantConfig](/docs/transformers/main/ru/model_doc/gemma4_assistant#transformers.Gemma4AssistantConfig) configuration class: [Gemma4AssistantForCausalLM](/docs/transformers/main/ru/model_doc/gemma4_assistant#transformers.Gemma4AssistantForCausalLM) (Gemma4AssistantConfig model) - [Gemma4Config](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Config) configuration class: [Gemma4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForConditionalGeneration) (Gemma4Config model) - [Gemma4TextConfig](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4TextConfig) configuration class: [Gemma4ForCausalLM](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForCausalLM) (Gemma4TextConfig model) - [Gemma4UnifiedAssistantConfig](/docs/transformers/main/ru/model_doc/gemma4_unified_assistant#transformers.Gemma4UnifiedAssistantConfig) configuration class: [Gemma4UnifiedAssistantForCausalLM](/docs/transformers/main/ru/model_doc/gemma4_unified_assistant#transformers.Gemma4UnifiedAssistantForCausalLM) (Gemma4UnifiedAssistantConfig model) - [Gemma4UnifiedConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedConfig) configuration class: [Gemma4UnifiedForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForConditionalGeneration) (Gemma4UnifiedConfig model) - [Gemma4UnifiedTextConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedTextConfig) configuration class: [Gemma4UnifiedForCausalLM](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForCausalLM) (Gemma4UnifiedTextConfig model) - [GemmaConfig](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaConfig) configuration class: [GemmaForCausalLM](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaForCausalLM) (GemmaConfig model) - [GitConfig](/docs/transformers/main/ru/model_doc/git#transformers.GitConfig) configuration class: [GitForCausalLM](/docs/transformers/main/ru/model_doc/git#transformers.GitForCausalLM) (GitConfig model) - [Glm4Config](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4Config) configuration class: [Glm4ForCausalLM](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4ForCausalLM) (Glm4Config model) - [Glm4MoeConfig](/docs/transformers/main/ru/model_doc/glm4_moe#transformers.Glm4MoeConfig) configuration class: [Glm4MoeForCausalLM](/docs/transformers/main/ru/model_doc/glm4_moe#transformers.Glm4MoeForCausalLM) (Glm4MoeConfig model) - [Glm4MoeLiteConfig](/docs/transformers/main/ru/model_doc/glm4_moe_lite#transformers.Glm4MoeLiteConfig) configuration class: [Glm4MoeLiteForCausalLM](/docs/transformers/main/ru/model_doc/glm4_moe_lite#transformers.Glm4MoeLiteForCausalLM) (Glm4MoeLiteConfig model) - [GlmConfig](/docs/transformers/main/ru/model_doc/glm#transformers.GlmConfig) configuration class: [GlmForCausalLM](/docs/transformers/main/ru/model_doc/glm#transformers.GlmForCausalLM) (GlmConfig model) - [GlmMoeDsaConfig](/docs/transformers/main/ru/model_doc/glm_moe_dsa#transformers.GlmMoeDsaConfig) configuration class: [GlmMoeDsaForCausalLM](/docs/transformers/main/ru/model_doc/glm_moe_dsa#transformers.GlmMoeDsaForCausalLM) (GlmMoeDsaConfig model) - [GotOcr2Config](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2Config) configuration class: [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (GotOcr2Config model) - [GptOssConfig](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssConfig) configuration class: [GptOssForCausalLM](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssForCausalLM) (GptOssConfig model) - [GraniteConfig](/docs/transformers/main/ru/model_doc/granite#transformers.GraniteConfig) configuration class: [GraniteForCausalLM](/docs/transformers/main/ru/model_doc/granite#transformers.GraniteForCausalLM) (GraniteConfig model) - [GraniteMoeConfig](/docs/transformers/main/ru/model_doc/granitemoe#transformers.GraniteMoeConfig) configuration class: [GraniteMoeForCausalLM](/docs/transformers/main/ru/model_doc/granitemoe#transformers.GraniteMoeForCausalLM) (GraniteMoeConfig model) - [GraniteMoeHybridConfig](/docs/transformers/main/ru/model_doc/granitemoehybrid#transformers.GraniteMoeHybridConfig) configuration class: [GraniteMoeHybridForCausalLM](/docs/transformers/main/ru/model_doc/granitemoehybrid#transformers.GraniteMoeHybridForCausalLM) (GraniteMoeHybridConfig model) - [GraniteMoeSWAConfig](/docs/transformers/main/ru/model_doc/granitemoe_swa#transformers.GraniteMoeSWAConfig) configuration class: [GraniteMoeSWAForCausalLM](/docs/transformers/main/ru/model_doc/granitemoe_swa#transformers.GraniteMoeSWAForCausalLM) (GraniteMoeSWAConfig model) - [GraniteMoeSharedConfig](/docs/transformers/main/ru/model_doc/granitemoeshared#transformers.GraniteMoeSharedConfig) configuration class: [GraniteMoeSharedForCausalLM](/docs/transformers/main/ru/model_doc/granitemoeshared#transformers.GraniteMoeSharedForCausalLM) (GraniteMoeSharedConfig model) - [GraniteSWAConfig](/docs/transformers/main/ru/model_doc/granite_swa#transformers.GraniteSWAConfig) configuration class: [GraniteSWAForCausalLM](/docs/transformers/main/ru/model_doc/granite_swa#transformers.GraniteSWAForCausalLM) (GraniteSWAConfig model) - [HYV3Config](/docs/transformers/main/ru/model_doc/hy_v3#transformers.HYV3Config) configuration class: [HYV3ForCausalLM](/docs/transformers/main/ru/model_doc/hy_v3#transformers.HYV3ForCausalLM) (HYV3Config model) - [HYV4Config](/docs/transformers/main/ru/model_doc/hy_v4#transformers.HYV4Config) configuration class: [HYV4ForCausalLM](/docs/transformers/main/ru/model_doc/hy_v4#transformers.HYV4ForCausalLM) (HYV4Config model) - [HeliumConfig](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumConfig) configuration class: [HeliumForCausalLM](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumForCausalLM) (HeliumConfig model) - [HrmTextConfig](/docs/transformers/main/ru/model_doc/hrm_text#transformers.HrmTextConfig) configuration class: [HrmTextForCausalLM](/docs/transformers/main/ru/model_doc/hrm_text#transformers.HrmTextForCausalLM) (HrmTextConfig model) - [HunYuanDenseV1Config](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1Config) configuration class: [HunYuanDenseV1ForCausalLM](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1ForCausalLM) (HunYuanDenseV1Config model) - [HunYuanMoEV1Config](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1Config) configuration class: [HunYuanMoEV1ForCausalLM](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1ForCausalLM) (HunYuanMoEV1Config model) - [HyperCLOVAXConfig](/docs/transformers/main/ru/model_doc/hyperclovax#transformers.HyperCLOVAXConfig) configuration class: [HyperCLOVAXForCausalLM](/docs/transformers/main/ru/model_doc/hyperclovax#transformers.HyperCLOVAXForCausalLM) (HyperCLOVAXConfig model) - [InklingTextConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingTextConfig) configuration class: [InklingForCausalLM](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingForCausalLM) (InklingTextConfig model) - [Jais2Config](/docs/transformers/main/ru/model_doc/jais2#transformers.Jais2Config) configuration class: [Jais2ForCausalLM](/docs/transformers/main/ru/model_doc/jais2#transformers.Jais2ForCausalLM) (Jais2Config model) - [JambaConfig](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaConfig) configuration class: [JambaForCausalLM](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaForCausalLM) (JambaConfig model) - [JetMoeConfig](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeConfig) configuration class: [JetMoeForCausalLM](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeForCausalLM) (JetMoeConfig model) - [KimiLinearConfig](/docs/transformers/main/ru/model_doc/kimi_linear#transformers.KimiLinearConfig) configuration class: [KimiLinearForCausalLM](/docs/transformers/main/ru/model_doc/kimi_linear#transformers.KimiLinearForCausalLM) (KimiLinearConfig model) - [Kolibri1Config](/docs/transformers/main/ru/model_doc/kolibri1#transformers.Kolibri1Config) configuration class: [Kolibri1ForCausalLM](/docs/transformers/main/ru/model_doc/kolibri1#transformers.Kolibri1ForCausalLM) (Kolibri1Config model) - [LagunaConfig](/docs/transformers/main/ru/model_doc/laguna#transformers.LagunaConfig) configuration class: [LagunaForCausalLM](/docs/transformers/main/ru/model_doc/laguna#transformers.LagunaForCausalLM) (LagunaConfig model) - [Lfm2Config](/docs/transformers/main/ru/model_doc/lfm2#transformers.Lfm2Config) configuration class: [Lfm2ForCausalLM](/docs/transformers/main/ru/model_doc/lfm2#transformers.Lfm2ForCausalLM) (Lfm2Config model) - [Lfm2MoeConfig](/docs/transformers/main/ru/model_doc/lfm2_moe#transformers.Lfm2MoeConfig) configuration class: [Lfm2MoeForCausalLM](/docs/transformers/main/ru/model_doc/lfm2_moe#transformers.Lfm2MoeForCausalLM) (Lfm2MoeConfig model) - [Llama4Config](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4Config) configuration class: [Llama4ForCausalLM](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForCausalLM) (Llama4Config model) - [Llama4TextConfig](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4TextConfig) configuration class: [Llama4ForCausalLM](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForCausalLM) (Llama4TextConfig model) - [LlamaConfig](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaConfig) configuration class: [LlamaForCausalLM](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaForCausalLM) (LlamaConfig model) - [LongcatFlashConfig](/docs/transformers/main/ru/model_doc/longcat_flash#transformers.LongcatFlashConfig) configuration class: [LongcatFlashForCausalLM](/docs/transformers/main/ru/model_doc/longcat_flash#transformers.LongcatFlashForCausalLM) (LongcatFlashConfig model) - [MBartConfig](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartConfig) configuration class: [MBartForCausalLM](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForCausalLM) (MBartConfig model) - [Mamba2Config](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2Config) configuration class: [Mamba2ForCausalLM](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2ForCausalLM) (Mamba2Config model) - [MambaConfig](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaConfig) configuration class: [MambaForCausalLM](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaForCausalLM) (MambaConfig model) - [MarianConfig](/docs/transformers/main/ru/model_doc/marian#transformers.MarianConfig) configuration class: [MarianForCausalLM](/docs/transformers/main/ru/model_doc/marian#transformers.MarianForCausalLM) (MarianConfig model) - [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig) configuration class: [MegatronBertForCausalLM](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForCausalLM) (MegatronBertConfig model) - [MellumConfig](/docs/transformers/main/ru/model_doc/mellum#transformers.MellumConfig) configuration class: [MellumForCausalLM](/docs/transformers/main/ru/model_doc/mellum#transformers.MellumForCausalLM) (MellumConfig model) - [MiMoV2FlashConfig](/docs/transformers/main/ru/model_doc/mimo_v2_flash#transformers.MiMoV2FlashConfig) configuration class: [MiMoV2FlashForCausalLM](/docs/transformers/main/ru/model_doc/mimo_v2_flash#transformers.MiMoV2FlashForCausalLM) (MiMoV2FlashConfig model) - [MiniCPM3Config](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3Config) configuration class: [MiniCPM3ForCausalLM](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3ForCausalLM) (MiniCPM3Config model) - [MiniMaxConfig](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxConfig) configuration class: [MiniMaxForCausalLM](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxForCausalLM) (MiniMaxConfig model) - [MiniMaxM2Config](/docs/transformers/main/ru/model_doc/minimax_m2#transformers.MiniMaxM2Config) configuration class: [MiniMaxM2ForCausalLM](/docs/transformers/main/ru/model_doc/minimax_m2#transformers.MiniMaxM2ForCausalLM) (MiniMaxM2Config model) - [MiniMaxM3VLTextConfig](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLTextConfig) configuration class: [MiniMaxM3VLForCausalLM](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLForCausalLM) (MiniMaxM3VLTextConfig model) - [Ministral3Config](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3Config) configuration class: [Ministral3ForCausalLM](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3ForCausalLM) (Ministral3Config model) - [MinistralConfig](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralConfig) configuration class: [MinistralForCausalLM](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralForCausalLM) (MinistralConfig model) - [MistralConfig](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralConfig) configuration class: [MistralForCausalLM](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralForCausalLM) (MistralConfig model) - [MixtralConfig](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralConfig) configuration class: [MixtralForCausalLM](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralForCausalLM) (MixtralConfig model) - [MllamaConfig](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaConfig) configuration class: [MllamaForCausalLM](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaForCausalLM) (MllamaConfig model) - [ModernBertDecoderConfig](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderConfig) configuration class: [ModernBertDecoderForCausalLM](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderForCausalLM) (ModernBertDecoderConfig model) - [MoshiConfig](/docs/transformers/main/ru/model_doc/moshi#transformers.MoshiConfig) configuration class: [MoshiForCausalLM](/docs/transformers/main/ru/model_doc/moshi#transformers.MoshiForCausalLM) (MoshiConfig model) - [MossTranscribeDiarizeConfig](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeConfig) configuration class: [MossTranscribeDiarizeForConditionalGeneration](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeForConditionalGeneration) (MossTranscribeDiarizeConfig model) - [MptConfig](/docs/transformers/main/ru/model_doc/mpt#transformers.MptConfig) configuration class: [MptForCausalLM](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForCausalLM) (MptConfig model) - [MusicgenConfig](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenConfig) configuration class: [MusicgenForCausalLM](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenForCausalLM) (MusicgenConfig model) - [MusicgenMelodyConfig](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyConfig) configuration class: [MusicgenMelodyForCausalLM](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyForCausalLM) (MusicgenMelodyConfig model) - [MvpConfig](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpConfig) configuration class: [MvpForCausalLM](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForCausalLM) (MvpConfig model) - [NanoChatConfig](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatConfig) configuration class: [NanoChatForCausalLM](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatForCausalLM) (NanoChatConfig model) - [NemotronConfig](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronConfig) configuration class: [NemotronForCausalLM](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronForCausalLM) (NemotronConfig model) - [NemotronHConfig](/docs/transformers/main/ru/model_doc/nemotron_h#transformers.NemotronHConfig) configuration class: [NemotronHForCausalLM](/docs/transformers/main/ru/model_doc/nemotron_h#transformers.NemotronHForCausalLM) (NemotronHConfig model) - [OPTConfig](/docs/transformers/main/ru/model_doc/opt#transformers.OPTConfig) configuration class: [OPTForCausalLM](/docs/transformers/main/ru/model_doc/opt#transformers.OPTForCausalLM) (OPTConfig model) - [Olmo2Config](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2Config) configuration class: [Olmo2ForCausalLM](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2ForCausalLM) (Olmo2Config model) - [Olmo3Config](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3Config) configuration class: [Olmo3ForCausalLM](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3ForCausalLM) (Olmo3Config model) - [OlmoConfig](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoConfig) configuration class: [OlmoForCausalLM](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoForCausalLM) (OlmoConfig model) - [OlmoHybridConfig](/docs/transformers/main/ru/model_doc/olmo_hybrid#transformers.OlmoHybridConfig) configuration class: [OlmoHybridForCausalLM](/docs/transformers/main/ru/model_doc/olmo_hybrid#transformers.OlmoHybridForCausalLM) (OlmoHybridConfig model) - [OlmoeConfig](/docs/transformers/main/ru/model_doc/olmoe#transformers.OlmoeConfig) configuration class: [OlmoeForCausalLM](/docs/transformers/main/ru/model_doc/olmoe#transformers.OlmoeForCausalLM) (OlmoeConfig model) - [OpenAIGPTConfig](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTConfig) configuration class: [OpenAIGPTLMHeadModel](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTLMHeadModel) (OpenAIGPTConfig model) - [PLBartConfig](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartConfig) configuration class: [PLBartForCausalLM](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartForCausalLM) (PLBartConfig model) - [PegasusConfig](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusConfig) configuration class: [PegasusForCausalLM](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusForCausalLM) (PegasusConfig model) - [PersimmonConfig](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonConfig) configuration class: [PersimmonForCausalLM](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonForCausalLM) (PersimmonConfig model) - [Phi3Config](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3Config) configuration class: [Phi3ForCausalLM](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3ForCausalLM) (Phi3Config model) - [Phi4MultimodalConfig](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalConfig) configuration class: [Phi4MultimodalForCausalLM](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalForCausalLM) (Phi4MultimodalConfig model) - [PhiConfig](/docs/transformers/main/ru/model_doc/phi#transformers.PhiConfig) configuration class: [PhiForCausalLM](/docs/transformers/main/ru/model_doc/phi#transformers.PhiForCausalLM) (PhiConfig model) - [PhimoeConfig](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeConfig) configuration class: [PhimoeForCausalLM](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeForCausalLM) (PhimoeConfig model) - [ProphetNetConfig](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetConfig) configuration class: [ProphetNetForCausalLM](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetForCausalLM) (ProphetNetConfig model) - [Qwen2Config](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Config) configuration class: [Qwen2ForCausalLM](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2ForCausalLM) (Qwen2Config model) - [Qwen2MoeConfig](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeConfig) configuration class: [Qwen2MoeForCausalLM](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeForCausalLM) (Qwen2MoeConfig model) - [Qwen3Config](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3Config) configuration class: [Qwen3ForCausalLM](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3ForCausalLM) (Qwen3Config model) - [Qwen3MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeConfig) configuration class: [Qwen3MoeForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeForCausalLM) (Qwen3MoeConfig model) - [Qwen3NextConfig](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextConfig) configuration class: [Qwen3NextForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextForCausalLM) (Qwen3NextConfig model) - [Qwen3_5Config](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Config) configuration class: [Qwen3_5ForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForCausalLM) (Qwen3_5Config model) - [Qwen3_5MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeConfig) configuration class: [Qwen3_5MoeForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeForCausalLM) (Qwen3_5MoeConfig model) - [Qwen3_5MoeTextConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeTextConfig) configuration class: [Qwen3_5MoeForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeForCausalLM) (Qwen3_5MoeTextConfig model) - [Qwen3_5TextConfig](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5TextConfig) configuration class: [Qwen3_5ForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForCausalLM) (Qwen3_5TextConfig model) - [Qwen4ExpConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpConfig) configuration class: [Qwen4ExpForCausalLM](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpForCausalLM) (Qwen4ExpConfig model) - [Qwen4ExpTextConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpTextConfig) configuration class: [Qwen4ExpForCausalLM](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpForCausalLM) (Qwen4ExpTextConfig model) - [RecurrentGemmaConfig](/docs/transformers/main/ru/model_doc/recurrent_gemma#transformers.RecurrentGemmaConfig) configuration class: [RecurrentGemmaForCausalLM](/docs/transformers/main/ru/model_doc/recurrent_gemma#transformers.RecurrentGemmaForCausalLM) (RecurrentGemmaConfig model) - [ReformerConfig](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerConfig) configuration class: [ReformerModelWithLMHead](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerModelWithLMHead) (ReformerConfig model) - [RemBertConfig](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertConfig) configuration class: [RemBertForCausalLM](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForCausalLM) (RemBertConfig model) - [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig) configuration class: [RoCBertForCausalLM](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForCausalLM) (RoCBertConfig model) - [RoFormerConfig](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerConfig) configuration class: [RoFormerForCausalLM](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForCausalLM) (RoFormerConfig model) - [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig) configuration class: [RobertaForCausalLM](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForCausalLM) (RobertaConfig model) - [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig) configuration class: [RobertaPreLayerNormForCausalLM](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForCausalLM) (RobertaPreLayerNormConfig model) - [RwkvConfig](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvConfig) configuration class: [RwkvForCausalLM](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvForCausalLM) (RwkvConfig model) - [SeedOssConfig](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssConfig) configuration class: [SeedOssForCausalLM](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssForCausalLM) (SeedOssConfig model) - [SmolLM3Config](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3Config) configuration class: [SmolLM3ForCausalLM](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3ForCausalLM) (SmolLM3Config model) - [SolarOpenConfig](/docs/transformers/main/ru/model_doc/solar_open#transformers.SolarOpenConfig) configuration class: [SolarOpenForCausalLM](/docs/transformers/main/ru/model_doc/solar_open#transformers.SolarOpenForCausalLM) (SolarOpenConfig model) - [StableLmConfig](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmConfig) configuration class: [StableLmForCausalLM](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmForCausalLM) (StableLmConfig model) - [Starcoder2Config](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2Config) configuration class: [Starcoder2ForCausalLM](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2ForCausalLM) (Starcoder2Config model) - [TrOCRConfig](/docs/transformers/main/ru/model_doc/trocr#transformers.TrOCRConfig) configuration class: [TrOCRForCausalLM](/docs/transformers/main/ru/model_doc/trocr#transformers.TrOCRForCausalLM) (TrOCRConfig model) - [VaultGemmaConfig](/docs/transformers/main/ru/model_doc/vaultgemma#transformers.VaultGemmaConfig) configuration class: [VaultGemmaForCausalLM](/docs/transformers/main/ru/model_doc/vaultgemma#transformers.VaultGemmaForCausalLM) (VaultGemmaConfig model) - [WhisperConfig](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperConfig) configuration class: [WhisperForCausalLM](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperForCausalLM) (WhisperConfig model) - [XGLMConfig](/docs/transformers/main/ru/model_doc/xglm#transformers.XGLMConfig) configuration class: [XGLMForCausalLM](/docs/transformers/main/ru/model_doc/xglm#transformers.XGLMForCausalLM) (XGLMConfig model) - [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig) configuration class: [XLMWithLMHeadModel](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMWithLMHeadModel) (XLMConfig model) - [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig) configuration class: [XLMRobertaForCausalLM](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForCausalLM) (XLMRobertaConfig model) - [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig) configuration class: [XLMRobertaXLForCausalLM](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForCausalLM) (XLMRobertaXLConfig model) - [XLNetConfig](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetConfig) configuration class: [XLNetLMHeadModel](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetLMHeadModel) (XLNetConfig model) - [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig) configuration class: [XmodForCausalLM](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForCausalLM) (XmodConfig model) - [YoutuConfig](/docs/transformers/main/ru/model_doc/youtu#transformers.YoutuConfig) configuration class: [YoutuForCausalLM](/docs/transformers/main/ru/model_doc/youtu#transformers.YoutuForCausalLM) (YoutuConfig model) - [Zamba2Config](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2Config) configuration class: [Zamba2ForCausalLM](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2ForCausalLM) (Zamba2Config model) - [ZambaConfig](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaConfig) configuration class: [ZambaForCausalLM](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaForCausalLM) (ZambaConfig model) - [ZayaConfig](/docs/transformers/main/ru/model_doc/zaya#transformers.ZayaConfig) configuration class: [ZayaForCausalLM](/docs/transformers/main/ru/model_doc/zaya#transformers.ZayaForCausalLM) (ZayaConfig model) - [xLSTMConfig](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMConfig) configuration class: [xLSTMForCausalLM](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMForCausalLM) (xLSTMConfig model)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для каузального моделирования языка) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForCausalLM

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForCausalLM.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForCausalLM.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с заголовком для каузального языкового моделирования) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **afmoe** -- [AfmoeForCausalLM](/docs/transformers/main/ru/model_doc/afmoe#transformers.AfmoeForCausalLM) (модель AfmoeConfig)
- **apertus** -- [ApertusForCausalLM](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusForCausalLM) (модель ApertusConfig)
- **arcee** -- [ArceeForCausalLM](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeForCausalLM) (модель ArceeConfig)
- **aria_text** -- [AriaTextForCausalLM](/docs/transformers/main/ru/model_doc/aria#transformers.AriaTextForCausalLM) (модель AriaTextConfig)
- **axk1** -- [AXK1ForCausalLM](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1ForCausalLM) (модель AXK1Config)
- **axk2** -- [AXK2ForCausalLM](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2ForCausalLM) (модель AXK2Config)
- **bailing_hybrid** -- [BailingHybridForCausalLM](/docs/transformers/main/ru/model_doc/bailing_hybrid#transformers.BailingHybridForCausalLM) (модель BailingHybridConfig)
- **bamba** -- [BambaForCausalLM](/docs/transformers/main/ru/model_doc/bamba#transformers.BambaForCausalLM) (модель BambaConfig)
- **bart** -- [BartForCausalLM](/docs/transformers/main/ru/model_doc/bart#transformers.BartForCausalLM) (модель BartConfig)
- **beam** -- [BeamForCausalLM](/docs/transformers/main/ru/model_doc/beam#transformers.BeamForCausalLM) (модель BeamConfig)
- **bert** -- [BertLMHeadModel](/docs/transformers/main/ru/model_doc/bert#transformers.BertLMHeadModel) (модель BertConfig)
- **bert-generation** -- [BertGenerationDecoder](/docs/transformers/main/ru/model_doc/bert-generation#transformers.BertGenerationDecoder) (модель BertGenerationConfig)
- **big_bird** -- [BigBirdForCausalLM](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForCausalLM) (модель BigBirdConfig)
- **bigbird_pegasus** -- [BigBirdPegasusForCausalLM](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusForCausalLM) (модель BigBirdPegasusConfig)
- **biogpt** -- [BioGptForCausalLM](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptForCausalLM) (модель BioGptConfig)
- **bitnet** -- [BitNetForCausalLM](/docs/transformers/main/ru/model_doc/bitnet#transformers.BitNetForCausalLM) (модель BitNetConfig)
- **blenderbot** -- [BlenderbotForCausalLM](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotForCausalLM) (модель BlenderbotConfig)
- **blenderbot-small** -- [BlenderbotSmallForCausalLM](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallForCausalLM) (модель BlenderbotSmallConfig)
- **bloom** -- [BloomForCausalLM](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForCausalLM) (модель BloomConfig)
- **blt** -- [BltForCausalLM](/docs/transformers/main/ru/model_doc/blt#transformers.BltForCausalLM) (модель BltConfig)
- **camembert** -- [CamembertForCausalLM](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForCausalLM) (модель CamembertConfig)
- **codegen** -- [CodeGenForCausalLM](/docs/transformers/main/ru/model_doc/codegen#transformers.CodeGenForCausalLM) (модель CodeGenConfig)
- **cohere** -- [CohereForCausalLM](/docs/transformers/main/ru/model_doc/cohere#transformers.CohereForCausalLM) (модель CohereConfig)
- **cohere2** -- [Cohere2ForCausalLM](/docs/transformers/main/ru/model_doc/cohere2#transformers.Cohere2ForCausalLM) (модель Cohere2Config)
- **cohere2_moe** -- [Cohere2MoeForCausalLM](/docs/transformers/main/ru/model_doc/cohere2_moe#transformers.Cohere2MoeForCausalLM) (модель Cohere2MoeConfig)
- **cohere_compass_text** -- [CohereCompassForCausalLM](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassForCausalLM) (модель CohereCompassTextConfig)
- **cpmant** -- [CpmAntForCausalLM](/docs/transformers/main/ru/model_doc/cpmant#transformers.CpmAntForCausalLM) (модель CpmAntConfig)
- **ctrl** -- [CTRLLMHeadModel](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLLMHeadModel) (модель CTRLConfig)
- **cwm** -- [CwmForCausalLM](/docs/transformers/main/ru/model_doc/cwm#transformers.CwmForCausalLM) (модель CwmConfig)
- **data2vec-text** -- [Data2VecTextForCausalLM](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForCausalLM) (модель Data2VecTextConfig)
- **dbrx** -- [DbrxForCausalLM](/docs/transformers/main/ru/model_doc/dbrx#transformers.DbrxForCausalLM) (модель DbrxConfig)
- **deepseek_v2** -- [DeepseekV2ForCausalLM](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2ForCausalLM) (модель DeepseekV2Config)
- **deepseek_v3** -- [DeepseekV3ForCausalLM](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3ForCausalLM) (модель DeepseekV3Config)
- **deepseek_v32** -- [DeepseekV32ForCausalLM](/docs/transformers/main/ru/model_doc/deepseek_v32#transformers.DeepseekV32ForCausalLM) (модель DeepseekV32Config)
- **deepseek_v4** -- [DeepseekV4ForCausalLM](/docs/transformers/main/ru/model_doc/deepseek_v4#transformers.DeepseekV4ForCausalLM) (модель DeepseekV4Config)
- **diffllama** -- [DiffLlamaForCausalLM](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaForCausalLM) (модель DiffLlamaConfig)
- **doge** -- [DogeForCausalLM](/docs/transformers/main/ru/model_doc/doge#transformers.DogeForCausalLM) (модель DogeConfig)
- **dots1** -- [Dots1ForCausalLM](/docs/transformers/main/ru/model_doc/dots1#transformers.Dots1ForCausalLM) (модель Dots1Config)
- **electra** -- [ElectraForCausalLM](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForCausalLM) (модель ElectraConfig)
- **emu3** -- [Emu3ForCausalLM](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3ForCausalLM) (модель Emu3Config)
- **ernie** -- [ErnieForCausalLM](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForCausalLM) (модель ErnieConfig)
- **ernie4_5** -- [Ernie4_5ForCausalLM](/docs/transformers/main/ru/model_doc/ernie4_5#transformers.Ernie4_5ForCausalLM) (модель Ernie4_5Config)
- **ernie4_5_moe** -- [Ernie4_5_MoeForCausalLM](/docs/transformers/main/ru/model_doc/ernie4_5_moe#transformers.Ernie4_5_MoeForCausalLM) (модель Ernie4_5_MoeConfig)
- **exaone4** -- [Exaone4ForCausalLM](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForCausalLM) (модель Exaone4Config)
- **exaone_moe** -- [ExaoneMoeForCausalLM](/docs/transformers/main/ru/model_doc/exaone_moe#transformers.ExaoneMoeForCausalLM) (модель ExaoneMoeConfig)
- **falcon** -- [FalconForCausalLM](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconForCausalLM) (модель FalconConfig)
- **falcon_h1** -- [FalconH1ForCausalLM](/docs/transformers/main/ru/model_doc/falcon_h1#transformers.FalconH1ForCausalLM) (модель FalconH1Config)
- **falcon_mamba** -- [FalconMambaForCausalLM](/docs/transformers/main/ru/model_doc/falcon_mamba#transformers.FalconMambaForCausalLM) (модель FalconMambaConfig)
- **flex_olmo** -- [FlexOlmoForCausalLM](/docs/transformers/main/ru/model_doc/flex_olmo#transformers.FlexOlmoForCausalLM) (модель FlexOlmoConfig)
- **flint** -- [FlintForCausalLM](/docs/transformers/main/ru/model_doc/flint#transformers.FlintForCausalLM) (модель FlintConfig)
- **fuyu** -- [FuyuForCausalLM](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuForCausalLM) (модель FuyuConfig)
- **gemma** -- [GemmaForCausalLM](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaForCausalLM) (модель GemmaConfig)
- **gemma2** -- [Gemma2ForCausalLM](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2ForCausalLM) (модель Gemma2Config)
- **gemma3** -- [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (модель Gemma3Config)
- **gemma3_text** -- [Gemma3ForCausalLM](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForCausalLM) (модель Gemma3TextConfig)
- **gemma3n** -- [Gemma3nForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nForConditionalGeneration) (модель Gemma3nConfig)
- **gemma3n_text** -- [Gemma3nForCausalLM](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nForCausalLM) (модель Gemma3nTextConfig)
- **gemma4** -- [Gemma4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForConditionalGeneration) (модель Gemma4Config)
- **gemma4_assistant** -- [Gemma4AssistantForCausalLM](/docs/transformers/main/ru/model_doc/gemma4_assistant#transformers.Gemma4AssistantForCausalLM) (модель Gemma4AssistantConfig)
- **gemma4_text** -- [Gemma4ForCausalLM](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForCausalLM) (модель Gemma4TextConfig)
- **gemma4_unified** -- [Gemma4UnifiedForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForConditionalGeneration) (модель Gemma4UnifiedConfig)
- **gemma4_unified_assistant** -- [Gemma4UnifiedAssistantForCausalLM](/docs/transformers/main/ru/model_doc/gemma4_unified_assistant#transformers.Gemma4UnifiedAssistantForCausalLM) (модель Gemma4UnifiedAssistantConfig)
- **gemma4_unified_text** -- [Gemma4UnifiedForCausalLM](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForCausalLM) (модель Gemma4UnifiedTextConfig)
- **git** -- [GitForCausalLM](/docs/transformers/main/ru/model_doc/git#transformers.GitForCausalLM) (модель GitConfig)
- **glm** -- [GlmForCausalLM](/docs/transformers/main/ru/model_doc/glm#transformers.GlmForCausalLM) (модель GlmConfig)
- **glm4** -- [Glm4ForCausalLM](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4ForCausalLM) (модель Glm4Config)
- **glm4_moe** -- [Glm4MoeForCausalLM](/docs/transformers/main/ru/model_doc/glm4_moe#transformers.Glm4MoeForCausalLM) (модель Glm4MoeConfig)
- **glm4_moe_lite** -- [Glm4MoeLiteForCausalLM](/docs/transformers/main/ru/model_doc/glm4_moe_lite#transformers.Glm4MoeLiteForCausalLM) (модель Glm4MoeLiteConfig)
- **glm_moe_dsa** -- [GlmMoeDsaForCausalLM](/docs/transformers/main/ru/model_doc/glm_moe_dsa#transformers.GlmMoeDsaForCausalLM) (модель GlmMoeDsaConfig)
- **got_ocr2** -- [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (модель GotOcr2Config)
- **gpt-sw3** -- [GPT2LMHeadModel](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2LMHeadModel) (модель GPT2Config)
- **gpt2** -- [GPT2LMHeadModel](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2LMHeadModel) (модель GPT2Config)
- **gpt_bigcode** -- [GPTBigCodeForCausalLM](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeForCausalLM) (модель GPTBigCodeConfig)
- **gpt_neo** -- [GPTNeoForCausalLM](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoForCausalLM) (модель GPTNeoConfig)
- **gpt_neox** -- [GPTNeoXForCausalLM](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXForCausalLM) (модель GPTNeoXConfig)
- **gpt_neox_japanese** -- [GPTNeoXJapaneseForCausalLM](/docs/transformers/main/ru/model_doc/gpt_neox_japanese#transformers.GPTNeoXJapaneseForCausalLM) (модель GPTNeoXJapaneseConfig)
- **gpt_oss** -- [GptOssForCausalLM](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssForCausalLM) (модель GptOssConfig)
- **gptj** -- [GPTJForCausalLM](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJForCausalLM) (модель GPTJConfig)
- **granite** -- [GraniteForCausalLM](/docs/transformers/main/ru/model_doc/granite#transformers.GraniteForCausalLM) (модель GraniteConfig)
- **granite_swa** -- [GraniteSWAForCausalLM](/docs/transformers/main/ru/model_doc/granite_swa#transformers.GraniteSWAForCausalLM) (модель GraniteSWAConfig)
- **granitemoe** -- [GraniteMoeForCausalLM](/docs/transformers/main/ru/model_doc/granitemoe#transformers.GraniteMoeForCausalLM) (модель GraniteMoeConfig)
- **granitemoe_swa** -- [GraniteMoeSWAForCausalLM](/docs/transformers/main/ru/model_doc/granitemoe_swa#transformers.GraniteMoeSWAForCausalLM) (модель GraniteMoeSWAConfig)
- **granitemoehybrid** -- [GraniteMoeHybridForCausalLM](/docs/transformers/main/ru/model_doc/granitemoehybrid#transformers.GraniteMoeHybridForCausalLM) (модель GraniteMoeHybridConfig)
- **granitemoeshared** -- [GraniteMoeSharedForCausalLM](/docs/transformers/main/ru/model_doc/granitemoeshared#transformers.GraniteMoeSharedForCausalLM) (модель GraniteMoeSharedConfig)
- **helium** -- [HeliumForCausalLM](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumForCausalLM) (модель HeliumConfig)
- **hrm_text** -- [HrmTextForCausalLM](/docs/transformers/main/ru/model_doc/hrm_text#transformers.HrmTextForCausalLM) (модель HrmTextConfig)
- **hunyuan_v1_dense** -- [HunYuanDenseV1ForCausalLM](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1ForCausalLM) (модель HunYuanDenseV1Config)
- **hunyuan_v1_moe** -- [HunYuanMoEV1ForCausalLM](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1ForCausalLM) (модель HunYuanMoEV1Config)
- **hy_v3** -- [HYV3ForCausalLM](/docs/transformers/main/ru/model_doc/hy_v3#transformers.HYV3ForCausalLM) (модель HYV3Config)
- **hy_v4** -- [HYV4ForCausalLM](/docs/transformers/main/ru/model_doc/hy_v4#transformers.HYV4ForCausalLM) (модель HYV4Config)
- **hyperclovax** -- [HyperCLOVAXForCausalLM](/docs/transformers/main/ru/model_doc/hyperclovax#transformers.HyperCLOVAXForCausalLM) (модель HyperCLOVAXConfig)
- **inkling_text** -- [InklingForCausalLM](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingForCausalLM) (модель InklingTextConfig)
- **jais2** -- [Jais2ForCausalLM](/docs/transformers/main/ru/model_doc/jais2#transformers.Jais2ForCausalLM) (модель Jais2Config)
- **jamba** -- [JambaForCausalLM](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaForCausalLM) (модель JambaConfig)
- **jetmoe** -- [JetMoeForCausalLM](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeForCausalLM) (модель JetMoeConfig)
- **kimi_linear** -- [KimiLinearForCausalLM](/docs/transformers/main/ru/model_doc/kimi_linear#transformers.KimiLinearForCausalLM) (модель KimiLinearConfig)
- **kolibri1** -- [Kolibri1ForCausalLM](/docs/transformers/main/ru/model_doc/kolibri1#transformers.Kolibri1ForCausalLM) (модель Kolibri1Config)
- **laguna** -- [LagunaForCausalLM](/docs/transformers/main/ru/model_doc/laguna#transformers.LagunaForCausalLM) (модель LagunaConfig)
- **lfm2** -- [Lfm2ForCausalLM](/docs/transformers/main/ru/model_doc/lfm2#transformers.Lfm2ForCausalLM) (модель Lfm2Config)
- **lfm2_moe** -- [Lfm2MoeForCausalLM](/docs/transformers/main/ru/model_doc/lfm2_moe#transformers.Lfm2MoeForCausalLM) (модель Lfm2MoeConfig)
- **llama** -- [LlamaForCausalLM](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaForCausalLM) (модель LlamaConfig)
- **llama4** -- [Llama4ForCausalLM](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForCausalLM) (модель Llama4Config)
- **llama4_text** -- [Llama4ForCausalLM](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForCausalLM) (модель Llama4TextConfig)
- **longcat_flash** -- [LongcatFlashForCausalLM](/docs/transformers/main/ru/model_doc/longcat_flash#transformers.LongcatFlashForCausalLM) (модель LongcatFlashConfig)
- **mamba** -- [MambaForCausalLM](/docs/transformers/main/ru/model_doc/mamba#transformers.MambaForCausalLM) (модель MambaConfig)
- **mamba2** -- [Mamba2ForCausalLM](/docs/transformers/main/ru/model_doc/mamba2#transformers.Mamba2ForCausalLM) (модель Mamba2Config)
- **marian** -- [MarianForCausalLM](/docs/transformers/main/ru/model_doc/marian#transformers.MarianForCausalLM) (модель MarianConfig)
- **mbart** -- [MBartForCausalLM](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForCausalLM) (модель MBartConfig)
- **megatron-bert** -- [MegatronBertForCausalLM](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForCausalLM) (модель MegatronBertConfig)
- **mellum** -- [MellumForCausalLM](/docs/transformers/main/ru/model_doc/mellum#transformers.MellumForCausalLM) (модель MellumConfig)
- **mimo_v2_flash** -- [MiMoV2FlashForCausalLM](/docs/transformers/main/ru/model_doc/mimo_v2_flash#transformers.MiMoV2FlashForCausalLM) (модель MiMoV2FlashConfig)
- **minicpm3** -- [MiniCPM3ForCausalLM](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3ForCausalLM) (модель MiniCPM3Config)
- **minimax** -- [MiniMaxForCausalLM](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxForCausalLM) (модель MiniMaxConfig)
- **minimax_m2** -- [MiniMaxM2ForCausalLM](/docs/transformers/main/ru/model_doc/minimax_m2#transformers.MiniMaxM2ForCausalLM) (модель MiniMaxM2Config)
- **minimax_m3_vl_text** -- [MiniMaxM3VLForCausalLM](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLForCausalLM) (модель MiniMaxM3VLTextConfig)
- **ministral** -- [MinistralForCausalLM](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralForCausalLM) (модель MinistralConfig)
- **ministral3** -- [Ministral3ForCausalLM](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3ForCausalLM) (модель Ministral3Config)
- **mistral** -- [MistralForCausalLM](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralForCausalLM) (модель MistralConfig)
- **mixtral** -- [MixtralForCausalLM](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralForCausalLM) (модель MixtralConfig)
- **mllama** -- [MllamaForCausalLM](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaForCausalLM) (модель MllamaConfig)
- **modernbert-decoder** -- [ModernBertDecoderForCausalLM](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderForCausalLM) (модель ModernBertDecoderConfig)
- **moshi** -- [MoshiForCausalLM](/docs/transformers/main/ru/model_doc/moshi#transformers.MoshiForCausalLM) (модель MoshiConfig)
- **moss_transcribe_diarize** -- [MossTranscribeDiarizeForConditionalGeneration](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeForConditionalGeneration) (модель MossTranscribeDiarizeConfig)
- **mpt** -- [MptForCausalLM](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForCausalLM) (модель MptConfig)
- **musicgen** -- [MusicgenForCausalLM](/docs/transformers/main/ru/model_doc/musicgen#transformers.MusicgenForCausalLM) (модель MusicgenConfig)
- **musicgen_melody** -- [MusicgenMelodyForCausalLM](/docs/transformers/main/ru/model_doc/musicgen_melody#transformers.MusicgenMelodyForCausalLM) (модель MusicgenMelodyConfig)
- **mvp** -- [MvpForCausalLM](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForCausalLM) (модель MvpConfig)
- **nanochat** -- [NanoChatForCausalLM](/docs/transformers/main/ru/model_doc/nanochat#transformers.NanoChatForCausalLM) (модель NanoChatConfig)
- **nemotron** -- [NemotronForCausalLM](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronForCausalLM) (модель NemotronConfig)
- **nemotron_h** -- [NemotronHForCausalLM](/docs/transformers/main/ru/model_doc/nemotron_h#transformers.NemotronHForCausalLM) (модель NemotronHConfig)
- **olmo** -- [OlmoForCausalLM](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoForCausalLM) (модель OlmoConfig)
- **olmo2** -- [Olmo2ForCausalLM](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2ForCausalLM) (модель Olmo2Config)
- **olmo3** -- [Olmo3ForCausalLM](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3ForCausalLM) (модель Olmo3Config)
- **olmo_hybrid** -- [OlmoHybridForCausalLM](/docs/transformers/main/ru/model_doc/olmo_hybrid#transformers.OlmoHybridForCausalLM) (модель OlmoHybridConfig)
- **olmoe** -- [OlmoeForCausalLM](/docs/transformers/main/ru/model_doc/olmoe#transformers.OlmoeForCausalLM) (модель OlmoeConfig)
- **openai-gpt** -- [OpenAIGPTLMHeadModel](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTLMHeadModel) (модель OpenAIGPTConfig)
- **opt** -- [OPTForCausalLM](/docs/transformers/main/ru/model_doc/opt#transformers.OPTForCausalLM) (модель OPTConfig)
- **pegasus** -- [PegasusForCausalLM](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusForCausalLM) (модель PegasusConfig)
- **persimmon** -- [PersimmonForCausalLM](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonForCausalLM) (модель PersimmonConfig)
- **phi** -- [PhiForCausalLM](/docs/transformers/main/ru/model_doc/phi#transformers.PhiForCausalLM) (модель PhiConfig)
- **phi3** -- [Phi3ForCausalLM](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3ForCausalLM) (модель Phi3Config)
- **phi4_multimodal** -- [Phi4MultimodalForCausalLM](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalForCausalLM) (модель Phi4MultimodalConfig)
- **phimoe** -- [PhimoeForCausalLM](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeForCausalLM) (модель PhimoeConfig)
- **plbart** -- [PLBartForCausalLM](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartForCausalLM) (модель PLBartConfig)
- **prophetnet** -- [ProphetNetForCausalLM](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetForCausalLM) (модель ProphetNetConfig)
- **qwen2** -- [Qwen2ForCausalLM](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2ForCausalLM) (модель Qwen2Config)
- **qwen2_moe** -- [Qwen2MoeForCausalLM](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeForCausalLM) (модель Qwen2MoeConfig)
- **qwen3** -- [Qwen3ForCausalLM](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3ForCausalLM) (модель Qwen3Config)
- **qwen3_5** -- [Qwen3_5ForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForCausalLM) (модель Qwen3_5Config)
- **qwen3_5_moe** -- [Qwen3_5MoeForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeForCausalLM) (модель Qwen3_5MoeConfig)
- **qwen3_5_moe_text** -- [Qwen3_5MoeForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeForCausalLM) (модель Qwen3_5MoeTextConfig)
- **qwen3_5_text** -- [Qwen3_5ForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForCausalLM) (модель Qwen3_5TextConfig)
- **qwen3_moe** -- [Qwen3MoeForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeForCausalLM) (модель Qwen3MoeConfig)
- **qwen3_next** -- [Qwen3NextForCausalLM](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextForCausalLM) (модель Qwen3NextConfig)
- **qwen4_exp** -- [Qwen4ExpForCausalLM](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpForCausalLM) (модель Qwen4ExpConfig)
- **qwen4_exp_text** -- [Qwen4ExpForCausalLM](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpForCausalLM) (модель Qwen4ExpTextConfig)
- **recurrent_gemma** -- [RecurrentGemmaForCausalLM](/docs/transformers/main/ru/model_doc/recurrent_gemma#transformers.RecurrentGemmaForCausalLM) (модель RecurrentGemmaConfig)
- **reformer** -- [ReformerModelWithLMHead](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerModelWithLMHead) (модель ReformerConfig)
- **rembert** -- [RemBertForCausalLM](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForCausalLM) (модель RemBertConfig)
- **roberta** -- [RobertaForCausalLM](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForCausalLM) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormForCausalLM](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForCausalLM) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertForCausalLM](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForCausalLM) (модель RoCBertConfig)
- **roformer** -- [RoFormerForCausalLM](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForCausalLM) (модель RoFormerConfig)
- **rwkv** -- [RwkvForCausalLM](/docs/transformers/main/ru/model_doc/rwkv#transformers.RwkvForCausalLM) (модель RwkvConfig)
- **seed_oss** -- [SeedOssForCausalLM](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssForCausalLM) (модель SeedOssConfig)
- **smollm3** -- [SmolLM3ForCausalLM](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3ForCausalLM) (модель SmolLM3Config)
- **solar_open** -- [SolarOpenForCausalLM](/docs/transformers/main/ru/model_doc/solar_open#transformers.SolarOpenForCausalLM) (модель SolarOpenConfig)
- **stablelm** -- [StableLmForCausalLM](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmForCausalLM) (модель StableLmConfig)
- **starcoder2** -- [Starcoder2ForCausalLM](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2ForCausalLM) (модель Starcoder2Config)
- **trocr** -- [TrOCRForCausalLM](/docs/transformers/main/ru/model_doc/trocr#transformers.TrOCRForCausalLM) (модель TrOCRConfig)
- **vaultgemma** -- [VaultGemmaForCausalLM](/docs/transformers/main/ru/model_doc/vaultgemma#transformers.VaultGemmaForCausalLM) (модель VaultGemmaConfig)
- **whisper** -- [WhisperForCausalLM](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperForCausalLM) (модель WhisperConfig)
- **xglm** -- [XGLMForCausalLM](/docs/transformers/main/ru/model_doc/xglm#transformers.XGLMForCausalLM) (модель XGLMConfig)
- **xlm** -- [XLMWithLMHeadModel](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMWithLMHeadModel) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaForCausalLM](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForCausalLM) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLForCausalLM](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForCausalLM) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetLMHeadModel](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetLMHeadModel) (модель XLNetConfig)
- **xlstm** -- [xLSTMForCausalLM](/docs/transformers/main/ru/model_doc/xlstm#transformers.xLSTMForCausalLM) (модель xLSTMConfig)
- **xmod** -- [XmodForCausalLM](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForCausalLM) (модель XmodConfig)
- **youtu** -- [YoutuForCausalLM](/docs/transformers/main/ru/model_doc/youtu#transformers.YoutuForCausalLM) (модель YoutuConfig)
- **zamba** -- [ZambaForCausalLM](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaForCausalLM) (модель ZambaConfig)
- **zamba2** -- [Zamba2ForCausalLM](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2ForCausalLM) (модель Zamba2Config)
- **zaya** -- [ZayaForCausalLM](/docs/transformers/main/ru/model_doc/zaya#transformers.ZayaForCausalLM) (модель ZayaConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForCausalLM

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForCausalLM.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForCausalLM.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForMaskedLM[[transformers.AutoModelForMaskedLM]]

#### transformers.AutoModelForMaskedLM[[transformers.AutoModelForMaskedLM]]

```python
transformers.AutoModelForMaskedLM(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2326)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для маскированного языкового моделирования).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForMaskedLM.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [AlbertConfig](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertConfig): [AlbertForMaskedLM](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForMaskedLM) (модель AlbertConfig) - класс конфигурации [BartConfig](/docs/transformers/main/ru/model_doc/bart#transformers.BartConfig): [BartForConditionalGeneration](/docs/transformers/main/ru/model_doc/bart#transformers.BartForConditionalGeneration) (модель BartConfig) - класс конфигурации [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig): [BertForMaskedLM](/docs/transformers/main/ru/model_doc/bert#transformers.BertForMaskedLM) (модель BertConfig) - класс конфигурации [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig): [BigBirdForMaskedLM](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForMaskedLM) (модель BigBirdConfig) - класс конфигурации [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig): [CamembertForMaskedLM](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForMaskedLM) (модель CamembertConfig) - класс конфигурации [ConvBertConfig](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertConfig): [ConvBertForMaskedLM](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForMaskedLM) (модель ConvBertConfig) - класс конфигурации [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig): [Data2VecTextForMaskedLM](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForMaskedLM) (модель Data2VecTextConfig) - класс конфигурации [DebertaConfig](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaConfig): [DebertaForMaskedLM](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForMaskedLM) (модель DebertaConfig) - класс конфигурации [DebertaV2Config](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Config): [DebertaV2ForMaskedLM](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForMaskedLM) (модель DebertaV2Config) - класс конфигурации [DistilBertConfig](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertConfig): [DistilBertForMaskedLM](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForMaskedLM) (модель DistilBertConfig) - класс конфигурации [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig): [ElectraForMaskedLM](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForMaskedLM) (модель ElectraConfig) - класс конфигурации [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig): [ErnieForMaskedLM](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForMaskedLM) (модель ErnieConfig) - класс конфигурации [EsmConfig](/docs/transformers/main/ru/model_doc/esm#transformers.EsmConfig): [EsmForMaskedLM](/docs/transformers/main/ru/model_doc/esm#transformers.EsmForMaskedLM) (модель EsmConfig) - класс конфигурации [EsmcConfig](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcConfig): [EsmcForMaskedLM](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcForMaskedLM) (модель EsmcConfig) - класс конфигурации [EuroBertConfig](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertConfig): [EuroBertForMaskedLM](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertForMaskedLM) (модель EuroBertConfig) - класс конфигурации [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig): [FNetForMaskedLM](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForMaskedLM) (модель FNetConfig) - класс конфигурации [FlaubertConfig](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertConfig): [FlaubertWithLMHeadModel](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertWithLMHeadModel) (модель FlaubertConfig) - класс конфигурации [FunnelConfig](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelConfig): [FunnelForMaskedLM](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForMaskedLM) (модель FunnelConfig) - класс конфигурации [GteConfig](/docs/transformers/main/ru/model_doc/gte#transformers.GteConfig): [GteForMaskedLM](/docs/transformers/main/ru/model_doc/gte#transformers.GteForMaskedLM) (модель GteConfig) - класс конфигурации [IBertConfig](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertConfig): [IBertForMaskedLM](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForMaskedLM) (модель IBertConfig) - класс конфигурации [JinaEmbeddingsV3Config](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3Config): [JinaEmbeddingsV3ForMaskedLM](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3ForMaskedLM) (модель JinaEmbeddingsV3Config) - класс конфигурации [LayoutLMConfig](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMConfig): [LayoutLMForMaskedLM](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForMaskedLM) (модель LayoutLMConfig) - класс конфигурации [LongformerConfig](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerConfig): [LongformerForMaskedLM](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForMaskedLM) (модель LongformerConfig) - класс конфигурации [LukeConfig](/docs/transformers/main/ru/model_doc/luke#transformers.LukeConfig): [LukeForMaskedLM](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForMaskedLM) (модель LukeConfig) - класс конфигурации [MBartConfig](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartConfig): [MBartForConditionalGeneration](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForConditionalGeneration) (модель MBartConfig) - класс конфигурации [MPNetConfig](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetConfig): [MPNetForMaskedLM](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForMaskedLM) (модель MPNetConfig) - класс конфигурации [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig): [MegatronBertForMaskedLM](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForMaskedLM) (модель MegatronBertConfig) - класс конфигурации [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig): [MobileBertForMaskedLM](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForMaskedLM) (модель MobileBertConfig) - класс конфигурации [ModernBertConfig](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertConfig): [ModernBertForMaskedLM](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForMaskedLM) (модель ModernBertConfig) - класс конфигурации [ModernVBertConfig](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertConfig): [ModernVBertForMaskedLM](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertForMaskedLM) (модель ModernVBertConfig) - класс конфигурации [MraConfig](/docs/transformers/main/ru/model_doc/mra#transformers.MraConfig): [MraForMaskedLM](/docs/transformers/main/ru/model_doc/mra#transformers.MraForMaskedLM) (модель MraConfig) - класс конфигурации [MvpConfig](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpConfig): [MvpForConditionalGeneration](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForConditionalGeneration) (модель MvpConfig) - класс конфигурации [NeoMMEConfig](/docs/transformers/main/ru/model_doc/neomme#transformers.NeoMMEConfig): [NeoMMEForMaskedLM](/docs/transformers/main/ru/model_doc/neomme#transformers.NeoMMEForMaskedLM) (модель NeoMMEConfig) - класс конфигурации [NomicBertConfig](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertConfig): [NomicBertForMaskedLM](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertForMaskedLM) (модель NomicBertConfig) - класс конфигурации [NystromformerConfig](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerConfig): [NystromformerForMaskedLM](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForMaskedLM) (модель NystromformerConfig) - класс конфигурации [PerceiverConfig](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverConfig): [PerceiverForMaskedLM](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForMaskedLM) (модель PerceiverConfig) - класс конфигурации [ReformerConfig](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerConfig): [ReformerForMaskedLM](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerForMaskedLM) (модель ReformerConfig) - класс конфигурации [RemBertConfig](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertConfig): [RemBertForMaskedLM](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForMaskedLM) (модель RemBertConfig) - класс конфигурации [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig): [RoCBertForMaskedLM](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForMaskedLM) (модель RoCBertConfig) - класс конфигурации [RoFormerConfig](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerConfig): [RoFormerForMaskedLM](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForMaskedLM) (модель RoFormerConfig) - класс конфигурации [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig): [RobertaForMaskedLM](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForMaskedLM) (модель RobertaConfig) - класс конфигурации [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig): [RobertaPreLayerNormForMaskedLM](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForMaskedLM) (модель RobertaPreLayerNormConfig) - класс конфигурации [SqueezeBertConfig](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertConfig): [SqueezeBertForMaskedLM](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForMaskedLM) (модель SqueezeBertConfig) - класс конфигурации [TapasConfig](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasConfig): [TapasForMaskedLM](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasForMaskedLM) (модель TapasConfig) - класс конфигурации [UltraVBertConfig](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertConfig): [UltraVBertForMaskedLM](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertForMaskedLM) (модель UltraVBertConfig) - класс конфигурации [UltrabertConfig](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertConfig): [UltrabertForMaskedLM](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertForMaskedLM) (модель UltrabertConfig) - класс конфигурации [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig): [XLMWithLMHeadModel](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMWithLMHeadModel) (модель XLMConfig) - класс конфигурации [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig): [XLMRobertaForMaskedLM](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForMaskedLM) (модель XLMRobertaConfig) - класс конфигурации [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig): [XLMRobertaXLForMaskedLM](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForMaskedLM) (модель XLMRobertaXLConfig) - класс конфигурации [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig): [XmodForMaskedLM](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForMaskedLM) (модель XmodConfig) - класс конфигурации [YosoConfig](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoConfig): [YosoForMaskedLM](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForMaskedLM) (модель YosoConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для маскированного языкового моделирования) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForMaskedLM

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForMaskedLM.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForMaskedLM.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для маскированного языкового моделирования) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **albert** -- [AlbertForMaskedLM](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForMaskedLM) (модель AlbertConfig)
- **bart** -- [BartForConditionalGeneration](/docs/transformers/main/ru/model_doc/bart#transformers.BartForConditionalGeneration) (модель BartConfig)
- **bert** -- [BertForMaskedLM](/docs/transformers/main/ru/model_doc/bert#transformers.BertForMaskedLM) (модель BertConfig)
- **big_bird** -- [BigBirdForMaskedLM](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForMaskedLM) (модель BigBirdConfig)
- **camembert** -- [CamembertForMaskedLM](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForMaskedLM) (модель CamembertConfig)
- **convbert** -- [ConvBertForMaskedLM](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForMaskedLM) (модель ConvBertConfig)
- **data2vec-text** -- [Data2VecTextForMaskedLM](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForMaskedLM) (модель Data2VecTextConfig)
- **deberta** -- [DebertaForMaskedLM](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForMaskedLM) (модель DebertaConfig)
- **deberta-v2** -- [DebertaV2ForMaskedLM](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForMaskedLM) (модель DebertaV2Config)
- **distilbert** -- [DistilBertForMaskedLM](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForMaskedLM) (модель DistilBertConfig)
- **electra** -- [ElectraForMaskedLM](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForMaskedLM) (модель ElectraConfig)
- **ernie** -- [ErnieForMaskedLM](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForMaskedLM) (модель ErnieConfig)
- **esm** -- [EsmForMaskedLM](/docs/transformers/main/ru/model_doc/esm#transformers.EsmForMaskedLM) (модель EsmConfig)
- **esmc** -- [EsmcForMaskedLM](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcForMaskedLM) (модель EsmcConfig)
- **eurobert** -- [EuroBertForMaskedLM](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertForMaskedLM) (модель EuroBertConfig)
- **flaubert** -- [FlaubertWithLMHeadModel](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertWithLMHeadModel) (модель FlaubertConfig)
- **fnet** -- [FNetForMaskedLM](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForMaskedLM) (модель FNetConfig)
- **funnel** -- [FunnelForMaskedLM](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForMaskedLM) (модель FunnelConfig)
- **gte** -- [GteForMaskedLM](/docs/transformers/main/ru/model_doc/gte#transformers.GteForMaskedLM) (модель GteConfig)
- **ibert** -- [IBertForMaskedLM](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForMaskedLM) (модель IBertConfig)
- **jina_embeddings_v3** -- [JinaEmbeddingsV3ForMaskedLM](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3ForMaskedLM) (модель JinaEmbeddingsV3Config)
- **layoutlm** -- [LayoutLMForMaskedLM](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForMaskedLM) (модель LayoutLMConfig)
- **longformer** -- [LongformerForMaskedLM](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForMaskedLM) (модель LongformerConfig)
- **luke** -- [LukeForMaskedLM](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForMaskedLM) (модель LukeConfig)
- **mbart** -- [MBartForConditionalGeneration](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForConditionalGeneration) (модель MBartConfig)
- **megatron-bert** -- [MegatronBertForMaskedLM](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForMaskedLM) (модель MegatronBertConfig)
- **mobilebert** -- [MobileBertForMaskedLM](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForMaskedLM) (модель MobileBertConfig)
- **modernbert** -- [ModernBertForMaskedLM](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForMaskedLM) (модель ModernBertConfig)
- **modernvbert** -- [ModernVBertForMaskedLM](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertForMaskedLM) (модель ModernVBertConfig)
- **mpnet** -- [MPNetForMaskedLM](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForMaskedLM) (модель MPNetConfig)
- **mra** -- [MraForMaskedLM](/docs/transformers/main/ru/model_doc/mra#transformers.MraForMaskedLM) (модель MraConfig)
- **mvp** -- [MvpForConditionalGeneration](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForConditionalGeneration) (модель MvpConfig)
- **neomme** -- [NeoMMEForMaskedLM](/docs/transformers/main/ru/model_doc/neomme#transformers.NeoMMEForMaskedLM) (модель NeoMMEConfig)
- **nomic_bert** -- [NomicBertForMaskedLM](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertForMaskedLM) (модель NomicBertConfig)
- **nystromformer** -- [NystromformerForMaskedLM](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForMaskedLM) (модель NystromformerConfig)
- **perceiver** -- [PerceiverForMaskedLM](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForMaskedLM) (модель PerceiverConfig)
- **reformer** -- [ReformerForMaskedLM](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerForMaskedLM) (модель ReformerConfig)
- **rembert** -- [RemBertForMaskedLM](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForMaskedLM) (модель RemBertConfig)
- **roberta** -- [RobertaForMaskedLM](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForMaskedLM) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormForMaskedLM](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForMaskedLM) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertForMaskedLM](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForMaskedLM) (модель RoCBertConfig)
- **roformer** -- [RoFormerForMaskedLM](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForMaskedLM) (модель RoFormerConfig)
- **squeezebert** -- [SqueezeBertForMaskedLM](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForMaskedLM) (модель SqueezeBertConfig)
- **tapas** -- [TapasForMaskedLM](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasForMaskedLM) (модель TapasConfig)
- **ultrabert** -- [UltrabertForMaskedLM](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertForMaskedLM) (модель UltrabertConfig)
- **ultravbert** -- [UltraVBertForMaskedLM](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertForMaskedLM) (модель UltraVBertConfig)
- **xlm** -- [XLMWithLMHeadModel](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMWithLMHeadModel) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaForMaskedLM](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForMaskedLM) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLForMaskedLM](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForMaskedLM) (модель XLMRobertaXLConfig)
- **xmod** -- [XmodForMaskedLM](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForMaskedLM) (модель XmodConfig)
- **yoso** -- [YosoForMaskedLM](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForMaskedLM) (модель YosoConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForMaskedLM

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForMaskedLM.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForMaskedLM.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForMaskGeneration[[transformers.AutoModelForMaskGeneration]]

#### transformers.AutoModelForMaskGeneration[[transformers.AutoModelForMaskGeneration]]

```python
transformers.AutoModelForMaskGeneration(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2275)

### AutoModelForSeq2SeqLM[[transformers.AutoModelForSeq2SeqLM]]

#### transformers.AutoModelForSeq2SeqLM[[transformers.AutoModelForSeq2SeqLM]]

```python
transformers.AutoModelForSeq2SeqLM(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2333)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для последовательностно-последовательностного языкового моделирования).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForSeq2SeqLM.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели для создания экземпляра выбирается на основе класса конфигурации:  - класс конфигурации [AudioFlamingo3Config](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3Config): [AudioFlamingo3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3ForConditionalGeneration) (модель AudioFlamingo3Config) - класс конфигурации [BartConfig](/docs/transformers/main/ru/model_doc/bart#transformers.BartConfig): [BartForConditionalGeneration](/docs/transformers/main/ru/model_doc/bart#transformers.BartForConditionalGeneration) (модель BartConfig) - класс конфигурации [BigBirdPegasusConfig](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusConfig): [BigBirdPegasusForConditionalGeneration](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusForConditionalGeneration) (модель BigBirdPegasusConfig) - класс конфигурации [BlenderbotConfig](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotConfig): [BlenderbotForConditionalGeneration](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotForConditionalGeneration) (модель BlenderbotConfig) - класс конфигурации [BlenderbotSmallConfig](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallConfig): [BlenderbotSmallForConditionalGeneration](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallForConditionalGeneration) (модель BlenderbotSmallConfig) - класс конфигурации [EncoderDecoderConfig](/docs/transformers/main/ru/model_doc/encoder-decoder#transformers.EncoderDecoderConfig): [EncoderDecoderModel](/docs/transformers/main/ru/model_doc/encoder-decoder#transformers.EncoderDecoderModel) (модель EncoderDecoderConfig) - класс конфигурации [FSMTConfig](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTConfig): [FSMTForConditionalGeneration](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTForConditionalGeneration) (модель FSMTConfig) - класс конфигурации [GlmAsrConfig](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrConfig): [GlmAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrForConditionalGeneration) (модель GlmAsrConfig) - класс конфигурации [GraniteSpeechConfig](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechConfig): [GraniteSpeechForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechForConditionalGeneration) (модель GraniteSpeechConfig) - класс конфигурации [GraniteSpeechPlusConfig](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusConfig): [GraniteSpeechPlusForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusForConditionalGeneration) (модель GraniteSpeechPlusConfig) - класс конфигурации [LEDConfig](/docs/transformers/main/ru/model_doc/led#transformers.LEDConfig): [LEDForConditionalGeneration](/docs/transformers/main/ru/model_doc/led#transformers.LEDForConditionalGeneration) (модель LEDConfig) - класс конфигурации [LongT5Config](/docs/transformers/main/ru/model_doc/longt5#transformers.LongT5Config): [LongT5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/longt5#transformers.LongT5ForConditionalGeneration) (модель LongT5Config) - класс конфигурации [M2M100Config](/docs/transformers/main/ru/model_doc/m2m_100#transformers.M2M100Config): [M2M100ForConditionalGeneration](/docs/transformers/main/ru/model_doc/m2m_100#transformers.M2M100ForConditionalGeneration) (модель M2M100Config) - класс конфигурации [MBartConfig](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartConfig): [MBartForConditionalGeneration](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForConditionalGeneration) (модель MBartConfig) - класс конфигурации [MT5Config](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5Config): [MT5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5ForConditionalGeneration) (модель MT5Config) - класс конфигурации [MarianConfig](/docs/transformers/main/ru/model_doc/marian#transformers.MarianConfig): [MarianMTModel](/docs/transformers/main/ru/model_doc/marian#transformers.MarianMTModel) (модель MarianConfig) - класс конфигурации [MossTranscribeDiarizeConfig](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeConfig): [MossTranscribeDiarizeForConditionalGeneration](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeForConditionalGeneration) (модель MossTranscribeDiarizeConfig) - класс конфигурации [MusicFlamingoConfig](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoConfig): [MusicFlamingoForConditionalGeneration](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoForConditionalGeneration) (модель MusicFlamingoConfig) - класс конфигурации [MvpConfig](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpConfig): [MvpForConditionalGeneration](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForConditionalGeneration) (модель MvpConfig) - класс конфигурации [Nemotron3_5TranscribeConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeConfig): [Nemotron3_5TranscribeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeForConditionalGeneration) (модель Nemotron3_5TranscribeConfig) - класс конфигурации [NllbMoeConfig](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeConfig): [NllbMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeForConditionalGeneration) (модель NllbMoeConfig) - класс конфигурации [PLBartConfig](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartConfig): [PLBartForConditionalGeneration](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartForConditionalGeneration) (модель PLBartConfig) - класс конфигурации [PegasusConfig](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusConfig): [PegasusForConditionalGeneration](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusForConditionalGeneration) (модель PegasusConfig) - класс конфигурации [PegasusXConfig](/docs/transformers/main/ru/model_doc/pegasus_x#transformers.PegasusXConfig): [PegasusXForConditionalGeneration](/docs/transformers/main/ru/model_doc/pegasus_x#transformers.PegasusXForConditionalGeneration) (модель PegasusXConfig) - класс конфигурации [ProphetNetConfig](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetConfig): [ProphetNetForConditionalGeneration](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetForConditionalGeneration) (модель ProphetNetConfig) - класс конфигурации [Qwen2AudioConfig](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioConfig): [Qwen2AudioForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioForConditionalGeneration) (модель Qwen2AudioConfig) - класс конфигурации [Qwen3ASRConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRConfig): [Qwen3ASRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForConditionalGeneration) (модель Qwen3ASRConfig) - класс конфигурации [SeamlessM4TConfig](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TConfig): [SeamlessM4TForTextToText](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TForTextToText) (модель SeamlessM4TConfig) - класс конфигурации [SeamlessM4Tv2Config](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2Config): [SeamlessM4Tv2ForTextToText](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2ForTextToText) (модель SeamlessM4Tv2Config) - класс конфигурации [SwitchTransformersConfig](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersConfig): [SwitchTransformersForConditionalGeneration](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersForConditionalGeneration) (модель SwitchTransformersConfig) - класс конфигурации [T5Config](/docs/transformers/main/ru/model_doc/t5#transformers.T5Config): [T5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForConditionalGeneration) (модель T5Config) - класс конфигурации [T5Gemma2Config](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Config): [T5Gemma2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForConditionalGeneration) (модель T5Gemma2Config) - класс конфигурации [T5GemmaConfig](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaConfig): [T5GemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaForConditionalGeneration) (модель T5GemmaConfig) - класс конфигурации [UMT5Config](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5Config): [UMT5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5ForConditionalGeneration) (модель UMT5Config) - класс конфигурации [VibeVoiceAsrConfig](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrConfig): [VibeVoiceAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrForConditionalGeneration) (модель VibeVoiceAsrConfig) - класс конфигурации [VoxtralConfig](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralConfig): [VoxtralForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralForConditionalGeneration) (модель VoxtralConfig) - класс конфигурации [VoxtralRealtimeConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeConfig): [VoxtralRealtimeForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeForConditionalGeneration) (модель VoxtralRealtimeConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для последовательностно-последовательностного языкового моделирования) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForSeq2SeqLM

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-t5/t5-base")
>>> model = AutoModelForSeq2SeqLM.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForSeq2SeqLM.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для последовательностно-последовательностного языкового моделирования) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **audioflamingo3** -- [AudioFlamingo3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/audioflamingo3#transformers.AudioFlamingo3ForConditionalGeneration) (модель AudioFlamingo3Config)
- **bart** -- [BartForConditionalGeneration](/docs/transformers/main/ru/model_doc/bart#transformers.BartForConditionalGeneration) (модель BartConfig)
- **bigbird_pegasus** -- [BigBirdPegasusForConditionalGeneration](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusForConditionalGeneration) (модель BigBirdPegasusConfig)
- **blenderbot** -- [BlenderbotForConditionalGeneration](/docs/transformers/main/ru/model_doc/blenderbot#transformers.BlenderbotForConditionalGeneration) (модель BlenderbotConfig)
- **blenderbot-small** -- [BlenderbotSmallForConditionalGeneration](/docs/transformers/main/ru/model_doc/blenderbot-small#transformers.BlenderbotSmallForConditionalGeneration) (модель BlenderbotSmallConfig)
- **encoder-decoder** -- [EncoderDecoderModel](/docs/transformers/main/ru/model_doc/encoder-decoder#transformers.EncoderDecoderModel) (модель EncoderDecoderConfig)
- **fsmt** -- [FSMTForConditionalGeneration](/docs/transformers/main/ru/model_doc/fsmt#transformers.FSMTForConditionalGeneration) (модель FSMTConfig)
- **glmasr** -- [GlmAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrForConditionalGeneration) (модель GlmAsrConfig)
- **granite_speech** -- [GraniteSpeechForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechForConditionalGeneration) (модель GraniteSpeechConfig)
- **granite_speech_plus** -- [GraniteSpeechPlusForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusForConditionalGeneration) (модель GraniteSpeechPlusConfig)
- **led** -- [LEDForConditionalGeneration](/docs/transformers/main/ru/model_doc/led#transformers.LEDForConditionalGeneration) (модель LEDConfig)
- **longt5** -- [LongT5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/longt5#transformers.LongT5ForConditionalGeneration) (модель LongT5Config)
- **m2m_100** -- [M2M100ForConditionalGeneration](/docs/transformers/main/ru/model_doc/m2m_100#transformers.M2M100ForConditionalGeneration) (модель M2M100Config)
- **marian** -- [MarianMTModel](/docs/transformers/main/ru/model_doc/marian#transformers.MarianMTModel) (модель MarianConfig)
- **mbart** -- [MBartForConditionalGeneration](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForConditionalGeneration) (модель MBartConfig)
- **moss_transcribe_diarize** -- [MossTranscribeDiarizeForConditionalGeneration](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeForConditionalGeneration) (модель MossTranscribeDiarizeConfig)
- **mt5** -- [MT5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5ForConditionalGeneration) (модель MT5Config)
- **musicflamingo** -- [MusicFlamingoForConditionalGeneration](/docs/transformers/main/ru/model_doc/musicflamingo#transformers.MusicFlamingoForConditionalGeneration) (модель MusicFlamingoConfig)
- **mvp** -- [MvpForConditionalGeneration](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForConditionalGeneration) (модель MvpConfig)
- **nemo_speechlm** -- [Nemotron3_5TranscribeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeForConditionalGeneration) (модель Nemotron3_5TranscribeConfig)
- **nllb-moe** -- [NllbMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nllb-moe#transformers.NllbMoeForConditionalGeneration) (модель NllbMoeConfig)
- **pegasus** -- [PegasusForConditionalGeneration](/docs/transformers/main/ru/model_doc/pegasus#transformers.PegasusForConditionalGeneration) (модель PegasusConfig)
- **pegasus_x** -- [PegasusXForConditionalGeneration](/docs/transformers/main/ru/model_doc/pegasus_x#transformers.PegasusXForConditionalGeneration) (модель PegasusXConfig)
- **plbart** -- [PLBartForConditionalGeneration](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartForConditionalGeneration) (модель PLBartConfig)
- **prophetnet** -- [ProphetNetForConditionalGeneration](/docs/transformers/main/ru/model_doc/prophetnet#transformers.ProphetNetForConditionalGeneration) (модель ProphetNetConfig)
- **qwen2_audio** -- [Qwen2AudioForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioForConditionalGeneration) (модель Qwen2AudioConfig)
- **qwen3_asr** -- [Qwen3ASRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForConditionalGeneration) (модель Qwen3ASRConfig)
- **seamless_m4t** -- [SeamlessM4TForTextToText](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TForTextToText) (модель SeamlessM4TConfig)
- **seamless_m4t_v2** -- [SeamlessM4Tv2ForTextToText](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2ForTextToText) (модель SeamlessM4Tv2Config)
- **switch_transformers** -- [SwitchTransformersForConditionalGeneration](/docs/transformers/main/ru/model_doc/switch_transformers#transformers.SwitchTransformersForConditionalGeneration) (модель SwitchTransformersConfig)
- **t5** -- [T5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForConditionalGeneration) (модель T5Config)
- **t5gemma** -- [T5GemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaForConditionalGeneration) (модель T5GemmaConfig)
- **t5gemma2** -- [T5Gemma2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForConditionalGeneration) (модель T5Gemma2Config)
- **umt5** -- [UMT5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5ForConditionalGeneration) (модель UMT5Config)
- **vibevoice_asr** -- [VibeVoiceAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrForConditionalGeneration) (модель VibeVoiceAsrConfig)
- **voxtral** -- [VoxtralForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralForConditionalGeneration) (модель VoxtralConfig)
- **voxtral_realtime** -- [VoxtralRealtimeForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeForConditionalGeneration) (модель VoxtralRealtimeConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForSeq2SeqLM

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForSeq2SeqLM.from_pretrained("google-t5/t5-base")

>>> # Update configuration during loading
>>> model = AutoModelForSeq2SeqLM.from_pretrained("google-t5/t5-base", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForSequenceClassification[[transformers.AutoModelForSequenceClassification]]

#### transformers.AutoModelForSequenceClassification[[transformers.AutoModelForSequenceClassification]]

```python
transformers.AutoModelForSequenceClassification(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2344)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для классификации последовательностей).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForSequenceClassification.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : The model class to instantiate is selected based on the configuration class:  - [AXK1Config](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1Config) configuration class: [AXK1ForSequenceClassification](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1ForSequenceClassification) (AXK1Config model) - [AXK2Config](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2Config) configuration class: [AXK2ForSequenceClassification](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2ForSequenceClassification) (AXK2Config model) - [AlbertConfig](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertConfig) configuration class: [AlbertForSequenceClassification](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForSequenceClassification) (AlbertConfig model) - [ArceeConfig](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeConfig) configuration class: [ArceeForSequenceClassification](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeForSequenceClassification) (ArceeConfig model) - [BartConfig](/docs/transformers/main/ru/model_doc/bart#transformers.BartConfig) configuration class: [BartForSequenceClassification](/docs/transformers/main/ru/model_doc/bart#transformers.BartForSequenceClassification) (BartConfig model) - [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig) configuration class: [BertForSequenceClassification](/docs/transformers/main/ru/model_doc/bert#transformers.BertForSequenceClassification) (BertConfig model) - [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig) configuration class: [BigBirdForSequenceClassification](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForSequenceClassification) (BigBirdConfig model) - [BigBirdPegasusConfig](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusConfig) configuration class: [BigBirdPegasusForSequenceClassification](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusForSequenceClassification) (BigBirdPegasusConfig model) - [BioGptConfig](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptConfig) configuration class: [BioGptForSequenceClassification](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptForSequenceClassification) (BioGptConfig model) - [BloomConfig](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomConfig) configuration class: [BloomForSequenceClassification](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForSequenceClassification) (BloomConfig model) - [CTRLConfig](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLConfig) configuration class: [CTRLForSequenceClassification](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLForSequenceClassification) (CTRLConfig model) - [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig) configuration class: [CamembertForSequenceClassification](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForSequenceClassification) (CamembertConfig model) - [CanineConfig](/docs/transformers/main/ru/model_doc/canine#transformers.CanineConfig) configuration class: [CanineForSequenceClassification](/docs/transformers/main/ru/model_doc/canine#transformers.CanineForSequenceClassification) (CanineConfig model) - [CohereCompassTextConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassTextConfig) configuration class: [CohereCompassTextForSequenceClassification](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassTextForSequenceClassification) (CohereCompassTextConfig model) - [ConvBertConfig](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertConfig) configuration class: [ConvBertForSequenceClassification](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForSequenceClassification) (ConvBertConfig model) - [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig) configuration class: [Data2VecTextForSequenceClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForSequenceClassification) (Data2VecTextConfig model) - [DebertaConfig](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaConfig) configuration class: [DebertaForSequenceClassification](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForSequenceClassification) (DebertaConfig model) - [DebertaV2Config](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Config) configuration class: [DebertaV2ForSequenceClassification](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForSequenceClassification) (DebertaV2Config model) - [DeepseekV2Config](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2Config) configuration class: [DeepseekV2ForSequenceClassification](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2ForSequenceClassification) (DeepseekV2Config model) - [DeepseekV3Config](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3Config) configuration class: [DeepseekV3ForSequenceClassification](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3ForSequenceClassification) (DeepseekV3Config model) - [DiffLlamaConfig](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaConfig) configuration class: [DiffLlamaForSequenceClassification](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaForSequenceClassification) (DiffLlamaConfig model) - [DistilBertConfig](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertConfig) configuration class: [DistilBertForSequenceClassification](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForSequenceClassification) (DistilBertConfig model) - [DogeConfig](/docs/transformers/main/ru/model_doc/doge#transformers.DogeConfig) configuration class: [DogeForSequenceClassification](/docs/transformers/main/ru/model_doc/doge#transformers.DogeForSequenceClassification) (DogeConfig model) - [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig) configuration class: [ElectraForSequenceClassification](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForSequenceClassification) (ElectraConfig model) - [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig) configuration class: [ErnieForSequenceClassification](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForSequenceClassification) (ErnieConfig model) - [EsmConfig](/docs/transformers/main/ru/model_doc/esm#transformers.EsmConfig) configuration class: [EsmForSequenceClassification](/docs/transformers/main/ru/model_doc/esm#transformers.EsmForSequenceClassification) (EsmConfig model) - [EsmcConfig](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcConfig) configuration class: [EsmcForSequenceClassification](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcForSequenceClassification) (EsmcConfig model) - [EuroBertConfig](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertConfig) configuration class: [EuroBertForSequenceClassification](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertForSequenceClassification) (EuroBertConfig model) - [Exaone4Config](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Config) configuration class: [Exaone4ForSequenceClassification](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForSequenceClassification) (Exaone4Config model) - [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig) configuration class: [FNetForSequenceClassification](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForSequenceClassification) (FNetConfig model) - [FalconConfig](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconConfig) configuration class: [FalconForSequenceClassification](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconForSequenceClassification) (FalconConfig model) - [FlaubertConfig](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertConfig) configuration class: [FlaubertForSequenceClassification](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertForSequenceClassification) (FlaubertConfig model) - [FunnelConfig](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelConfig) configuration class: [FunnelForSequenceClassification](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForSequenceClassification) (FunnelConfig model) - [GPT2Config](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Config) configuration class: [GPT2ForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2ForSequenceClassification) (GPT2Config model) - [GPTBigCodeConfig](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeConfig) configuration class: [GPTBigCodeForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeForSequenceClassification) (GPTBigCodeConfig model) - [GPTJConfig](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJConfig) configuration class: [GPTJForSequenceClassification](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJForSequenceClassification) (GPTJConfig model) - [GPTNeoConfig](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoConfig) configuration class: [GPTNeoForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoForSequenceClassification) (GPTNeoConfig model) - [GPTNeoXConfig](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXConfig) configuration class: [GPTNeoXForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXForSequenceClassification) (GPTNeoXConfig model) - [Gemma2Config](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2Config) configuration class: [Gemma2ForSequenceClassification](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2ForSequenceClassification) (Gemma2Config model) - [Gemma3Config](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Config) configuration class: [Gemma3ForSequenceClassification](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForSequenceClassification) (Gemma3Config model) - [Gemma3TextConfig](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3TextConfig) configuration class: [Gemma3TextForSequenceClassification](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3TextForSequenceClassification) (Gemma3TextConfig model) - [GemmaConfig](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaConfig) configuration class: [GemmaForSequenceClassification](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaForSequenceClassification) (GemmaConfig model) - [Glm4Config](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4Config) configuration class: [Glm4ForSequenceClassification](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4ForSequenceClassification) (Glm4Config model) - [GlmConfig](/docs/transformers/main/ru/model_doc/glm#transformers.GlmConfig) configuration class: [GlmForSequenceClassification](/docs/transformers/main/ru/model_doc/glm#transformers.GlmForSequenceClassification) (GlmConfig model) - [GptOssConfig](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssConfig) configuration class: [GptOssForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssForSequenceClassification) (GptOssConfig model) - [GteConfig](/docs/transformers/main/ru/model_doc/gte#transformers.GteConfig) configuration class: [GteForSequenceClassification](/docs/transformers/main/ru/model_doc/gte#transformers.GteForSequenceClassification) (GteConfig model) - [HeliumConfig](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumConfig) configuration class: [HeliumForSequenceClassification](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumForSequenceClassification) (HeliumConfig model) - [HunYuanDenseV1Config](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1Config) configuration class: [HunYuanDenseV1ForSequenceClassification](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1ForSequenceClassification) (HunYuanDenseV1Config model) - [HunYuanMoEV1Config](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1Config) configuration class: [HunYuanMoEV1ForSequenceClassification](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1ForSequenceClassification) (HunYuanMoEV1Config model) - [IBertConfig](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertConfig) configuration class: [IBertForSequenceClassification](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForSequenceClassification) (IBertConfig model) - [JambaConfig](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaConfig) configuration class: [JambaForSequenceClassification](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaForSequenceClassification) (JambaConfig model) - [JetMoeConfig](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeConfig) configuration class: [JetMoeForSequenceClassification](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeForSequenceClassification) (JetMoeConfig model) - [JinaEmbeddingsV3Config](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3Config) configuration class: [JinaEmbeddingsV3ForSequenceClassification](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3ForSequenceClassification) (JinaEmbeddingsV3Config model) - [LayoutLMConfig](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMConfig) configuration class: [LayoutLMForSequenceClassification](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForSequenceClassification) (LayoutLMConfig model) - [LayoutLMv2Config](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Config) configuration class: [LayoutLMv2ForSequenceClassification](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2ForSequenceClassification) (LayoutLMv2Config model) - [LayoutLMv3Config](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Config) configuration class: [LayoutLMv3ForSequenceClassification](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3ForSequenceClassification) (LayoutLMv3Config model) - [LiltConfig](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltConfig) configuration class: [LiltForSequenceClassification](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltForSequenceClassification) (LiltConfig model) - [LlamaConfig](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaConfig) configuration class: [LlamaForSequenceClassification](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaForSequenceClassification) (LlamaConfig model) - [LongformerConfig](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerConfig) configuration class: [LongformerForSequenceClassification](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForSequenceClassification) (LongformerConfig model) - [LukeConfig](/docs/transformers/main/ru/model_doc/luke#transformers.LukeConfig) configuration class: [LukeForSequenceClassification](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForSequenceClassification) (LukeConfig model) - [MBartConfig](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartConfig) configuration class: [MBartForSequenceClassification](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForSequenceClassification) (MBartConfig model) - [MPNetConfig](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetConfig) configuration class: [MPNetForSequenceClassification](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForSequenceClassification) (MPNetConfig model) - [MT5Config](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5Config) configuration class: [MT5ForSequenceClassification](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5ForSequenceClassification) (MT5Config model) - [MarkupLMConfig](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMConfig) configuration class: [MarkupLMForSequenceClassification](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMForSequenceClassification) (MarkupLMConfig model) - [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig) configuration class: [MegatronBertForSequenceClassification](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForSequenceClassification) (MegatronBertConfig model) - [MiniCPM3Config](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3Config) configuration class: [MiniCPM3ForSequenceClassification](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3ForSequenceClassification) (MiniCPM3Config model) - [MiniMaxConfig](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxConfig) configuration class: [MiniMaxForSequenceClassification](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxForSequenceClassification) (MiniMaxConfig model) - [Ministral3Config](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3Config) configuration class: [Ministral3ForSequenceClassification](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3ForSequenceClassification) (Ministral3Config model) - [MinistralConfig](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralConfig) configuration class: [MinistralForSequenceClassification](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralForSequenceClassification) (MinistralConfig model) - [Mistral4Config](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Config) configuration class: [Mistral4ForSequenceClassification](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForSequenceClassification) (Mistral4Config model) - [MistralConfig](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralConfig) configuration class: [MistralForSequenceClassification](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralForSequenceClassification) (MistralConfig model) - [MixtralConfig](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralConfig) configuration class: [MixtralForSequenceClassification](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralForSequenceClassification) (MixtralConfig model) - [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig) configuration class: [MobileBertForSequenceClassification](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForSequenceClassification) (MobileBertConfig model) - [ModernBertConfig](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertConfig) configuration class: [ModernBertForSequenceClassification](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForSequenceClassification) (ModernBertConfig model) - [ModernBertDecoderConfig](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderConfig) configuration class: [ModernBertDecoderForSequenceClassification](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderForSequenceClassification) (ModernBertDecoderConfig model) - [ModernVBertConfig](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertConfig) configuration class: [ModernVBertForSequenceClassification](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertForSequenceClassification) (ModernVBertConfig model) - [MptConfig](/docs/transformers/main/ru/model_doc/mpt#transformers.MptConfig) configuration class: [MptForSequenceClassification](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForSequenceClassification) (MptConfig model) - [MraConfig](/docs/transformers/main/ru/model_doc/mra#transformers.MraConfig) configuration class: [MraForSequenceClassification](/docs/transformers/main/ru/model_doc/mra#transformers.MraForSequenceClassification) (MraConfig model) - [MvpConfig](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpConfig) configuration class: [MvpForSequenceClassification](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForSequenceClassification) (MvpConfig model) - [NemotronConfig](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronConfig) configuration class: [NemotronForSequenceClassification](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronForSequenceClassification) (NemotronConfig model) - [NomicBertConfig](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertConfig) configuration class: [NomicBertForSequenceClassification](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertForSequenceClassification) (NomicBertConfig model) - [NystromformerConfig](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerConfig) configuration class: [NystromformerForSequenceClassification](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForSequenceClassification) (NystromformerConfig model) - [OPTConfig](/docs/transformers/main/ru/model_doc/opt#transformers.OPTConfig) configuration class: [OPTForSequenceClassification](/docs/transformers/main/ru/model_doc/opt#transformers.OPTForSequenceClassification) (OPTConfig model) - [Olmo2Config](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2Config) configuration class: [Olmo2ForSequenceClassification](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2ForSequenceClassification) (Olmo2Config model) - [Olmo3Config](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3Config) configuration class: [Olmo3ForSequenceClassification](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3ForSequenceClassification) (Olmo3Config model) - [OlmoConfig](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoConfig) configuration class: [OlmoForSequenceClassification](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoForSequenceClassification) (OlmoConfig model) - [OpenAIGPTConfig](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTConfig) configuration class: [OpenAIGPTForSequenceClassification](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTForSequenceClassification) (OpenAIGPTConfig model) - [PLBartConfig](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartConfig) configuration class: [PLBartForSequenceClassification](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartForSequenceClassification) (PLBartConfig model) - [PerceiverConfig](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverConfig) configuration class: [PerceiverForSequenceClassification](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForSequenceClassification) (PerceiverConfig model) - [PersimmonConfig](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonConfig) configuration class: [PersimmonForSequenceClassification](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonForSequenceClassification) (PersimmonConfig model) - [Phi3Config](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3Config) configuration class: [Phi3ForSequenceClassification](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3ForSequenceClassification) (Phi3Config model) - [PhiConfig](/docs/transformers/main/ru/model_doc/phi#transformers.PhiConfig) configuration class: [PhiForSequenceClassification](/docs/transformers/main/ru/model_doc/phi#transformers.PhiForSequenceClassification) (PhiConfig model) - [PhimoeConfig](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeConfig) configuration class: [PhimoeForSequenceClassification](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeForSequenceClassification) (PhimoeConfig model) - [Qwen2Config](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Config) configuration class: [Qwen2ForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2ForSequenceClassification) (Qwen2Config model) - [Qwen2MoeConfig](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeConfig) configuration class: [Qwen2MoeForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeForSequenceClassification) (Qwen2MoeConfig model) - [Qwen3Config](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3Config) configuration class: [Qwen3ForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3ForSequenceClassification) (Qwen3Config model) - [Qwen3MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeConfig) configuration class: [Qwen3MoeForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeForSequenceClassification) (Qwen3MoeConfig model) - [Qwen3NextConfig](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextConfig) configuration class: [Qwen3NextForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextForSequenceClassification) (Qwen3NextConfig model) - [Qwen3_5Config](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Config) configuration class: [Qwen3_5ForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForSequenceClassification) (Qwen3_5Config model) - [Qwen3_5TextConfig](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5TextConfig) configuration class: [Qwen3_5TextForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5TextForSequenceClassification) (Qwen3_5TextConfig model) - [ReformerConfig](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerConfig) configuration class: [ReformerForSequenceClassification](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerForSequenceClassification) (ReformerConfig model) - [RemBertConfig](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertConfig) configuration class: [RemBertForSequenceClassification](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForSequenceClassification) (RemBertConfig model) - [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig) configuration class: [RoCBertForSequenceClassification](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForSequenceClassification) (RoCBertConfig model) - [RoFormerConfig](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerConfig) configuration class: [RoFormerForSequenceClassification](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForSequenceClassification) (RoFormerConfig model) - [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig) configuration class: [RobertaForSequenceClassification](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForSequenceClassification) (RobertaConfig model) - [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig) configuration class: [RobertaPreLayerNormForSequenceClassification](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForSequenceClassification) (RobertaPreLayerNormConfig model) - [SeedOssConfig](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssConfig) configuration class: [SeedOssForSequenceClassification](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssForSequenceClassification) (SeedOssConfig model) - [SmolLM3Config](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3Config) configuration class: [SmolLM3ForSequenceClassification](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3ForSequenceClassification) (SmolLM3Config model) - [SqueezeBertConfig](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertConfig) configuration class: [SqueezeBertForSequenceClassification](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForSequenceClassification) (SqueezeBertConfig model) - [StableLmConfig](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmConfig) configuration class: [StableLmForSequenceClassification](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmForSequenceClassification) (StableLmConfig model) - [Starcoder2Config](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2Config) configuration class: [Starcoder2ForSequenceClassification](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2ForSequenceClassification) (Starcoder2Config model) - [T5Config](/docs/transformers/main/ru/model_doc/t5#transformers.T5Config) configuration class: [T5ForSequenceClassification](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForSequenceClassification) (T5Config model) - [T5Gemma2Config](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Config) configuration class: [T5Gemma2ForSequenceClassification](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForSequenceClassification) (T5Gemma2Config model) - [T5GemmaConfig](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaConfig) configuration class: [T5GemmaForSequenceClassification](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaForSequenceClassification) (T5GemmaConfig model) - [TapasConfig](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasConfig) configuration class: [TapasForSequenceClassification](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasForSequenceClassification) (TapasConfig model) - [UMT5Config](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5Config) configuration class: [UMT5ForSequenceClassification](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5ForSequenceClassification) (UMT5Config model) - [UltraVBertConfig](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertConfig) configuration class: [UltraVBertForSequenceClassification](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertForSequenceClassification) (UltraVBertConfig model) - [UltrabertConfig](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertConfig) configuration class: [UltrabertForSequenceClassification](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertForSequenceClassification) (UltrabertConfig model) - [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig) configuration class: [XLMForSequenceClassification](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMForSequenceClassification) (XLMConfig model) - [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig) configuration class: [XLMRobertaForSequenceClassification](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForSequenceClassification) (XLMRobertaConfig model) - [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig) configuration class: [XLMRobertaXLForSequenceClassification](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForSequenceClassification) (XLMRobertaXLConfig model) - [XLNetConfig](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetConfig) configuration class: [XLNetForSequenceClassification](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetForSequenceClassification) (XLNetConfig model) - [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig) configuration class: [XmodForSequenceClassification](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForSequenceClassification) (XmodConfig model) - [YosoConfig](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoConfig) configuration class: [YosoForSequenceClassification](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForSequenceClassification) (YosoConfig model) - [Zamba2Config](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2Config) configuration class: [Zamba2ForSequenceClassification](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2ForSequenceClassification) (Zamba2Config model) - [ZambaConfig](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaConfig) configuration class: [ZambaForSequenceClassification](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaForSequenceClassification) (ZambaConfig model)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для классификации последовательностей) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForSequenceClassification

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForSequenceClassification.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForSequenceClassification.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для классификации последовательностей) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **albert** -- [AlbertForSequenceClassification](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForSequenceClassification) (модель AlbertConfig)
- **arcee** -- [ArceeForSequenceClassification](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeForSequenceClassification) (модель ArceeConfig)
- **axk1** -- [AXK1ForSequenceClassification](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1ForSequenceClassification) (модель AXK1Config)
- **axk2** -- [AXK2ForSequenceClassification](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2ForSequenceClassification) (модель AXK2Config)
- **bart** -- [BartForSequenceClassification](/docs/transformers/main/ru/model_doc/bart#transformers.BartForSequenceClassification) (модель BartConfig)
- **bert** -- [BertForSequenceClassification](/docs/transformers/main/ru/model_doc/bert#transformers.BertForSequenceClassification) (модель BertConfig)
- **big_bird** -- [BigBirdForSequenceClassification](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForSequenceClassification) (модель BigBirdConfig)
- **bigbird_pegasus** -- [BigBirdPegasusForSequenceClassification](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusForSequenceClassification) (модель BigBirdPegasusConfig)
- **biogpt** -- [BioGptForSequenceClassification](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptForSequenceClassification) (модель BioGptConfig)
- **bloom** -- [BloomForSequenceClassification](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForSequenceClassification) (модель BloomConfig)
- **camembert** -- [CamembertForSequenceClassification](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForSequenceClassification) (модель CamembertConfig)
- **canine** -- [CanineForSequenceClassification](/docs/transformers/main/ru/model_doc/canine#transformers.CanineForSequenceClassification) (модель CanineConfig)
- **cohere_compass_text** -- [CohereCompassTextForSequenceClassification](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassTextForSequenceClassification) (модель CohereCompassTextConfig)
- **convbert** -- [ConvBertForSequenceClassification](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForSequenceClassification) (модель ConvBertConfig)
- **ctrl** -- [CTRLForSequenceClassification](/docs/transformers/main/ru/model_doc/ctrl#transformers.CTRLForSequenceClassification) (модель CTRLConfig)
- **data2vec-text** -- [Data2VecTextForSequenceClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForSequenceClassification) (модель Data2VecTextConfig)
- **deberta** -- [DebertaForSequenceClassification](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForSequenceClassification) (модель DebertaConfig)
- **deberta-v2** -- [DebertaV2ForSequenceClassification](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForSequenceClassification) (модель DebertaV2Config)
- **deepseek_v2** -- [DeepseekV2ForSequenceClassification](/docs/transformers/main/ru/model_doc/deepseek_v2#transformers.DeepseekV2ForSequenceClassification) (модель DeepseekV2Config)
- **deepseek_v3** -- [DeepseekV3ForSequenceClassification](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3ForSequenceClassification) (модель DeepseekV3Config)
- **diffllama** -- [DiffLlamaForSequenceClassification](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaForSequenceClassification) (модель DiffLlamaConfig)
- **distilbert** -- [DistilBertForSequenceClassification](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForSequenceClassification) (модель DistilBertConfig)
- **doge** -- [DogeForSequenceClassification](/docs/transformers/main/ru/model_doc/doge#transformers.DogeForSequenceClassification) (модель DogeConfig)
- **electra** -- [ElectraForSequenceClassification](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForSequenceClassification) (модель ElectraConfig)
- **ernie** -- [ErnieForSequenceClassification](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForSequenceClassification) (модель ErnieConfig)
- **esm** -- [EsmForSequenceClassification](/docs/transformers/main/ru/model_doc/esm#transformers.EsmForSequenceClassification) (модель EsmConfig)
- **esmc** -- [EsmcForSequenceClassification](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcForSequenceClassification) (модель EsmcConfig)
- **eurobert** -- [EuroBertForSequenceClassification](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertForSequenceClassification) (модель EuroBertConfig)
- **exaone4** -- [Exaone4ForSequenceClassification](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForSequenceClassification) (модель Exaone4Config)
- **falcon** -- [FalconForSequenceClassification](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconForSequenceClassification) (модель FalconConfig)
- **flaubert** -- [FlaubertForSequenceClassification](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertForSequenceClassification) (модель FlaubertConfig)
- **fnet** -- [FNetForSequenceClassification](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForSequenceClassification) (модель FNetConfig)
- **funnel** -- [FunnelForSequenceClassification](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForSequenceClassification) (модель FunnelConfig)
- **gemma** -- [GemmaForSequenceClassification](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaForSequenceClassification) (модель GemmaConfig)
- **gemma2** -- [Gemma2ForSequenceClassification](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2ForSequenceClassification) (модель Gemma2Config)
- **gemma3** -- [Gemma3ForSequenceClassification](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForSequenceClassification) (модель Gemma3Config)
- **gemma3_text** -- [Gemma3TextForSequenceClassification](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3TextForSequenceClassification) (модель Gemma3TextConfig)
- **glm** -- [GlmForSequenceClassification](/docs/transformers/main/ru/model_doc/glm#transformers.GlmForSequenceClassification) (модель GlmConfig)
- **glm4** -- [Glm4ForSequenceClassification](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4ForSequenceClassification) (модель Glm4Config)
- **gpt-sw3** -- [GPT2ForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2ForSequenceClassification) (модель GPT2Config)
- **gpt2** -- [GPT2ForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2ForSequenceClassification) (модель GPT2Config)
- **gpt_bigcode** -- [GPTBigCodeForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeForSequenceClassification) (модель GPTBigCodeConfig)
- **gpt_neo** -- [GPTNeoForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoForSequenceClassification) (модель GPTNeoConfig)
- **gpt_neox** -- [GPTNeoXForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXForSequenceClassification) (модель GPTNeoXConfig)
- **gpt_oss** -- [GptOssForSequenceClassification](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssForSequenceClassification) (модель GptOssConfig)
- **gptj** -- [GPTJForSequenceClassification](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJForSequenceClassification) (модель GPTJConfig)
- **gte** -- [GteForSequenceClassification](/docs/transformers/main/ru/model_doc/gte#transformers.GteForSequenceClassification) (модель GteConfig)
- **helium** -- [HeliumForSequenceClassification](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumForSequenceClassification) (модель HeliumConfig)
- **hunyuan_v1_dense** -- [HunYuanDenseV1ForSequenceClassification](/docs/transformers/main/ru/model_doc/hunyuan_v1_dense#transformers.HunYuanDenseV1ForSequenceClassification) (модель HunYuanDenseV1Config)
- **hunyuan_v1_moe** -- [HunYuanMoEV1ForSequenceClassification](/docs/transformers/main/ru/model_doc/hunyuan_v1_moe#transformers.HunYuanMoEV1ForSequenceClassification) (модель HunYuanMoEV1Config)
- **ibert** -- [IBertForSequenceClassification](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForSequenceClassification) (модель IBertConfig)
- **jamba** -- [JambaForSequenceClassification](/docs/transformers/main/ru/model_doc/jamba#transformers.JambaForSequenceClassification) (модель JambaConfig)
- **jetmoe** -- [JetMoeForSequenceClassification](/docs/transformers/main/ru/model_doc/jetmoe#transformers.JetMoeForSequenceClassification) (модель JetMoeConfig)
- **jina_embeddings_v3** -- [JinaEmbeddingsV3ForSequenceClassification](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3ForSequenceClassification) (модель JinaEmbeddingsV3Config)
- **layoutlm** -- [LayoutLMForSequenceClassification](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForSequenceClassification) (модель LayoutLMConfig)
- **layoutlmv2** -- [LayoutLMv2ForSequenceClassification](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2ForSequenceClassification) (модель LayoutLMv2Config)
- **layoutlmv3** -- [LayoutLMv3ForSequenceClassification](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3ForSequenceClassification) (модель LayoutLMv3Config)
- **lilt** -- [LiltForSequenceClassification](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltForSequenceClassification) (модель LiltConfig)
- **llama** -- [LlamaForSequenceClassification](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaForSequenceClassification) (модель LlamaConfig)
- **longformer** -- [LongformerForSequenceClassification](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForSequenceClassification) (модель LongformerConfig)
- **luke** -- [LukeForSequenceClassification](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForSequenceClassification) (модель LukeConfig)
- **markuplm** -- [MarkupLMForSequenceClassification](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMForSequenceClassification) (модель MarkupLMConfig)
- **mbart** -- [MBartForSequenceClassification](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForSequenceClassification) (модель MBartConfig)
- **megatron-bert** -- [MegatronBertForSequenceClassification](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForSequenceClassification) (модель MegatronBertConfig)
- **minicpm3** -- [MiniCPM3ForSequenceClassification](/docs/transformers/main/ru/model_doc/minicpm3#transformers.MiniCPM3ForSequenceClassification) (модель MiniCPM3Config)
- **minimax** -- [MiniMaxForSequenceClassification](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxForSequenceClassification) (модель MiniMaxConfig)
- **ministral** -- [MinistralForSequenceClassification](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralForSequenceClassification) (модель MinistralConfig)
- **ministral3** -- [Ministral3ForSequenceClassification](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3ForSequenceClassification) (модель Ministral3Config)
- **mistral** -- [MistralForSequenceClassification](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralForSequenceClassification) (модель MistralConfig)
- **mistral4** -- [Mistral4ForSequenceClassification](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForSequenceClassification) (модель Mistral4Config)
- **mixtral** -- [MixtralForSequenceClassification](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralForSequenceClassification) (модель MixtralConfig)
- **mobilebert** -- [MobileBertForSequenceClassification](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForSequenceClassification) (модель MobileBertConfig)
- **modernbert** -- [ModernBertForSequenceClassification](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForSequenceClassification) (модель ModernBertConfig)
- **modernbert-decoder** -- [ModernBertDecoderForSequenceClassification](/docs/transformers/main/ru/model_doc/modernbert-decoder#transformers.ModernBertDecoderForSequenceClassification) (модель ModernBertDecoderConfig)
- **modernvbert** -- [ModernVBertForSequenceClassification](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertForSequenceClassification) (модель ModernVBertConfig)
- **mpnet** -- [MPNetForSequenceClassification](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForSequenceClassification) (модель MPNetConfig)
- **mpt** -- [MptForSequenceClassification](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForSequenceClassification) (модель MptConfig)
- **mra** -- [MraForSequenceClassification](/docs/transformers/main/ru/model_doc/mra#transformers.MraForSequenceClassification) (модель MraConfig)
- **mt5** -- [MT5ForSequenceClassification](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5ForSequenceClassification) (модель MT5Config)
- **mvp** -- [MvpForSequenceClassification](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForSequenceClassification) (модель MvpConfig)
- **nemotron** -- [NemotronForSequenceClassification](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronForSequenceClassification) (модель NemotronConfig)
- **nomic_bert** -- [NomicBertForSequenceClassification](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertForSequenceClassification) (модель NomicBertConfig)
- **nystromformer** -- [NystromformerForSequenceClassification](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForSequenceClassification) (модель NystromformerConfig)
- **olmo** -- [OlmoForSequenceClassification](/docs/transformers/main/ru/model_doc/olmo#transformers.OlmoForSequenceClassification) (модель OlmoConfig)
- **olmo2** -- [Olmo2ForSequenceClassification](/docs/transformers/main/ru/model_doc/olmo2#transformers.Olmo2ForSequenceClassification) (модель Olmo2Config)
- **olmo3** -- [Olmo3ForSequenceClassification](/docs/transformers/main/ru/model_doc/olmo3#transformers.Olmo3ForSequenceClassification) (модель Olmo3Config)
- **openai-gpt** -- [OpenAIGPTForSequenceClassification](/docs/transformers/main/ru/model_doc/openai-gpt#transformers.OpenAIGPTForSequenceClassification) (модель OpenAIGPTConfig)
- **opt** -- [OPTForSequenceClassification](/docs/transformers/main/ru/model_doc/opt#transformers.OPTForSequenceClassification) (модель OPTConfig)
- **perceiver** -- [PerceiverForSequenceClassification](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForSequenceClassification) (модель PerceiverConfig)
- **persimmon** -- [PersimmonForSequenceClassification](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonForSequenceClassification) (модель PersimmonConfig)
- **phi** -- [PhiForSequenceClassification](/docs/transformers/main/ru/model_doc/phi#transformers.PhiForSequenceClassification) (модель PhiConfig)
- **phi3** -- [Phi3ForSequenceClassification](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3ForSequenceClassification) (модель Phi3Config)
- **phimoe** -- [PhimoeForSequenceClassification](/docs/transformers/main/ru/model_doc/phimoe#transformers.PhimoeForSequenceClassification) (модель PhimoeConfig)
- **plbart** -- [PLBartForSequenceClassification](/docs/transformers/main/ru/model_doc/plbart#transformers.PLBartForSequenceClassification) (модель PLBartConfig)
- **qwen2** -- [Qwen2ForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2ForSequenceClassification) (модель Qwen2Config)
- **qwen2_moe** -- [Qwen2MoeForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeForSequenceClassification) (модель Qwen2MoeConfig)
- **qwen3** -- [Qwen3ForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3ForSequenceClassification) (модель Qwen3Config)
- **qwen3_5** -- [Qwen3_5ForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForSequenceClassification) (модель Qwen3_5Config)
- **qwen3_5_text** -- [Qwen3_5TextForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5TextForSequenceClassification) (модель Qwen3_5TextConfig)
- **qwen3_moe** -- [Qwen3MoeForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeForSequenceClassification) (модель Qwen3MoeConfig)
- **qwen3_next** -- [Qwen3NextForSequenceClassification](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextForSequenceClassification) (модель Qwen3NextConfig)
- **reformer** -- [ReformerForSequenceClassification](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerForSequenceClassification) (модель ReformerConfig)
- **rembert** -- [RemBertForSequenceClassification](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForSequenceClassification) (модель RemBertConfig)
- **roberta** -- [RobertaForSequenceClassification](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForSequenceClassification) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormForSequenceClassification](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForSequenceClassification) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertForSequenceClassification](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForSequenceClassification) (модель RoCBertConfig)
- **roformer** -- [RoFormerForSequenceClassification](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForSequenceClassification) (модель RoFormerConfig)
- **seed_oss** -- [SeedOssForSequenceClassification](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssForSequenceClassification) (модель SeedOssConfig)
- **smollm3** -- [SmolLM3ForSequenceClassification](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3ForSequenceClassification) (модель SmolLM3Config)
- **squeezebert** -- [SqueezeBertForSequenceClassification](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForSequenceClassification) (модель SqueezeBertConfig)
- **stablelm** -- [StableLmForSequenceClassification](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmForSequenceClassification) (модель StableLmConfig)
- **starcoder2** -- [Starcoder2ForSequenceClassification](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2ForSequenceClassification) (модель Starcoder2Config)
- **t5** -- [T5ForSequenceClassification](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForSequenceClassification) (модель T5Config)
- **t5gemma** -- [T5GemmaForSequenceClassification](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaForSequenceClassification) (модель T5GemmaConfig)
- **t5gemma2** -- [T5Gemma2ForSequenceClassification](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForSequenceClassification) (модель T5Gemma2Config)
- **tapas** -- [TapasForSequenceClassification](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasForSequenceClassification) (модель TapasConfig)
- **ultrabert** -- [UltrabertForSequenceClassification](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertForSequenceClassification) (модель UltrabertConfig)
- **ultravbert** -- [UltraVBertForSequenceClassification](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertForSequenceClassification) (модель UltraVBertConfig)
- **umt5** -- [UMT5ForSequenceClassification](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5ForSequenceClassification) (модель UMT5Config)
- **xlm** -- [XLMForSequenceClassification](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMForSequenceClassification) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaForSequenceClassification](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForSequenceClassification) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLForSequenceClassification](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForSequenceClassification) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetForSequenceClassification](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetForSequenceClassification) (модель XLNetConfig)
- **xmod** -- [XmodForSequenceClassification](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForSequenceClassification) (модель XmodConfig)
- **yoso** -- [YosoForSequenceClassification](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForSequenceClassification) (модель YosoConfig)
- **zamba** -- [ZambaForSequenceClassification](/docs/transformers/main/ru/model_doc/zamba#transformers.ZambaForSequenceClassification) (модель ZambaConfig)
- **zamba2** -- [Zamba2ForSequenceClassification](/docs/transformers/main/ru/model_doc/zamba2#transformers.Zamba2ForSequenceClassification) (модель Zamba2Config)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForSequenceClassification

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForMultipleChoice[[transformers.AutoModelForMultipleChoice]]

#### transformers.AutoModelForMultipleChoice[[transformers.AutoModelForMultipleChoice]]

```python
transformers.AutoModelForMultipleChoice(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2400)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для множественного выбора).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForMultipleChoice.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [AlbertConfig](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertConfig): [AlbertForMultipleChoice](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForMultipleChoice) (модель AlbertConfig) - класс конфигурации [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig): [BertForMultipleChoice](/docs/transformers/main/ru/model_doc/bert#transformers.BertForMultipleChoice) (модель BertConfig) - класс конфигурации [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig): [BigBirdForMultipleChoice](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForMultipleChoice) (модель BigBirdConfig) - класс конфигурации [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig): [CamembertForMultipleChoice](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForMultipleChoice) (модель CamembertConfig) - класс конфигурации [CanineConfig](/docs/transformers/main/ru/model_doc/canine#transformers.CanineConfig): [CanineForMultipleChoice](/docs/transformers/main/ru/model_doc/canine#transformers.CanineForMultipleChoice) (модель CanineConfig) - класс конфигурации [ConvBertConfig](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertConfig): [ConvBertForMultipleChoice](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForMultipleChoice) (модель ConvBertConfig) - класс конфигурации [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig): [Data2VecTextForMultipleChoice](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForMultipleChoice) (модель Data2VecTextConfig) - класс конфигурации [DebertaV2Config](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Config): [DebertaV2ForMultipleChoice](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForMultipleChoice) (модель DebertaV2Config) - класс конфигурации [DistilBertConfig](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertConfig): [DistilBertForMultipleChoice](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForMultipleChoice) (модель DistilBertConfig) - класс конфигурации [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig): [ElectraForMultipleChoice](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForMultipleChoice) (модель ElectraConfig) - класс конфигурации [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig): [ErnieForMultipleChoice](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForMultipleChoice) (модель ErnieConfig) - класс конфигурации [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig): [FNetForMultipleChoice](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForMultipleChoice) (модель FNetConfig) - класс конфигурации [FlaubertConfig](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertConfig): [FlaubertForMultipleChoice](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertForMultipleChoice) (модель FlaubertConfig) - класс конфигурации [FunnelConfig](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelConfig): [FunnelForMultipleChoice](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForMultipleChoice) (модель FunnelConfig) - класс конфигурации [IBertConfig](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertConfig): [IBertForMultipleChoice](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForMultipleChoice) (модель IBertConfig) - класс конфигурации [LongformerConfig](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerConfig): [LongformerForMultipleChoice](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForMultipleChoice) (модель LongformerConfig) - класс конфигурации [LukeConfig](/docs/transformers/main/ru/model_doc/luke#transformers.LukeConfig): [LukeForMultipleChoice](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForMultipleChoice) (модель LukeConfig) - класс конфигурации [MPNetConfig](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetConfig): [MPNetForMultipleChoice](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForMultipleChoice) (модель MPNetConfig) - класс конфигурации [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig): [MegatronBertForMultipleChoice](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForMultipleChoice) (модель MegatronBertConfig) - класс конфигурации [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig): [MobileBertForMultipleChoice](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForMultipleChoice) (модель MobileBertConfig) - класс конфигурации [ModernBertConfig](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertConfig): [ModernBertForMultipleChoice](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForMultipleChoice) (модель ModernBertConfig) - класс конфигурации [MraConfig](/docs/transformers/main/ru/model_doc/mra#transformers.MraConfig): [MraForMultipleChoice](/docs/transformers/main/ru/model_doc/mra#transformers.MraForMultipleChoice) (модель MraConfig) - класс конфигурации [NystromformerConfig](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerConfig): [NystromformerForMultipleChoice](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForMultipleChoice) (модель NystromformerConfig) - класс конфигурации [RemBertConfig](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertConfig): [RemBertForMultipleChoice](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForMultipleChoice) (модель RemBertConfig) - класс конфигурации [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig): [RoCBertForMultipleChoice](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForMultipleChoice) (модель RoCBertConfig) - класс конфигурации [RoFormerConfig](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerConfig): [RoFormerForMultipleChoice](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForMultipleChoice) (модель RoFormerConfig) - класс конфигурации [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig): [RobertaForMultipleChoice](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForMultipleChoice) (модель RobertaConfig) - класс конфигурации [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig): [RobertaPreLayerNormForMultipleChoice](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForMultipleChoice) (модель RobertaPreLayerNormConfig) - класс конфигурации [SqueezeBertConfig](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertConfig): [SqueezeBertForMultipleChoice](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForMultipleChoice) (модель SqueezeBertConfig) - класс конфигурации [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig): [XLMForMultipleChoice](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMForMultipleChoice) (модель XLMConfig) - класс конфигурации [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig): [XLMRobertaForMultipleChoice](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForMultipleChoice) (модель XLMRobertaConfig) - класс конфигурации [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig): [XLMRobertaXLForMultipleChoice](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForMultipleChoice) (модель XLMRobertaXLConfig) - класс конфигурации [XLNetConfig](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetConfig): [XLNetForMultipleChoice](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetForMultipleChoice) (модель XLNetConfig) - класс конфигурации [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig): [XmodForMultipleChoice](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForMultipleChoice) (модель XmodConfig) - класс конфигурации [YosoConfig](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoConfig): [YosoForMultipleChoice](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForMultipleChoice) (модель YosoConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для задачи множественного выбора) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForMultipleChoice

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForMultipleChoice.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForMultipleChoice.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для задачи выбора из нескольких вариантов) на основе предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **albert** -- [AlbertForMultipleChoice](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForMultipleChoice) (модель AlbertConfig)
- **bert** -- [BertForMultipleChoice](/docs/transformers/main/ru/model_doc/bert#transformers.BertForMultipleChoice) (модель BertConfig)
- **big_bird** -- [BigBirdForMultipleChoice](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForMultipleChoice) (модель BigBirdConfig)
- **camembert** -- [CamembertForMultipleChoice](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForMultipleChoice) (модель CamembertConfig)
- **canine** -- [CanineForMultipleChoice](/docs/transformers/main/ru/model_doc/canine#transformers.CanineForMultipleChoice) (модель CanineConfig)
- **convbert** -- [ConvBertForMultipleChoice](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForMultipleChoice) (модель ConvBertConfig)
- **data2vec-text** -- [Data2VecTextForMultipleChoice](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForMultipleChoice) (модель Data2VecTextConfig)
- **deberta-v2** -- [DebertaV2ForMultipleChoice](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForMultipleChoice) (модель DebertaV2Config)
- **distilbert** -- [DistilBertForMultipleChoice](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForMultipleChoice) (модель DistilBertConfig)
- **electra** -- [ElectraForMultipleChoice](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForMultipleChoice) (модель ElectraConfig)
- **ernie** -- [ErnieForMultipleChoice](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForMultipleChoice) (модель ErnieConfig)
- **flaubert** -- [FlaubertForMultipleChoice](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertForMultipleChoice) (модель FlaubertConfig)
- **fnet** -- [FNetForMultipleChoice](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForMultipleChoice) (модель FNetConfig)
- **funnel** -- [FunnelForMultipleChoice](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForMultipleChoice) (модель FunnelConfig)
- **ibert** -- [IBertForMultipleChoice](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForMultipleChoice) (модель IBertConfig)
- **longformer** -- [LongformerForMultipleChoice](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForMultipleChoice) (модель LongformerConfig)
- **luke** -- [LukeForMultipleChoice](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForMultipleChoice) (модель LukeConfig)
- **megatron-bert** -- [MegatronBertForMultipleChoice](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForMultipleChoice) (модель MegatronBertConfig)
- **mobilebert** -- [MobileBertForMultipleChoice](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForMultipleChoice) (модель MobileBertConfig)
- **modernbert** -- [ModernBertForMultipleChoice](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForMultipleChoice) (модель ModernBertConfig)
- **mpnet** -- [MPNetForMultipleChoice](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForMultipleChoice) (модель MPNetConfig)
- **mra** -- [MraForMultipleChoice](/docs/transformers/main/ru/model_doc/mra#transformers.MraForMultipleChoice) (модель MraConfig)
- **nystromformer** -- [NystromformerForMultipleChoice](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForMultipleChoice) (модель NystromformerConfig)
- **rembert** -- [RemBertForMultipleChoice](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForMultipleChoice) (модель RemBertConfig)
- **roberta** -- [RobertaForMultipleChoice](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForMultipleChoice) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormForMultipleChoice](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForMultipleChoice) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertForMultipleChoice](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForMultipleChoice) (модель RoCBertConfig)
- **roformer** -- [RoFormerForMultipleChoice](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForMultipleChoice) (модель RoFormerConfig)
- **squeezebert** -- [SqueezeBertForMultipleChoice](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForMultipleChoice) (модель SqueezeBertConfig)
- **xlm** -- [XLMForMultipleChoice](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMForMultipleChoice) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaForMultipleChoice](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForMultipleChoice) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLForMultipleChoice](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForMultipleChoice) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetForMultipleChoice](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetForMultipleChoice) (модель XLNetConfig)
- **xmod** -- [XmodForMultipleChoice](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForMultipleChoice) (модель XmodConfig)
- **yoso** -- [YosoForMultipleChoice](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForMultipleChoice) (модель YosoConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForMultipleChoice

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForMultipleChoice.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForMultipleChoice.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForNextSentencePrediction[[transformers.AutoModelForNextSentencePrediction]]

#### transformers.AutoModelForNextSentencePrediction[[transformers.AutoModelForNextSentencePrediction]]

```python
transformers.AutoModelForNextSentencePrediction(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2407)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для предсказания следующего предложения).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForNextSentencePrediction.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig): [BertForNextSentencePrediction](/docs/transformers/main/ru/model_doc/bert#transformers.BertForNextSentencePrediction) (модель BertConfig) - класс конфигурации [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig): [ErnieForNextSentencePrediction](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForNextSentencePrediction) (модель ErnieConfig) - класс конфигурации [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig): [FNetForNextSentencePrediction](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForNextSentencePrediction) (модель FNetConfig) - класс конфигурации [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig): [MegatronBertForNextSentencePrediction](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForNextSentencePrediction) (модель MegatronBertConfig) - класс конфигурации [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig): [MobileBertForNextSentencePrediction](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForNextSentencePrediction) (модель MobileBertConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для предсказания следующего предложения) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForNextSentencePrediction

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForNextSentencePrediction.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForNextSentencePrediction.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для предсказания следующего предложения) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **bert** -- [BertForNextSentencePrediction](/docs/transformers/main/ru/model_doc/bert#transformers.BertForNextSentencePrediction) (модель BertConfig)
- **ernie** -- [ErnieForNextSentencePrediction](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForNextSentencePrediction) (модель ErnieConfig)
- **fnet** -- [FNetForNextSentencePrediction](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForNextSentencePrediction) (модель FNetConfig)
- **megatron-bert** -- [MegatronBertForNextSentencePrediction](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForNextSentencePrediction) (модель MegatronBertConfig)
- **mobilebert** -- [MobileBertForNextSentencePrediction](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForNextSentencePrediction) (модель MobileBertConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForNextSentencePrediction

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForNextSentencePrediction.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForNextSentencePrediction.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForTokenClassification[[transformers.AutoModelForTokenClassification]]

#### transformers.AutoModelForTokenClassification[[transformers.AutoModelForTokenClassification]]

```python
transformers.AutoModelForTokenClassification(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2393)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для классификации токенов).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForTokenClassification.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : The model class to instantiate is selected based on the configuration class:  - [AXK1Config](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1Config) configuration class: [AXK1ForTokenClassification](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1ForTokenClassification) (AXK1Config model) - [AXK2Config](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2Config) configuration class: [AXK2ForTokenClassification](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2ForTokenClassification) (AXK2Config model) - [AlbertConfig](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertConfig) configuration class: [AlbertForTokenClassification](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForTokenClassification) (AlbertConfig model) - [ApertusConfig](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusConfig) configuration class: [ApertusForTokenClassification](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusForTokenClassification) (ApertusConfig model) - [ArceeConfig](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeConfig) configuration class: [ArceeForTokenClassification](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeForTokenClassification) (ArceeConfig model) - [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig) configuration class: [BertForTokenClassification](/docs/transformers/main/ru/model_doc/bert#transformers.BertForTokenClassification) (BertConfig model) - [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig) configuration class: [BigBirdForTokenClassification](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForTokenClassification) (BigBirdConfig model) - [BioGptConfig](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptConfig) configuration class: [BioGptForTokenClassification](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptForTokenClassification) (BioGptConfig model) - [BloomConfig](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomConfig) configuration class: [BloomForTokenClassification](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForTokenClassification) (BloomConfig model) - [BrosConfig](/docs/transformers/main/ru/model_doc/bros#transformers.BrosConfig) configuration class: [BrosForTokenClassification](/docs/transformers/main/ru/model_doc/bros#transformers.BrosForTokenClassification) (BrosConfig model) - [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig) configuration class: [CamembertForTokenClassification](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForTokenClassification) (CamembertConfig model) - [CanineConfig](/docs/transformers/main/ru/model_doc/canine#transformers.CanineConfig) configuration class: [CanineForTokenClassification](/docs/transformers/main/ru/model_doc/canine#transformers.CanineForTokenClassification) (CanineConfig model) - [ConvBertConfig](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertConfig) configuration class: [ConvBertForTokenClassification](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForTokenClassification) (ConvBertConfig model) - [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig) configuration class: [Data2VecTextForTokenClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForTokenClassification) (Data2VecTextConfig model) - [DebertaConfig](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaConfig) configuration class: [DebertaForTokenClassification](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForTokenClassification) (DebertaConfig model) - [DebertaV2Config](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Config) configuration class: [DebertaV2ForTokenClassification](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForTokenClassification) (DebertaV2Config model) - [DeepseekV3Config](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3Config) configuration class: [DeepseekV3ForTokenClassification](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3ForTokenClassification) (DeepseekV3Config model) - [DiffLlamaConfig](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaConfig) configuration class: [DiffLlamaForTokenClassification](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaForTokenClassification) (DiffLlamaConfig model) - [DistilBertConfig](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertConfig) configuration class: [DistilBertForTokenClassification](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForTokenClassification) (DistilBertConfig model) - [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig) configuration class: [ElectraForTokenClassification](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForTokenClassification) (ElectraConfig model) - [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig) configuration class: [ErnieForTokenClassification](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForTokenClassification) (ErnieConfig model) - [EsmConfig](/docs/transformers/main/ru/model_doc/esm#transformers.EsmConfig) configuration class: [EsmForTokenClassification](/docs/transformers/main/ru/model_doc/esm#transformers.EsmForTokenClassification) (EsmConfig model) - [EsmcConfig](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcConfig) configuration class: [EsmcForTokenClassification](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcForTokenClassification) (EsmcConfig model) - [EuroBertConfig](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertConfig) configuration class: [EuroBertForTokenClassification](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertForTokenClassification) (EuroBertConfig model) - [Exaone4Config](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Config) configuration class: [Exaone4ForTokenClassification](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForTokenClassification) (Exaone4Config model) - [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig) configuration class: [FNetForTokenClassification](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForTokenClassification) (FNetConfig model) - [FalconConfig](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconConfig) configuration class: [FalconForTokenClassification](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconForTokenClassification) (FalconConfig model) - [FlaubertConfig](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertConfig) configuration class: [FlaubertForTokenClassification](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertForTokenClassification) (FlaubertConfig model) - [FunnelConfig](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelConfig) configuration class: [FunnelForTokenClassification](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForTokenClassification) (FunnelConfig model) - [GPT2Config](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Config) configuration class: [GPT2ForTokenClassification](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2ForTokenClassification) (GPT2Config model) - [GPTBigCodeConfig](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeConfig) configuration class: [GPTBigCodeForTokenClassification](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeForTokenClassification) (GPTBigCodeConfig model) - [GPTNeoConfig](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoConfig) configuration class: [GPTNeoForTokenClassification](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoForTokenClassification) (GPTNeoConfig model) - [GPTNeoXConfig](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXConfig) configuration class: [GPTNeoXForTokenClassification](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXForTokenClassification) (GPTNeoXConfig model) - [Gemma2Config](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2Config) configuration class: [Gemma2ForTokenClassification](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2ForTokenClassification) (Gemma2Config model) - [GemmaConfig](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaConfig) configuration class: [GemmaForTokenClassification](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaForTokenClassification) (GemmaConfig model) - [Glm4Config](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4Config) configuration class: [Glm4ForTokenClassification](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4ForTokenClassification) (Glm4Config model) - [GlmConfig](/docs/transformers/main/ru/model_doc/glm#transformers.GlmConfig) configuration class: [GlmForTokenClassification](/docs/transformers/main/ru/model_doc/glm#transformers.GlmForTokenClassification) (GlmConfig model) - [GptOssConfig](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssConfig) configuration class: [GptOssForTokenClassification](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssForTokenClassification) (GptOssConfig model) - [GteConfig](/docs/transformers/main/ru/model_doc/gte#transformers.GteConfig) configuration class: [GteForTokenClassification](/docs/transformers/main/ru/model_doc/gte#transformers.GteForTokenClassification) (GteConfig model) - [HeliumConfig](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumConfig) configuration class: [HeliumForTokenClassification](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumForTokenClassification) (HeliumConfig model) - [IBertConfig](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertConfig) configuration class: [IBertForTokenClassification](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForTokenClassification) (IBertConfig model) - [JinaEmbeddingsV3Config](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3Config) configuration class: [JinaEmbeddingsV3ForTokenClassification](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3ForTokenClassification) (JinaEmbeddingsV3Config model) - [LayoutLMConfig](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMConfig) configuration class: [LayoutLMForTokenClassification](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForTokenClassification) (LayoutLMConfig model) - [LayoutLMv2Config](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Config) configuration class: [LayoutLMv2ForTokenClassification](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2ForTokenClassification) (LayoutLMv2Config model) - [LayoutLMv3Config](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Config) configuration class: [LayoutLMv3ForTokenClassification](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3ForTokenClassification) (LayoutLMv3Config model) - [LiltConfig](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltConfig) configuration class: [LiltForTokenClassification](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltForTokenClassification) (LiltConfig model) - [LlamaConfig](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaConfig) configuration class: [LlamaForTokenClassification](/docs/transformers/main/ru/model_doc/llama#transformers.LlamaForTokenClassification) (LlamaConfig model) - [LongformerConfig](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerConfig) configuration class: [LongformerForTokenClassification](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForTokenClassification) (LongformerConfig model) - [LukeConfig](/docs/transformers/main/ru/model_doc/luke#transformers.LukeConfig) configuration class: [LukeForTokenClassification](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForTokenClassification) (LukeConfig model) - [MPNetConfig](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetConfig) configuration class: [MPNetForTokenClassification](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForTokenClassification) (MPNetConfig model) - [MT5Config](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5Config) configuration class: [MT5ForTokenClassification](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5ForTokenClassification) (MT5Config model) - [MarkupLMConfig](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMConfig) configuration class: [MarkupLMForTokenClassification](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMForTokenClassification) (MarkupLMConfig model) - [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig) configuration class: [MegatronBertForTokenClassification](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForTokenClassification) (MegatronBertConfig model) - [MiniMaxConfig](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxConfig) configuration class: [MiniMaxForTokenClassification](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxForTokenClassification) (MiniMaxConfig model) - [Ministral3Config](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3Config) configuration class: [Ministral3ForTokenClassification](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3ForTokenClassification) (Ministral3Config model) - [MinistralConfig](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralConfig) configuration class: [MinistralForTokenClassification](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralForTokenClassification) (MinistralConfig model) - [Mistral4Config](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Config) configuration class: [Mistral4ForTokenClassification](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForTokenClassification) (Mistral4Config model) - [MistralConfig](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralConfig) configuration class: [MistralForTokenClassification](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralForTokenClassification) (MistralConfig model) - [MixtralConfig](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralConfig) configuration class: [MixtralForTokenClassification](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralForTokenClassification) (MixtralConfig model) - [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig) configuration class: [MobileBertForTokenClassification](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForTokenClassification) (MobileBertConfig model) - [ModernBertConfig](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertConfig) configuration class: [ModernBertForTokenClassification](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForTokenClassification) (ModernBertConfig model) - [ModernVBertConfig](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertConfig) configuration class: [ModernVBertForTokenClassification](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertForTokenClassification) (ModernVBertConfig model) - [MptConfig](/docs/transformers/main/ru/model_doc/mpt#transformers.MptConfig) configuration class: [MptForTokenClassification](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForTokenClassification) (MptConfig model) - [MraConfig](/docs/transformers/main/ru/model_doc/mra#transformers.MraConfig) configuration class: [MraForTokenClassification](/docs/transformers/main/ru/model_doc/mra#transformers.MraForTokenClassification) (MraConfig model) - [NemotronConfig](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronConfig) configuration class: [NemotronForTokenClassification](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronForTokenClassification) (NemotronConfig model) - [NomicBertConfig](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertConfig) configuration class: [NomicBertForTokenClassification](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertForTokenClassification) (NomicBertConfig model) - [NystromformerConfig](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerConfig) configuration class: [NystromformerForTokenClassification](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForTokenClassification) (NystromformerConfig model) - [OpenAIPrivacyFilterConfig](/docs/transformers/main/ru/model_doc/openai_privacy_filter#transformers.OpenAIPrivacyFilterConfig) configuration class: [OpenAIPrivacyFilterForTokenClassification](/docs/transformers/main/ru/model_doc/openai_privacy_filter#transformers.OpenAIPrivacyFilterForTokenClassification) (OpenAIPrivacyFilterConfig model) - [PersimmonConfig](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonConfig) configuration class: [PersimmonForTokenClassification](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonForTokenClassification) (PersimmonConfig model) - [Phi3Config](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3Config) configuration class: [Phi3ForTokenClassification](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3ForTokenClassification) (Phi3Config model) - [PhiConfig](/docs/transformers/main/ru/model_doc/phi#transformers.PhiConfig) configuration class: [PhiForTokenClassification](/docs/transformers/main/ru/model_doc/phi#transformers.PhiForTokenClassification) (PhiConfig model) - [Qwen2Config](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Config) configuration class: [Qwen2ForTokenClassification](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2ForTokenClassification) (Qwen2Config model) - [Qwen2MoeConfig](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeConfig) configuration class: [Qwen2MoeForTokenClassification](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeForTokenClassification) (Qwen2MoeConfig model) - [Qwen3ASRConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRConfig) configuration class: [Qwen3ASRForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForTokenClassification) (Qwen3ASRConfig model) - [Qwen3Config](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3Config) configuration class: [Qwen3ForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3ForTokenClassification) (Qwen3Config model) - [Qwen3MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeConfig) configuration class: [Qwen3MoeForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeForTokenClassification) (Qwen3MoeConfig model) - [Qwen3NextConfig](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextConfig) configuration class: [Qwen3NextForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextForTokenClassification) (Qwen3NextConfig model) - [Qwen3_5Config](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Config) configuration class: [Qwen3_5ForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForTokenClassification) (Qwen3_5Config model) - [RemBertConfig](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertConfig) configuration class: [RemBertForTokenClassification](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForTokenClassification) (RemBertConfig model) - [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig) configuration class: [RoCBertForTokenClassification](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForTokenClassification) (RoCBertConfig model) - [RoFormerConfig](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerConfig) configuration class: [RoFormerForTokenClassification](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForTokenClassification) (RoFormerConfig model) - [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig) configuration class: [RobertaForTokenClassification](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForTokenClassification) (RobertaConfig model) - [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig) configuration class: [RobertaPreLayerNormForTokenClassification](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForTokenClassification) (RobertaPreLayerNormConfig model) - [SeedOssConfig](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssConfig) configuration class: [SeedOssForTokenClassification](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssForTokenClassification) (SeedOssConfig model) - [SmolLM3Config](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3Config) configuration class: [SmolLM3ForTokenClassification](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3ForTokenClassification) (SmolLM3Config model) - [SqueezeBertConfig](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertConfig) configuration class: [SqueezeBertForTokenClassification](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForTokenClassification) (SqueezeBertConfig model) - [StableLmConfig](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmConfig) configuration class: [StableLmForTokenClassification](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmForTokenClassification) (StableLmConfig model) - [Starcoder2Config](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2Config) configuration class: [Starcoder2ForTokenClassification](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2ForTokenClassification) (Starcoder2Config model) - [T5Config](/docs/transformers/main/ru/model_doc/t5#transformers.T5Config) configuration class: [T5ForTokenClassification](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForTokenClassification) (T5Config model) - [T5Gemma2Config](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Config) configuration class: [T5Gemma2ForTokenClassification](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForTokenClassification) (T5Gemma2Config model) - [T5GemmaConfig](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaConfig) configuration class: [T5GemmaForTokenClassification](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaForTokenClassification) (T5GemmaConfig model) - [UMT5Config](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5Config) configuration class: [UMT5ForTokenClassification](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5ForTokenClassification) (UMT5Config model) - [UltraVBertConfig](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertConfig) configuration class: [UltraVBertForTokenClassification](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertForTokenClassification) (UltraVBertConfig model) - [UltrabertConfig](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertConfig) configuration class: [UltrabertForTokenClassification](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertForTokenClassification) (UltrabertConfig model) - [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig) configuration class: [XLMForTokenClassification](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMForTokenClassification) (XLMConfig model) - [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig) configuration class: [XLMRobertaForTokenClassification](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForTokenClassification) (XLMRobertaConfig model) - [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig) configuration class: [XLMRobertaXLForTokenClassification](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForTokenClassification) (XLMRobertaXLConfig model) - [XLNetConfig](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetConfig) configuration class: [XLNetForTokenClassification](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetForTokenClassification) (XLNetConfig model) - [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig) configuration class: [XmodForTokenClassification](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForTokenClassification) (XmodConfig model) - [YosoConfig](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoConfig) configuration class: [YosoForTokenClassification](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForTokenClassification) (YosoConfig model)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для классификации токенов) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTokenClassification

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForTokenClassification.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForTokenClassification.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для классификации токенов) на основе предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **albert** -- [AlbertForTokenClassification](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForTokenClassification) (модель AlbertConfig)
- **apertus** -- [ApertusForTokenClassification](/docs/transformers/main/ru/model_doc/apertus#transformers.ApertusForTokenClassification) (модель ApertusConfig)
- **arcee** -- [ArceeForTokenClassification](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeForTokenClassification) (модель ArceeConfig)
- **axk1** -- [AXK1ForTokenClassification](/docs/transformers/main/ru/model_doc/axk1#transformers.AXK1ForTokenClassification) (модель AXK1Config)
- **axk2** -- [AXK2ForTokenClassification](/docs/transformers/main/ru/model_doc/axk2#transformers.AXK2ForTokenClassification) (модель AXK2Config)
- **bert** -- [BertForTokenClassification](/docs/transformers/main/ru/model_doc/bert#transformers.BertForTokenClassification) (модель BertConfig)
- **big_bird** -- [BigBirdForTokenClassification](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForTokenClassification) (модель BigBirdConfig)
- **biogpt** -- [BioGptForTokenClassification](/docs/transformers/main/ru/model_doc/biogpt#transformers.BioGptForTokenClassification) (модель BioGptConfig)
- **bloom** -- [BloomForTokenClassification](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForTokenClassification) (модель BloomConfig)
- **bros** -- [BrosForTokenClassification](/docs/transformers/main/ru/model_doc/bros#transformers.BrosForTokenClassification) (модель BrosConfig)
- **camembert** -- [CamembertForTokenClassification](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForTokenClassification) (модель CamembertConfig)
- **canine** -- [CanineForTokenClassification](/docs/transformers/main/ru/model_doc/canine#transformers.CanineForTokenClassification) (модель CanineConfig)
- **convbert** -- [ConvBertForTokenClassification](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForTokenClassification) (модель ConvBertConfig)
- **data2vec-text** -- [Data2VecTextForTokenClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForTokenClassification) (модель Data2VecTextConfig)
- **deberta** -- [DebertaForTokenClassification](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForTokenClassification) (модель DebertaConfig)
- **deberta-v2** -- [DebertaV2ForTokenClassification](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForTokenClassification) (модель DebertaV2Config)
- **deepseek_v3** -- [DeepseekV3ForTokenClassification](/docs/transformers/main/ru/model_doc/deepseek_v3#transformers.DeepseekV3ForTokenClassification) (модель DeepseekV3Config)
- **diffllama** -- [DiffLlamaForTokenClassification](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaForTokenClassification) (модель DiffLlamaConfig)
- **distilbert** -- [DistilBertForTokenClassification](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForTokenClassification) (модель DistilBertConfig)
- **electra** -- [ElectraForTokenClassification](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForTokenClassification) (модель ElectraConfig)
- **ernie** -- [ErnieForTokenClassification](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForTokenClassification) (модель ErnieConfig)
- **esm** -- [EsmForTokenClassification](/docs/transformers/main/ru/model_doc/esm#transformers.EsmForTokenClassification) (модель EsmConfig)
- **esmc** -- [EsmcForTokenClassification](/docs/transformers/main/ru/model_doc/esmc#transformers.EsmcForTokenClassification) (модель EsmcConfig)
- **eurobert** -- [EuroBertForTokenClassification](/docs/transformers/main/ru/model_doc/eurobert#transformers.EuroBertForTokenClassification) (модель EuroBertConfig)
- **exaone4** -- [Exaone4ForTokenClassification](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForTokenClassification) (модель Exaone4Config)
- **falcon** -- [FalconForTokenClassification](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconForTokenClassification) (модель FalconConfig)
- **flaubert** -- [FlaubertForTokenClassification](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertForTokenClassification) (модель FlaubertConfig)
- **fnet** -- [FNetForTokenClassification](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForTokenClassification) (модель FNetConfig)
- **funnel** -- [FunnelForTokenClassification](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForTokenClassification) (модель FunnelConfig)
- **gemma** -- [GemmaForTokenClassification](/docs/transformers/main/ru/model_doc/gemma#transformers.GemmaForTokenClassification) (модель GemmaConfig)
- **gemma2** -- [Gemma2ForTokenClassification](/docs/transformers/main/ru/model_doc/gemma2#transformers.Gemma2ForTokenClassification) (модель Gemma2Config)
- **glm** -- [GlmForTokenClassification](/docs/transformers/main/ru/model_doc/glm#transformers.GlmForTokenClassification) (модель GlmConfig)
- **glm4** -- [Glm4ForTokenClassification](/docs/transformers/main/ru/model_doc/glm4#transformers.Glm4ForTokenClassification) (модель Glm4Config)
- **gpt-sw3** -- [GPT2ForTokenClassification](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2ForTokenClassification) (модель GPT2Config)
- **gpt2** -- [GPT2ForTokenClassification](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2ForTokenClassification) (модель GPT2Config)
- **gpt_bigcode** -- [GPTBigCodeForTokenClassification](/docs/transformers/main/ru/model_doc/gpt_bigcode#transformers.GPTBigCodeForTokenClassification) (модель GPTBigCodeConfig)
- **gpt_neo** -- [GPTNeoForTokenClassification](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoForTokenClassification) (модель GPTNeoConfig)
- **gpt_neox** -- [GPTNeoXForTokenClassification](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXForTokenClassification) (модель GPTNeoXConfig)
- **gpt_oss** -- [GptOssForTokenClassification](/docs/transformers/main/ru/model_doc/gpt_oss#transformers.GptOssForTokenClassification) (модель GptOssConfig)
- **gte** -- [GteForTokenClassification](/docs/transformers/main/ru/model_doc/gte#transformers.GteForTokenClassification) (модель GteConfig)
- **helium** -- [HeliumForTokenClassification](/docs/transformers/main/ru/model_doc/helium#transformers.HeliumForTokenClassification) (модель HeliumConfig)
- **ibert** -- [IBertForTokenClassification](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForTokenClassification) (модель IBertConfig)
- **jina_embeddings_v3** -- [JinaEmbeddingsV3ForTokenClassification](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3ForTokenClassification) (модель JinaEmbeddingsV3Config)
- **layoutlm** -- [LayoutLMForTokenClassification](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForTokenClassification) (модель LayoutLMConfig)
- **layoutlmv2** -- [LayoutLMv2ForTokenClassification](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2ForTokenClassification) (модель LayoutLMv2Config)
- **layoutlmv3** -- [LayoutLMv3ForTokenClassification](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3ForTokenClassification) (модель LayoutLMv3Config)
- **lilt** -- [LiltForTokenClassification](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltForTokenClassification) (модель LiltConfig)
- **llama** -- [LlamaForTokenClassification](/docs/transformers/main/ru/model_doc/llama#transformers.LlamaForTokenClassification) (модель LlamaConfig)
- **longformer** -- [LongformerForTokenClassification](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForTokenClassification) (модель LongformerConfig)
- **luke** -- [LukeForTokenClassification](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForTokenClassification) (модель LukeConfig)
- **markuplm** -- [MarkupLMForTokenClassification](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMForTokenClassification) (модель MarkupLMConfig)
- **megatron-bert** -- [MegatronBertForTokenClassification](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForTokenClassification) (модель MegatronBertConfig)
- **minimax** -- [MiniMaxForTokenClassification](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxForTokenClassification) (модель MiniMaxConfig)
- **ministral** -- [MinistralForTokenClassification](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralForTokenClassification) (модель MinistralConfig)
- **ministral3** -- [Ministral3ForTokenClassification](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3ForTokenClassification) (модель Ministral3Config)
- **mistral** -- [MistralForTokenClassification](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralForTokenClassification) (модель MistralConfig)
- **mistral4** -- [Mistral4ForTokenClassification](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForTokenClassification) (модель Mistral4Config)
- **mixtral** -- [MixtralForTokenClassification](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralForTokenClassification) (модель MixtralConfig)
- **mobilebert** -- [MobileBertForTokenClassification](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForTokenClassification) (модель MobileBertConfig)
- **modernbert** -- [ModernBertForTokenClassification](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForTokenClassification) (модель ModernBertConfig)
- **modernvbert** -- [ModernVBertForTokenClassification](/docs/transformers/main/ru/model_doc/modernvbert#transformers.ModernVBertForTokenClassification) (модель ModernVBertConfig)
- **mpnet** -- [MPNetForTokenClassification](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForTokenClassification) (модель MPNetConfig)
- **mpt** -- [MptForTokenClassification](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForTokenClassification) (модель MptConfig)
- **mra** -- [MraForTokenClassification](/docs/transformers/main/ru/model_doc/mra#transformers.MraForTokenClassification) (модель MraConfig)
- **mt5** -- [MT5ForTokenClassification](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5ForTokenClassification) (модель MT5Config)
- **nemotron** -- [NemotronForTokenClassification](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronForTokenClassification) (модель NemotronConfig)
- **nomic_bert** -- [NomicBertForTokenClassification](/docs/transformers/main/ru/model_doc/nomic_bert#transformers.NomicBertForTokenClassification) (модель NomicBertConfig)
- **nystromformer** -- [NystromformerForTokenClassification](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForTokenClassification) (модель NystromformerConfig)
- **openai_privacy_filter** -- [OpenAIPrivacyFilterForTokenClassification](/docs/transformers/main/ru/model_doc/openai_privacy_filter#transformers.OpenAIPrivacyFilterForTokenClassification) (модель OpenAIPrivacyFilterConfig)
- **persimmon** -- [PersimmonForTokenClassification](/docs/transformers/main/ru/model_doc/persimmon#transformers.PersimmonForTokenClassification) (модель PersimmonConfig)
- **phi** -- [PhiForTokenClassification](/docs/transformers/main/ru/model_doc/phi#transformers.PhiForTokenClassification) (модель PhiConfig)
- **phi3** -- [Phi3ForTokenClassification](/docs/transformers/main/ru/model_doc/phi3#transformers.Phi3ForTokenClassification) (модель Phi3Config)
- **qwen2** -- [Qwen2ForTokenClassification](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2ForTokenClassification) (модель Qwen2Config)
- **qwen2_moe** -- [Qwen2MoeForTokenClassification](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeForTokenClassification) (модель Qwen2MoeConfig)
- **qwen3** -- [Qwen3ForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3ForTokenClassification) (модель Qwen3Config)
- **qwen3_5** -- [Qwen3_5ForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForTokenClassification) (модель Qwen3_5Config)
- **qwen3_asr** -- [Qwen3ASRForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForTokenClassification) (модель Qwen3ASRConfig)
- **qwen3_moe** -- [Qwen3MoeForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeForTokenClassification) (модель Qwen3MoeConfig)
- **qwen3_next** -- [Qwen3NextForTokenClassification](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextForTokenClassification) (модель Qwen3NextConfig)
- **rembert** -- [RemBertForTokenClassification](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForTokenClassification) (модель RemBertConfig)
- **roberta** -- [RobertaForTokenClassification](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForTokenClassification) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormForTokenClassification](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForTokenClassification) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertForTokenClassification](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForTokenClassification) (модель RoCBertConfig)
- **roformer** -- [RoFormerForTokenClassification](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForTokenClassification) (модель RoFormerConfig)
- **seed_oss** -- [SeedOssForTokenClassification](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssForTokenClassification) (модель SeedOssConfig)
- **smollm3** -- [SmolLM3ForTokenClassification](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3ForTokenClassification) (модель SmolLM3Config)
- **squeezebert** -- [SqueezeBertForTokenClassification](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForTokenClassification) (модель SqueezeBertConfig)
- **stablelm** -- [StableLmForTokenClassification](/docs/transformers/main/ru/model_doc/stablelm#transformers.StableLmForTokenClassification) (модель StableLmConfig)
- **starcoder2** -- [Starcoder2ForTokenClassification](/docs/transformers/main/ru/model_doc/starcoder2#transformers.Starcoder2ForTokenClassification) (модель Starcoder2Config)
- **t5** -- [T5ForTokenClassification](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForTokenClassification) (модель T5Config)
- **t5gemma** -- [T5GemmaForTokenClassification](/docs/transformers/main/ru/model_doc/t5gemma#transformers.T5GemmaForTokenClassification) (модель T5GemmaConfig)
- **t5gemma2** -- [T5Gemma2ForTokenClassification](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForTokenClassification) (модель T5Gemma2Config)
- **ultrabert** -- [UltrabertForTokenClassification](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertForTokenClassification) (модель UltrabertConfig)
- **ultravbert** -- [UltraVBertForTokenClassification](/docs/transformers/main/ru/model_doc/ultravbert#transformers.UltraVBertForTokenClassification) (модель UltraVBertConfig)
- **umt5** -- [UMT5ForTokenClassification](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5ForTokenClassification) (модель UMT5Config)
- **xlm** -- [XLMForTokenClassification](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMForTokenClassification) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaForTokenClassification](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForTokenClassification) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLForTokenClassification](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForTokenClassification) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetForTokenClassification](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetForTokenClassification) (модель XLNetConfig)
- **xmod** -- [XmodForTokenClassification](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForTokenClassification) (модель XmodConfig)
- **yoso** -- [YosoForTokenClassification](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForTokenClassification) (модель YosoConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTokenClassification

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForTokenClassification.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForTokenClassification.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForQuestionAnswering[[transformers.AutoModelForQuestionAnswering]]

#### transformers.AutoModelForQuestionAnswering[[transformers.AutoModelForQuestionAnswering]]

```python
transformers.AutoModelForQuestionAnswering(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2353)

This is a generic model class that will be instantiated as one of the model classes of the library (with a question answering head) when created with the [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) class method or the [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) class method.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForQuestionAnswering.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели для создания экземпляра выбирается на основе класса конфигурации:  - класс конфигурации [AlbertConfig](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertConfig): [AlbertForQuestionAnswering](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForQuestionAnswering) (модель AlbertConfig) - класс конфигурации [ArceeConfig](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeConfig): [ArceeForQuestionAnswering](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeForQuestionAnswering) (модель ArceeConfig) - класс конфигурации [BartConfig](/docs/transformers/main/ru/model_doc/bart#transformers.BartConfig): [BartForQuestionAnswering](/docs/transformers/main/ru/model_doc/bart#transformers.BartForQuestionAnswering) (модель BartConfig) - класс конфигурации [BertConfig](/docs/transformers/main/ru/model_doc/bert#transformers.BertConfig): [BertForQuestionAnswering](/docs/transformers/main/ru/model_doc/bert#transformers.BertForQuestionAnswering) (модель BertConfig) - класс конфигурации [BigBirdConfig](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdConfig): [BigBirdForQuestionAnswering](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForQuestionAnswering) (модель BigBirdConfig) - класс конфигурации [BigBirdPegasusConfig](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusConfig): [BigBirdPegasusForQuestionAnswering](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusForQuestionAnswering) (модель BigBirdPegasusConfig) - класс конфигурации [BloomConfig](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomConfig): [BloomForQuestionAnswering](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForQuestionAnswering) (модель BloomConfig) - класс конфигурации [CamembertConfig](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertConfig): [CamembertForQuestionAnswering](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForQuestionAnswering) (модель CamembertConfig) - класс конфигурации [CanineConfig](/docs/transformers/main/ru/model_doc/canine#transformers.CanineConfig): [CanineForQuestionAnswering](/docs/transformers/main/ru/model_doc/canine#transformers.CanineForQuestionAnswering) (модель CanineConfig) - класс конфигурации [ConvBertConfig](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertConfig): [ConvBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForQuestionAnswering) (модель ConvBertConfig) - класс конфигурации [Data2VecTextConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextConfig): [Data2VecTextForQuestionAnswering](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForQuestionAnswering) (модель Data2VecTextConfig) - класс конфигурации [DebertaConfig](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaConfig): [DebertaForQuestionAnswering](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForQuestionAnswering) (модель DebertaConfig) - класс конфигурации [DebertaV2Config](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2Config): [DebertaV2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForQuestionAnswering) (модель DebertaV2Config) - класс конфигурации [DiffLlamaConfig](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaConfig): [DiffLlamaForQuestionAnswering](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaForQuestionAnswering) (модель DiffLlamaConfig) - класс конфигурации [DistilBertConfig](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertConfig): [DistilBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForQuestionAnswering) (модель DistilBertConfig) - класс конфигурации [ElectraConfig](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraConfig): [ElectraForQuestionAnswering](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForQuestionAnswering) (модель ElectraConfig) - класс конфигурации [ErnieConfig](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieConfig): [ErnieForQuestionAnswering](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForQuestionAnswering) (модель ErnieConfig) - класс конфигурации [Exaone4Config](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4Config): [Exaone4ForQuestionAnswering](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForQuestionAnswering) (модель Exaone4Config) - класс конфигурации [FNetConfig](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetConfig): [FNetForQuestionAnswering](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForQuestionAnswering) (модель FNetConfig) - класс конфигурации [FalconConfig](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconConfig): [FalconForQuestionAnswering](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconForQuestionAnswering) (модель FalconConfig) - класс конфигурации [FlaubertConfig](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertConfig): [FlaubertForQuestionAnsweringSimple](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertForQuestionAnsweringSimple) (модель FlaubertConfig) - класс конфигурации [FunnelConfig](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelConfig): [FunnelForQuestionAnswering](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForQuestionAnswering) (модель FunnelConfig) - класс конфигурации [GPT2Config](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2Config): [GPT2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2ForQuestionAnswering) (модель GPT2Config) - класс конфигурации [GPTJConfig](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJConfig): [GPTJForQuestionAnswering](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJForQuestionAnswering) (модель GPTJConfig) - класс конфигурации [GPTNeoConfig](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoConfig): [GPTNeoForQuestionAnswering](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoForQuestionAnswering) (модель GPTNeoConfig) - класс конфигурации [GPTNeoXConfig](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXConfig): [GPTNeoXForQuestionAnswering](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXForQuestionAnswering) (модель GPTNeoXConfig) - класс конфигурации [IBertConfig](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertConfig): [IBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForQuestionAnswering) (модель IBertConfig) - класс конфигурации [JinaEmbeddingsV3Config](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3Config): [JinaEmbeddingsV3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3ForQuestionAnswering) (модель JinaEmbeddingsV3Config) - класс конфигурации [LEDConfig](/docs/transformers/main/ru/model_doc/led#transformers.LEDConfig): [LEDForQuestionAnswering](/docs/transformers/main/ru/model_doc/led#transformers.LEDForQuestionAnswering) (модель LEDConfig) - класс конфигурации [LayoutLMv2Config](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Config): [LayoutLMv2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2ForQuestionAnswering) (модель LayoutLMv2Config) - класс конфигурации [LayoutLMv3Config](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Config): [LayoutLMv3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3ForQuestionAnswering) (модель LayoutLMv3Config) - класс конфигурации [LiltConfig](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltConfig): [LiltForQuestionAnswering](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltForQuestionAnswering) (модель LiltConfig) - класс конфигурации [LlamaConfig](/docs/transformers/main/ru/model_doc/llama2#transformers.LlamaConfig): [LlamaForQuestionAnswering](/docs/transformers/main/ru/model_doc/llama#transformers.LlamaForQuestionAnswering) (модель LlamaConfig) - класс конфигурации [LongformerConfig](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerConfig): [LongformerForQuestionAnswering](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForQuestionAnswering) (модель LongformerConfig) - класс конфигурации [LukeConfig](/docs/transformers/main/ru/model_doc/luke#transformers.LukeConfig): [LukeForQuestionAnswering](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForQuestionAnswering) (модель LukeConfig) - класс конфигурации [LxmertConfig](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertConfig): [LxmertForQuestionAnswering](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertForQuestionAnswering) (модель LxmertConfig) - класс конфигурации [MBartConfig](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartConfig): [MBartForQuestionAnswering](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForQuestionAnswering) (модель MBartConfig) - класс конфигурации [MPNetConfig](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetConfig): [MPNetForQuestionAnswering](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForQuestionAnswering) (модель MPNetConfig) - класс конфигурации [MT5Config](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5Config): [MT5ForQuestionAnswering](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5ForQuestionAnswering) (модель MT5Config) - класс конфигурации [MarkupLMConfig](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMConfig): [MarkupLMForQuestionAnswering](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMForQuestionAnswering) (модель MarkupLMConfig) - класс конфигурации [MegatronBertConfig](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertConfig): [MegatronBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForQuestionAnswering) (модель MegatronBertConfig) - класс конфигурации [MiniMaxConfig](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxConfig): [MiniMaxForQuestionAnswering](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxForQuestionAnswering) (модель MiniMaxConfig) - класс конфигурации [Ministral3Config](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3Config): [Ministral3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3ForQuestionAnswering) (модель Ministral3Config) - класс конфигурации [MinistralConfig](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralConfig): [MinistralForQuestionAnswering](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralForQuestionAnswering) (модель MinistralConfig) - класс конфигурации [MistralConfig](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralConfig): [MistralForQuestionAnswering](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralForQuestionAnswering) (модель MistralConfig) - класс конфигурации [MixtralConfig](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralConfig): [MixtralForQuestionAnswering](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralForQuestionAnswering) (модель MixtralConfig) - класс конфигурации [MobileBertConfig](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertConfig): [MobileBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForQuestionAnswering) (модель MobileBertConfig) - класс конфигурации [ModernBertConfig](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertConfig): [ModernBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForQuestionAnswering) (модель ModernBertConfig) - класс конфигурации [MptConfig](/docs/transformers/main/ru/model_doc/mpt#transformers.MptConfig): [MptForQuestionAnswering](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForQuestionAnswering) (модель MptConfig) - класс конфигурации [MraConfig](/docs/transformers/main/ru/model_doc/mra#transformers.MraConfig): [MraForQuestionAnswering](/docs/transformers/main/ru/model_doc/mra#transformers.MraForQuestionAnswering) (модель MraConfig) - класс конфигурации [MvpConfig](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpConfig): [MvpForQuestionAnswering](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForQuestionAnswering) (модель MvpConfig) - класс конфигурации [NemotronConfig](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronConfig): [NemotronForQuestionAnswering](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronForQuestionAnswering) (модель NemotronConfig) - класс конфигурации [NystromformerConfig](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerConfig): [NystromformerForQuestionAnswering](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForQuestionAnswering) (модель NystromformerConfig) - класс конфигурации [OPTConfig](/docs/transformers/main/ru/model_doc/opt#transformers.OPTConfig): [OPTForQuestionAnswering](/docs/transformers/main/ru/model_doc/opt#transformers.OPTForQuestionAnswering) (модель OPTConfig) - класс конфигурации [Qwen2Config](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2Config): [Qwen2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2ForQuestionAnswering) (модель Qwen2Config) - класс конфигурации [Qwen2MoeConfig](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeConfig): [Qwen2MoeForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeForQuestionAnswering) (модель Qwen2MoeConfig) - класс конфигурации [Qwen3Config](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3Config): [Qwen3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3ForQuestionAnswering) (модель Qwen3Config) - класс конфигурации [Qwen3MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeConfig): [Qwen3MoeForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeForQuestionAnswering) (модель Qwen3MoeConfig) - класс конфигурации [Qwen3NextConfig](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextConfig): [Qwen3NextForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextForQuestionAnswering) (модель Qwen3NextConfig) - класс конфигурации [ReformerConfig](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerConfig): [ReformerForQuestionAnswering](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerForQuestionAnswering) (модель ReformerConfig) - класс конфигурации [RemBertConfig](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertConfig): [RemBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForQuestionAnswering) (модель RemBertConfig) - класс конфигурации [RoCBertConfig](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertConfig): [RoCBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForQuestionAnswering) (модель RoCBertConfig) - класс конфигурации [RoFormerConfig](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerConfig): [RoFormerForQuestionAnswering](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForQuestionAnswering) (модель RoFormerConfig) - класс конфигурации [RobertaConfig](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaConfig): [RobertaForQuestionAnswering](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForQuestionAnswering) (модель RobertaConfig) - класс конфигурации [RobertaPreLayerNormConfig](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig): [RobertaPreLayerNormForQuestionAnswering](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForQuestionAnswering) (модель RobertaPreLayerNormConfig) - класс конфигурации [SeedOssConfig](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssConfig): [SeedOssForQuestionAnswering](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssForQuestionAnswering) (модель SeedOssConfig) - класс конфигурации [SmolLM3Config](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3Config): [SmolLM3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3ForQuestionAnswering) (модель SmolLM3Config) - класс конфигурации [SplinterConfig](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterConfig): [SplinterForQuestionAnswering](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterForQuestionAnswering) (модель SplinterConfig) - класс конфигурации [SqueezeBertConfig](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertConfig): [SqueezeBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForQuestionAnswering) (модель SqueezeBertConfig) - класс конфигурации [T5Config](/docs/transformers/main/ru/model_doc/t5#transformers.T5Config): [T5ForQuestionAnswering](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForQuestionAnswering) (модель T5Config) - класс конфигурации [UMT5Config](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5Config): [UMT5ForQuestionAnswering](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5ForQuestionAnswering) (модель UMT5Config) - класс конфигурации [UltrabertConfig](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertConfig): [UltrabertForQuestionAnswering](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertForQuestionAnswering) (модель UltrabertConfig) - класс конфигурации [XLMConfig](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMConfig): [XLMForQuestionAnsweringSimple](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMForQuestionAnsweringSimple) (модель XLMConfig) - класс конфигурации [XLMRobertaConfig](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaConfig): [XLMRobertaForQuestionAnswering](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForQuestionAnswering) (модель XLMRobertaConfig) - класс конфигурации [XLMRobertaXLConfig](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLConfig): [XLMRobertaXLForQuestionAnswering](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForQuestionAnswering) (модель XLMRobertaXLConfig) - класс конфигурации [XLNetConfig](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetConfig): [XLNetForQuestionAnsweringSimple](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetForQuestionAnsweringSimple) (модель XLNetConfig) - класс конфигурации [XmodConfig](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodConfig): [XmodForQuestionAnswering](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForQuestionAnswering) (модель XmodConfig) - класс конфигурации [YosoConfig](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoConfig): [YosoForQuestionAnswering](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForQuestionAnswering) (модель YosoConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для задачи вопрос-ответ) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForQuestionAnswering

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForQuestionAnswering.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForQuestionAnswering.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для задачи question answering) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **albert** -- [AlbertForQuestionAnswering](/docs/transformers/main/ru/model_doc/albert#transformers.AlbertForQuestionAnswering) (модель AlbertConfig)
- **arcee** -- [ArceeForQuestionAnswering](/docs/transformers/main/ru/model_doc/arcee#transformers.ArceeForQuestionAnswering) (модель ArceeConfig)
- **bart** -- [BartForQuestionAnswering](/docs/transformers/main/ru/model_doc/bart#transformers.BartForQuestionAnswering) (модель BartConfig)
- **bert** -- [BertForQuestionAnswering](/docs/transformers/main/ru/model_doc/bert#transformers.BertForQuestionAnswering) (модель BertConfig)
- **big_bird** -- [BigBirdForQuestionAnswering](/docs/transformers/main/ru/model_doc/big_bird#transformers.BigBirdForQuestionAnswering) (модель BigBirdConfig)
- **bigbird_pegasus** -- [BigBirdPegasusForQuestionAnswering](/docs/transformers/main/ru/model_doc/bigbird_pegasus#transformers.BigBirdPegasusForQuestionAnswering) (модель BigBirdPegasusConfig)
- **bloom** -- [BloomForQuestionAnswering](/docs/transformers/main/ru/model_doc/bloom#transformers.BloomForQuestionAnswering) (модель BloomConfig)
- **camembert** -- [CamembertForQuestionAnswering](/docs/transformers/main/ru/model_doc/camembert#transformers.CamembertForQuestionAnswering) (модель CamembertConfig)
- **canine** -- [CanineForQuestionAnswering](/docs/transformers/main/ru/model_doc/canine#transformers.CanineForQuestionAnswering) (модель CanineConfig)
- **convbert** -- [ConvBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/convbert#transformers.ConvBertForQuestionAnswering) (модель ConvBertConfig)
- **data2vec-text** -- [Data2VecTextForQuestionAnswering](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecTextForQuestionAnswering) (модель Data2VecTextConfig)
- **deberta** -- [DebertaForQuestionAnswering](/docs/transformers/main/ru/model_doc/deberta#transformers.DebertaForQuestionAnswering) (модель DebertaConfig)
- **deberta-v2** -- [DebertaV2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/deberta-v2#transformers.DebertaV2ForQuestionAnswering) (модель DebertaV2Config)
- **diffllama** -- [DiffLlamaForQuestionAnswering](/docs/transformers/main/ru/model_doc/diffllama#transformers.DiffLlamaForQuestionAnswering) (модель DiffLlamaConfig)
- **distilbert** -- [DistilBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/distilbert#transformers.DistilBertForQuestionAnswering) (модель DistilBertConfig)
- **electra** -- [ElectraForQuestionAnswering](/docs/transformers/main/ru/model_doc/electra#transformers.ElectraForQuestionAnswering) (модель ElectraConfig)
- **ernie** -- [ErnieForQuestionAnswering](/docs/transformers/main/ru/model_doc/ernie#transformers.ErnieForQuestionAnswering) (модель ErnieConfig)
- **exaone4** -- [Exaone4ForQuestionAnswering](/docs/transformers/main/ru/model_doc/exaone4#transformers.Exaone4ForQuestionAnswering) (модель Exaone4Config)
- **falcon** -- [FalconForQuestionAnswering](/docs/transformers/main/ru/model_doc/falcon#transformers.FalconForQuestionAnswering) (модель FalconConfig)
- **flaubert** -- [FlaubertForQuestionAnsweringSimple](/docs/transformers/main/ru/model_doc/flaubert#transformers.FlaubertForQuestionAnsweringSimple) (модель FlaubertConfig)
- **fnet** -- [FNetForQuestionAnswering](/docs/transformers/main/ru/model_doc/fnet#transformers.FNetForQuestionAnswering) (модель FNetConfig)
- **funnel** -- [FunnelForQuestionAnswering](/docs/transformers/main/ru/model_doc/funnel#transformers.FunnelForQuestionAnswering) (модель FunnelConfig)
- **gpt2** -- [GPT2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/gpt2#transformers.GPT2ForQuestionAnswering) (модель GPT2Config)
- **gpt_neo** -- [GPTNeoForQuestionAnswering](/docs/transformers/main/ru/model_doc/gpt_neo#transformers.GPTNeoForQuestionAnswering) (модель GPTNeoConfig)
- **gpt_neox** -- [GPTNeoXForQuestionAnswering](/docs/transformers/main/ru/model_doc/gpt_neox#transformers.GPTNeoXForQuestionAnswering) (модель GPTNeoXConfig)
- **gptj** -- [GPTJForQuestionAnswering](/docs/transformers/main/ru/model_doc/gptj#transformers.GPTJForQuestionAnswering) (модель GPTJConfig)
- **ibert** -- [IBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/ibert#transformers.IBertForQuestionAnswering) (модель IBertConfig)
- **jina_embeddings_v3** -- [JinaEmbeddingsV3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/jina_embeddings_v3#transformers.JinaEmbeddingsV3ForQuestionAnswering) (модель JinaEmbeddingsV3Config)
- **layoutlmv2** -- [LayoutLMv2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2ForQuestionAnswering) (модель LayoutLMv2Config)
- **layoutlmv3** -- [LayoutLMv3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3ForQuestionAnswering) (модель LayoutLMv3Config)
- **led** -- [LEDForQuestionAnswering](/docs/transformers/main/ru/model_doc/led#transformers.LEDForQuestionAnswering) (модель LEDConfig)
- **lilt** -- [LiltForQuestionAnswering](/docs/transformers/main/ru/model_doc/lilt#transformers.LiltForQuestionAnswering) (модель LiltConfig)
- **llama** -- [LlamaForQuestionAnswering](/docs/transformers/main/ru/model_doc/llama#transformers.LlamaForQuestionAnswering) (модель LlamaConfig)
- **longformer** -- [LongformerForQuestionAnswering](/docs/transformers/main/ru/model_doc/longformer#transformers.LongformerForQuestionAnswering) (модель LongformerConfig)
- **luke** -- [LukeForQuestionAnswering](/docs/transformers/main/ru/model_doc/luke#transformers.LukeForQuestionAnswering) (модель LukeConfig)
- **lxmert** -- [LxmertForQuestionAnswering](/docs/transformers/main/ru/model_doc/lxmert#transformers.LxmertForQuestionAnswering) (модель LxmertConfig)
- **markuplm** -- [MarkupLMForQuestionAnswering](/docs/transformers/main/ru/model_doc/markuplm#transformers.MarkupLMForQuestionAnswering) (модель MarkupLMConfig)
- **mbart** -- [MBartForQuestionAnswering](/docs/transformers/main/ru/model_doc/mbart#transformers.MBartForQuestionAnswering) (модель MBartConfig)
- **megatron-bert** -- [MegatronBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/megatron-bert#transformers.MegatronBertForQuestionAnswering) (модель MegatronBertConfig)
- **minimax** -- [MiniMaxForQuestionAnswering](/docs/transformers/main/ru/model_doc/minimax#transformers.MiniMaxForQuestionAnswering) (модель MiniMaxConfig)
- **ministral** -- [MinistralForQuestionAnswering](/docs/transformers/main/ru/model_doc/ministral#transformers.MinistralForQuestionAnswering) (модель MinistralConfig)
- **ministral3** -- [Ministral3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/ministral3#transformers.Ministral3ForQuestionAnswering) (модель Ministral3Config)
- **mistral** -- [MistralForQuestionAnswering](/docs/transformers/main/ru/model_doc/mistral#transformers.MistralForQuestionAnswering) (модель MistralConfig)
- **mixtral** -- [MixtralForQuestionAnswering](/docs/transformers/main/ru/model_doc/mixtral#transformers.MixtralForQuestionAnswering) (модель MixtralConfig)
- **mobilebert** -- [MobileBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/mobilebert#transformers.MobileBertForQuestionAnswering) (модель MobileBertConfig)
- **modernbert** -- [ModernBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/modernbert#transformers.ModernBertForQuestionAnswering) (модель ModernBertConfig)
- **mpnet** -- [MPNetForQuestionAnswering](/docs/transformers/main/ru/model_doc/mpnet#transformers.MPNetForQuestionAnswering) (модель MPNetConfig)
- **mpt** -- [MptForQuestionAnswering](/docs/transformers/main/ru/model_doc/mpt#transformers.MptForQuestionAnswering) (модель MptConfig)
- **mra** -- [MraForQuestionAnswering](/docs/transformers/main/ru/model_doc/mra#transformers.MraForQuestionAnswering) (модель MraConfig)
- **mt5** -- [MT5ForQuestionAnswering](/docs/transformers/main/ru/model_doc/mt5#transformers.MT5ForQuestionAnswering) (модель MT5Config)
- **mvp** -- [MvpForQuestionAnswering](/docs/transformers/main/ru/model_doc/mvp#transformers.MvpForQuestionAnswering) (модель MvpConfig)
- **nemotron** -- [NemotronForQuestionAnswering](/docs/transformers/main/ru/model_doc/nemotron#transformers.NemotronForQuestionAnswering) (модель NemotronConfig)
- **nystromformer** -- [NystromformerForQuestionAnswering](/docs/transformers/main/ru/model_doc/nystromformer#transformers.NystromformerForQuestionAnswering) (модель NystromformerConfig)
- **opt** -- [OPTForQuestionAnswering](/docs/transformers/main/ru/model_doc/opt#transformers.OPTForQuestionAnswering) (модель OPTConfig)
- **qwen2** -- [Qwen2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen2#transformers.Qwen2ForQuestionAnswering) (модель Qwen2Config)
- **qwen2_moe** -- [Qwen2MoeForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen2_moe#transformers.Qwen2MoeForQuestionAnswering) (модель Qwen2MoeConfig)
- **qwen3** -- [Qwen3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen3#transformers.Qwen3ForQuestionAnswering) (модель Qwen3Config)
- **qwen3_moe** -- [Qwen3MoeForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen3_moe#transformers.Qwen3MoeForQuestionAnswering) (модель Qwen3MoeConfig)
- **qwen3_next** -- [Qwen3NextForQuestionAnswering](/docs/transformers/main/ru/model_doc/qwen3_next#transformers.Qwen3NextForQuestionAnswering) (модель Qwen3NextConfig)
- **reformer** -- [ReformerForQuestionAnswering](/docs/transformers/main/ru/model_doc/reformer#transformers.ReformerForQuestionAnswering) (модель ReformerConfig)
- **rembert** -- [RemBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/rembert#transformers.RemBertForQuestionAnswering) (модель RemBertConfig)
- **roberta** -- [RobertaForQuestionAnswering](/docs/transformers/main/ru/model_doc/roberta#transformers.RobertaForQuestionAnswering) (модель RobertaConfig)
- **roberta-prelayernorm** -- [RobertaPreLayerNormForQuestionAnswering](/docs/transformers/main/ru/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForQuestionAnswering) (модель RobertaPreLayerNormConfig)
- **roc_bert** -- [RoCBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/roc_bert#transformers.RoCBertForQuestionAnswering) (модель RoCBertConfig)
- **roformer** -- [RoFormerForQuestionAnswering](/docs/transformers/main/ru/model_doc/roformer#transformers.RoFormerForQuestionAnswering) (модель RoFormerConfig)
- **seed_oss** -- [SeedOssForQuestionAnswering](/docs/transformers/main/ru/model_doc/seed_oss#transformers.SeedOssForQuestionAnswering) (модель SeedOssConfig)
- **smollm3** -- [SmolLM3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/smollm3#transformers.SmolLM3ForQuestionAnswering) (модель SmolLM3Config)
- **splinter** -- [SplinterForQuestionAnswering](/docs/transformers/main/ru/model_doc/splinter#transformers.SplinterForQuestionAnswering) (модель SplinterConfig)
- **squeezebert** -- [SqueezeBertForQuestionAnswering](/docs/transformers/main/ru/model_doc/squeezebert#transformers.SqueezeBertForQuestionAnswering) (модель SqueezeBertConfig)
- **t5** -- [T5ForQuestionAnswering](/docs/transformers/main/ru/model_doc/t5#transformers.T5ForQuestionAnswering) (модель T5Config)
- **ultrabert** -- [UltrabertForQuestionAnswering](/docs/transformers/main/ru/model_doc/ultrabert#transformers.UltrabertForQuestionAnswering) (модель UltrabertConfig)
- **umt5** -- [UMT5ForQuestionAnswering](/docs/transformers/main/ru/model_doc/umt5#transformers.UMT5ForQuestionAnswering) (модель UMT5Config)
- **xlm** -- [XLMForQuestionAnsweringSimple](/docs/transformers/main/ru/model_doc/xlm#transformers.XLMForQuestionAnsweringSimple) (модель XLMConfig)
- **xlm-roberta** -- [XLMRobertaForQuestionAnswering](/docs/transformers/main/ru/model_doc/xlm-roberta#transformers.XLMRobertaForQuestionAnswering) (модель XLMRobertaConfig)
- **xlm-roberta-xl** -- [XLMRobertaXLForQuestionAnswering](/docs/transformers/main/ru/model_doc/xlm-roberta-xl#transformers.XLMRobertaXLForQuestionAnswering) (модель XLMRobertaXLConfig)
- **xlnet** -- [XLNetForQuestionAnsweringSimple](/docs/transformers/main/ru/model_doc/xlnet#transformers.XLNetForQuestionAnsweringSimple) (модель XLNetConfig)
- **xmod** -- [XmodForQuestionAnswering](/docs/transformers/main/ru/model_doc/xmod#transformers.XmodForQuestionAnswering) (модель XmodConfig)
- **yoso** -- [YosoForQuestionAnswering](/docs/transformers/main/ru/model_doc/yoso#transformers.YosoForQuestionAnswering) (модель YosoConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForQuestionAnswering

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForQuestionAnswering.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForQuestionAnswering.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForTextEncoding[[transformers.AutoModelForTextEncoding]]

#### transformers.AutoModelForTextEncoding[[transformers.AutoModelForTextEncoding]]

```python
transformers.AutoModelForTextEncoding(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2287)

## Компьютерное зрение

Для следующих задач компьютерного зрения доступны следующие автоклассы.

### AutoModelForDepthEstimation[[transformers.AutoModelForDepthEstimation]]

#### transformers.AutoModelForDepthEstimation[[transformers.AutoModelForDepthEstimation]]

```python
transformers.AutoModelForDepthEstimation(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2491)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для оценки глубины).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForDepthEstimation.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели для создания экземпляра выбирается на основе класса конфигурации:  - класс конфигурации [CHMv2Config](/docs/transformers/main/ru/model_doc/chmv2#transformers.CHMv2Config): [CHMv2ForDepthEstimation](/docs/transformers/main/ru/model_doc/chmv2#transformers.CHMv2ForDepthEstimation) (модель CHMv2Config) - класс конфигурации [DPTConfig](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTConfig): [DPTForDepthEstimation](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTForDepthEstimation) (модель DPTConfig) - класс конфигурации [DepthAnythingConfig](/docs/transformers/main/ru/model_doc/depth_anything#transformers.DepthAnythingConfig): [DepthAnythingForDepthEstimation](/docs/transformers/main/ru/model_doc/depth_anything#transformers.DepthAnythingForDepthEstimation) (модель DepthAnythingConfig) - класс конфигурации [DepthProConfig](/docs/transformers/main/ru/model_doc/depth_pro#transformers.DepthProConfig): [DepthProForDepthEstimation](/docs/transformers/main/ru/model_doc/depth_pro#transformers.DepthProForDepthEstimation) (модель DepthProConfig) - класс конфигурации [GLPNConfig](/docs/transformers/main/ru/model_doc/glpn#transformers.GLPNConfig): [GLPNForDepthEstimation](/docs/transformers/main/ru/model_doc/glpn#transformers.GLPNForDepthEstimation) (модель GLPNConfig) - класс конфигурации [PromptDepthAnythingConfig](/docs/transformers/main/ru/model_doc/prompt_depth_anything#transformers.PromptDepthAnythingConfig): [PromptDepthAnythingForDepthEstimation](/docs/transformers/main/ru/model_doc/prompt_depth_anything#transformers.PromptDepthAnythingForDepthEstimation) (модель PromptDepthAnythingConfig) - класс конфигурации [Tipsv2DptConfig](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptConfig): [Tipsv2DptForDepthEstimation](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptForDepthEstimation) (модель Tipsv2DptConfig) - класс конфигурации [ZoeDepthConfig](/docs/transformers/main/ru/model_doc/zoedepth#transformers.ZoeDepthConfig): [ZoeDepthForDepthEstimation](/docs/transformers/main/ru/model_doc/zoedepth#transformers.ZoeDepthForDepthEstimation) (модель ZoeDepthConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для оценки глубины) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForDepthEstimation

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForDepthEstimation.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForDepthEstimation.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для оценки глубины) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **chmv2** -- [CHMv2ForDepthEstimation](/docs/transformers/main/ru/model_doc/chmv2#transformers.CHMv2ForDepthEstimation) (модель CHMv2Config)
- **depth_anything** -- [DepthAnythingForDepthEstimation](/docs/transformers/main/ru/model_doc/depth_anything#transformers.DepthAnythingForDepthEstimation) (модель DepthAnythingConfig)
- **depth_pro** -- [DepthProForDepthEstimation](/docs/transformers/main/ru/model_doc/depth_pro#transformers.DepthProForDepthEstimation) (модель DepthProConfig)
- **dpt** -- [DPTForDepthEstimation](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTForDepthEstimation) (модель DPTConfig)
- **glpn** -- [GLPNForDepthEstimation](/docs/transformers/main/ru/model_doc/glpn#transformers.GLPNForDepthEstimation) (модель GLPNConfig)
- **prompt_depth_anything** -- [PromptDepthAnythingForDepthEstimation](/docs/transformers/main/ru/model_doc/prompt_depth_anything#transformers.PromptDepthAnythingForDepthEstimation) (модель PromptDepthAnythingConfig)
- **tipsv2_dpt** -- [Tipsv2DptForDepthEstimation](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptForDepthEstimation) (модель Tipsv2DptConfig)
- **zoedepth** -- [ZoeDepthForDepthEstimation](/docs/transformers/main/ru/model_doc/zoedepth#transformers.ZoeDepthForDepthEstimation) (модель ZoeDepthConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForDepthEstimation

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForDepthEstimation.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForDepthEstimation.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForNormalEstimation[[transformers.AutoModelForNormalEstimation]]

#### transformers.AutoModelForNormalEstimation[[transformers.AutoModelForNormalEstimation]]

```python
transformers.AutoModelForNormalEstimation(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2631)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с обычной оценочной головой).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForNormalEstimation.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [Sapiens2Config](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Config): [Sapiens2ForNormalEstimation](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForNormalEstimation) (модель Sapiens2Config) - класс конфигурации [Tipsv2DptConfig](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptConfig): [Tipsv2DptForNormalEstimation](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptForNormalEstimation) (модель Tipsv2DptConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с обычной оценочной головой) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForNormalEstimation

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForNormalEstimation.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForNormalEstimation.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с обычной оценочной головой) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **sapiens2** -- [Sapiens2ForNormalEstimation](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForNormalEstimation) (модель Sapiens2Config)
- **tipsv2_dpt** -- [Tipsv2DptForNormalEstimation](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptForNormalEstimation) (модель Tipsv2DptConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForNormalEstimation

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForNormalEstimation.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForNormalEstimation.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForPointmapEstimation[[transformers.AutoModelForPointmapEstimation]]

#### transformers.AutoModelForPointmapEstimation[[transformers.AutoModelForPointmapEstimation]]

```python
transformers.AutoModelForPointmapEstimation(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2638)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для оценки pointmap).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForPointmapEstimation.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели для создания экземпляра выбирается на основе класса конфигурации:  - класс конфигурации [Sapiens2Config](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Config): [Sapiens2ForPointmapEstimation](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForPointmapEstimation) (модель Sapiens2Config)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для оценки pointmap) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForPointmapEstimation

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForPointmapEstimation.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForPointmapEstimation.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для оценки pointmap) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **sapiens2** -- [Sapiens2ForPointmapEstimation](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForPointmapEstimation) (модель Sapiens2Config)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForPointmapEstimation

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForPointmapEstimation.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForPointmapEstimation.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForImageMatting[[transformers.AutoModelForImageMatting]]

#### transformers.AutoModelForImageMatting[[transformers.AutoModelForImageMatting]]

```python
transformers.AutoModelForImageMatting(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2624)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для маттинга изображений).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForImageMatting.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [Sapiens2Config](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Config): [Sapiens2ForImageMatting](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForImageMatting) (модель Sapiens2Config) - класс конфигурации [VitMatteConfig](/docs/transformers/main/ru/model_doc/vitmatte#transformers.VitMatteConfig): [VitMatteForImageMatting](/docs/transformers/main/ru/model_doc/vitmatte#transformers.VitMatteForImageMatting) (модель VitMatteConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для маттинга изображений) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForImageMatting

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForImageMatting.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForImageMatting.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для маттинга изображений) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **sapiens2** -- [Sapiens2ForImageMatting](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForImageMatting) (модель Sapiens2Config)
- **vitmatte** -- [VitMatteForImageMatting](/docs/transformers/main/ru/model_doc/vitmatte#transformers.VitMatteForImageMatting) (модель VitMatteConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForImageMatting

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForImageMatting.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForImageMatting.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForTextRecognition[[transformers.AutoModelForTextRecognition]]

#### transformers.AutoModelForTextRecognition[[transformers.AutoModelForTextRecognition]]

```python
transformers.AutoModelForTextRecognition(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2498)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для распознавания текста).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForTextRecognition.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [PPOCRV5MobileRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_rec#transformers.PPOCRV5MobileRecConfig): [PPOCRV5MobileRecForTextRecognition](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_rec#transformers.PPOCRV5MobileRecForTextRecognition) (модель PPOCRV5MobileRecConfig) - класс конфигурации [PPOCRV5ServerRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_rec#transformers.PPOCRV5ServerRecConfig): [PPOCRV5ServerRecForTextRecognition](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_rec#transformers.PPOCRV5ServerRecForTextRecognition) (модель PPOCRV5ServerRecConfig) - класс конфигурации [PPOCRV6SmallRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_rec#transformers.PPOCRV6SmallRecConfig): [PPOCRV6SmallRecForTextRecognition](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_rec#transformers.PPOCRV6SmallRecForTextRecognition) (модель PPOCRV6SmallRecConfig) - класс конфигурации [PPOCRV6TinyRecConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_tiny_rec#transformers.PPOCRV6TinyRecConfig): [PPOCRV6TinyRecForTextRecognition](/docs/transformers/main/ru/model_doc/pp_ocrv6_tiny_rec#transformers.PPOCRV6TinyRecForTextRecognition) (модель PPOCRV6TinyRecConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для распознавания текста) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTextRecognition

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForTextRecognition.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForTextRecognition.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для распознавания текста) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **pp_ocrv5_mobile_rec** -- [PPOCRV5MobileRecForTextRecognition](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_rec#transformers.PPOCRV5MobileRecForTextRecognition) (модель PPOCRV5MobileRecConfig)
- **pp_ocrv5_server_rec** -- [PPOCRV5ServerRecForTextRecognition](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_rec#transformers.PPOCRV5ServerRecForTextRecognition) (модель PPOCRV5ServerRecConfig)
- **pp_ocrv6_small_rec** -- [PPOCRV6SmallRecForTextRecognition](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_rec#transformers.PPOCRV6SmallRecForTextRecognition) (модель PPOCRV6SmallRecConfig)
- **pp_ocrv6_tiny_rec** -- [PPOCRV6TinyRecForTextRecognition](/docs/transformers/main/ru/model_doc/pp_ocrv6_tiny_rec#transformers.PPOCRV6TinyRecForTextRecognition) (модель PPOCRV6TinyRecConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTextRecognition

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForTextRecognition.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForTextRecognition.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForTableRecognition[[transformers.AutoModelForTableRecognition]]

#### transformers.AutoModelForTableRecognition[[transformers.AutoModelForTableRecognition]]

```python
transformers.AutoModelForTableRecognition(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2505)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой распознавания таблиц).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForTableRecognition.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [SLANeXtConfig](/docs/transformers/main/ru/model_doc/slanext#transformers.SLANeXtConfig): [SLANeXtForTableRecognition](/docs/transformers/main/ru/model_doc/slanext#transformers.SLANeXtForTableRecognition) (модель SLANeXtConfig) - класс конфигурации [SLANetConfig](/docs/transformers/main/ru/model_doc/slanet#transformers.SLANetConfig): [SLANetForTableRecognition](/docs/transformers/main/ru/model_doc/slanet#transformers.SLANetForTableRecognition) (модель SLANetConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для распознавания таблиц) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTableRecognition

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForTableRecognition.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForTableRecognition.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для распознавания таблиц) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **slanet** -- [SLANetForTableRecognition](/docs/transformers/main/ru/model_doc/slanet#transformers.SLANetForTableRecognition) (модель SLANetConfig)
- **slanext** -- [SLANeXtForTableRecognition](/docs/transformers/main/ru/model_doc/slanext#transformers.SLANeXtForTableRecognition) (модель SLANeXtConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTableRecognition

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForTableRecognition.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForTableRecognition.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForImageClassification[[transformers.AutoModelForImageClassification]]

#### transformers.AutoModelForImageClassification[[transformers.AutoModelForImageClassification]]

```python
transformers.AutoModelForImageClassification(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2416)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для классификации изображений).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForImageClassification.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели для создания экземпляра выбирается на основе класса конфигурации:  - класс конфигурации [BeitConfig](/docs/transformers/main/ru/model_doc/beit#transformers.BeitConfig): [BeitForImageClassification](/docs/transformers/main/ru/model_doc/beit#transformers.BeitForImageClassification) (модель BeitConfig) - класс конфигурации [BitConfig](/docs/transformers/main/ru/model_doc/bit#transformers.BitConfig): [BitForImageClassification](/docs/transformers/main/ru/model_doc/bit#transformers.BitForImageClassification) (модель BitConfig) - класс конфигурации [CLIPConfig](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPConfig): [CLIPForImageClassification](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPForImageClassification) (модель CLIPConfig) - класс конфигурации [ConvNextConfig](/docs/transformers/main/ru/model_doc/convnext#transformers.ConvNextConfig): [ConvNextForImageClassification](/docs/transformers/main/ru/model_doc/convnext#transformers.ConvNextForImageClassification) (модель ConvNextConfig) - класс конфигурации [ConvNextV2Config](/docs/transformers/main/ru/model_doc/convnextv2#transformers.ConvNextV2Config): [ConvNextV2ForImageClassification](/docs/transformers/main/ru/model_doc/convnextv2#transformers.ConvNextV2ForImageClassification) (модель ConvNextV2Config) - класс конфигурации [CvtConfig](/docs/transformers/main/ru/model_doc/cvt#transformers.CvtConfig): [CvtForImageClassification](/docs/transformers/main/ru/model_doc/cvt#transformers.CvtForImageClassification) (модель CvtConfig) - класс конфигурации [Data2VecVisionConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionConfig): [Data2VecVisionForImageClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionForImageClassification) (модель Data2VecVisionConfig) - класс конфигурации [DeiTConfig](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTConfig): [DeiTForImageClassification](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTForImageClassification) или [DeiTForImageClassificationWithTeacher](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTForImageClassificationWithTeacher) (модель DeiTConfig) - класс конфигурации [DinatConfig](/docs/transformers/main/ru/model_doc/dinat#transformers.DinatConfig): [DinatForImageClassification](/docs/transformers/main/ru/model_doc/dinat#transformers.DinatForImageClassification) (модель DinatConfig) - класс конфигурации [Dinov2Config](/docs/transformers/main/ru/model_doc/dinov2#transformers.Dinov2Config): [Dinov2ForImageClassification](/docs/transformers/main/ru/model_doc/dinov2#transformers.Dinov2ForImageClassification) (модель Dinov2Config) - класс конфигурации [Dinov2WithRegistersConfig](/docs/transformers/main/ru/model_doc/dinov2_with_registers#transformers.Dinov2WithRegistersConfig): [Dinov2WithRegistersForImageClassification](/docs/transformers/main/ru/model_doc/dinov2_with_registers#transformers.Dinov2WithRegistersForImageClassification) (модель Dinov2WithRegistersConfig) - класс конфигурации [DonutSwinConfig](/docs/transformers/main/ru/model_doc/donut#transformers.DonutSwinConfig): [DonutSwinForImageClassification](/docs/transformers/main/ru/model_doc/donut#transformers.DonutSwinForImageClassification) (модель DonutSwinConfig) - класс конфигурации [EfficientNetConfig](/docs/transformers/main/ru/model_doc/efficientnet#transformers.EfficientNetConfig): [EfficientNetForImageClassification](/docs/transformers/main/ru/model_doc/efficientnet#transformers.EfficientNetForImageClassification) (модель EfficientNetConfig) - класс конфигурации [FocalNetConfig](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetConfig): [FocalNetForImageClassification](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetForImageClassification) (модель FocalNetConfig) - класс конфигурации [HGNetV2Config](/docs/transformers/main/ru/model_doc/hgnet_v2#transformers.HGNetV2Config): [HGNetV2ForImageClassification](/docs/transformers/main/ru/model_doc/hgnet_v2#transformers.HGNetV2ForImageClassification) (модель HGNetV2Config) - класс конфигурации [HieraConfig](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraConfig): [HieraForImageClassification](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraForImageClassification) (модель HieraConfig) - класс конфигурации [IJepaConfig](/docs/transformers/main/ru/model_doc/ijepa#transformers.IJepaConfig): [IJepaForImageClassification](/docs/transformers/main/ru/model_doc/ijepa#transformers.IJepaForImageClassification) (модель IJepaConfig) - класс конфигурации [ImageGPTConfig](/docs/transformers/main/ru/model_doc/imagegpt#transformers.ImageGPTConfig): [ImageGPTForImageClassification](/docs/transformers/main/ru/model_doc/imagegpt#transformers.ImageGPTForImageClassification) (модель ImageGPTConfig) - класс конфигурации [LevitConfig](/docs/transformers/main/ru/model_doc/levit#transformers.LevitConfig): [LevitForImageClassification](/docs/transformers/main/ru/model_doc/levit#transformers.LevitForImageClassification) или [LevitForImageClassificationWithTeacher](/docs/transformers/main/ru/model_doc/levit#transformers.LevitForImageClassificationWithTeacher) (модель LevitConfig) - класс конфигурации [MetaClip2Config](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2Config): [MetaClip2ForImageClassification](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2ForImageClassification) (модель MetaClip2Config) - класс конфигурации [MobileNetV1Config](/docs/transformers/main/ru/model_doc/mobilenet_v1#transformers.MobileNetV1Config): [MobileNetV1ForImageClassification](/docs/transformers/main/ru/model_doc/mobilenet_v1#transformers.MobileNetV1ForImageClassification) (модель MobileNetV1Config) - класс конфигурации [MobileNetV2Config](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2Config): [MobileNetV2ForImageClassification](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2ForImageClassification) (модель MobileNetV2Config) - класс конфигурации [MobileViTConfig](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTConfig): [MobileViTForImageClassification](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTForImageClassification) (модель MobileViTConfig) - класс конфигурации [MobileViTV2Config](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2Config): [MobileViTV2ForImageClassification](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2ForImageClassification) (модель MobileViTV2Config) - класс конфигурации [PPLCNetConfig](/docs/transformers/main/ru/model_doc/pp_lcnet#transformers.PPLCNetConfig): [PPLCNetForImageClassification](/docs/transformers/main/ru/model_doc/pp_lcnet#transformers.PPLCNetForImageClassification) (модель PPLCNetConfig) - класс конфигурации [PerceiverConfig](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverConfig): [PerceiverForImageClassificationLearned](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForImageClassificationLearned) или [PerceiverForImageClassificationFourier](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForImageClassificationFourier) или [PerceiverForImageClassificationConvProcessing](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForImageClassificationConvProcessing) (модель PerceiverConfig) - класс конфигурации [PoolFormerConfig](/docs/transformers/main/ru/model_doc/poolformer#transformers.PoolFormerConfig): [PoolFormerForImageClassification](/docs/transformers/main/ru/model_doc/poolformer#transformers.PoolFormerForImageClassification) (модель PoolFormerConfig) - класс конфигурации [PvtConfig](/docs/transformers/main/ru/model_doc/pvt#transformers.PvtConfig): [PvtForImageClassification](/docs/transformers/main/ru/model_doc/pvt#transformers.PvtForImageClassification) (модель PvtConfig) - класс конфигурации [PvtV2Config](/docs/transformers/main/ru/model_doc/pvt_v2#transformers.PvtV2Config): [PvtV2ForImageClassification](/docs/transformers/main/ru/model_doc/pvt_v2#transformers.PvtV2ForImageClassification) (модель PvtV2Config) - класс конфигурации [RegNetConfig](/docs/transformers/main/ru/model_doc/regnet#transformers.RegNetConfig): [RegNetForImageClassification](/docs/transformers/main/ru/model_doc/regnet#transformers.RegNetForImageClassification) (модель RegNetConfig) - класс конфигурации [ResNetConfig](/docs/transformers/main/ru/model_doc/resnet#transformers.ResNetConfig): [ResNetForImageClassification](/docs/transformers/main/ru/model_doc/resnet#transformers.ResNetForImageClassification) (модель ResNetConfig) - класс конфигурации [SegformerConfig](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerConfig): [SegformerForImageClassification](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerForImageClassification) (модель SegformerConfig) - класс конфигурации [ShieldGemma2Config](/docs/transformers/main/ru/model_doc/shieldgemma2#transformers.ShieldGemma2Config): [ShieldGemma2ForImageClassification](/docs/transformers/main/ru/model_doc/shieldgemma2#transformers.ShieldGemma2ForImageClassification) (модель ShieldGemma2Config) - класс конфигурации [Siglip2Config](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Config): [Siglip2ForImageClassification](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2ForImageClassification) (модель Siglip2Config) - класс конфигурации [SiglipConfig](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipConfig): [SiglipForImageClassification](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipForImageClassification) (модель SiglipConfig) - класс конфигурации [SwiftFormerConfig](/docs/transformers/main/ru/model_doc/swiftformer#transformers.SwiftFormerConfig): [SwiftFormerForImageClassification](/docs/transformers/main/ru/model_doc/swiftformer#transformers.SwiftFormerForImageClassification) (модель SwiftFormerConfig) - класс конфигурации [SwinConfig](/docs/transformers/main/ru/model_doc/swin#transformers.SwinConfig): [SwinForImageClassification](/docs/transformers/main/ru/model_doc/swin#transformers.SwinForImageClassification) (модель SwinConfig) - класс конфигурации [Swinv2Config](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2Config): [Swinv2ForImageClassification](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2ForImageClassification) (модель Swinv2Config) - класс конфигурации [TextNetConfig](/docs/transformers/main/ru/model_doc/textnet#transformers.TextNetConfig): [TextNetForImageClassification](/docs/transformers/main/ru/model_doc/textnet#transformers.TextNetForImageClassification) (модель TextNetConfig) - класс конфигурации [TimmWrapperConfig](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperConfig): [TimmWrapperForImageClassification](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperForImageClassification) (модель TimmWrapperConfig) - класс конфигурации [ViTConfig](/docs/transformers/main/ru/model_doc/vit#transformers.ViTConfig): [ViTForImageClassification](/docs/transformers/main/ru/model_doc/vit#transformers.ViTForImageClassification) (модель ViTConfig) - класс конфигурации [ViTMSNConfig](/docs/transformers/main/ru/model_doc/vit_msn#transformers.ViTMSNConfig): [ViTMSNForImageClassification](/docs/transformers/main/ru/model_doc/vit_msn#transformers.ViTMSNForImageClassification) (модель ViTMSNConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для классификации изображений) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForImageClassification

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForImageClassification.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForImageClassification.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для классификации изображений) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **beit** -- [BeitForImageClassification](/docs/transformers/main/ru/model_doc/beit#transformers.BeitForImageClassification) (модель BeitConfig)
- **bit** -- [BitForImageClassification](/docs/transformers/main/ru/model_doc/bit#transformers.BitForImageClassification) (модель BitConfig)
- **clip** -- [CLIPForImageClassification](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPForImageClassification) (модель CLIPConfig)
- **convnext** -- [ConvNextForImageClassification](/docs/transformers/main/ru/model_doc/convnext#transformers.ConvNextForImageClassification) (модель ConvNextConfig)
- **convnextv2** -- [ConvNextV2ForImageClassification](/docs/transformers/main/ru/model_doc/convnextv2#transformers.ConvNextV2ForImageClassification) (модель ConvNextV2Config)
- **cvt** -- [CvtForImageClassification](/docs/transformers/main/ru/model_doc/cvt#transformers.CvtForImageClassification) (модель CvtConfig)
- **data2vec-vision** -- [Data2VecVisionForImageClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionForImageClassification) (модель Data2VecVisionConfig)
- **deit** -- [DeiTForImageClassification](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTForImageClassification) или [DeiTForImageClassificationWithTeacher](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTForImageClassificationWithTeacher) (модель DeiTConfig)
- **dinat** -- [DinatForImageClassification](/docs/transformers/main/ru/model_doc/dinat#transformers.DinatForImageClassification) (модель DinatConfig)
- **dinov2** -- [Dinov2ForImageClassification](/docs/transformers/main/ru/model_doc/dinov2#transformers.Dinov2ForImageClassification) (модель Dinov2Config)
- **dinov2_with_registers** -- [Dinov2WithRegistersForImageClassification](/docs/transformers/main/ru/model_doc/dinov2_with_registers#transformers.Dinov2WithRegistersForImageClassification) (модель Dinov2WithRegistersConfig)
- **donut-swin** -- [DonutSwinForImageClassification](/docs/transformers/main/ru/model_doc/donut#transformers.DonutSwinForImageClassification) (модель DonutSwinConfig)
- **efficientnet** -- [EfficientNetForImageClassification](/docs/transformers/main/ru/model_doc/efficientnet#transformers.EfficientNetForImageClassification) (модель EfficientNetConfig)
- **focalnet** -- [FocalNetForImageClassification](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetForImageClassification) (модель FocalNetConfig)
- **hgnet_v2** -- [HGNetV2ForImageClassification](/docs/transformers/main/ru/model_doc/hgnet_v2#transformers.HGNetV2ForImageClassification) (модель HGNetV2Config)
- **hiera** -- [HieraForImageClassification](/docs/transformers/main/ru/model_doc/hiera#transformers.HieraForImageClassification) (модель HieraConfig)
- **ijepa** -- [IJepaForImageClassification](/docs/transformers/main/ru/model_doc/ijepa#transformers.IJepaForImageClassification) (модель IJepaConfig)
- **imagegpt** -- [ImageGPTForImageClassification](/docs/transformers/main/ru/model_doc/imagegpt#transformers.ImageGPTForImageClassification) (модель ImageGPTConfig)
- **levit** -- [LevitForImageClassification](/docs/transformers/main/ru/model_doc/levit#transformers.LevitForImageClassification) или [LevitForImageClassificationWithTeacher](/docs/transformers/main/ru/model_doc/levit#transformers.LevitForImageClassificationWithTeacher) (модель LevitConfig)
- **metaclip_2** -- [MetaClip2ForImageClassification](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2ForImageClassification) (модель MetaClip2Config)
- **mobilenet_v1** -- [MobileNetV1ForImageClassification](/docs/transformers/main/ru/model_doc/mobilenet_v1#transformers.MobileNetV1ForImageClassification) (модель MobileNetV1Config)
- **mobilenet_v2** -- [MobileNetV2ForImageClassification](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2ForImageClassification) (модель MobileNetV2Config)
- **mobilevit** -- [MobileViTForImageClassification](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTForImageClassification) (модель MobileViTConfig)
- **mobilevitv2** -- [MobileViTV2ForImageClassification](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2ForImageClassification) (модель MobileViTV2Config)
- **perceiver** -- [PerceiverForImageClassificationLearned](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForImageClassificationLearned) или [PerceiverForImageClassificationFourier](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForImageClassificationFourier) или [PerceiverForImageClassificationConvProcessing](/docs/transformers/main/ru/model_doc/perceiver#transformers.PerceiverForImageClassificationConvProcessing) (модель PerceiverConfig)
- **poolformer** -- [PoolFormerForImageClassification](/docs/transformers/main/ru/model_doc/poolformer#transformers.PoolFormerForImageClassification) (модель PoolFormerConfig)
- **pp_lcnet** -- [PPLCNetForImageClassification](/docs/transformers/main/ru/model_doc/pp_lcnet#transformers.PPLCNetForImageClassification) (модель PPLCNetConfig)
- **pvt** -- [PvtForImageClassification](/docs/transformers/main/ru/model_doc/pvt#transformers.PvtForImageClassification) (модель PvtConfig)
- **pvt_v2** -- [PvtV2ForImageClassification](/docs/transformers/main/ru/model_doc/pvt_v2#transformers.PvtV2ForImageClassification) (модель PvtV2Config)
- **regnet** -- [RegNetForImageClassification](/docs/transformers/main/ru/model_doc/regnet#transformers.RegNetForImageClassification) (модель RegNetConfig)
- **resnet** -- [ResNetForImageClassification](/docs/transformers/main/ru/model_doc/resnet#transformers.ResNetForImageClassification) (модель ResNetConfig)
- **segformer** -- [SegformerForImageClassification](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerForImageClassification) (модель SegformerConfig)
- **shieldgemma2** -- [ShieldGemma2ForImageClassification](/docs/transformers/main/ru/model_doc/shieldgemma2#transformers.ShieldGemma2ForImageClassification) (модель ShieldGemma2Config)
- **siglip** -- [SiglipForImageClassification](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipForImageClassification) (модель SiglipConfig)
- **siglip2** -- [Siglip2ForImageClassification](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2ForImageClassification) (модель Siglip2Config)
- **swiftformer** -- [SwiftFormerForImageClassification](/docs/transformers/main/ru/model_doc/swiftformer#transformers.SwiftFormerForImageClassification) (модель SwiftFormerConfig)
- **swin** -- [SwinForImageClassification](/docs/transformers/main/ru/model_doc/swin#transformers.SwinForImageClassification) (модель SwinConfig)
- **swinv2** -- [Swinv2ForImageClassification](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2ForImageClassification) (модель Swinv2Config)
- **textnet** -- [TextNetForImageClassification](/docs/transformers/main/ru/model_doc/textnet#transformers.TextNetForImageClassification) (модель TextNetConfig)
- **timm_wrapper** -- [TimmWrapperForImageClassification](/docs/transformers/main/ru/model_doc/timm_wrapper#transformers.TimmWrapperForImageClassification) (модель TimmWrapperConfig)
- **vit** -- [ViTForImageClassification](/docs/transformers/main/ru/model_doc/vit#transformers.ViTForImageClassification) (модель ViTConfig)
- **vit_msn** -- [ViTMSNForImageClassification](/docs/transformers/main/ru/model_doc/vit_msn#transformers.ViTMSNForImageClassification) (модель ViTMSNConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForImageClassification

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForImageClassification.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForImageClassification.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForVideoClassification[[transformers.AutoModelForVideoClassification]]

#### transformers.AutoModelForVideoClassification[[transformers.AutoModelForVideoClassification]]

```python
transformers.AutoModelForVideoClassification(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2512)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для классификации видео).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForVideoClassification.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [TimesformerConfig](/docs/transformers/main/ru/model_doc/timesformer#transformers.TimesformerConfig): [TimesformerForVideoClassification](/docs/transformers/main/ru/model_doc/timesformer#transformers.TimesformerForVideoClassification) (модель TimesformerConfig) - класс конфигурации [VJEPA2Config](/docs/transformers/main/ru/model_doc/vjepa2#transformers.VJEPA2Config): [VJEPA2ForVideoClassification](/docs/transformers/main/ru/model_doc/vjepa2#transformers.VJEPA2ForVideoClassification) (модель VJEPA2Config) - класс конфигурации [VideoMAEConfig](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEConfig): [VideoMAEForVideoClassification](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEForVideoClassification) (модель VideoMAEConfig) - класс конфигурации [VideoPrismVisionConfig](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismVisionConfig): [VideoPrismForVideoClassification](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismForVideoClassification) (модель VideoPrismVisionConfig) - класс конфигурации [VivitConfig](/docs/transformers/main/ru/model_doc/vivit#transformers.VivitConfig): [VivitForVideoClassification](/docs/transformers/main/ru/model_doc/vivit#transformers.VivitForVideoClassification) (модель VivitConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для классификации видео) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForVideoClassification

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForVideoClassification.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForVideoClassification.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для классификации видео) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **timesformer** -- [TimesformerForVideoClassification](/docs/transformers/main/ru/model_doc/timesformer#transformers.TimesformerForVideoClassification) (модель TimesformerConfig)
- **videomae** -- [VideoMAEForVideoClassification](/docs/transformers/main/ru/model_doc/videomae#transformers.VideoMAEForVideoClassification) (модель VideoMAEConfig)
- **videoprism_vision_model** -- [VideoPrismForVideoClassification](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismForVideoClassification) (модель VideoPrismVisionConfig)
- **vivit** -- [VivitForVideoClassification](/docs/transformers/main/ru/model_doc/vivit#transformers.VivitForVideoClassification) (модель VivitConfig)
- **vjepa2** -- [VJEPA2ForVideoClassification](/docs/transformers/main/ru/model_doc/vjepa2#transformers.VJEPA2ForVideoClassification) (модель VJEPA2Config)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForVideoClassification

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForVideoClassification.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForVideoClassification.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForPoseEstimation[[transformers.AutoModelForPoseEstimation]]

#### transformers.AutoModelForPoseEstimation[[transformers.AutoModelForPoseEstimation]]

```python
transformers.AutoModelForPoseEstimation(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2645)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для оценки позы).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForPoseEstimation.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [Sapiens2Config](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Config): [Sapiens2ForPoseEstimation](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForPoseEstimation) (модель Sapiens2Config) - класс конфигурации [VitPoseConfig](/docs/transformers/main/ru/model_doc/vitpose#transformers.VitPoseConfig): [VitPoseForPoseEstimation](/docs/transformers/main/ru/model_doc/vitpose#transformers.VitPoseForPoseEstimation) (модель VitPoseConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для оценки позы) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForPoseEstimation

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForPoseEstimation.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForPoseEstimation.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для оценки позы) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **sapiens2** -- [Sapiens2ForPoseEstimation](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForPoseEstimation) (модель Sapiens2Config)
- **vitpose** -- [VitPoseForPoseEstimation](/docs/transformers/main/ru/model_doc/vitpose#transformers.VitPoseForPoseEstimation) (модель VitPoseConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForPoseEstimation

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForPoseEstimation.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForPoseEstimation.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForKeypointDetection[[transformers.AutoModelForKeypointDetection]]

#### transformers.AutoModelForKeypointDetection[[transformers.AutoModelForKeypointDetection]]

```python
transformers.AutoModelForKeypointDetection(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2279)

### AutoModelForKeypointMatching[[transformers.AutoModelForKeypointMatching]]

#### transformers.AutoModelForKeypointMatching[[transformers.AutoModelForKeypointMatching]]

```python
transformers.AutoModelForKeypointMatching(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2283)

### AutoModelForMaskedImageModeling[[transformers.AutoModelForMaskedImageModeling]]

#### transformers.AutoModelForMaskedImageModeling[[transformers.AutoModelForMaskedImageModeling]]

```python
transformers.AutoModelForMaskedImageModeling(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2608)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для моделирования изображений с маскированием).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForMaskedImageModeling.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [DeiTConfig](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTConfig): [DeiTForMaskedImageModeling](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTForMaskedImageModeling) (модель DeiTConfig) - класс конфигурации [FocalNetConfig](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetConfig): [FocalNetForMaskedImageModeling](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetForMaskedImageModeling) (модель FocalNetConfig) - класс конфигурации [SwinConfig](/docs/transformers/main/ru/model_doc/swin#transformers.SwinConfig): [SwinForMaskedImageModeling](/docs/transformers/main/ru/model_doc/swin#transformers.SwinForMaskedImageModeling) (модель SwinConfig) - класс конфигурации [Swinv2Config](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2Config): [Swinv2ForMaskedImageModeling](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2ForMaskedImageModeling) (модель Swinv2Config) - класс конфигурации [ViTConfig](/docs/transformers/main/ru/model_doc/vit#transformers.ViTConfig): [ViTForMaskedImageModeling](/docs/transformers/main/ru/model_doc/vit#transformers.ViTForMaskedImageModeling) (модель ViTConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для моделирования маскированных изображений) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForMaskedImageModeling

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForMaskedImageModeling.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForMaskedImageModeling.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для маскированного моделирования изображений) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **deit** -- [DeiTForMaskedImageModeling](/docs/transformers/main/ru/model_doc/deit#transformers.DeiTForMaskedImageModeling) (модель DeiTConfig)
- **focalnet** -- [FocalNetForMaskedImageModeling](/docs/transformers/main/ru/model_doc/focalnet#transformers.FocalNetForMaskedImageModeling) (модель FocalNetConfig)
- **swin** -- [SwinForMaskedImageModeling](/docs/transformers/main/ru/model_doc/swin#transformers.SwinForMaskedImageModeling) (модель SwinConfig)
- **swinv2** -- [Swinv2ForMaskedImageModeling](/docs/transformers/main/ru/model_doc/swinv2#transformers.Swinv2ForMaskedImageModeling) (модель Swinv2Config)
- **vit** -- [ViTForMaskedImageModeling](/docs/transformers/main/ru/model_doc/vit#transformers.ViTForMaskedImageModeling) (модель ViTConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForMaskedImageModeling

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForMaskedImageModeling.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForMaskedImageModeling.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForObjectDetection[[transformers.AutoModelForObjectDetection]]

#### transformers.AutoModelForObjectDetection[[transformers.AutoModelForObjectDetection]]

```python
transformers.AutoModelForObjectDetection(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2475)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для обнаружения объектов).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForObjectDetection.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели для создания экземпляра выбирается на основе класса конфигурации:  - класс конфигурации [ConditionalDetrConfig](/docs/transformers/main/ru/model_doc/conditional_detr#transformers.ConditionalDetrConfig): [ConditionalDetrForObjectDetection](/docs/transformers/main/ru/model_doc/conditional_detr#transformers.ConditionalDetrForObjectDetection) (модель ConditionalDetrConfig) - класс конфигурации [DFineConfig](/docs/transformers/main/ru/model_doc/d_fine#transformers.DFineConfig): [DFineForObjectDetection](/docs/transformers/main/ru/model_doc/d_fine#transformers.DFineForObjectDetection) (модель DFineConfig) - класс конфигурации [DabDetrConfig](/docs/transformers/main/ru/model_doc/dab-detr#transformers.DabDetrConfig): [DabDetrForObjectDetection](/docs/transformers/main/ru/model_doc/dab-detr#transformers.DabDetrForObjectDetection) (модель DabDetrConfig) - класс конфигурации [DeformableDetrConfig](/docs/transformers/main/ru/model_doc/deformable_detr#transformers.DeformableDetrConfig): [DeformableDetrForObjectDetection](/docs/transformers/main/ru/model_doc/deformable_detr#transformers.DeformableDetrForObjectDetection) (модель DeformableDetrConfig) - класс конфигурации [Deimv2Config](/docs/transformers/main/ru/model_doc/deimv2#transformers.Deimv2Config): [Deimv2ForObjectDetection](/docs/transformers/main/ru/model_doc/deimv2#transformers.Deimv2ForObjectDetection) (модель Deimv2Config) - класс конфигурации [DetrConfig](/docs/transformers/main/ru/model_doc/detr#transformers.DetrConfig): [DetrForObjectDetection](/docs/transformers/main/ru/model_doc/detr#transformers.DetrForObjectDetection) (модель DetrConfig) - класс конфигурации [LwDetrConfig](/docs/transformers/main/ru/model_doc/lw_detr#transformers.LwDetrConfig): [LwDetrForObjectDetection](/docs/transformers/main/ru/model_doc/lw_detr#transformers.LwDetrForObjectDetection) (модель LwDetrConfig) - класс конфигурации [PPDocLayoutV2Config](/docs/transformers/main/ru/model_doc/pp_doclayout_v2#transformers.PPDocLayoutV2Config): [PPDocLayoutV2ForObjectDetection](/docs/transformers/main/ru/model_doc/pp_doclayout_v2#transformers.PPDocLayoutV2ForObjectDetection) (модель PPDocLayoutV2Config) - класс конфигурации [PPDocLayoutV3Config](/docs/transformers/main/ru/model_doc/pp_doclayout_v3#transformers.PPDocLayoutV3Config): [PPDocLayoutV3ForObjectDetection](/docs/transformers/main/ru/model_doc/pp_doclayout_v3#transformers.PPDocLayoutV3ForObjectDetection) (модель PPDocLayoutV3Config) - класс конфигурации [PPDocLayoutV4Config](/docs/transformers/main/ru/model_doc/pp_doclayout_v4#transformers.PPDocLayoutV4Config): [PPDocLayoutV4ForObjectDetection](/docs/transformers/main/ru/model_doc/pp_doclayout_v4#transformers.PPDocLayoutV4ForObjectDetection) (модель PPDocLayoutV4Config) - класс конфигурации [PPOCRV5MobileDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_det#transformers.PPOCRV5MobileDetConfig): [PPOCRV5MobileDetForObjectDetection](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_det#transformers.PPOCRV5MobileDetForObjectDetection) (модель PPOCRV5MobileDetConfig) - класс конфигурации [PPOCRV5ServerDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_det#transformers.PPOCRV5ServerDetConfig): [PPOCRV5ServerDetForObjectDetection](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_det#transformers.PPOCRV5ServerDetForObjectDetection) (модель PPOCRV5ServerDetConfig) - класс конфигурации [PPOCRV6MediumDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_medium_det#transformers.PPOCRV6MediumDetConfig): [PPOCRV6MediumDetForObjectDetection](/docs/transformers/main/ru/model_doc/pp_ocrv6_medium_det#transformers.PPOCRV6MediumDetForObjectDetection) (модель PPOCRV6MediumDetConfig) - класс конфигурации [PPOCRV6SmallDetConfig](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_det#transformers.PPOCRV6SmallDetConfig): [PPOCRV6SmallDetForObjectDetection](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_det#transformers.PPOCRV6SmallDetForObjectDetection) (модель PPOCRV6SmallDetConfig) - класс конфигурации [RTDetrConfig](/docs/transformers/main/ru/model_doc/rt_detr#transformers.RTDetrConfig): [RTDetrForObjectDetection](/docs/transformers/main/ru/model_doc/rt_detr#transformers.RTDetrForObjectDetection) (модель RTDetrConfig) - класс конфигурации [RTDetrV2Config](/docs/transformers/main/ru/model_doc/rt_detr_v2#transformers.RTDetrV2Config): [RTDetrV2ForObjectDetection](/docs/transformers/main/ru/model_doc/rt_detr_v2#transformers.RTDetrV2ForObjectDetection) (модель RTDetrV2Config) - класс конфигурации [RfDetrConfig](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrConfig): [RfDetrForObjectDetection](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrForObjectDetection) (модель RfDetrConfig) - класс конфигурации [TableTransformerConfig](/docs/transformers/main/ru/model_doc/table-transformer#transformers.TableTransformerConfig): [TableTransformerForObjectDetection](/docs/transformers/main/ru/model_doc/table-transformer#transformers.TableTransformerForObjectDetection) (модель TableTransformerConfig) - класс конфигурации [YolosConfig](/docs/transformers/main/ru/model_doc/yolos#transformers.YolosConfig): [YolosForObjectDetection](/docs/transformers/main/ru/model_doc/yolos#transformers.YolosForObjectDetection) (модель YolosConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для обнаружения объектов) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForObjectDetection

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForObjectDetection.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForObjectDetection.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для обнаружения объектов) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **conditional_detr** -- [ConditionalDetrForObjectDetection](/docs/transformers/main/ru/model_doc/conditional_detr#transformers.ConditionalDetrForObjectDetection) (модель ConditionalDetrConfig)
- **d_fine** -- [DFineForObjectDetection](/docs/transformers/main/ru/model_doc/d_fine#transformers.DFineForObjectDetection) (модель DFineConfig)
- **dab-detr** -- [DabDetrForObjectDetection](/docs/transformers/main/ru/model_doc/dab-detr#transformers.DabDetrForObjectDetection) (модель DabDetrConfig)
- **deformable_detr** -- [DeformableDetrForObjectDetection](/docs/transformers/main/ru/model_doc/deformable_detr#transformers.DeformableDetrForObjectDetection) (модель DeformableDetrConfig)
- **deimv2** -- [Deimv2ForObjectDetection](/docs/transformers/main/ru/model_doc/deimv2#transformers.Deimv2ForObjectDetection) (модель Deimv2Config)
- **detr** -- [DetrForObjectDetection](/docs/transformers/main/ru/model_doc/detr#transformers.DetrForObjectDetection) (модель DetrConfig)
- **lw_detr** -- [LwDetrForObjectDetection](/docs/transformers/main/ru/model_doc/lw_detr#transformers.LwDetrForObjectDetection) (модель LwDetrConfig)
- **pp_doclayout_v2** -- [PPDocLayoutV2ForObjectDetection](/docs/transformers/main/ru/model_doc/pp_doclayout_v2#transformers.PPDocLayoutV2ForObjectDetection) (модель PPDocLayoutV2Config)
- **pp_doclayout_v3** -- [PPDocLayoutV3ForObjectDetection](/docs/transformers/main/ru/model_doc/pp_doclayout_v3#transformers.PPDocLayoutV3ForObjectDetection) (модель PPDocLayoutV3Config)
- **pp_doclayout_v4** -- [PPDocLayoutV4ForObjectDetection](/docs/transformers/main/ru/model_doc/pp_doclayout_v4#transformers.PPDocLayoutV4ForObjectDetection) (модель PPDocLayoutV4Config)
- **pp_ocrv5_mobile_det** -- [PPOCRV5MobileDetForObjectDetection](/docs/transformers/main/ru/model_doc/pp_ocrv5_mobile_det#transformers.PPOCRV5MobileDetForObjectDetection) (модель PPOCRV5MobileDetConfig)
- **pp_ocrv5_server_det** -- [PPOCRV5ServerDetForObjectDetection](/docs/transformers/main/ru/model_doc/pp_ocrv5_server_det#transformers.PPOCRV5ServerDetForObjectDetection) (модель PPOCRV5ServerDetConfig)
- **pp_ocrv6_medium_det** -- [PPOCRV6MediumDetForObjectDetection](/docs/transformers/main/ru/model_doc/pp_ocrv6_medium_det#transformers.PPOCRV6MediumDetForObjectDetection) (модель PPOCRV6MediumDetConfig)
- **pp_ocrv6_small_det** -- [PPOCRV6SmallDetForObjectDetection](/docs/transformers/main/ru/model_doc/pp_ocrv6_small_det#transformers.PPOCRV6SmallDetForObjectDetection) (модель PPOCRV6SmallDetConfig)
- **rf_detr** -- [RfDetrForObjectDetection](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrForObjectDetection) (модель RfDetrConfig)
- **rt_detr** -- [RTDetrForObjectDetection](/docs/transformers/main/ru/model_doc/rt_detr#transformers.RTDetrForObjectDetection) (модель RTDetrConfig)
- **rt_detr_v2** -- [RTDetrV2ForObjectDetection](/docs/transformers/main/ru/model_doc/rt_detr_v2#transformers.RTDetrV2ForObjectDetection) (модель RTDetrV2Config)
- **table-transformer** -- [TableTransformerForObjectDetection](/docs/transformers/main/ru/model_doc/table-transformer#transformers.TableTransformerForObjectDetection) (модель TableTransformerConfig)
- **yolos** -- [YolosForObjectDetection](/docs/transformers/main/ru/model_doc/yolos#transformers.YolosForObjectDetection) (модель YolosConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForObjectDetection

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForObjectDetection.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForObjectDetection.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForImageSegmentation[[transformers.AutoModelForImageSegmentation]]

#### transformers.AutoModelForImageSegmentation[[transformers.AutoModelForImageSegmentation]]

```python
transformers.AutoModelForImageSegmentation(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2432)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для сегментации изображений).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForImageSegmentation.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [DetrConfig](/docs/transformers/main/ru/model_doc/detr#transformers.DetrConfig): [DetrForSegmentation](/docs/transformers/main/ru/model_doc/detr#transformers.DetrForSegmentation) (модель DetrConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для сегментации изображений) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForImageSegmentation

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForImageSegmentation.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForImageSegmentation.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для сегментации изображений) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **detr** -- [DetrForSegmentation](/docs/transformers/main/ru/model_doc/detr#transformers.DetrForSegmentation) (модель DetrConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForImageSegmentation

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForImageSegmentation.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForImageSegmentation.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForImageToImage[[transformers.AutoModelForImageToImage]]

#### transformers.AutoModelForImageToImage[[transformers.AutoModelForImageToImage]]

```python
transformers.AutoModelForImageToImage(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2291)

### AutoModelForSemanticSegmentation[[transformers.AutoModelForSemanticSegmentation]]

#### transformers.AutoModelForSemanticSegmentation[[transformers.AutoModelForSemanticSegmentation]]

```python
transformers.AutoModelForSemanticSegmentation(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2439)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой семантической сегментации).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForSemanticSegmentation.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [BeitConfig](/docs/transformers/main/ru/model_doc/beit#transformers.BeitConfig): [BeitForSemanticSegmentation](/docs/transformers/main/ru/model_doc/beit#transformers.BeitForSemanticSegmentation) (модель BeitConfig) - класс конфигурации [DPTConfig](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTConfig): [DPTForSemanticSegmentation](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTForSemanticSegmentation) (модель DPTConfig) - класс конфигурации [Data2VecVisionConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionConfig): [Data2VecVisionForSemanticSegmentation](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionForSemanticSegmentation) (модель Data2VecVisionConfig) - класс конфигурации [MobileNetV2Config](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2Config): [MobileNetV2ForSemanticSegmentation](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2ForSemanticSegmentation) (модель MobileNetV2Config) - класс конфигурации [MobileViTConfig](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTConfig): [MobileViTForSemanticSegmentation](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTForSemanticSegmentation) (модель MobileViTConfig) - класс конфигурации [MobileViTV2Config](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2Config): [MobileViTV2ForSemanticSegmentation](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2ForSemanticSegmentation) (модель MobileViTV2Config) - класс конфигурации [Sapiens2Config](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2Config): [Sapiens2ForSemanticSegmentation](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForSemanticSegmentation) (модель Sapiens2Config) - класс конфигурации [SegformerConfig](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerConfig): [SegformerForSemanticSegmentation](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerForSemanticSegmentation) (модель SegformerConfig) - класс конфигурации [Tipsv2DptConfig](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptConfig): [Tipsv2DptForSemanticSegmentation](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptForSemanticSegmentation) (модель Tipsv2DptConfig) - класс конфигурации [UperNetConfig](/docs/transformers/main/ru/model_doc/upernet#transformers.UperNetConfig): [UperNetForSemanticSegmentation](/docs/transformers/main/ru/model_doc/upernet#transformers.UperNetForSemanticSegmentation) (модель UperNetConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой семантической сегментации) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForSemanticSegmentation

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForSemanticSegmentation.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForSemanticSegmentation.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой семантической сегментации) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **beit** -- [BeitForSemanticSegmentation](/docs/transformers/main/ru/model_doc/beit#transformers.BeitForSemanticSegmentation) (модель BeitConfig)
- **data2vec-vision** -- [Data2VecVisionForSemanticSegmentation](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecVisionForSemanticSegmentation) (модель Data2VecVisionConfig)
- **dpt** -- [DPTForSemanticSegmentation](/docs/transformers/main/ru/model_doc/dpt#transformers.DPTForSemanticSegmentation) (модель DPTConfig)
- **mobilenet_v2** -- [MobileNetV2ForSemanticSegmentation](/docs/transformers/main/ru/model_doc/mobilenet_v2#transformers.MobileNetV2ForSemanticSegmentation) (модель MobileNetV2Config)
- **mobilevit** -- [MobileViTForSemanticSegmentation](/docs/transformers/main/ru/model_doc/mobilevit#transformers.MobileViTForSemanticSegmentation) (модель MobileViTConfig)
- **mobilevitv2** -- [MobileViTV2ForSemanticSegmentation](/docs/transformers/main/ru/model_doc/mobilevitv2#transformers.MobileViTV2ForSemanticSegmentation) (модель MobileViTV2Config)
- **sapiens2** -- [Sapiens2ForSemanticSegmentation](/docs/transformers/main/ru/model_doc/sapiens2#transformers.Sapiens2ForSemanticSegmentation) (модель Sapiens2Config)
- **segformer** -- [SegformerForSemanticSegmentation](/docs/transformers/main/ru/model_doc/segformer#transformers.SegformerForSemanticSegmentation) (модель SegformerConfig)
- **tipsv2_dpt** -- [Tipsv2DptForSemanticSegmentation](/docs/transformers/main/ru/model_doc/tipsv2_dpt#transformers.Tipsv2DptForSemanticSegmentation) (модель Tipsv2DptConfig)
- **upernet** -- [UperNetForSemanticSegmentation](/docs/transformers/main/ru/model_doc/upernet#transformers.UperNetForSemanticSegmentation) (модель UperNetConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForSemanticSegmentation

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForSemanticSegmentation.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForSemanticSegmentation.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForInstanceSegmentation[[transformers.AutoModelForInstanceSegmentation]]

#### transformers.AutoModelForInstanceSegmentation[[transformers.AutoModelForInstanceSegmentation]]

```python
transformers.AutoModelForInstanceSegmentation(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2466)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для сегментации экземпляров).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForInstanceSegmentation.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [MaskFormerConfig](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerConfig): [MaskFormerForInstanceSegmentation](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerForInstanceSegmentation) (модель MaskFormerConfig) - класс конфигурации [RfDetrConfig](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrConfig): [RfDetrForInstanceSegmentation](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrForInstanceSegmentation) (модель RfDetrConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для сегментации экземпляров) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForInstanceSegmentation

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForInstanceSegmentation.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForInstanceSegmentation.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для сегментации экземпляров) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **maskformer** -- [MaskFormerForInstanceSegmentation](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerForInstanceSegmentation) (модель MaskFormerConfig)
- **rf_detr** -- [RfDetrForInstanceSegmentation](/docs/transformers/main/ru/model_doc/rf_detr#transformers.RfDetrForInstanceSegmentation) (модель RfDetrConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForInstanceSegmentation

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForInstanceSegmentation.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForInstanceSegmentation.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForUniversalSegmentation[[transformers.AutoModelForUniversalSegmentation]]

#### transformers.AutoModelForUniversalSegmentation[[transformers.AutoModelForUniversalSegmentation]]

```python
transformers.AutoModelForUniversalSegmentation(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2457)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с универсальной головой сегментации изображений).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForUniversalSegmentation.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [DetrConfig](/docs/transformers/main/ru/model_doc/detr#transformers.DetrConfig): [DetrForSegmentation](/docs/transformers/main/ru/model_doc/detr#transformers.DetrForSegmentation) (модель DetrConfig) - класс конфигурации [EomtConfig](/docs/transformers/main/ru/model_doc/eomt#transformers.EomtConfig): [EomtForUniversalSegmentation](/docs/transformers/main/ru/model_doc/eomt#transformers.EomtForUniversalSegmentation) (модель EomtConfig) - класс конфигурации [EomtDinov3Config](/docs/transformers/main/ru/model_doc/eomt_dinov3#transformers.EomtDinov3Config): [EomtDinov3ForUniversalSegmentation](/docs/transformers/main/ru/model_doc/eomt_dinov3#transformers.EomtDinov3ForUniversalSegmentation) (модель EomtDinov3Config) - класс конфигурации [Mask2FormerConfig](/docs/transformers/main/ru/model_doc/mask2former#transformers.Mask2FormerConfig): [Mask2FormerForUniversalSegmentation](/docs/transformers/main/ru/model_doc/mask2former#transformers.Mask2FormerForUniversalSegmentation) (модель Mask2FormerConfig) - класс конфигурации [MaskFormerConfig](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerConfig): [MaskFormerForInstanceSegmentation](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerForInstanceSegmentation) (модель MaskFormerConfig) - класс конфигурации [OneFormerConfig](/docs/transformers/main/ru/model_doc/oneformer#transformers.OneFormerConfig): [OneFormerForUniversalSegmentation](/docs/transformers/main/ru/model_doc/oneformer#transformers.OneFormerForUniversalSegmentation) (модель OneFormerConfig) - класс конфигурации [VideomtConfig](/docs/transformers/main/ru/model_doc/videomt#transformers.VideomtConfig): [VideomtForUniversalSegmentation](/docs/transformers/main/ru/model_doc/videomt#transformers.VideomtForUniversalSegmentation) (модель VideomtConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с универсальной головой сегментации изображений) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForUniversalSegmentation

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForUniversalSegmentation.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForUniversalSegmentation.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с универсальной головой сегментации изображений) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **detr** -- [DetrForSegmentation](/docs/transformers/main/ru/model_doc/detr#transformers.DetrForSegmentation) (модель DetrConfig)
- **eomt** -- [EomtForUniversalSegmentation](/docs/transformers/main/ru/model_doc/eomt#transformers.EomtForUniversalSegmentation) (модель EomtConfig)
- **eomt_dinov3** -- [EomtDinov3ForUniversalSegmentation](/docs/transformers/main/ru/model_doc/eomt_dinov3#transformers.EomtDinov3ForUniversalSegmentation) (модель EomtDinov3Config)
- **mask2former** -- [Mask2FormerForUniversalSegmentation](/docs/transformers/main/ru/model_doc/mask2former#transformers.Mask2FormerForUniversalSegmentation) (модель Mask2FormerConfig)
- **maskformer** -- [MaskFormerForInstanceSegmentation](/docs/transformers/main/ru/model_doc/maskformer#transformers.MaskFormerForInstanceSegmentation) (модель MaskFormerConfig)
- **oneformer** -- [OneFormerForUniversalSegmentation](/docs/transformers/main/ru/model_doc/oneformer#transformers.OneFormerForUniversalSegmentation) (модель OneFormerConfig)
- **videomt** -- [VideomtForUniversalSegmentation](/docs/transformers/main/ru/model_doc/videomt#transformers.VideomtForUniversalSegmentation) (модель VideomtConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForUniversalSegmentation

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForUniversalSegmentation.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForUniversalSegmentation.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForZeroShotImageClassification[[transformers.AutoModelForZeroShotImageClassification]]

#### transformers.AutoModelForZeroShotImageClassification[[transformers.AutoModelForZeroShotImageClassification]]

```python
transformers.AutoModelForZeroShotImageClassification(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2423)

This is a generic model class that will be instantiated as one of the model classes of the library (with a zero-shot image classification head) when created with the [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) class method or the [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) class method.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForZeroShotImageClassification.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [AlignConfig](/docs/transformers/main/ru/model_doc/align#transformers.AlignConfig): [AlignModel](/docs/transformers/main/ru/model_doc/align#transformers.AlignModel) (модель AlignConfig) - класс конфигурации [AltCLIPConfig](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPConfig): [AltCLIPModel](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPModel) (модель AltCLIPConfig) - класс конфигурации [Blip2Config](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Config): [Blip2ForImageTextRetrieval](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2ForImageTextRetrieval) (модель Blip2Config) - класс конфигурации [BlipConfig](/docs/transformers/main/ru/model_doc/blip#transformers.BlipConfig): [BlipModel](/docs/transformers/main/ru/model_doc/blip#transformers.BlipModel) (модель BlipConfig) - класс конфигурации [CLIPConfig](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPConfig): [CLIPModel](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPModel) (модель CLIPConfig) - класс конфигурации [CLIPSegConfig](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegConfig): [CLIPSegModel](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegModel) (модель CLIPSegConfig) - класс конфигурации [ChineseCLIPConfig](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPConfig): [ChineseCLIPModel](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPModel) (модель ChineseCLIPConfig) - класс конфигурации [MetaClip2Config](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2Config): [MetaClip2Model](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2Model) (модель MetaClip2Config) - класс конфигурации [Siglip2Config](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Config): [Siglip2Model](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Model) (модель Siglip2Config) - класс конфигурации [SiglipConfig](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipConfig): [SiglipModel](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipModel) (модель SiglipConfig) - класс конфигурации [Tipsv2Config](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Config): [Tipsv2Model](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Model) (модель Tipsv2Config) - класс конфигурации [VideoPrismConfig](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismConfig): [VideoPrismClipModel](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismClipModel) (модель VideoPrismConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с заголовком для классификации изображений в режиме zero-shot) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForZeroShotImageClassification

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForZeroShotImageClassification.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForZeroShotImageClassification.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головкой для классификации изображений в режиме zero-shot) на основе предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **align** -- [AlignModel](/docs/transformers/main/ru/model_doc/align#transformers.AlignModel) (модель AlignConfig)
- **altclip** -- [AltCLIPModel](/docs/transformers/main/ru/model_doc/altclip#transformers.AltCLIPModel) (модель AltCLIPConfig)
- **blip** -- [BlipModel](/docs/transformers/main/ru/model_doc/blip#transformers.BlipModel) (модель BlipConfig)
- **blip-2** -- [Blip2ForImageTextRetrieval](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2ForImageTextRetrieval) (модель Blip2Config)
- **chinese_clip** -- [ChineseCLIPModel](/docs/transformers/main/ru/model_doc/chinese_clip#transformers.ChineseCLIPModel) (модель ChineseCLIPConfig)
- **clip** -- [CLIPModel](/docs/transformers/main/ru/model_doc/clip#transformers.CLIPModel) (модель CLIPConfig)
- **clipseg** -- [CLIPSegModel](/docs/transformers/main/ru/model_doc/clipseg#transformers.CLIPSegModel) (модель CLIPSegConfig)
- **metaclip_2** -- [MetaClip2Model](/docs/transformers/main/ru/model_doc/metaclip_2#transformers.MetaClip2Model) (модель MetaClip2Config)
- **siglip** -- [SiglipModel](/docs/transformers/main/ru/model_doc/siglip#transformers.SiglipModel) (модель SiglipConfig)
- **siglip2** -- [Siglip2Model](/docs/transformers/main/ru/model_doc/siglip2#transformers.Siglip2Model) (модель Siglip2Config)
- **tipsv2** -- [Tipsv2Model](/docs/transformers/main/ru/model_doc/tipsv2#transformers.Tipsv2Model) (модель Tipsv2Config)
- **videoprism** -- [VideoPrismClipModel](/docs/transformers/main/ru/model_doc/videoprism#transformers.VideoPrismClipModel) (модель VideoPrismConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForZeroShotImageClassification

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForZeroShotImageClassification.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForZeroShotImageClassification.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForZeroShotObjectDetection[[transformers.AutoModelForZeroShotObjectDetection]]

#### transformers.AutoModelForZeroShotObjectDetection[[transformers.AutoModelForZeroShotObjectDetection]]

```python
transformers.AutoModelForZeroShotObjectDetection(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2482)

This is a generic model class that will be instantiated as one of the model classes of the library (with a zero-shot object detection head) when created with the [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) class method or the [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) class method.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForZeroShotObjectDetection.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [GroundingDinoConfig](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoConfig): [GroundingDinoForObjectDetection](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoForObjectDetection) (модель GroundingDinoConfig) - класс конфигурации [MMGroundingDinoConfig](/docs/transformers/main/ru/model_doc/mm-grounding-dino#transformers.MMGroundingDinoConfig): [MMGroundingDinoForObjectDetection](/docs/transformers/main/ru/model_doc/mm-grounding-dino#transformers.MMGroundingDinoForObjectDetection) (модель MMGroundingDinoConfig) - класс конфигурации [OmDetTurboConfig](/docs/transformers/main/ru/model_doc/omdet-turbo#transformers.OmDetTurboConfig): [OmDetTurboForObjectDetection](/docs/transformers/main/ru/model_doc/omdet-turbo#transformers.OmDetTurboForObjectDetection) (модель OmDetTurboConfig) - класс конфигурации [OwlViTConfig](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTConfig): [OwlViTForObjectDetection](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTForObjectDetection) (модель OwlViTConfig) - класс конфигурации [Owlv2Config](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2Config): [Owlv2ForObjectDetection](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2ForObjectDetection) (модель Owlv2Config)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головкой для детекции объектов в zero-shot режиме) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForZeroShotObjectDetection

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForZeroShotObjectDetection.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForZeroShotObjectDetection.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для детекции объектов в zero-shot режиме) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **grounding-dino** -- [GroundingDinoForObjectDetection](/docs/transformers/main/ru/model_doc/grounding-dino#transformers.GroundingDinoForObjectDetection) (модель GroundingDinoConfig)
- **mm-grounding-dino** -- [MMGroundingDinoForObjectDetection](/docs/transformers/main/ru/model_doc/mm-grounding-dino#transformers.MMGroundingDinoForObjectDetection) (модель MMGroundingDinoConfig)
- **omdet-turbo** -- [OmDetTurboForObjectDetection](/docs/transformers/main/ru/model_doc/omdet-turbo#transformers.OmDetTurboForObjectDetection) (модель OmDetTurboConfig)
- **owlv2** -- [Owlv2ForObjectDetection](/docs/transformers/main/ru/model_doc/owlv2#transformers.Owlv2ForObjectDetection) (модель Owlv2Config)
- **owlvit** -- [OwlViTForObjectDetection](/docs/transformers/main/ru/model_doc/owlvit#transformers.OwlViTForObjectDetection) (модель OwlViTConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForZeroShotObjectDetection

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForZeroShotObjectDetection.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForZeroShotObjectDetection.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

## Аудио

Для следующих задач обработки аудио доступны следующие автоклассы.

### AutoModelForAudioClassification[[transformers.AutoModelForAudioClassification]]

#### transformers.AutoModelForAudioClassification[[transformers.AutoModelForAudioClassification]]

```python
transformers.AutoModelForAudioClassification(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2543)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для классификации аудио).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForAudioClassification.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [ASTConfig](/docs/transformers/main/ru/model_doc/audio-spectrogram-transformer#transformers.ASTConfig): [ASTForAudioClassification](/docs/transformers/main/ru/model_doc/audio-spectrogram-transformer#transformers.ASTForAudioClassification) (модель ASTConfig) - класс конфигурации [Data2VecAudioConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioConfig): [Data2VecAudioForSequenceClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioForSequenceClassification) (модель Data2VecAudioConfig) - класс конфигурации [HubertConfig](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertConfig): [HubertForSequenceClassification](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertForSequenceClassification) (модель HubertConfig) - класс конфигурации [SEWConfig](/docs/transformers/main/ru/model_doc/sew#transformers.SEWConfig): [SEWForSequenceClassification](/docs/transformers/main/ru/model_doc/sew#transformers.SEWForSequenceClassification) (модель SEWConfig) - класс конфигурации [SEWDConfig](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDConfig): [SEWDForSequenceClassification](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDForSequenceClassification) (модель SEWDConfig) - класс конфигурации [UniSpeechConfig](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechConfig): [UniSpeechForSequenceClassification](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechForSequenceClassification) (модель UniSpeechConfig) - класс конфигурации [UniSpeechSatConfig](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatConfig): [UniSpeechSatForSequenceClassification](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForSequenceClassification) (модель UniSpeechSatConfig) - класс конфигурации [Wav2Vec2BertConfig](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertConfig): [Wav2Vec2BertForSequenceClassification](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertForSequenceClassification) (модель Wav2Vec2BertConfig) - класс конфигурации [Wav2Vec2Config](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Config): [Wav2Vec2ForSequenceClassification](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForSequenceClassification) (модель Wav2Vec2Config) - класс конфигурации [Wav2Vec2ConformerConfig](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerConfig): [Wav2Vec2ConformerForSequenceClassification](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForSequenceClassification) (модель Wav2Vec2ConformerConfig) - класс конфигурации [WavLMConfig](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMConfig): [WavLMForSequenceClassification](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMForSequenceClassification) (модель WavLMConfig) - класс конфигурации [WhisperConfig](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperConfig): [WhisperForAudioClassification](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperForAudioClassification) (модель WhisperConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для классификации аудио) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForAudioClassification

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForAudioClassification.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForAudioClassification.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для классификации аудио) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **audio-spectrogram-transformer** -- [ASTForAudioClassification](/docs/transformers/main/ru/model_doc/audio-spectrogram-transformer#transformers.ASTForAudioClassification) (модель ASTConfig)
- **data2vec-audio** -- [Data2VecAudioForSequenceClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioForSequenceClassification) (модель Data2VecAudioConfig)
- **hubert** -- [HubertForSequenceClassification](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertForSequenceClassification) (модель HubertConfig)
- **sew** -- [SEWForSequenceClassification](/docs/transformers/main/ru/model_doc/sew#transformers.SEWForSequenceClassification) (модель SEWConfig)
- **sew-d** -- [SEWDForSequenceClassification](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDForSequenceClassification) (модель SEWDConfig)
- **unispeech** -- [UniSpeechForSequenceClassification](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechForSequenceClassification) (модель UniSpeechConfig)
- **unispeech-sat** -- [UniSpeechSatForSequenceClassification](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForSequenceClassification) (модель UniSpeechSatConfig)
- **wav2vec2** -- [Wav2Vec2ForSequenceClassification](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForSequenceClassification) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2BertForSequenceClassification](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertForSequenceClassification) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2ConformerForSequenceClassification](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForSequenceClassification) (модель Wav2Vec2ConformerConfig)
- **wavlm** -- [WavLMForSequenceClassification](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMForSequenceClassification) (модель WavLMConfig)
- **whisper** -- [WhisperForAudioClassification](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperForAudioClassification) (модель WhisperConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForAudioClassification

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForAudioClassification.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForAudioClassification.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForAudioFrameClassification[[transformers.AutoModelForAudioFrameClassification]]

#### transformers.AutoModelForAudioFrameClassification[[transformers.AutoModelForAudioFrameClassification]]

```python
transformers.AutoModelForAudioFrameClassification(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2580)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для классификации аудиокадров (токенов)).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForAudioFrameClassification.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [Data2VecAudioConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioConfig): [Data2VecAudioForAudioFrameClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioForAudioFrameClassification) (модель Data2VecAudioConfig) - класс конфигурации [Nemotron3DiarizationConfig](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationConfig): [Nemotron3DiarizationForAudioFrameClassification](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationForAudioFrameClassification) (модель Nemotron3DiarizationConfig) - класс конфигурации [UniSpeechSatConfig](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatConfig): [UniSpeechSatForAudioFrameClassification](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForAudioFrameClassification) (модель UniSpeechSatConfig) - класс конфигурации [Wav2Vec2BertConfig](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertConfig): [Wav2Vec2BertForAudioFrameClassification](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertForAudioFrameClassification) (модель Wav2Vec2BertConfig) - класс конфигурации [Wav2Vec2Config](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Config): [Wav2Vec2ForAudioFrameClassification](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForAudioFrameClassification) (модель Wav2Vec2Config) - класс конфигурации [Wav2Vec2ConformerConfig](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerConfig): [Wav2Vec2ConformerForAudioFrameClassification](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForAudioFrameClassification) (модель Wav2Vec2ConformerConfig) - класс конфигурации [WavLMConfig](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMConfig): [WavLMForAudioFrameClassification](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMForAudioFrameClassification) (модель WavLMConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой классификации аудиокадров (токенов)) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForAudioFrameClassification

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForAudioFrameClassification.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForAudioFrameClassification.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой классификации аудиокадров (токенов)) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **data2vec-audio** -- [Data2VecAudioForAudioFrameClassification](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioForAudioFrameClassification) (модель Data2VecAudioConfig)
- **nemotron3_diarization** -- [Nemotron3DiarizationForAudioFrameClassification](/docs/transformers/main/ru/model_doc/nemotron3_diarization#transformers.Nemotron3DiarizationForAudioFrameClassification) (модель Nemotron3DiarizationConfig)
- **unispeech-sat** -- [UniSpeechSatForAudioFrameClassification](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForAudioFrameClassification) (модель UniSpeechSatConfig)
- **wav2vec2** -- [Wav2Vec2ForAudioFrameClassification](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForAudioFrameClassification) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2BertForAudioFrameClassification](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertForAudioFrameClassification) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2ConformerForAudioFrameClassification](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForAudioFrameClassification) (модель Wav2Vec2ConformerConfig)
- **wavlm** -- [WavLMForAudioFrameClassification](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMForAudioFrameClassification) (модель WavLMConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForAudioFrameClassification

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForAudioFrameClassification.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForAudioFrameClassification.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForCTC[[transformers.AutoModelForCTC]]

#### transformers.AutoModelForCTC[[transformers.AutoModelForCTC]]

```python
transformers.AutoModelForCTC(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2550)

This is a generic model class that will be instantiated as one of the model classes of the library (with a connectionist temporal classification head) when created with the [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) class method or the [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) class method.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForCTC.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [Data2VecAudioConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioConfig): [Data2VecAudioForCTC](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioForCTC) (модель Data2VecAudioConfig) - класс конфигурации [GraniteSpeech5CTCConfig](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5CTCConfig): [GraniteSpeech5ForCTC](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5ForCTC) (модель GraniteSpeech5CTCConfig) - класс конфигурации [HubertConfig](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertConfig): [HubertForCTC](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertForCTC) (модель HubertConfig) - класс конфигурации [LasrCTCConfig](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrCTCConfig): [LasrForCTC](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrForCTC) (модель LasrCTCConfig) - класс конфигурации [ParakeetCTCConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetCTCConfig): [ParakeetForCTC](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForCTC) (модель ParakeetCTCConfig) - класс конфигурации [SEWConfig](/docs/transformers/main/ru/model_doc/sew#transformers.SEWConfig): [SEWForCTC](/docs/transformers/main/ru/model_doc/sew#transformers.SEWForCTC) (модель SEWConfig) - класс конфигурации [SEWDConfig](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDConfig): [SEWDForCTC](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDForCTC) (модель SEWDConfig) - класс конфигурации [UniSpeechConfig](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechConfig): [UniSpeechForCTC](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechForCTC) (модель UniSpeechConfig) - класс конфигурации [UniSpeechSatConfig](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatConfig): [UniSpeechSatForCTC](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForCTC) (модель UniSpeechSatConfig) - класс конфигурации [Wav2Vec2BertConfig](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertConfig): [Wav2Vec2BertForCTC](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertForCTC) (модель Wav2Vec2BertConfig) - класс конфигурации [Wav2Vec2Config](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Config): [Wav2Vec2ForCTC](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForCTC) (модель Wav2Vec2Config) - класс конфигурации [Wav2Vec2ConformerConfig](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerConfig): [Wav2Vec2ConformerForCTC](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForCTC) (модель Wav2Vec2ConformerConfig) - класс конфигурации [WavLMConfig](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMConfig): [WavLMForCTC](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMForCTC) (модель WavLMConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой для классификации с временной связностью) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForCTC

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForCTC.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForCTC.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой connectionist temporal classification) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **data2vec-audio** -- [Data2VecAudioForCTC](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioForCTC) (модель Data2VecAudioConfig)
- **granite_speech5_ctc** -- [GraniteSpeech5ForCTC](/docs/transformers/main/ru/model_doc/granite_speech5#transformers.GraniteSpeech5ForCTC) (модель GraniteSpeech5CTCConfig)
- **hubert** -- [HubertForCTC](/docs/transformers/main/ru/model_doc/hubert#transformers.HubertForCTC) (модель HubertConfig)
- **lasr_ctc** -- [LasrForCTC](/docs/transformers/main/ru/model_doc/lasr#transformers.LasrForCTC) (модель LasrCTCConfig)
- **parakeet_ctc** -- [ParakeetForCTC](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForCTC) (модель ParakeetCTCConfig)
- **sew** -- [SEWForCTC](/docs/transformers/main/ru/model_doc/sew#transformers.SEWForCTC) (модель SEWConfig)
- **sew-d** -- [SEWDForCTC](/docs/transformers/main/ru/model_doc/sew-d#transformers.SEWDForCTC) (модель SEWDConfig)
- **unispeech** -- [UniSpeechForCTC](/docs/transformers/main/ru/model_doc/unispeech#transformers.UniSpeechForCTC) (модель UniSpeechConfig)
- **unispeech-sat** -- [UniSpeechSatForCTC](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForCTC) (модель UniSpeechSatConfig)
- **wav2vec2** -- [Wav2Vec2ForCTC](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForCTC) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2BertForCTC](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertForCTC) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2ConformerForCTC](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForCTC) (модель Wav2Vec2ConformerConfig)
- **wavlm** -- [WavLMForCTC](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMForCTC) (модель WavLMConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForCTC

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForCTC.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForCTC.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForTDT[[transformers.AutoModelForTDT]]

#### transformers.AutoModelForTDT[[transformers.AutoModelForTDT]]

```python
transformers.AutoModelForTDT(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2564)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой transducer для токенов и длительности).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForTDT.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [ParakeetTDTConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetTDTConfig): [ParakeetForTDT](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForTDT) (модель ParakeetTDTConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой transducer для токенов и длительности) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTDT

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForTDT.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForTDT.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой transducer, работающей с токенами и длительностью) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **parakeet_tdt** -- [ParakeetForTDT](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForTDT) (модель ParakeetTDTConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTDT

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForTDT.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForTDT.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForRNNT[[transformers.AutoModelForRNNT]]

#### transformers.AutoModelForRNNT[[transformers.AutoModelForRNNT]]

```python
transformers.AutoModelForRNNT(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2557)

This is a generic model class that will be instantiated as one of the model classes of the library (with a RNN transducer head) when created with the [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) class method or the [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) class method.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForRNNT.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [Nemotron3_5AsrConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_asr#transformers.Nemotron3_5AsrConfig): [Nemotron3_5AsrForRNNT](/docs/transformers/main/ru/model_doc/nemotron3_5_asr#transformers.Nemotron3_5AsrForRNNT) (модель Nemotron3_5AsrConfig) - класс конфигурации [NemotronAsrStreamingConfig](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingConfig): [NemotronAsrStreamingForRNNT](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingForRNNT) (модель NemotronAsrStreamingConfig) - класс конфигурации [ParakeetRNNTConfig](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetRNNTConfig): [ParakeetForRNNT](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForRNNT) (модель ParakeetRNNTConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с головой RNN-транскрибера) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForRNNT

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForRNNT.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForRNNT.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой RNN-транскрибтера) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **nemotron3_5_asr** -- [Nemotron3_5AsrForRNNT](/docs/transformers/main/ru/model_doc/nemotron3_5_asr#transformers.Nemotron3_5AsrForRNNT) (модель Nemotron3_5AsrConfig)
- **nemotron_asr_streaming** -- [NemotronAsrStreamingForRNNT](/docs/transformers/main/ru/model_doc/nemotron_asr_streaming#transformers.NemotronAsrStreamingForRNNT) (модель NemotronAsrStreamingConfig)
- **parakeet_rnnt** -- [ParakeetForRNNT](/docs/transformers/main/ru/model_doc/parakeet#transformers.ParakeetForRNNT) (модель ParakeetRNNTConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForRNNT

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForRNNT.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForRNNT.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForSpeechSeq2Seq[[transformers.AutoModelForSpeechSeq2Seq]]

#### transformers.AutoModelForSpeechSeq2Seq[[transformers.AutoModelForSpeechSeq2Seq]]

```python
transformers.AutoModelForSpeechSeq2Seq(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2571)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой моделирования «последовательность в последовательность» для распознавания речи).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForSpeechSeq2Seq.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации: - класс конфигурации [CanaryConfig](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryConfig): [CanaryForConditionalGeneration](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryForConditionalGeneration) (модель CanaryConfig) - класс конфигурации [CohereAsrConfig](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrConfig): [CohereAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrForConditionalGeneration) (модель CohereAsrConfig) - класс конфигурации [DiaConfig](/docs/transformers/main/ru/model_doc/dia#transformers.DiaConfig): [DiaForConditionalGeneration](/docs/transformers/main/ru/model_doc/dia#transformers.DiaForConditionalGeneration) (модель DiaConfig) - класс конфигурации [FunAsrNanoConfig](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoConfig): [FunAsrNanoForConditionalGeneration](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoForConditionalGeneration) (модель FunAsrNanoConfig) - класс конфигурации [GraniteSpeechConfig](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechConfig): [GraniteSpeechForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechForConditionalGeneration) (модель GraniteSpeechConfig) - класс конфигурации [GraniteSpeechPlusConfig](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusConfig): [GraniteSpeechPlusForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusForConditionalGeneration) (модель GraniteSpeechPlusConfig) - класс конфигурации [KyutaiSpeechToTextConfig](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextConfig): [KyutaiSpeechToTextForConditionalGeneration](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextForConditionalGeneration) (модель KyutaiSpeechToTextConfig) - класс конфигурации [MoonshineConfig](/docs/transformers/main/ru/model_doc/moonshine#transformers.MoonshineConfig): [MoonshineForConditionalGeneration](/docs/transformers/main/ru/model_doc/moonshine#transformers.MoonshineForConditionalGeneration) (модель MoonshineConfig) - класс конфигурации [MoonshineStreamingConfig](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingConfig): [MoonshineStreamingForConditionalGeneration](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingForConditionalGeneration) (модель MoonshineStreamingConfig) - класс конфигурации [Pop2PianoConfig](/docs/transformers/main/ru/model_doc/pop2piano#transformers.Pop2PianoConfig): [Pop2PianoForConditionalGeneration](/docs/transformers/main/ru/model_doc/pop2piano#transformers.Pop2PianoForConditionalGeneration) (модель Pop2PianoConfig) - класс конфигурации [Qwen3ASRConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRConfig): [Qwen3ASRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForConditionalGeneration) (модель Qwen3ASRConfig) - класс конфигурации [SeamlessM4TConfig](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TConfig): [SeamlessM4TForSpeechToText](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TForSpeechToText) (модель SeamlessM4TConfig) - класс конфигурации [SeamlessM4Tv2Config](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2Config): [SeamlessM4Tv2ForSpeechToText](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2ForSpeechToText) (модель SeamlessM4Tv2Config) - класс конфигурации [Speech2TextConfig](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextConfig): [Speech2TextForConditionalGeneration](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextForConditionalGeneration) (модель Speech2TextConfig) - класс конфигурации [SpeechEncoderDecoderConfig](/docs/transformers/main/ru/model_doc/speech-encoder-decoder#transformers.SpeechEncoderDecoderConfig): [SpeechEncoderDecoderModel](/docs/transformers/main/ru/model_doc/speech-encoder-decoder#transformers.SpeechEncoderDecoderModel) (модель SpeechEncoderDecoderConfig) - класс конфигурации [SpeechT5Config](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5Config): [SpeechT5ForSpeechToText](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5ForSpeechToText) (модель SpeechT5Config) - класс конфигурации [VibeVoiceAsrConfig](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrConfig): [VibeVoiceAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrForConditionalGeneration) (модель VibeVoiceAsrConfig) - класс конфигурации [VibeVoiceConfig](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceConfig): [VibeVoiceForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceForConditionalGeneration) (модель VibeVoiceConfig) - класс конфигурации [VoxtralConfig](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralConfig): [VoxtralForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralForConditionalGeneration) (модель VoxtralConfig) - класс конфигурации [VoxtralRealtimeConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeConfig): [VoxtralRealtimeForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeForConditionalGeneration) (модель VoxtralRealtimeConfig) - класс конфигурации [WhisperConfig](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperConfig): [WhisperForConditionalGeneration](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperForConditionalGeneration) (модель WhisperConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с заголовком моделирования «последовательность в последовательность» для распознавания речи) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForSpeechSeq2Seq

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForSpeechSeq2Seq.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForSpeechSeq2Seq.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с заголовком моделирования «последовательность в последовательность» для распознавания речи) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **canary** -- [CanaryForConditionalGeneration](/docs/transformers/main/ru/model_doc/canary#transformers.CanaryForConditionalGeneration) (модель CanaryConfig)
- **cohere_asr** -- [CohereAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere_asr#transformers.CohereAsrForConditionalGeneration) (модель CohereAsrConfig)
- **dia** -- [DiaForConditionalGeneration](/docs/transformers/main/ru/model_doc/dia#transformers.DiaForConditionalGeneration) (модель DiaConfig)
- **fun_asr_nano** -- [FunAsrNanoForConditionalGeneration](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoForConditionalGeneration) (модель FunAsrNanoConfig)
- **granite_speech** -- [GraniteSpeechForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechForConditionalGeneration) (модель GraniteSpeechConfig)
- **granite_speech_plus** -- [GraniteSpeechPlusForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusForConditionalGeneration) (модель GraniteSpeechPlusConfig)
- **kyutai_speech_to_text** -- [KyutaiSpeechToTextForConditionalGeneration](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextForConditionalGeneration) (модель KyutaiSpeechToTextConfig)
- **moonshine** -- [MoonshineForConditionalGeneration](/docs/transformers/main/ru/model_doc/moonshine#transformers.MoonshineForConditionalGeneration) (модель MoonshineConfig)
- **moonshine_streaming** -- [MoonshineStreamingForConditionalGeneration](/docs/transformers/main/ru/model_doc/moonshine_streaming#transformers.MoonshineStreamingForConditionalGeneration) (модель MoonshineStreamingConfig)
- **pop2piano** -- [Pop2PianoForConditionalGeneration](/docs/transformers/main/ru/model_doc/pop2piano#transformers.Pop2PianoForConditionalGeneration) (модель Pop2PianoConfig)
- **qwen3_asr** -- [Qwen3ASRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForConditionalGeneration) (модель Qwen3ASRConfig)
- **seamless_m4t** -- [SeamlessM4TForSpeechToText](/docs/transformers/main/ru/model_doc/seamless_m4t#transformers.SeamlessM4TForSpeechToText) (модель SeamlessM4TConfig)
- **seamless_m4t_v2** -- [SeamlessM4Tv2ForSpeechToText](/docs/transformers/main/ru/model_doc/seamless_m4t_v2#transformers.SeamlessM4Tv2ForSpeechToText) (модель SeamlessM4Tv2Config)
- **speech-encoder-decoder** -- [SpeechEncoderDecoderModel](/docs/transformers/main/ru/model_doc/speech-encoder-decoder#transformers.SpeechEncoderDecoderModel) (модель SpeechEncoderDecoderConfig)
- **speech_to_text** -- [Speech2TextForConditionalGeneration](/docs/transformers/main/ru/model_doc/speech_to_text#transformers.Speech2TextForConditionalGeneration) (модель Speech2TextConfig)
- **speecht5** -- [SpeechT5ForSpeechToText](/docs/transformers/main/ru/model_doc/speecht5#transformers.SpeechT5ForSpeechToText) (модель SpeechT5Config)
- **vibevoice** -- [VibeVoiceForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice#transformers.VibeVoiceForConditionalGeneration) (модель VibeVoiceConfig)
- **vibevoice_asr** -- [VibeVoiceAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrForConditionalGeneration) (модель VibeVoiceAsrConfig)
- **voxtral** -- [VoxtralForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralForConditionalGeneration) (модель VoxtralConfig)
- **voxtral_realtime** -- [VoxtralRealtimeForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeForConditionalGeneration) (модель VoxtralRealtimeConfig)
- **whisper** -- [WhisperForConditionalGeneration](/docs/transformers/main/ru/model_doc/whisper#transformers.WhisperForConditionalGeneration) (модель WhisperConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForSpeechSeq2Seq

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForSpeechSeq2Seq.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForSpeechSeq2Seq.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForAudioXVector[[transformers.AutoModelForAudioXVector]]

#### transformers.AutoModelForAudioXVector[[transformers.AutoModelForAudioXVector]]

```python
transformers.AutoModelForAudioXVector(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2589)

This is a generic model class that will be instantiated as one of the model classes of the library (with a audio retrieval via x-vector head) when created with the [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) class method or the [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) class method.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForAudioXVector.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [Data2VecAudioConfig](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioConfig): [Data2VecAudioForXVector](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioForXVector) (модель Data2VecAudioConfig) - класс конфигурации [UniSpeechSatConfig](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatConfig): [UniSpeechSatForXVector](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForXVector) (модель UniSpeechSatConfig) - класс конфигурации [Wav2Vec2BertConfig](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertConfig): [Wav2Vec2BertForXVector](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertForXVector) (модель Wav2Vec2BertConfig) - класс конфигурации [Wav2Vec2Config](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2Config): [Wav2Vec2ForXVector](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForXVector) (модель Wav2Vec2Config) - класс конфигурации [Wav2Vec2ConformerConfig](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerConfig): [Wav2Vec2ConformerForXVector](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForXVector) (модель Wav2Vec2ConformerConfig) - класс конфигурации [WavLMConfig](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMConfig): [WavLMForXVector](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMForXVector) (модель WavLMConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с аудио-ретривалом через x-vector head) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForAudioXVector

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForAudioXVector.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForAudioXVector.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с аудио-поиском через x-vector head) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **data2vec-audio** -- [Data2VecAudioForXVector](/docs/transformers/main/ru/model_doc/data2vec#transformers.Data2VecAudioForXVector) (модель Data2VecAudioConfig)
- **unispeech-sat** -- [UniSpeechSatForXVector](/docs/transformers/main/ru/model_doc/unispeech-sat#transformers.UniSpeechSatForXVector) (модель UniSpeechSatConfig)
- **wav2vec2** -- [Wav2Vec2ForXVector](/docs/transformers/main/ru/model_doc/wav2vec2#transformers.Wav2Vec2ForXVector) (модель Wav2Vec2Config)
- **wav2vec2-bert** -- [Wav2Vec2BertForXVector](/docs/transformers/main/ru/model_doc/wav2vec2-bert#transformers.Wav2Vec2BertForXVector) (модель Wav2Vec2BertConfig)
- **wav2vec2-conformer** -- [Wav2Vec2ConformerForXVector](/docs/transformers/main/ru/model_doc/wav2vec2-conformer#transformers.Wav2Vec2ConformerForXVector) (модель Wav2Vec2ConformerConfig)
- **wavlm** -- [WavLMForXVector](/docs/transformers/main/ru/model_doc/wavlm#transformers.WavLMForXVector) (модель WavLMConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForAudioXVector

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForAudioXVector.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForAudioXVector.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForTextToSpectrogram[[transformers.AutoModelForTextToSpectrogram]]

#### transformers.AutoModelForTextToSpectrogram[[transformers.AutoModelForTextToSpectrogram]]

```python
transformers.AutoModelForTextToSpectrogram(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2593)

### AutoModelForTextToWaveform[[transformers.AutoModelForTextToWaveform]]

#### transformers.AutoModelForTextToWaveform[[transformers.AutoModelForTextToWaveform]]

```python
transformers.AutoModelForTextToWaveform(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2597)

### AutoModelForAudioTokenization[[transformers.AutoModelForAudioTokenization]]

#### transformers.AutoModelForAudioTokenization[[transformers.AutoModelForAudioTokenization]]

```python
transformers.AutoModelForAudioTokenization(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2615)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с аудио-токенизацией через кодбуки).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForAudioTokenization.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [DacConfig](/docs/transformers/main/ru/model_doc/dac#transformers.DacConfig): [DacModel](/docs/transformers/main/ru/model_doc/dac#transformers.DacModel) (модель DacConfig) - класс конфигурации [HiggsAudioV2TokenizerConfig](/docs/transformers/main/ru/model_doc/higgs_audio_v2_tokenizer#transformers.HiggsAudioV2TokenizerConfig): [HiggsAudioV2TokenizerModel](/docs/transformers/main/ru/model_doc/higgs_audio_v2_tokenizer#transformers.HiggsAudioV2TokenizerModel) (модель HiggsAudioV2TokenizerConfig) - класс конфигурации [NeuCodecConfig](/docs/transformers/main/ru/model_doc/neucodec#transformers.NeuCodecConfig): [NeuCodecModel](/docs/transformers/main/ru/model_doc/neucodec#transformers.NeuCodecModel) (модель NeuCodecConfig) - класс конфигурации [PocketTTSAudioTokenizerConfig](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerConfig): [PocketTTSAudioTokenizerModel](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerModel) (модель PocketTTSAudioTokenizerConfig) - класс конфигурации [VibeVoiceAcousticTokenizerConfig](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerConfig): [VibeVoiceAcousticTokenizerModel](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerModel) (модель VibeVoiceAcousticTokenizerConfig) - класс конфигурации [Xcodec2Config](/docs/transformers/main/ru/model_doc/xcodec2#transformers.Xcodec2Config): [Xcodec2Model](/docs/transformers/main/ru/model_doc/xcodec2#transformers.Xcodec2Model) (модель Xcodec2Config)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с аудио-токенизацией через кодбуки) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForAudioTokenization

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForAudioTokenization.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForAudioTokenization.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с аудио-токенизацией через кодбуки) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **dac** -- [DacModel](/docs/transformers/main/ru/model_doc/dac#transformers.DacModel) (модель DacConfig)
- **higgs_audio_v2_tokenizer** -- [HiggsAudioV2TokenizerModel](/docs/transformers/main/ru/model_doc/higgs_audio_v2_tokenizer#transformers.HiggsAudioV2TokenizerModel) (модель HiggsAudioV2TokenizerConfig)
- **neucodec** -- [NeuCodecModel](/docs/transformers/main/ru/model_doc/neucodec#transformers.NeuCodecModel) (модель NeuCodecConfig)
- **pocket_tts_audio_tokenizer** -- [PocketTTSAudioTokenizerModel](/docs/transformers/main/ru/model_doc/pocket_tts_audio_tokenizer#transformers.PocketTTSAudioTokenizerModel) (модель PocketTTSAudioTokenizerConfig)
- **vibevoice_acoustic_tokenizer** -- [VibeVoiceAcousticTokenizerModel](/docs/transformers/main/ru/model_doc/vibevoice_acoustic_tokenizer#transformers.VibeVoiceAcousticTokenizerModel) (модель VibeVoiceAcousticTokenizerConfig)
- **xcodec2** -- [Xcodec2Model](/docs/transformers/main/ru/model_doc/xcodec2#transformers.Xcodec2Model) (модель Xcodec2Config)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForAudioTokenization

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForAudioTokenization.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForAudioTokenization.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

## Мультимодальность

Для следующих мультимодальных задач доступны следующие автоклассы.

### AutoModelForMultimodalLM[[transformers.AutoModelForMultimodalLM]]

#### transformers.AutoModelForMultimodalLM[[transformers.AutoModelForMultimodalLM]]

```python
transformers.AutoModelForMultimodalLM(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2536)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с мультимодальной генеративной головой).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForMultimodalLM.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : The model class to instantiate is selected based on the configuration class:  - [AriaConfig](/docs/transformers/main/ru/model_doc/aria#transformers.AriaConfig) configuration class: [AriaForConditionalGeneration](/docs/transformers/main/ru/model_doc/aria#transformers.AriaForConditionalGeneration) (AriaConfig model) - [AyaVisionConfig](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionConfig) configuration class: [AyaVisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionForConditionalGeneration) (AyaVisionConfig model) - [Blip2Config](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Config) configuration class: [Blip2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2ForConditionalGeneration) (Blip2Config model) - [BlipConfig](/docs/transformers/main/ru/model_doc/blip#transformers.BlipConfig) configuration class: [BlipForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip#transformers.BlipForConditionalGeneration) (BlipConfig model) - [ChameleonConfig](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonConfig) configuration class: [ChameleonForConditionalGeneration](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonForConditionalGeneration) (ChameleonConfig model) - [Cohere2VisionConfig](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionConfig) configuration class: [Cohere2VisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionForConditionalGeneration) (Cohere2VisionConfig model) - [CohereCompassConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassConfig) configuration class: [CohereCompassForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassForConditionalGeneration) (CohereCompassConfig model) - [Cosmos3EdgeConfig](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeConfig) configuration class: [Cosmos3EdgeForConditionalGeneration](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeForConditionalGeneration) (Cosmos3EdgeConfig model) - [Cosmos3OmniConfig](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniConfig) configuration class: [Cosmos3OmniForConditionalGeneration](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniForConditionalGeneration) (Cosmos3OmniConfig model) - [DeepseekOcr2Config](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2Config) configuration class: [DeepseekOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2ForConditionalGeneration) (DeepseekOcr2Config model) - [DeepseekVLConfig](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLConfig) configuration class: [DeepseekVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLForConditionalGeneration) (DeepseekVLConfig model) - [DeepseekVLHybridConfig](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridConfig) configuration class: [DeepseekVLHybridForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridForConditionalGeneration) (DeepseekVLHybridConfig model) - [DiffusionGemmaConfig](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaConfig) configuration class: [DiffusionGemmaForBlockDiffusion](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaForBlockDiffusion) (DiffusionGemmaConfig model) - [Emu3Config](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3Config) configuration class: [Emu3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3ForConditionalGeneration) (Emu3Config model) - [Ernie4_5_VLMoeConfig](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeConfig) configuration class: [Ernie4_5_VLMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeForConditionalGeneration) (Ernie4_5_VLMoeConfig model) - [EvollaConfig](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaConfig) configuration class: [EvollaForProteinText2Text](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaForProteinText2Text) (EvollaConfig model) - [Exaone4_5_Config](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_Config) configuration class: [Exaone4_5_ForConditionalGeneration](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_ForConditionalGeneration) (Exaone4_5_Config model) - [FastVlmConfig](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmConfig) configuration class: [FastVlmForConditionalGeneration](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmForConditionalGeneration) (FastVlmConfig model) - [Florence2Config](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2Config) configuration class: [Florence2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2ForConditionalGeneration) (Florence2Config model) - [FunAsrNanoConfig](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoConfig) configuration class: [FunAsrNanoForConditionalGeneration](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoForConditionalGeneration) (FunAsrNanoConfig model) - [FuyuConfig](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuConfig) configuration class: [FuyuForCausalLM](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuForCausalLM) (FuyuConfig model) - [Gemma3Config](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Config) configuration class: [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (Gemma3Config model) - [Gemma3nConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nConfig) configuration class: [Gemma3nForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nForConditionalGeneration) (Gemma3nConfig model) - [Gemma4Config](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Config) configuration class: [Gemma4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForConditionalGeneration) (Gemma4Config model) - [Gemma4UnifiedConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedConfig) configuration class: [Gemma4UnifiedForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForConditionalGeneration) (Gemma4UnifiedConfig model) - [GitConfig](/docs/transformers/main/ru/model_doc/git#transformers.GitConfig) configuration class: [GitForCausalLM](/docs/transformers/main/ru/model_doc/git#transformers.GitForCausalLM) (GitConfig model) - [Glm46VConfig](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VConfig) configuration class: [Glm46VForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VForConditionalGeneration) (Glm46VConfig model) - [Glm4vConfig](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vConfig) configuration class: [Glm4vForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vForConditionalGeneration) (Glm4vConfig model) - [Glm4vMoeConfig](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeConfig) configuration class: [Glm4vMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeForConditionalGeneration) (Glm4vMoeConfig model) - [Glm5NextConfig](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextConfig) configuration class: [Glm5NextForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextForConditionalGeneration) (Glm5NextConfig model) - [GlmAsrConfig](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrConfig) configuration class: [GlmAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrForConditionalGeneration) (GlmAsrConfig model) - [GlmOcrConfig](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrConfig) configuration class: [GlmOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrForConditionalGeneration) (GlmOcrConfig model) - [GlmgaConfig](/docs/transformers/main/ru/model_doc/glmga#transformers.GlmgaConfig) configuration class: [Glm46VForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VForConditionalGeneration) (GlmgaConfig model) - [GotOcr2Config](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2Config) configuration class: [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (GotOcr2Config model) - [Granite4VisionConfig](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionConfig) configuration class: [Granite4VisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionForConditionalGeneration) (Granite4VisionConfig model) - [GraniteSpeechConfig](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechConfig) configuration class: [GraniteSpeechForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechForConditionalGeneration) (GraniteSpeechConfig model) - [GraniteSpeechPlusConfig](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusConfig) configuration class: [GraniteSpeechPlusForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusForConditionalGeneration) (GraniteSpeechPlusConfig model) - [HunYuanVLConfig](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLConfig) configuration class: [HunYuanVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLForConditionalGeneration) (HunYuanVLConfig model) - [HyperCLOVAXVisionV2Config](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2Config) configuration class: [HyperCLOVAXVisionV2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2ForConditionalGeneration) (HyperCLOVAXVisionV2Config model) - [Idefics2Config](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2Config) configuration class: [Idefics2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2ForConditionalGeneration) (Idefics2Config model) - [Idefics3Config](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Config) configuration class: [Idefics3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3ForConditionalGeneration) (Idefics3Config model) - [IdeficsConfig](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsConfig) configuration class: [IdeficsForVisionText2Text](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsForVisionText2Text) (IdeficsConfig model) - [InklingConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingConfig) configuration class: [InklingForConditionalGeneration](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingForConditionalGeneration) (InklingConfig model) - [InstructBlipConfig](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipConfig) configuration class: [InstructBlipForConditionalGeneration](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipForConditionalGeneration) (InstructBlipConfig model) - [InstructBlipVideoConfig](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoConfig) configuration class: [InstructBlipVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoForConditionalGeneration) (InstructBlipVideoConfig model) - [InternVLConfig](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLConfig) configuration class: [InternVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLForConditionalGeneration) (InternVLConfig model) - [JanusConfig](/docs/transformers/main/ru/model_doc/janus#transformers.JanusConfig) configuration class: [JanusForConditionalGeneration](/docs/transformers/main/ru/model_doc/janus#transformers.JanusForConditionalGeneration) (JanusConfig model) - [Kimi_K25Config](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25Config) configuration class: [Kimi_K25ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25ForConditionalGeneration) (Kimi_K25Config model) - [Kosmos2Config](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2Config) configuration class: [Kosmos2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2ForConditionalGeneration) (Kosmos2Config model) - [Kosmos2_5Config](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5Config) configuration class: [Kosmos2_5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5ForConditionalGeneration) (Kosmos2_5Config model) - [KyutaiSpeechToTextConfig](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextConfig) configuration class: [KyutaiSpeechToTextForConditionalGeneration](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextForConditionalGeneration) (KyutaiSpeechToTextConfig model) - [Lfm2VlConfig](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlConfig) configuration class: [Lfm2VlForConditionalGeneration](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlForConditionalGeneration) (Lfm2VlConfig model) - [LightOnOcrConfig](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrConfig) configuration class: [LightOnOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrForConditionalGeneration) (LightOnOcrConfig model) - [Llama4Config](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4Config) configuration class: [Llama4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForConditionalGeneration) (Llama4Config model) - [LlavaConfig](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaConfig) configuration class: [LlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaForConditionalGeneration) (LlavaConfig model) - [LlavaNextConfig](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextConfig) configuration class: [LlavaNextForConditionalGeneration](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextForConditionalGeneration) (LlavaNextConfig model) - [LlavaNextVideoConfig](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoConfig) configuration class: [LlavaNextVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoForConditionalGeneration) (LlavaNextVideoConfig model) - [LlavaOnevisionConfig](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionConfig) configuration class: [LlavaOnevisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionForConditionalGeneration) (LlavaOnevisionConfig model) - [MiniCPMOcrConfig](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrConfig) configuration class: [MiniCPMOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrForConditionalGeneration) (MiniCPMOcrConfig model) - [MiniCPMV4_6Config](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6Config) configuration class: [MiniCPMV4_6ForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6ForConditionalGeneration) (MiniCPMV4_6Config model) - [MiniCPMV4_7Config](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7Config) configuration class: [MiniCPMV4_7ForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7ForConditionalGeneration) (MiniCPMV4_7Config model) - [MiniMaxM3VLConfig](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLConfig) configuration class: [MiniMaxM3SparseForConditionalGeneration](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3SparseForConditionalGeneration) (MiniMaxM3VLConfig model) - [Mistral3Config](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3Config) configuration class: [Mistral3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3ForConditionalGeneration) (Mistral3Config model) - [Mistral4Config](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Config) configuration class: [Mistral4ForCausalLM](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForCausalLM) (Mistral4Config model) - [MistralLarge4Config](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4Config) configuration class: [MistralLarge4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4ForConditionalGeneration) (MistralLarge4Config model) - [MllamaConfig](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaConfig) configuration class: [MllamaForConditionalGeneration](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaForConditionalGeneration) (MllamaConfig model) - [Molmo2Config](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2Config) configuration class: [Molmo2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2ForConditionalGeneration) (Molmo2Config model) - [MossTranscribeDiarizeConfig](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeConfig) configuration class: [MossTranscribeDiarizeForConditionalGeneration](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeForConditionalGeneration) (MossTranscribeDiarizeConfig model) - [MuseGlimmerConfig](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerConfig) configuration class: [MuseGlimmerForConditionalGeneration](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerForConditionalGeneration) (MuseGlimmerConfig model) - [MuseSparkConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkConfig) configuration class: [MuseSparkForConditionalGeneration](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkForConditionalGeneration) (MuseSparkConfig model) - [Nemotron3_5TranscribeConfig](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeConfig) configuration class: [Nemotron3_5TranscribeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeForConditionalGeneration) (Nemotron3_5TranscribeConfig model) - [NemotronH_Omni_Reasoning_V3_Config](/docs/transformers/main/ru/model_doc/nemotron_h_omni#transformers.NemotronH_Omni_Reasoning_V3_Config) configuration class: [NemotronH_Omni_Reasoning_V3](/docs/transformers/main/ru/model_doc/nemotron_h_omni#transformers.NemotronH_Omni_Reasoning_V3) (NemotronH_Omni_Reasoning_V3_Config model) - [Ovis2Config](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2Config) configuration class: [Ovis2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2ForConditionalGeneration) (Ovis2Config model) - [PI0Config](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0Config) configuration class: [PI0ForConditionalGeneration](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0ForConditionalGeneration) (PI0Config model) - [PPChart2TableConfig](/docs/transformers/main/ru/model_doc/pp_chart2table#transformers.PPChart2TableConfig) configuration class: [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (PPChart2TableConfig model) - [PPFormulaNetConfig](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetConfig) configuration class: [PPFormulaNetForConditionalGeneration](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetForConditionalGeneration) (PPFormulaNetConfig model) - [PaddleOCRVLConfig](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLConfig) configuration class: [PaddleOCRVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLForConditionalGeneration) (PaddleOCRVLConfig model) - [PaliGemmaConfig](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaConfig) configuration class: [PaliGemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration) (PaliGemmaConfig model) - [PerceptionLMConfig](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMConfig) configuration class: [PerceptionLMForConditionalGeneration](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMForConditionalGeneration) (PerceptionLMConfig model) - [Phi4MultimodalConfig](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalConfig) configuration class: [Phi4MultimodalForCausalLM](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalForCausalLM) (Phi4MultimodalConfig model) - [Pix2StructConfig](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructConfig) configuration class: [Pix2StructForConditionalGeneration](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructForConditionalGeneration) (Pix2StructConfig model) - [QianfanOCRConfig](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRConfig) configuration class: [QianfanOCRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRForConditionalGeneration) (QianfanOCRConfig model) - [Qwen2AudioConfig](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioConfig) configuration class: [Qwen2AudioForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioForConditionalGeneration) (Qwen2AudioConfig model) - [Qwen2VLConfig](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLConfig) configuration class: [Qwen2VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLForConditionalGeneration) (Qwen2VLConfig model) - [Qwen2_5OmniConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniConfig) configuration class: [Qwen2_5OmniForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniForConditionalGeneration) (Qwen2_5OmniConfig model) - [Qwen2_5OmniThinkerConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerConfig) configuration class: [Qwen2_5OmniThinkerForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerForConditionalGeneration) (Qwen2_5OmniThinkerConfig model) - [Qwen2_5_VLConfig](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLConfig) configuration class: [Qwen2_5_VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLForConditionalGeneration) (Qwen2_5_VLConfig model) - [Qwen3ASRConfig](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRConfig) configuration class: [Qwen3ASRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForConditionalGeneration) (Qwen3ASRConfig model) - [Qwen3OmniMoeConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeConfig) configuration class: [Qwen3OmniMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeForConditionalGeneration) (Qwen3OmniMoeConfig model) - [Qwen3OmniMoeThinkerConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerConfig) configuration class: [Qwen3OmniMoeThinkerForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerForConditionalGeneration) (Qwen3OmniMoeThinkerConfig model) - [Qwen3VLConfig](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLConfig) configuration class: [Qwen3VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLForConditionalGeneration) (Qwen3VLConfig model) - [Qwen3VLMoeConfig](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeConfig) configuration class: [Qwen3VLMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeForConditionalGeneration) (Qwen3VLMoeConfig model) - [Qwen3_5Config](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Config) configuration class: [Qwen3_5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForConditionalGeneration) (Qwen3_5Config model) - [Qwen3_5MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeConfig) configuration class: [Qwen3_5MoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeForConditionalGeneration) (Qwen3_5MoeConfig model) - [Qwen4ExpConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpConfig) configuration class: [Qwen4ExpForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpForConditionalGeneration) (Qwen4ExpConfig model) - [ShieldGemma2Config](/docs/transformers/main/ru/model_doc/shieldgemma2#transformers.ShieldGemma2Config) configuration class: [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (ShieldGemma2Config model) - [SmolVLMConfig](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMConfig) configuration class: [SmolVLMForConditionalGeneration](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMForConditionalGeneration) (SmolVLMConfig model) - [Step3p7Config](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7Config) configuration class: [Step3p7ForConditionalGeneration](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7ForConditionalGeneration) (Step3p7Config model) - [T5Gemma2Config](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Config) configuration class: [T5Gemma2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForConditionalGeneration) (T5Gemma2Config model) - [UdopConfig](/docs/transformers/main/ru/model_doc/udop#transformers.UdopConfig) configuration class: [UdopForConditionalGeneration](/docs/transformers/main/ru/model_doc/udop#transformers.UdopForConditionalGeneration) (UdopConfig model) - [UnlimitedOcrConfig](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrConfig) configuration class: [UnlimitedOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrForConditionalGeneration) (UnlimitedOcrConfig model) - [VibeVoiceAsrConfig](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrConfig) configuration class: [VibeVoiceAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrForConditionalGeneration) (VibeVoiceAsrConfig model) - [VideoLlama3Config](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3Config) configuration class: [VideoLlama3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3ForConditionalGeneration) (VideoLlama3Config model) - [VideoLlavaConfig](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaConfig) configuration class: [VideoLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaForConditionalGeneration) (VideoLlavaConfig model) - [VipLlavaConfig](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaConfig) configuration class: [VipLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaForConditionalGeneration) (VipLlavaConfig model) - [VisionEncoderDecoderConfig](/docs/transformers/main/ru/model_doc/vision-encoder-decoder#transformers.VisionEncoderDecoderConfig) configuration class: [VisionEncoderDecoderModel](/docs/transformers/main/ru/model_doc/vision-encoder-decoder#transformers.VisionEncoderDecoderModel) (VisionEncoderDecoderConfig model) - [VoxtralConfig](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralConfig) configuration class: [VoxtralForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralForConditionalGeneration) (VoxtralConfig model) - [VoxtralRealtimeConfig](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeConfig) configuration class: [VoxtralRealtimeForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeForConditionalGeneration) (VoxtralRealtimeConfig model)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с мультимодальной генеративной головой) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForMultimodalLM

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForMultimodalLM.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForMultimodalLM.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с мультимодальной генерационной головой) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **aria** -- [AriaForConditionalGeneration](/docs/transformers/main/ru/model_doc/aria#transformers.AriaForConditionalGeneration) (модель AriaConfig)
- **aya_vision** -- [AyaVisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionForConditionalGeneration) (модель AyaVisionConfig)
- **blip** -- [BlipForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip#transformers.BlipForConditionalGeneration) (модель BlipConfig)
- **blip-2** -- [Blip2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2ForConditionalGeneration) (модель Blip2Config)
- **chameleon** -- [ChameleonForConditionalGeneration](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonForConditionalGeneration) (модель ChameleonConfig)
- **cohere2_vision** -- [Cohere2VisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionForConditionalGeneration) (модель Cohere2VisionConfig)
- **cohere_compass** -- [CohereCompassForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassForConditionalGeneration) (модель CohereCompassConfig)
- **cosmos3_edge** -- [Cosmos3EdgeForConditionalGeneration](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeForConditionalGeneration) (модель Cosmos3EdgeConfig)
- **cosmos3_omni** -- [Cosmos3OmniForConditionalGeneration](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniForConditionalGeneration) (модель Cosmos3OmniConfig)
- **deepseek_ocr2** -- [DeepseekOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2ForConditionalGeneration) (модель DeepseekOcr2Config)
- **deepseek_vl** -- [DeepseekVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLForConditionalGeneration) (модель DeepseekVLConfig)
- **deepseek_vl_hybrid** -- [DeepseekVLHybridForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridForConditionalGeneration) (модель DeepseekVLHybridConfig)
- **diffusion_gemma** -- [DiffusionGemmaForBlockDiffusion](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaForBlockDiffusion) (модель DiffusionGemmaConfig)
- **emu3** -- [Emu3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3ForConditionalGeneration) (модель Emu3Config)
- **ernie4_5_vl_moe** -- [Ernie4_5_VLMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeForConditionalGeneration) (модель Ernie4_5_VLMoeConfig)
- **evolla** -- [EvollaForProteinText2Text](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaForProteinText2Text) (модель EvollaConfig)
- **exaone4_5** -- [Exaone4_5_ForConditionalGeneration](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_ForConditionalGeneration) (модель Exaone4_5_Config)
- **fast_vlm** -- [FastVlmForConditionalGeneration](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmForConditionalGeneration) (модель FastVlmConfig)
- **florence2** -- [Florence2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2ForConditionalGeneration) (модель Florence2Config)
- **fun_asr_nano** -- [FunAsrNanoForConditionalGeneration](/docs/transformers/main/ru/model_doc/fun_asr_nano#transformers.FunAsrNanoForConditionalGeneration) (модель FunAsrNanoConfig)
- **fuyu** -- [FuyuForCausalLM](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuForCausalLM) (модель FuyuConfig)
- **gemma3** -- [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (модель Gemma3Config)
- **gemma3n** -- [Gemma3nForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nForConditionalGeneration) (модель Gemma3nConfig)
- **gemma4** -- [Gemma4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForConditionalGeneration) (модель Gemma4Config)
- **gemma4_unified** -- [Gemma4UnifiedForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForConditionalGeneration) (модель Gemma4UnifiedConfig)
- **git** -- [GitForCausalLM](/docs/transformers/main/ru/model_doc/git#transformers.GitForCausalLM) (модель GitConfig)
- **glm46v** -- [Glm46VForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VForConditionalGeneration) (модель Glm46VConfig)
- **glm4v** -- [Glm4vForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vForConditionalGeneration) (модель Glm4vConfig)
- **glm4v_moe** -- [Glm4vMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeForConditionalGeneration) (модель Glm4vMoeConfig)
- **glm5_next** -- [Glm5NextForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextForConditionalGeneration) (модель Glm5NextConfig)
- **glm_ocr** -- [GlmOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrForConditionalGeneration) (модель GlmOcrConfig)
- **glmasr** -- [GlmAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glmasr#transformers.GlmAsrForConditionalGeneration) (модель GlmAsrConfig)
- **glmga** -- [Glm46VForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VForConditionalGeneration) (модель GlmgaConfig)
- **got_ocr2** -- [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (модель GotOcr2Config)
- **granite4_vision** -- [Granite4VisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionForConditionalGeneration) (модель Granite4VisionConfig)
- **granite_speech** -- [GraniteSpeechForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech#transformers.GraniteSpeechForConditionalGeneration) (модель GraniteSpeechConfig)
- **granite_speech_plus** -- [GraniteSpeechPlusForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite_speech_plus#transformers.GraniteSpeechPlusForConditionalGeneration) (модель GraniteSpeechPlusConfig)
- **hunyuan_vl** -- [HunYuanVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLForConditionalGeneration) (модель HunYuanVLConfig)
- **hyperclovax_vision_v2** -- [HyperCLOVAXVisionV2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2ForConditionalGeneration) (модель HyperCLOVAXVisionV2Config)
- **idefics** -- [IdeficsForVisionText2Text](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsForVisionText2Text) (модель IdeficsConfig)
- **idefics2** -- [Idefics2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2ForConditionalGeneration) (модель Idefics2Config)
- **idefics3** -- [Idefics3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3ForConditionalGeneration) (модель Idefics3Config)
- **inkling_mm_model** -- [InklingForConditionalGeneration](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingForConditionalGeneration) (модель InklingConfig)
- **instructblip** -- [InstructBlipForConditionalGeneration](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipForConditionalGeneration) (модель InstructBlipConfig)
- **instructblipvideo** -- [InstructBlipVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoForConditionalGeneration) (модель InstructBlipVideoConfig)
- **internvl** -- [InternVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLForConditionalGeneration) (модель InternVLConfig)
- **janus** -- [JanusForConditionalGeneration](/docs/transformers/main/ru/model_doc/janus#transformers.JanusForConditionalGeneration) (модель JanusConfig)
- **kimi_k25** -- [Kimi_K25ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25ForConditionalGeneration) (модель Kimi_K25Config)
- **kosmos-2** -- [Kosmos2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2ForConditionalGeneration) (модель Kosmos2Config)
- **kosmos-2.5** -- [Kosmos2_5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5ForConditionalGeneration) (модель Kosmos2_5Config)
- **kyutai_speech_to_text** -- [KyutaiSpeechToTextForConditionalGeneration](/docs/transformers/main/ru/model_doc/kyutai_speech_to_text#transformers.KyutaiSpeechToTextForConditionalGeneration) (модель KyutaiSpeechToTextConfig)
- **lfm2_vl** -- [Lfm2VlForConditionalGeneration](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlForConditionalGeneration) (модель Lfm2VlConfig)
- **lighton_ocr** -- [LightOnOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrForConditionalGeneration) (модель LightOnOcrConfig)
- **llama4** -- [Llama4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForConditionalGeneration) (модель Llama4Config)
- **llava** -- [LlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaForConditionalGeneration) (модель LlavaConfig)
- **llava_next** -- [LlavaNextForConditionalGeneration](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextForConditionalGeneration) (модель LlavaNextConfig)
- **llava_next_video** -- [LlavaNextVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoForConditionalGeneration) (модель LlavaNextVideoConfig)
- **llava_onevision** -- [LlavaOnevisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionForConditionalGeneration) (модель LlavaOnevisionConfig)
- **minicpm_ocr** -- [MiniCPMOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrForConditionalGeneration) (модель MiniCPMOcrConfig)
- **minicpmv4_6** -- [MiniCPMV4_6ForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6ForConditionalGeneration) (модель MiniCPMV4_6Config)
- **minicpmv4_7** -- [MiniCPMV4_7ForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7ForConditionalGeneration) (модель MiniCPMV4_7Config)
- **minimax_m3_vl** -- [MiniMaxM3SparseForConditionalGeneration](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3SparseForConditionalGeneration) (модель MiniMaxM3VLConfig)
- **mistral3** -- [Mistral3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3ForConditionalGeneration) (модель Mistral3Config)
- **mistral4** -- [Mistral4ForCausalLM](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForCausalLM) (модель Mistral4Config)
- **mistral_large4** -- [MistralLarge4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4ForConditionalGeneration) (модель MistralLarge4Config)
- **mllama** -- [MllamaForConditionalGeneration](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaForConditionalGeneration) (модель MllamaConfig)
- **molmo2** -- [Molmo2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2ForConditionalGeneration) (модель Molmo2Config)
- **moss_transcribe_diarize** -- [MossTranscribeDiarizeForConditionalGeneration](/docs/transformers/main/ru/model_doc/moss_transcribe_diarize#transformers.MossTranscribeDiarizeForConditionalGeneration) (модель MossTranscribeDiarizeConfig)
- **muse_glimmer** -- [MuseGlimmerForConditionalGeneration](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerForConditionalGeneration) (модель MuseGlimmerConfig)
- **muse_spark** -- [MuseSparkForConditionalGeneration](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkForConditionalGeneration) (модель MuseSparkConfig)
- **nemo_speechlm** -- [Nemotron3_5TranscribeForConditionalGeneration](/docs/transformers/main/ru/model_doc/nemotron3_5_transcribe#transformers.Nemotron3_5TranscribeForConditionalGeneration) (модель Nemotron3_5TranscribeConfig)
- **nemotron_h_omni** -- [NemotronH_Omni_Reasoning_V3](/docs/transformers/main/ru/model_doc/nemotron_h_omni#transformers.NemotronH_Omni_Reasoning_V3) (модель NemotronH_Omni_Reasoning_V3_Config)
- **ovis2** -- [Ovis2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2ForConditionalGeneration) (модель Ovis2Config)
- **paddleocr_vl** -- [PaddleOCRVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLForConditionalGeneration) (модель PaddleOCRVLConfig)
- **paligemma** -- [PaliGemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration) (модель PaliGemmaConfig)
- **perception_lm** -- [PerceptionLMForConditionalGeneration](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMForConditionalGeneration) (модель PerceptionLMConfig)
- **phi4_multimodal** -- [Phi4MultimodalForCausalLM](/docs/transformers/main/ru/model_doc/phi4_multimodal#transformers.Phi4MultimodalForCausalLM) (модель Phi4MultimodalConfig)
- **pi0** -- [PI0ForConditionalGeneration](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0ForConditionalGeneration) (модель PI0Config)
- **pix2struct** -- [Pix2StructForConditionalGeneration](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructForConditionalGeneration) (модель Pix2StructConfig)
- **pp_chart2table** -- [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (модель PPChart2TableConfig)
- **pp_formulanet** -- [PPFormulaNetForConditionalGeneration](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetForConditionalGeneration) (модель PPFormulaNetConfig)
- **qianfan_ocr** -- [QianfanOCRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRForConditionalGeneration) (модель QianfanOCRConfig)
- **qwen2_5_omni** -- [Qwen2_5OmniForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniForConditionalGeneration) (модель Qwen2_5OmniConfig)
- **qwen2_5_omni_thinker** -- [Qwen2_5OmniThinkerForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerForConditionalGeneration) (модель Qwen2_5OmniThinkerConfig)
- **qwen2_5_vl** -- [Qwen2_5_VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLForConditionalGeneration) (модель Qwen2_5_VLConfig)
- **qwen2_audio** -- [Qwen2AudioForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_audio#transformers.Qwen2AudioForConditionalGeneration) (модель Qwen2AudioConfig)
- **qwen2_vl** -- [Qwen2VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLForConditionalGeneration) (модель Qwen2VLConfig)
- **qwen3_5** -- [Qwen3_5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForConditionalGeneration) (модель Qwen3_5Config)
- **qwen3_5_moe** -- [Qwen3_5MoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeForConditionalGeneration) (модель Qwen3_5MoeConfig)
- **qwen3_asr** -- [Qwen3ASRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_asr#transformers.Qwen3ASRForConditionalGeneration) (модель Qwen3ASRConfig)
- **qwen3_omni_moe** -- [Qwen3OmniMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeForConditionalGeneration) (модель Qwen3OmniMoeConfig)
- **qwen3_omni_moe_thinker** -- [Qwen3OmniMoeThinkerForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerForConditionalGeneration) (модель Qwen3OmniMoeThinkerConfig)
- **qwen3_vl** -- [Qwen3VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLForConditionalGeneration) (модель Qwen3VLConfig)
- **qwen3_vl_moe** -- [Qwen3VLMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeForConditionalGeneration) (модель Qwen3VLMoeConfig)
- **qwen4_exp** -- [Qwen4ExpForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpForConditionalGeneration) (модель Qwen4ExpConfig)
- **shieldgemma2** -- [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (модель ShieldGemma2Config)
- **smolvlm** -- [SmolVLMForConditionalGeneration](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMForConditionalGeneration) (модель SmolVLMConfig)
- **step3p7** -- [Step3p7ForConditionalGeneration](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7ForConditionalGeneration) (модель Step3p7Config)
- **t5gemma2** -- [T5Gemma2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForConditionalGeneration) (модель T5Gemma2Config)
- **udop** -- [UdopForConditionalGeneration](/docs/transformers/main/ru/model_doc/udop#transformers.UdopForConditionalGeneration) (модель UdopConfig)
- **unlimited_ocr** -- [UnlimitedOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrForConditionalGeneration) (модель UnlimitedOcrConfig)
- **vibevoice_asr** -- [VibeVoiceAsrForConditionalGeneration](/docs/transformers/main/ru/model_doc/vibevoice_asr#transformers.VibeVoiceAsrForConditionalGeneration) (модель VibeVoiceAsrConfig)
- **video_llama_3** -- [VideoLlama3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3ForConditionalGeneration) (модель VideoLlama3Config)
- **video_llava** -- [VideoLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaForConditionalGeneration) (модель VideoLlavaConfig)
- **vipllava** -- [VipLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaForConditionalGeneration) (модель VipLlavaConfig)
- **vision-encoder-decoder** -- [VisionEncoderDecoderModel](/docs/transformers/main/ru/model_doc/vision-encoder-decoder#transformers.VisionEncoderDecoderModel) (модель VisionEncoderDecoderConfig)
- **voxtral** -- [VoxtralForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral#transformers.VoxtralForConditionalGeneration) (модель VoxtralConfig)
- **voxtral_realtime** -- [VoxtralRealtimeForConditionalGeneration](/docs/transformers/main/ru/model_doc/voxtral_realtime#transformers.VoxtralRealtimeForConditionalGeneration) (модель VoxtralRealtimeConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForMultimodalLM

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForMultimodalLM.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForMultimodalLM.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForTableQuestionAnswering[[transformers.AutoModelForTableQuestionAnswering]]

#### transformers.AutoModelForTableQuestionAnswering[[transformers.AutoModelForTableQuestionAnswering]]

```python
transformers.AutoModelForTableQuestionAnswering(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2360)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для ответа на вопросы по таблице).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForTableQuestionAnswering.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [TapasConfig](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasConfig): [TapasForQuestionAnswering](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasForQuestionAnswering) (модель TapasConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для задачи вопросно-ответной) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTableQuestionAnswering

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google/tapas-base-finetuned-wtq")
>>> model = AutoModelForTableQuestionAnswering.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForTableQuestionAnswering.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для табличного вопросно-ответного) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **tapas** -- [TapasForQuestionAnswering](/docs/transformers/main/ru/model_doc/tapas#transformers.TapasForQuestionAnswering) (модель TapasConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTableQuestionAnswering

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForTableQuestionAnswering.from_pretrained("google/tapas-base-finetuned-wtq")

>>> # Update configuration during loading
>>> model = AutoModelForTableQuestionAnswering.from_pretrained("google/tapas-base-finetuned-wtq", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForDocumentQuestionAnswering[[transformers.AutoModelForDocumentQuestionAnswering]]

#### transformers.AutoModelForDocumentQuestionAnswering[[transformers.AutoModelForDocumentQuestionAnswering]]

```python
transformers.AutoModelForDocumentQuestionAnswering(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2382)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для ответа на вопросы по документу).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForDocumentQuestionAnswering.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [LayoutLMConfig](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMConfig): [LayoutLMForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForQuestionAnswering) (модель LayoutLMConfig) - класс конфигурации [LayoutLMv2Config](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2Config): [LayoutLMv2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2ForQuestionAnswering) (модель LayoutLMv2Config) - класс конфигурации [LayoutLMv3Config](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3Config): [LayoutLMv3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3ForQuestionAnswering) (модель LayoutLMv3Config)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для задачи вопросно-ответной работы с документами) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForDocumentQuestionAnswering

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("impira/layoutlm-document-qa", revision="52e01b3")
>>> model = AutoModelForDocumentQuestionAnswering.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForDocumentQuestionAnswering.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для задачи вопросно-ответной работы с документами) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **layoutlm** -- [LayoutLMForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlm#transformers.LayoutLMForQuestionAnswering) (модель LayoutLMConfig)
- **layoutlmv2** -- [LayoutLMv2ForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlmv2#transformers.LayoutLMv2ForQuestionAnswering) (модель LayoutLMv2Config)
- **layoutlmv3** -- [LayoutLMv3ForQuestionAnswering](/docs/transformers/main/ru/model_doc/layoutlmv3#transformers.LayoutLMv3ForQuestionAnswering) (модель LayoutLMv3Config)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForDocumentQuestionAnswering

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForDocumentQuestionAnswering.from_pretrained("impira/layoutlm-document-qa", revision="52e01b3")

>>> # Update configuration during loading
>>> model = AutoModelForDocumentQuestionAnswering.from_pretrained("impira/layoutlm-document-qa", revision="52e01b3", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForVisualQuestionAnswering[[transformers.AutoModelForVisualQuestionAnswering]]

#### transformers.AutoModelForVisualQuestionAnswering[[transformers.AutoModelForVisualQuestionAnswering]]

```python
transformers.AutoModelForVisualQuestionAnswering(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2371)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для визуального вопросно-ответного моделирования).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForVisualQuestionAnswering.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [Blip2Config](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Config): [Blip2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2ForConditionalGeneration) (модель Blip2Config) - класс конфигурации [BlipConfig](/docs/transformers/main/ru/model_doc/blip#transformers.BlipConfig): [BlipForQuestionAnswering](/docs/transformers/main/ru/model_doc/blip#transformers.BlipForQuestionAnswering) (модель BlipConfig) - класс конфигурации [ViltConfig](/docs/transformers/main/ru/model_doc/vilt#transformers.ViltConfig): [ViltForQuestionAnswering](/docs/transformers/main/ru/model_doc/vilt#transformers.ViltForQuestionAnswering) (модель ViltConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для визуального вопросно-ответного моделирования) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForVisualQuestionAnswering

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("dandelin/vilt-b32-finetuned-vqa")
>>> model = AutoModelForVisualQuestionAnswering.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForVisualQuestionAnswering.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для визуального вопросно-ответного моделирования) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **blip** -- [BlipForQuestionAnswering](/docs/transformers/main/ru/model_doc/blip#transformers.BlipForQuestionAnswering) (модель BlipConfig)
- **blip-2** -- [Blip2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2ForConditionalGeneration) (модель Blip2Config)
- **vilt** -- [ViltForQuestionAnswering](/docs/transformers/main/ru/model_doc/vilt#transformers.ViltForQuestionAnswering) (модель ViltConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForVisualQuestionAnswering

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForVisualQuestionAnswering.from_pretrained("dandelin/vilt-b32-finetuned-vqa")

>>> # Update configuration during loading
>>> model = AutoModelForVisualQuestionAnswering.from_pretrained("dandelin/vilt-b32-finetuned-vqa", output_attentions=True)
>>> model.config.output_attentions
True
```

### AutoModelForImageTextToText[[transformers.AutoModelForImageTextToText]]

#### transformers.AutoModelForImageTextToText[[transformers.AutoModelForImageTextToText]]

```python
transformers.AutoModelForImageTextToText(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2519)

This is a generic model class that will be instantiated as one of the model classes of the library (with a image-text-to-text modeling head) when created with the [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) class method or the [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) class method.

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForImageTextToText.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : The model class to instantiate is selected based on the configuration class:  - [AriaConfig](/docs/transformers/main/ru/model_doc/aria#transformers.AriaConfig) configuration class: [AriaForConditionalGeneration](/docs/transformers/main/ru/model_doc/aria#transformers.AriaForConditionalGeneration) (AriaConfig model) - [AyaVisionConfig](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionConfig) configuration class: [AyaVisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionForConditionalGeneration) (AyaVisionConfig model) - [Blip2Config](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2Config) configuration class: [Blip2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2ForConditionalGeneration) (Blip2Config model) - [BlipConfig](/docs/transformers/main/ru/model_doc/blip#transformers.BlipConfig) configuration class: [BlipForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip#transformers.BlipForConditionalGeneration) (BlipConfig model) - [ChameleonConfig](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonConfig) configuration class: [ChameleonForConditionalGeneration](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonForConditionalGeneration) (ChameleonConfig model) - [Cohere2VisionConfig](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionConfig) configuration class: [Cohere2VisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionForConditionalGeneration) (Cohere2VisionConfig model) - [CohereCompassConfig](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassConfig) configuration class: [CohereCompassForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassForConditionalGeneration) (CohereCompassConfig model) - [Cosmos3EdgeConfig](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeConfig) configuration class: [Cosmos3EdgeForConditionalGeneration](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeForConditionalGeneration) (Cosmos3EdgeConfig model) - [Cosmos3OmniConfig](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniConfig) configuration class: [Cosmos3OmniForConditionalGeneration](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniForConditionalGeneration) (Cosmos3OmniConfig model) - [DeepseekOcr2Config](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2Config) configuration class: [DeepseekOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2ForConditionalGeneration) (DeepseekOcr2Config model) - [DeepseekVLConfig](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLConfig) configuration class: [DeepseekVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLForConditionalGeneration) (DeepseekVLConfig model) - [DeepseekVLHybridConfig](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridConfig) configuration class: [DeepseekVLHybridForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridForConditionalGeneration) (DeepseekVLHybridConfig model) - [DiffusionGemmaConfig](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaConfig) configuration class: [DiffusionGemmaForBlockDiffusion](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaForBlockDiffusion) (DiffusionGemmaConfig model) - [Emu3Config](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3Config) configuration class: [Emu3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3ForConditionalGeneration) (Emu3Config model) - [Ernie4_5_VLMoeConfig](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeConfig) configuration class: [Ernie4_5_VLMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeForConditionalGeneration) (Ernie4_5_VLMoeConfig model) - [EvollaConfig](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaConfig) configuration class: [EvollaForProteinText2Text](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaForProteinText2Text) (EvollaConfig model) - [Exaone4_5_Config](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_Config) configuration class: [Exaone4_5_ForConditionalGeneration](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_ForConditionalGeneration) (Exaone4_5_Config model) - [FastVlmConfig](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmConfig) configuration class: [FastVlmForConditionalGeneration](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmForConditionalGeneration) (FastVlmConfig model) - [Florence2Config](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2Config) configuration class: [Florence2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2ForConditionalGeneration) (Florence2Config model) - [FuyuConfig](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuConfig) configuration class: [FuyuForCausalLM](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuForCausalLM) (FuyuConfig model) - [Gemma3Config](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3Config) configuration class: [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (Gemma3Config model) - [Gemma3nConfig](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nConfig) configuration class: [Gemma3nForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nForConditionalGeneration) (Gemma3nConfig model) - [Gemma4Config](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4Config) configuration class: [Gemma4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForConditionalGeneration) (Gemma4Config model) - [Gemma4UnifiedConfig](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedConfig) configuration class: [Gemma4UnifiedForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForConditionalGeneration) (Gemma4UnifiedConfig model) - [GitConfig](/docs/transformers/main/ru/model_doc/git#transformers.GitConfig) configuration class: [GitForCausalLM](/docs/transformers/main/ru/model_doc/git#transformers.GitForCausalLM) (GitConfig model) - [Glm46VConfig](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VConfig) configuration class: [Glm46VForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VForConditionalGeneration) (Glm46VConfig model) - [Glm4vConfig](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vConfig) configuration class: [Glm4vForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vForConditionalGeneration) (Glm4vConfig model) - [Glm4vMoeConfig](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeConfig) configuration class: [Glm4vMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeForConditionalGeneration) (Glm4vMoeConfig model) - [Glm5NextConfig](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextConfig) configuration class: [Glm5NextForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextForConditionalGeneration) (Glm5NextConfig model) - [GlmOcrConfig](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrConfig) configuration class: [GlmOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrForConditionalGeneration) (GlmOcrConfig model) - [GlmgaConfig](/docs/transformers/main/ru/model_doc/glmga#transformers.GlmgaConfig) configuration class: [Glm46VForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VForConditionalGeneration) (GlmgaConfig model) - [GotOcr2Config](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2Config) configuration class: [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (GotOcr2Config model) - [Granite4VisionConfig](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionConfig) configuration class: [Granite4VisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionForConditionalGeneration) (Granite4VisionConfig model) - [HunYuanVLConfig](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLConfig) configuration class: [HunYuanVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLForConditionalGeneration) (HunYuanVLConfig model) - [HyperCLOVAXVisionV2Config](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2Config) configuration class: [HyperCLOVAXVisionV2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2ForConditionalGeneration) (HyperCLOVAXVisionV2Config model) - [Idefics2Config](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2Config) configuration class: [Idefics2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2ForConditionalGeneration) (Idefics2Config model) - [Idefics3Config](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3Config) configuration class: [Idefics3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3ForConditionalGeneration) (Idefics3Config model) - [IdeficsConfig](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsConfig) configuration class: [IdeficsForVisionText2Text](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsForVisionText2Text) (IdeficsConfig model) - [InklingConfig](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingConfig) configuration class: [InklingForConditionalGeneration](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingForConditionalGeneration) (InklingConfig model) - [InstructBlipConfig](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipConfig) configuration class: [InstructBlipForConditionalGeneration](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipForConditionalGeneration) (InstructBlipConfig model) - [InstructBlipVideoConfig](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoConfig) configuration class: [InstructBlipVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoForConditionalGeneration) (InstructBlipVideoConfig model) - [InternVLConfig](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLConfig) configuration class: [InternVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLForConditionalGeneration) (InternVLConfig model) - [JanusConfig](/docs/transformers/main/ru/model_doc/janus#transformers.JanusConfig) configuration class: [JanusForConditionalGeneration](/docs/transformers/main/ru/model_doc/janus#transformers.JanusForConditionalGeneration) (JanusConfig model) - [Kimi_K25Config](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25Config) configuration class: [Kimi_K25ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25ForConditionalGeneration) (Kimi_K25Config model) - [Kosmos2Config](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2Config) configuration class: [Kosmos2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2ForConditionalGeneration) (Kosmos2Config model) - [Kosmos2_5Config](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5Config) configuration class: [Kosmos2_5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5ForConditionalGeneration) (Kosmos2_5Config model) - [Lfm2VlConfig](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlConfig) configuration class: [Lfm2VlForConditionalGeneration](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlForConditionalGeneration) (Lfm2VlConfig model) - [LightOnOcrConfig](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrConfig) configuration class: [LightOnOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrForConditionalGeneration) (LightOnOcrConfig model) - [Llama4Config](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4Config) configuration class: [Llama4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForConditionalGeneration) (Llama4Config model) - [LlavaConfig](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaConfig) configuration class: [LlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaForConditionalGeneration) (LlavaConfig model) - [LlavaNextConfig](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextConfig) configuration class: [LlavaNextForConditionalGeneration](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextForConditionalGeneration) (LlavaNextConfig model) - [LlavaNextVideoConfig](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoConfig) configuration class: [LlavaNextVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoForConditionalGeneration) (LlavaNextVideoConfig model) - [LlavaOnevisionConfig](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionConfig) configuration class: [LlavaOnevisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionForConditionalGeneration) (LlavaOnevisionConfig model) - [MiniCPMOcrConfig](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrConfig) configuration class: [MiniCPMOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrForConditionalGeneration) (MiniCPMOcrConfig model) - [MiniCPMV4_6Config](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6Config) configuration class: [MiniCPMV4_6ForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6ForConditionalGeneration) (MiniCPMV4_6Config model) - [MiniCPMV4_7Config](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7Config) configuration class: [MiniCPMV4_7ForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7ForConditionalGeneration) (MiniCPMV4_7Config model) - [MiniMaxM3VLConfig](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3VLConfig) configuration class: [MiniMaxM3SparseForConditionalGeneration](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3SparseForConditionalGeneration) (MiniMaxM3VLConfig model) - [Mistral3Config](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3Config) configuration class: [Mistral3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3ForConditionalGeneration) (Mistral3Config model) - [Mistral4Config](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4Config) configuration class: [Mistral4ForCausalLM](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForCausalLM) (Mistral4Config model) - [MistralLarge4Config](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4Config) configuration class: [MistralLarge4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4ForConditionalGeneration) (MistralLarge4Config model) - [MllamaConfig](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaConfig) configuration class: [MllamaForConditionalGeneration](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaForConditionalGeneration) (MllamaConfig model) - [Molmo2Config](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2Config) configuration class: [Molmo2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2ForConditionalGeneration) (Molmo2Config model) - [MuseGlimmerConfig](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerConfig) configuration class: [MuseGlimmerForConditionalGeneration](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerForConditionalGeneration) (MuseGlimmerConfig model) - [MuseSparkConfig](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkConfig) configuration class: [MuseSparkForConditionalGeneration](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkForConditionalGeneration) (MuseSparkConfig model) - [NemotronH_Omni_Reasoning_V3_Config](/docs/transformers/main/ru/model_doc/nemotron_h_omni#transformers.NemotronH_Omni_Reasoning_V3_Config) configuration class: [NemotronH_Omni_Reasoning_V3](/docs/transformers/main/ru/model_doc/nemotron_h_omni#transformers.NemotronH_Omni_Reasoning_V3) (NemotronH_Omni_Reasoning_V3_Config model) - [Ovis2Config](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2Config) configuration class: [Ovis2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2ForConditionalGeneration) (Ovis2Config model) - [PI0Config](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0Config) configuration class: [PI0ForConditionalGeneration](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0ForConditionalGeneration) (PI0Config model) - [PPChart2TableConfig](/docs/transformers/main/ru/model_doc/pp_chart2table#transformers.PPChart2TableConfig) configuration class: [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (PPChart2TableConfig model) - [PPFormulaNetConfig](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetConfig) configuration class: [PPFormulaNetForConditionalGeneration](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetForConditionalGeneration) (PPFormulaNetConfig model) - [PaddleOCRVLConfig](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLConfig) configuration class: [PaddleOCRVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLForConditionalGeneration) (PaddleOCRVLConfig model) - [PaliGemmaConfig](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaConfig) configuration class: [PaliGemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration) (PaliGemmaConfig model) - [PerceptionLMConfig](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMConfig) configuration class: [PerceptionLMForConditionalGeneration](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMForConditionalGeneration) (PerceptionLMConfig model) - [Pix2StructConfig](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructConfig) configuration class: [Pix2StructForConditionalGeneration](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructForConditionalGeneration) (Pix2StructConfig model) - [QianfanOCRConfig](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRConfig) configuration class: [QianfanOCRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRForConditionalGeneration) (QianfanOCRConfig model) - [Qwen2VLConfig](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLConfig) configuration class: [Qwen2VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLForConditionalGeneration) (Qwen2VLConfig model) - [Qwen2_5OmniThinkerConfig](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerConfig) configuration class: [Qwen2_5OmniThinkerForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerForConditionalGeneration) (Qwen2_5OmniThinkerConfig model) - [Qwen2_5_VLConfig](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLConfig) configuration class: [Qwen2_5_VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLForConditionalGeneration) (Qwen2_5_VLConfig model) - [Qwen3OmniMoeThinkerConfig](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerConfig) configuration class: [Qwen3OmniMoeThinkerForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerForConditionalGeneration) (Qwen3OmniMoeThinkerConfig model) - [Qwen3VLConfig](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLConfig) configuration class: [Qwen3VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLForConditionalGeneration) (Qwen3VLConfig model) - [Qwen3VLMoeConfig](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeConfig) configuration class: [Qwen3VLMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeForConditionalGeneration) (Qwen3VLMoeConfig model) - [Qwen3_5Config](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5Config) configuration class: [Qwen3_5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForConditionalGeneration) (Qwen3_5Config model) - [Qwen3_5MoeConfig](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeConfig) configuration class: [Qwen3_5MoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeForConditionalGeneration) (Qwen3_5MoeConfig model) - [Qwen4ExpConfig](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpConfig) configuration class: [Qwen4ExpForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpForConditionalGeneration) (Qwen4ExpConfig model) - [ShieldGemma2Config](/docs/transformers/main/ru/model_doc/shieldgemma2#transformers.ShieldGemma2Config) configuration class: [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (ShieldGemma2Config model) - [SmolVLMConfig](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMConfig) configuration class: [SmolVLMForConditionalGeneration](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMForConditionalGeneration) (SmolVLMConfig model) - [Step3p7Config](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7Config) configuration class: [Step3p7ForConditionalGeneration](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7ForConditionalGeneration) (Step3p7Config model) - [T5Gemma2Config](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2Config) configuration class: [T5Gemma2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForConditionalGeneration) (T5Gemma2Config model) - [UdopConfig](/docs/transformers/main/ru/model_doc/udop#transformers.UdopConfig) configuration class: [UdopForConditionalGeneration](/docs/transformers/main/ru/model_doc/udop#transformers.UdopForConditionalGeneration) (UdopConfig model) - [UnlimitedOcrConfig](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrConfig) configuration class: [UnlimitedOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrForConditionalGeneration) (UnlimitedOcrConfig model) - [VideoLlama3Config](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3Config) configuration class: [VideoLlama3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3ForConditionalGeneration) (VideoLlama3Config model) - [VideoLlavaConfig](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaConfig) configuration class: [VideoLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaForConditionalGeneration) (VideoLlavaConfig model) - [VipLlavaConfig](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaConfig) configuration class: [VipLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaForConditionalGeneration) (VipLlavaConfig model) - [VisionEncoderDecoderConfig](/docs/transformers/main/ru/model_doc/vision-encoder-decoder#transformers.VisionEncoderDecoderConfig) configuration class: [VisionEncoderDecoderModel](/docs/transformers/main/ru/model_doc/vision-encoder-decoder#transformers.VisionEncoderDecoderModel) (VisionEncoderDecoderConfig model)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт экземпляр одного из классов моделей библиотеки (с заголовком моделирования «изображение-текст в текст») на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForImageTextToText

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForImageTextToText.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForImageTextToText.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с заголовком моделирования «изображение-текст в текст») на основе предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **aria** -- [AriaForConditionalGeneration](/docs/transformers/main/ru/model_doc/aria#transformers.AriaForConditionalGeneration) (модель AriaConfig)
- **aya_vision** -- [AyaVisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/aya_vision#transformers.AyaVisionForConditionalGeneration) (модель AyaVisionConfig)
- **blip** -- [BlipForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip#transformers.BlipForConditionalGeneration) (модель BlipConfig)
- **blip-2** -- [Blip2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/blip-2#transformers.Blip2ForConditionalGeneration) (модель Blip2Config)
- **chameleon** -- [ChameleonForConditionalGeneration](/docs/transformers/main/ru/model_doc/chameleon#transformers.ChameleonForConditionalGeneration) (модель ChameleonConfig)
- **cohere2_vision** -- [Cohere2VisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere2_vision#transformers.Cohere2VisionForConditionalGeneration) (модель Cohere2VisionConfig)
- **cohere_compass** -- [CohereCompassForConditionalGeneration](/docs/transformers/main/ru/model_doc/cohere_compass#transformers.CohereCompassForConditionalGeneration) (модель CohereCompassConfig)
- **cosmos3_edge** -- [Cosmos3EdgeForConditionalGeneration](/docs/transformers/main/ru/model_doc/cosmos3_edge#transformers.Cosmos3EdgeForConditionalGeneration) (модель Cosmos3EdgeConfig)
- **cosmos3_omni** -- [Cosmos3OmniForConditionalGeneration](/docs/transformers/main/ru/model_doc/cosmos3_omni#transformers.Cosmos3OmniForConditionalGeneration) (модель Cosmos3OmniConfig)
- **deepseek_ocr2** -- [DeepseekOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_ocr2#transformers.DeepseekOcr2ForConditionalGeneration) (модель DeepseekOcr2Config)
- **deepseek_vl** -- [DeepseekVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_vl#transformers.DeepseekVLForConditionalGeneration) (модель DeepseekVLConfig)
- **deepseek_vl_hybrid** -- [DeepseekVLHybridForConditionalGeneration](/docs/transformers/main/ru/model_doc/deepseek_vl_hybrid#transformers.DeepseekVLHybridForConditionalGeneration) (модель DeepseekVLHybridConfig)
- **diffusion_gemma** -- [DiffusionGemmaForBlockDiffusion](/docs/transformers/main/ru/model_doc/diffusion_gemma#transformers.DiffusionGemmaForBlockDiffusion) (модель DiffusionGemmaConfig)
- **emu3** -- [Emu3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/emu3#transformers.Emu3ForConditionalGeneration) (модель Emu3Config)
- **ernie4_5_vl_moe** -- [Ernie4_5_VLMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/ernie4_5_vl_moe#transformers.Ernie4_5_VLMoeForConditionalGeneration) (модель Ernie4_5_VLMoeConfig)
- **evolla** -- [EvollaForProteinText2Text](/docs/transformers/main/ru/model_doc/evolla#transformers.EvollaForProteinText2Text) (модель EvollaConfig)
- **exaone4_5** -- [Exaone4_5_ForConditionalGeneration](/docs/transformers/main/ru/model_doc/exaone4_5#transformers.Exaone4_5_ForConditionalGeneration) (модель Exaone4_5_Config)
- **fast_vlm** -- [FastVlmForConditionalGeneration](/docs/transformers/main/ru/model_doc/fast_vlm#transformers.FastVlmForConditionalGeneration) (модель FastVlmConfig)
- **florence2** -- [Florence2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/florence2#transformers.Florence2ForConditionalGeneration) (модель Florence2Config)
- **fuyu** -- [FuyuForCausalLM](/docs/transformers/main/ru/model_doc/fuyu#transformers.FuyuForCausalLM) (модель FuyuConfig)
- **gemma3** -- [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (модель Gemma3Config)
- **gemma3n** -- [Gemma3nForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3n#transformers.Gemma3nForConditionalGeneration) (модель Gemma3nConfig)
- **gemma4** -- [Gemma4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4#transformers.Gemma4ForConditionalGeneration) (модель Gemma4Config)
- **gemma4_unified** -- [Gemma4UnifiedForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma4_unified#transformers.Gemma4UnifiedForConditionalGeneration) (модель Gemma4UnifiedConfig)
- **git** -- [GitForCausalLM](/docs/transformers/main/ru/model_doc/git#transformers.GitForCausalLM) (модель GitConfig)
- **glm46v** -- [Glm46VForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VForConditionalGeneration) (модель Glm46VConfig)
- **glm4v** -- [Glm4vForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm4v#transformers.Glm4vForConditionalGeneration) (модель Glm4vConfig)
- **glm4v_moe** -- [Glm4vMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm4v_moe#transformers.Glm4vMoeForConditionalGeneration) (модель Glm4vMoeConfig)
- **glm5_next** -- [Glm5NextForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm5_next#transformers.Glm5NextForConditionalGeneration) (модель Glm5NextConfig)
- **glm_ocr** -- [GlmOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm_ocr#transformers.GlmOcrForConditionalGeneration) (модель GlmOcrConfig)
- **glmga** -- [Glm46VForConditionalGeneration](/docs/transformers/main/ru/model_doc/glm46v#transformers.Glm46VForConditionalGeneration) (модель GlmgaConfig)
- **got_ocr2** -- [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (модель GotOcr2Config)
- **granite4_vision** -- [Granite4VisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/granite4_vision#transformers.Granite4VisionForConditionalGeneration) (модель Granite4VisionConfig)
- **hunyuan_vl** -- [HunYuanVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/hunyuan_vl#transformers.HunYuanVLForConditionalGeneration) (модель HunYuanVLConfig)
- **hyperclovax_vision_v2** -- [HyperCLOVAXVisionV2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/hyperclovax_vision_v2#transformers.HyperCLOVAXVisionV2ForConditionalGeneration) (модель HyperCLOVAXVisionV2Config)
- **idefics** -- [IdeficsForVisionText2Text](/docs/transformers/main/ru/model_doc/idefics#transformers.IdeficsForVisionText2Text) (модель IdeficsConfig)
- **idefics2** -- [Idefics2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics2#transformers.Idefics2ForConditionalGeneration) (модель Idefics2Config)
- **idefics3** -- [Idefics3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/idefics3#transformers.Idefics3ForConditionalGeneration) (модель Idefics3Config)
- **inkling_mm_model** -- [InklingForConditionalGeneration](/docs/transformers/main/ru/model_doc/inkling#transformers.InklingForConditionalGeneration) (модель InklingConfig)
- **instructblip** -- [InstructBlipForConditionalGeneration](/docs/transformers/main/ru/model_doc/instructblip#transformers.InstructBlipForConditionalGeneration) (модель InstructBlipConfig)
- **instructblipvideo** -- [InstructBlipVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/instructblipvideo#transformers.InstructBlipVideoForConditionalGeneration) (модель InstructBlipVideoConfig)
- **internvl** -- [InternVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/internvl#transformers.InternVLForConditionalGeneration) (модель InternVLConfig)
- **janus** -- [JanusForConditionalGeneration](/docs/transformers/main/ru/model_doc/janus#transformers.JanusForConditionalGeneration) (модель JanusConfig)
- **kimi_k25** -- [Kimi_K25ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kimi_k25#transformers.Kimi_K25ForConditionalGeneration) (модель Kimi_K25Config)
- **kosmos-2** -- [Kosmos2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kosmos-2#transformers.Kosmos2ForConditionalGeneration) (модель Kosmos2Config)
- **kosmos-2.5** -- [Kosmos2_5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/kosmos2_5#transformers.Kosmos2_5ForConditionalGeneration) (модель Kosmos2_5Config)
- **lfm2_vl** -- [Lfm2VlForConditionalGeneration](/docs/transformers/main/ru/model_doc/lfm2_vl#transformers.Lfm2VlForConditionalGeneration) (модель Lfm2VlConfig)
- **lighton_ocr** -- [LightOnOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/lighton_ocr#transformers.LightOnOcrForConditionalGeneration) (модель LightOnOcrConfig)
- **llama4** -- [Llama4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/llama4#transformers.Llama4ForConditionalGeneration) (модель Llama4Config)
- **llava** -- [LlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava#transformers.LlavaForConditionalGeneration) (модель LlavaConfig)
- **llava_next** -- [LlavaNextForConditionalGeneration](/docs/transformers/main/ru/model_doc/granitevision#transformers.LlavaNextForConditionalGeneration) (модель LlavaNextConfig)
- **llava_next_video** -- [LlavaNextVideoForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_next_video#transformers.LlavaNextVideoForConditionalGeneration) (модель LlavaNextVideoConfig)
- **llava_onevision** -- [LlavaOnevisionForConditionalGeneration](/docs/transformers/main/ru/model_doc/llava_onevision#transformers.LlavaOnevisionForConditionalGeneration) (модель LlavaOnevisionConfig)
- **minicpm_ocr** -- [MiniCPMOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpm_ocr#transformers.MiniCPMOcrForConditionalGeneration) (модель MiniCPMOcrConfig)
- **minicpmv4_6** -- [MiniCPMV4_6ForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpmv4_6#transformers.MiniCPMV4_6ForConditionalGeneration) (модель MiniCPMV4_6Config)
- **minicpmv4_7** -- [MiniCPMV4_7ForConditionalGeneration](/docs/transformers/main/ru/model_doc/minicpmv4_7#transformers.MiniCPMV4_7ForConditionalGeneration) (модель MiniCPMV4_7Config)
- **minimax_m3_vl** -- [MiniMaxM3SparseForConditionalGeneration](/docs/transformers/main/ru/model_doc/minimax_m3_vl#transformers.MiniMaxM3SparseForConditionalGeneration) (модель MiniMaxM3VLConfig)
- **mistral3** -- [Mistral3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral3#transformers.Mistral3ForConditionalGeneration) (модель Mistral3Config)
- **mistral4** -- [Mistral4ForCausalLM](/docs/transformers/main/ru/model_doc/mistral4#transformers.Mistral4ForCausalLM) (модель Mistral4Config)
- **mistral_large4** -- [MistralLarge4ForConditionalGeneration](/docs/transformers/main/ru/model_doc/mistral_large4#transformers.MistralLarge4ForConditionalGeneration) (модель MistralLarge4Config)
- **mllama** -- [MllamaForConditionalGeneration](/docs/transformers/main/ru/model_doc/mllama#transformers.MllamaForConditionalGeneration) (модель MllamaConfig)
- **molmo2** -- [Molmo2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/molmo2#transformers.Molmo2ForConditionalGeneration) (модель Molmo2Config)
- **muse_glimmer** -- [MuseGlimmerForConditionalGeneration](/docs/transformers/main/ru/model_doc/muse_glimmer#transformers.MuseGlimmerForConditionalGeneration) (модель MuseGlimmerConfig)
- **muse_spark** -- [MuseSparkForConditionalGeneration](/docs/transformers/main/ru/model_doc/muse_spark#transformers.MuseSparkForConditionalGeneration) (модель MuseSparkConfig)
- **nemotron_h_omni** -- [NemotronH_Omni_Reasoning_V3](/docs/transformers/main/ru/model_doc/nemotron_h_omni#transformers.NemotronH_Omni_Reasoning_V3) (модель NemotronH_Omni_Reasoning_V3_Config)
- **ovis2** -- [Ovis2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/ovis2#transformers.Ovis2ForConditionalGeneration) (модель Ovis2Config)
- **paddleocr_vl** -- [PaddleOCRVLForConditionalGeneration](/docs/transformers/main/ru/model_doc/paddleocr_vl#transformers.PaddleOCRVLForConditionalGeneration) (модель PaddleOCRVLConfig)
- **paligemma** -- [PaliGemmaForConditionalGeneration](/docs/transformers/main/ru/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration) (модель PaliGemmaConfig)
- **perception_lm** -- [PerceptionLMForConditionalGeneration](/docs/transformers/main/ru/model_doc/perception_lm#transformers.PerceptionLMForConditionalGeneration) (модель PerceptionLMConfig)
- **pi0** -- [PI0ForConditionalGeneration](/docs/transformers/main/ru/model_doc/pi0#transformers.PI0ForConditionalGeneration) (модель PI0Config)
- **pix2struct** -- [Pix2StructForConditionalGeneration](/docs/transformers/main/ru/model_doc/pix2struct#transformers.Pix2StructForConditionalGeneration) (модель Pix2StructConfig)
- **pp_chart2table** -- [GotOcr2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/got_ocr2#transformers.GotOcr2ForConditionalGeneration) (модель PPChart2TableConfig)
- **pp_formulanet** -- [PPFormulaNetForConditionalGeneration](/docs/transformers/main/ru/model_doc/pp_formulanet#transformers.PPFormulaNetForConditionalGeneration) (модель PPFormulaNetConfig)
- **qianfan_ocr** -- [QianfanOCRForConditionalGeneration](/docs/transformers/main/ru/model_doc/qianfan_ocr#transformers.QianfanOCRForConditionalGeneration) (модель QianfanOCRConfig)
- **qwen2_5_omni_thinker** -- [Qwen2_5OmniThinkerForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_omni#transformers.Qwen2_5OmniThinkerForConditionalGeneration) (модель Qwen2_5OmniThinkerConfig)
- **qwen2_5_vl** -- [Qwen2_5_VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_5_vl#transformers.Qwen2_5_VLForConditionalGeneration) (модель Qwen2_5_VLConfig)
- **qwen2_vl** -- [Qwen2VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen2_vl#transformers.Qwen2VLForConditionalGeneration) (модель Qwen2VLConfig)
- **qwen3_5** -- [Qwen3_5ForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_5#transformers.Qwen3_5ForConditionalGeneration) (модель Qwen3_5Config)
- **qwen3_5_moe** -- [Qwen3_5MoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_5_moe#transformers.Qwen3_5MoeForConditionalGeneration) (модель Qwen3_5MoeConfig)
- **qwen3_omni_moe_thinker** -- [Qwen3OmniMoeThinkerForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_omni_moe#transformers.Qwen3OmniMoeThinkerForConditionalGeneration) (модель Qwen3OmniMoeThinkerConfig)
- **qwen3_vl** -- [Qwen3VLForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_vl#transformers.Qwen3VLForConditionalGeneration) (модель Qwen3VLConfig)
- **qwen3_vl_moe** -- [Qwen3VLMoeForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen3_vl_moe#transformers.Qwen3VLMoeForConditionalGeneration) (модель Qwen3VLMoeConfig)
- **qwen4_exp** -- [Qwen4ExpForConditionalGeneration](/docs/transformers/main/ru/model_doc/qwen4_exp#transformers.Qwen4ExpForConditionalGeneration) (модель Qwen4ExpConfig)
- **shieldgemma2** -- [Gemma3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/gemma3#transformers.Gemma3ForConditionalGeneration) (модель ShieldGemma2Config)
- **smolvlm** -- [SmolVLMForConditionalGeneration](/docs/transformers/main/ru/model_doc/smolvlm#transformers.SmolVLMForConditionalGeneration) (модель SmolVLMConfig)
- **step3p7** -- [Step3p7ForConditionalGeneration](/docs/transformers/main/ru/model_doc/step3p7#transformers.Step3p7ForConditionalGeneration) (модель Step3p7Config)
- **t5gemma2** -- [T5Gemma2ForConditionalGeneration](/docs/transformers/main/ru/model_doc/t5gemma2#transformers.T5Gemma2ForConditionalGeneration) (модель T5Gemma2Config)
- **udop** -- [UdopForConditionalGeneration](/docs/transformers/main/ru/model_doc/udop#transformers.UdopForConditionalGeneration) (модель UdopConfig)
- **unlimited_ocr** -- [UnlimitedOcrForConditionalGeneration](/docs/transformers/main/ru/model_doc/unlimited_ocr#transformers.UnlimitedOcrForConditionalGeneration) (модель UnlimitedOcrConfig)
- **video_llama_3** -- [VideoLlama3ForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llama_3#transformers.VideoLlama3ForConditionalGeneration) (модель VideoLlama3Config)
- **video_llava** -- [VideoLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/video_llava#transformers.VideoLlavaForConditionalGeneration) (модель VideoLlavaConfig)
- **vipllava** -- [VipLlavaForConditionalGeneration](/docs/transformers/main/ru/model_doc/vipllava#transformers.VipLlavaForConditionalGeneration) (модель VipLlavaConfig)
- **vision-encoder-decoder** -- [VisionEncoderDecoderModel](/docs/transformers/main/ru/model_doc/vision-encoder-decoder#transformers.VisionEncoderDecoderModel) (модель VisionEncoderDecoderConfig)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForImageTextToText

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForImageTextToText.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForImageTextToText.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

## Временные ряды

### AutoModelForTimeSeriesPrediction[[transformers.AutoModelForTimeSeriesPrediction]]

#### transformers.AutoModelForTimeSeriesPrediction[[transformers.AutoModelForTimeSeriesPrediction]]

```python
transformers.AutoModelForTimeSeriesPrediction(*args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/modeling_auto.py#L2448)

Это универсальный класс модели, который при создании с помощью метода класса [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained) или метода класса [from_config()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_config) будет инстанцирован как один из классов моделей библиотеки (с головой для прогнозирования временных рядов).

Этот класс нельзя создать напрямую с помощью `__init__()` (выбрасывает ошибку).

#### from_config[[transformers.AutoModelForTimeSeriesPrediction.from_config]]

```python
from_config(**kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L204)

**Параметры:**

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig)) : Класс модели, который будет создан, выбирается на основе класса конфигурации:  - класс конфигурации [TimesFm2_5Config](/docs/transformers/main/ru/model_doc/timesfm2_5#transformers.TimesFm2_5Config): [TimesFm2_5ModelForPrediction](/docs/transformers/main/ru/model_doc/timesfm2_5#transformers.TimesFm2_5ModelForPrediction) (модель TimesFm2_5Config) - класс конфигурации [TimesFmConfig](/docs/transformers/main/ru/model_doc/timesfm#transformers.TimesFmConfig): [TimesFmModelForPrediction](/docs/transformers/main/ru/model_doc/timesfm#transformers.TimesFmModelForPrediction) (модель TimesFmConfig)

attn_implementation (`str`, *optional*) : Реализация механизма внимания, используемая в модели (если применимо). Может принимать одно из значений: `"eager"` (ручная реализация внимания), `"sdpa"` (использование [`F.scaled_dot_product_attention`](https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html)), `"flash_attention_2"` (использование [Dao-AILab/flash-attention](https://github.com/Dao-AILab/flash-attention)), `"flash_attention_3"` (использование [Dao-AILab/flash-attention/hopper](https://github.com/Dao-AILab/flash-attention/tree/main/hopper)), `"flash_attention_4"` (использование [Dao-AILab/flash-attention/flash_attn/cute](https://github.com/Dao-AILab/flash-attention/tree/main/flash_attn/cute)). По умолчанию, если доступно, для torch>=2.1.1 используется SDPA. В противном случае по умолчанию применяется ручная реализация `"eager"`.

Создаёт один из классов моделей библиотеки (с головой для прогнозирования временных рядов) на основе конфигурации.

Примечание: загрузка модели из файла конфигурации **не** загружает веса модели. Это влияет только на конфигурацию модели. Используйте [from_pretrained()](/docs/transformers/main/ru/model_doc/auto#transformers.AutoModel.from_pretrained), чтобы загрузить веса модели.

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTimeSeriesPrediction

>>> # Download configuration from huggingface.co and cache.
>>> config = AutoConfig.from_pretrained("google-bert/bert-base-cased")
>>> model = AutoModelForTimeSeriesPrediction.from_config(config)
```

#### from_pretrained[[transformers.AutoModelForTimeSeriesPrediction.from_pretrained]]

```python
from_pretrained(*model_args, **kwargs)
```

[Источник](https://github.com/huggingface/transformers/blob/main/src/transformers/models/auto/auto_factory.py#L260)

**Параметры:**

pretrained_model_name_or_path (`str` или `os.PathLike`) : Может быть одним из:  - строка, *model id* предобученной модели, размещённой в репозитории моделей на huggingface.co. - путь к *каталогу*, содержащему веса модели, сохранённые с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained), например, `./my_model_directory/`.

model_args (дополнительные позиционные аргументы, *необязательные*) : будут переданы в метод `__init__()` базовой модели.

config ([PreTrainedConfig](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig), *необязательный*) : Конфигурация для модели, используемая вместо автоматически загружаемой конфигурации. Конфигурация может быть загружена автоматически, если:  - модель является моделью, предоставляемой библиотекой (загружается с помощью строки *model id* предобученной модели). - модель была сохранена с помощью [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и перезагружается путём указания каталога сохранения. - модель загружается путём указания локального каталога в качестве `pretrained_model_name_or_path`, и в каталоге найден файл конфигурации JSON с именем *config.json*.

state_dict (*dict[str, torch.Tensor]*, *optional*) : Словарь состояний, который используется вместо словаря состояний, загруженного из файла сохранённых весов. Этот параметр можно использовать, если вы хотите создать модель на основе предобученной конфигурации, но загрузить собственные веса. В этом случае, однако, стоит проверить, не является ли использование [save_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.save_pretrained) и [from_pretrained()](/docs/transformers/main/ru/main_classes/model#transformers.PreTrainedModel.from_pretrained) более простым вариантом.

cache_dir (`str` или `os.PathLike`, *необязательный*) : Путь к каталогу, в котором должен кэшироваться загруженный конфигурационный файл предобученной модели, если стандартный кэш не используется.

force_download (`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли принудительно (пере)загружать веса модели и файлы конфигурации, игнорируя кэшированные версии, если они существуют.

proxies (`dict[str, str]`, *необязательный*) : Словарь прокси-серверов, используемых по протоколу или конечной точке, например, `{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}`. Прокси-серверы применяются при каждой отправке запроса.

output_loading_info(`bool`, *необязательный*, по умолчанию `False`) : Указывает, следует ли также возвращать словарь, содержащий отсутствующие ключи, неожиданные ключи и сообщения об ошибках.

local_files_only(`bool`, *необязательный*, по умолчанию `False`) : Использовать только локальные файлы (например, не пытаться скачать модель).

revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная версия модели, которую следует использовать. Поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, `revision` может быть любым идентификатором, разрешённым git: именем ветки, именем тега или идентификатором коммита.

trust_remote_code (`bool`, *необязательный*, по умолчанию `False`) : Разрешает ли использование пользовательских моделей, определённых на Hub в собственных файлах моделирования. Этот параметр следует устанавливать в `True` только для репозиториев, которым вы доверяете и код которых вы изучили, поскольку он приводит к выполнению кода, размещённого на Hub, на вашем локальном компьютере.

code_revision (`str`, *необязательный*, по умолчанию `"main"`) : Конкретная ревизия, используемая для кода на Hub, если код находится в другом репозитории, чем остальная часть модели. Это может быть имя ветки, имя тега или идентификатор коммита, поскольку для хранения моделей и других артефактов на huggingface.co используется система на базе git, поэтому `revision` может быть любым идентификатором, разрешённым git.

kwargs (дополнительные именованные аргументы, *необязательные*) : можно использовать для обновления объекта конфигурации (после его загрузки) и инициализации модели (например, `output_attentions=True`). Поведение зависит от того, предоставлена ли `config` или она загружается автоматически:  - Если конфигурация предоставлена через `config`, `**kwargs` передаются непосредственно в метод `__init__` базовой модели (предполагается, что все необходимые обновления конфигурации уже выполнены) - Если конфигурация не предоставлена, `kwargs` сначала передаются в функцию инициализации класса конфигурации ([from_pretrained()](/docs/transformers/main/ru/main_classes/configuration#transformers.PreTrainedConfig.from_pretrained)). Каждый ключ `kwargs`, соответствующий атрибуту конфигурации, используется для переопределения этого атрибута переданным значением из `kwargs`. Оставшиеся ключи, не соответствующие ни одному атрибуту конфигурации, передаются в функцию `__init__` базовой модели.

Создайте экземпляр одного из классов моделей библиотеки (с головой для прогнозирования временных рядов) из предобученной модели.

Класс модели, который будет создан, выбирается на основе свойства `model_type` объекта конфигурации (переданного в качестве аргумента или загруженного из `pretrained_model_name_or_path`, если это возможно), а при его отсутствии — с помощью сопоставления по шаблону для `pretrained_model_name_or_path`:

- **timesfm** -- [TimesFmModelForPrediction](/docs/transformers/main/ru/model_doc/timesfm#transformers.TimesFmModelForPrediction) (модель TimesFmConfig)
- **timesfm2_5** -- [TimesFm2_5ModelForPrediction](/docs/transformers/main/ru/model_doc/timesfm2_5#transformers.TimesFm2_5ModelForPrediction) (модель TimesFm2_5Config)

По умолчанию модель переводится в режим оценки с помощью `model.eval()` (например, модули dropout отключаются). Для обучения модели сначала необходимо вернуть её в режим обучения с помощью `model.train()`

Примеры:

```python
>>> from transformers import AutoConfig, AutoModelForTimeSeriesPrediction

>>> # Download model and configuration from huggingface.co and cache.
>>> model = AutoModelForTimeSeriesPrediction.from_pretrained("google-bert/bert-base-cased")

>>> # Update configuration during loading
>>> model = AutoModelForTimeSeriesPrediction.from_pretrained("google-bert/bert-base-cased", output_attentions=True)
>>> model.config.output_attentions
True
```

