Skip to content

krisis - v0.2.6

Pre-release
Pre-release

Choose a tag to compare

@devsgnr devsgnr released this 27 May 23:32
· 1 commit to main since this release
f3156e9

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:

    • TransformersBackend supports 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_id fallback.
  • Added Hugging Face gated-model support:

    • hf_token can be passed directly.
    • HF_TOKEN is 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"