Repository navigation
krisis - v0.2.6
Pre-release
Pre-release
Krisis v0.2.6
This release hardens the experimental Hugging Face Transformers backend and clarifies its supported model scope.
What Changed
-
Added explicit support boundaries for the Hugging Face backend:
TransformersBackendsupports causal text-generation models only.- Models must be loadable with
AutoModelForCausalLM. - Classifier, embedding, masked-language, seq2seq, and multimodal-only models now raise a clear
UnsupportedTransformersModelError.
-
Improved experimental Hugging Face runtime behavior:
- Malformed single-row model outputs no longer crash the full benchmark.
- Krisis now warns, preserves the raw response, marks the row as abstained, and continues the run.
- Added better Gemma/MedGemma-style prompt compatibility by folding system instructions into user messages when needed.
- Added generation
pad_token_idfallback.
-
Added Hugging Face gated-model support:
hf_tokencan be passed directly.HF_TOKENis used automatically when available.
-
Hardened CKD feature engineering:
- eGFR computation now clamps non-physiologic imputed creatinine/age values before applying the CKD-EPI equation.
- Prevents complex-number failures during
suite.load().
-
Updated documentation:
- README and MkDocs now explicitly describe the Hugging Face backend as experimental.
- Documentation now states that only causal text-generation models are supported.
Install
pip install -U "krisis[hf]==0.2.6"