Spaces:
Running on Zero

raylim Claude Sonnet 4.5 commited on
Commit
0ab0da6
·
unverified ·
1 Parent(s): 14c1ba6

Refactor inference modules to eliminate code duplication

Browse files

Simplified run() and run_model() functions to delegate to their
_with_model/_with_preloaded counterparts after loading the model,
removing ~125 lines of duplicated inference logic across both modules.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

2 files changed +8 -89
Files changed (2)
src/mosaic/inference/aeon.py+7-69
src/mosaic/inference/paladin.py+1-20