Lattice_Spike / baselines /__init__.py
Md Saiful Islam Sajol
Upload Lattice_Spike project with full LFS weights
e2c9d42 verified
Raw History Blame Contribute Delete
2.09 kB
"""Shared interfaces and structs for token-level hallucination baselines."""
from .base import (
TokenScoreDetector,
TrainableTokenScoreDetector,
)
from .adapters import AutoLabelledDatasetAdapter, DatasetAdapter
from .attention_entropy import AttentionEntropyDetector
from .epr import (
EPRDetector,
EntropyRankTokenProbeDetector,
EntropyProductionRateDetector,
WEPRDetector,
WeightedEntropyProductionRateDetector,
)
from .hami import HaMIDetector
from .hidden_state_probe import HiddenStateProbeDetector
from .icr_probe import ICRProbeDetector
from .llm_check import LLMCheckEigenDetector, LLMCheckUncertaintyDetector
from .lookback_lens import LookbackLensDetector
from .multi_view_attention import MultiViewAttentionDetector, MultiViewAttentionTransformerCRFDetector
from .saplma import SAPLMADetector
from .structs import (
AutoLabelledRow,
BaselineDetectorName,
BaselineExample,
HallucinatedSpan,
LabelCounts,
LogisticConfig,
MethodScoreAggregate,
ResponsePredictionRow,
ScoreSummary,
TokenEvalMetadata,
TokenEvalRow,
TokenOffset,
TokenPredictionRow,
TokenScoreResult,
)
__all__ = [
"AutoLabelledDatasetAdapter",
"AutoLabelledRow",
"AttentionEntropyDetector",
"BaselineDetectorName",
"BaselineExample",
"DatasetAdapter",
"EPRDetector",
"EntropyProductionRateDetector",
"EntropyRankTokenProbeDetector",
"HaMIDetector",
"HallucinatedSpan",
"HiddenStateProbeDetector",
"ICRProbeDetector",
"LLMCheckEigenDetector",
"LLMCheckUncertaintyDetector",
"LabelCounts",
"LookbackLensDetector",
"LogisticConfig",
"MethodScoreAggregate",
"MultiViewAttentionDetector",
"MultiViewAttentionTransformerCRFDetector",
"ResponsePredictionRow",
"SAPLMADetector",
"ScoreSummary",
"TokenEvalMetadata",
"TokenEvalRow",
"TokenOffset",
"TokenPredictionRow",
"TokenScoreDetector",
"TokenScoreResult",
"TrainableTokenScoreDetector",
"WEPRDetector",
"WeightedEntropyProductionRateDetector",
]