Skip to main content
Catalog of available intrinsics. Catalog of intrinsics currently known to Mellea,including metadata about where to find LoRA and aLoRA adapters that implement said intrinsics.

Functions

FUNC known_intrinsic_names

known_intrinsic_names() -> list[str]
Return all known user-visible names for intrinsics. Returns:
  • List of all known user-visible intrinsic names.

FUNC fetch_intrinsic_metadata

fetch_intrinsic_metadata(intrinsic_name: str) -> IntriniscsCatalogEntry
Retrieve information about the adapter that backs an intrinsic. Args:
  • intrinsic_name: User-visible name of the intrinsic.
Returns:
  • Metadata about the adapter(s) that implement the intrinsic.
Raises:
  • ValueError: If intrinsic_name is not a known intrinsic name.

Classes

CLASS AdapterType

Possible types of adapters for a backend. Attributes:
  • LORA: Standard LoRA adapter; value "lora".
  • ALORA: Activated LoRA adapter; value "alora".

CLASS IntriniscsCatalogEntry

A single row in the main intrinsics catalog table. We use Pydantic for this dataclass because the rest of Mellea also uses Pydantic. Attributes:
  • name: User-visible name of the intrinsic.
  • internal_name: Internal name used for adapter loading, or None if the same as name.
  • repo_id: HuggingFace repository where adapters for the intrinsic are located.
  • adapter_types: Adapter types known to be available for this intrinsic; defaults to (AdapterType.LORA, AdapterType.ALORA).