micm_nlp.models

Backbone construction, PEFT dispatch, and the Cross-Prompt Encoder.

  • modelMODEL: from_pretrained through model.pretrained.cls, plus the kwargs derived from the task (num_labels for classification, and so on).

  • peftPEFT: routes to a stock PEFT method or to the Cross-Prompt Encoder path.

  • architectures — model classes HuggingFace does not ship, currently CustomT5ForConditionalGeneration.

  • 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.

Submodules