Repository navigation
0.5.0
- Run a model without shrewd.
shrewd.export(dir, out_dir)writes the shipped model into a folder you can copy into any project, checked againstload()before it returns.- tf-idf and embedding models (classifiers and panels) come with a small runtime:
shrewd_model.pyneeds only numpy, andshrewd_model.jsneeds nothing (Node, Deno, Bun or a browser). The calls matchload()'s:predict,predict_probaanddecide.precision="float16"stores an embedding model at about half size. - Encoder and SetFit classifiers export as ONNX with the
tokenizer.jsonthey expect (format="onnx",pip install "shrewd[onnx]"). Encoders also export as a Hugging Face folder (format="hf"). - A routing threshold travels as metadata, and
confident(texts)says which texts clear it. The teacher fallback stays in shrewd. - Not yet: panels built on an encoder, and panels with a zero-shot stack.
- tf-idf and embedding models (classifiers and panels) come with a small runtime:
- Serving notes in the README: load once, pass batches, and a minimal FastAPI endpoint.
Backward compatible: nothing existing changed. export and the [onnx] extra are new.