Skip to content

Add a zero-shot NLI provider for Hugging Face models #10

Description

@inboxpraveen

Zero-shot NLI classifiers (for example MoritzLaurer/deberta-v3-large-zeroshot-v2.0) are a common, cheap baseline for intent and yes/no questions, and they are missing from both the providers and the decision benchmark.

What to build

An HFZeroShot provider in src/thinkless/providers/ that uses the zero-shot-classification pipeline for Choice and YesNo questions and returns calibrated probabilities, loaded the same way as HFClassifier (including the Windows download path in _hub.py).

Where to look

  • src/thinkless/providers/hf.py: HFClassifier shows loading, device selection and the answer format.
  • docs/guides/providers.md: add a section.

Done when

  • Unit tests with a stubbed pipeline pass without downloading a model.
  • A benchmark run is attached to the pull request (it can go under results/submitted/).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededproviderDecision providers and LLM backends

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions