caikit / caikit-nlp

Apache License 2.0
12 stars 49 forks source link

Read embeddings config during bootstrap/load and instance creation #387

Closed markstur closed 2 months ago

markstur commented 2 months ago

When CONFIG_FILES setting is not used, the caikit-nlp config values are not read from environment variables unless caikit has already imported caikit-nlp. The code was loading the embedding config too soon in this case so the env vars were ignored.

This commit reads the config during bootstrap and load for settings that are needed at bootstrap/load time and also reads config during module init for runtime settings.

In addition: