bc-test / src /pipelines /sat_loader.py
lamossta's picture
data
24c3bcf
raw
history blame contribute delete
253 Bytes
"""Shared SAT model loader for pipelines."""
from wtpsplit import SaT
def load_sat(device: str = "cpu") -> SaT:
"""Load and return the SAT-12L sentence segmentation model."""
model = SaT("sat-12l")
model.half().to(device)
return model