micm_nlp.models¶
Backbone construction, PEFT dispatch, and the Cross-Prompt Encoder.
model—MODEL:from_pretrainedthroughmodel.pretrained.cls, plus the kwargs derived from the task (num_labelsfor classification, and so on).peft—PEFT: routes to a stock PEFT method or to the Cross-Prompt Encoder path.architectures— model classes HuggingFace does not ship, currentlyCustomT5ForConditionalGeneration.xpe— the Cross-Prompt Encoder, from Cross-Prompt Encoder for Low-Performing Languages (Findings of IJCNLP-AACL 2025).
As with tokenizers, a new backbone is selected by name from transformers through
model.pretrained.cls and needs no code here.