honeycomb icon indicating copy to clipboard operation
honeycomb copied to clipboard

Support local model repositories

Open seanmor5 opened this issue 1 year ago • 2 comments

seanmor5 avatar Aug 01 '24 16:08 seanmor5

Would it make sense to to use https://hexdocs.pm/bumblebee/Bumblebee.html#t:repository/0 as model config? Bit more verbose, but provides full flexibility.

v-anyukov avatar Aug 07 '24 05:08 v-anyukov

You can technically already force local models by setting BUMBLEBEE_OFFLINE and BUMBLEBEE_CACHE_DIR in the environment. The way I would add this is to probably add flags specifically to set these options explicitly before loading the model like:

mix honeycomb.serve --model-id={id} --model-cache-dir=/models --offline

which would set offline: true and then the cache directory as well

seanmor5 avatar Aug 07 '24 14:08 seanmor5