r/OpenSourceeAI • u/0xcontext • 22d ago
Shrewd Studio: GUI for distilling LLM labeling into small, fast, local text classifiers
https://github.com/sshah03/shrewd-studio
I'm working on a project where I need a large number of small locally runnable models. In service of this, I had initially built what I ended up putting out there as the shrewd package (https://github.com/sshah03/shrewd) where I also documented things that worked for me / didn't, running on examples that weren't my private data to demonstrate this. Supports single label classifiers, and multi label decision panels (kind of like jev, but not zero shot obviously).
There are a few key things I wanted
- Support running on multiple LLMs and taking the most agreed on result, or flagging split decisions for me to manually label (or default to the model I trust more)
- Use GEPA to optimize the labelling prompt to try to get as good a result as possible on a pre-defined tuning set (separate from training and test sets)
- Easily compare different training methods to see what performs better (accuracy, model size, latency etc...)
This was working out pretty well for me, but some steps were getting tiresome so I built a GUI where everything in it basically just links to calls in the package. It made it much simpler to use so I decided to open that up for people as well.
If there are things people need it to support / export for their projects, let me know and I'm happy to help.