llama-stack-mirror/llama_stack/providers/inline/inference/meta_reference
Roland Huß e6c9aebe47 refactor: Add ProviderContext for a flexible storage directory
- Introduce ProviderContext class to decouple provider storage paths from absolute paths
- Add storage_dir attribute to StackRunConfig to accept CLI options
- Implement storage directory resolution with prioritized fallbacks:
  1. CLI option (--state-directory)
  2. Environment variable (LLAMA_STACK_STATE_DIR)
  3. Default distribution directory
- Standardize provider signatures to follow context, config, deps pattern
- Update provider implementations to use the new context-based approach
- Add comprehensive tests to verify state directory resolution
2025-05-14 09:51:56 +02:00
..
__init__.py refactor: Add ProviderContext for a flexible storage directory 2025-05-14 09:51:56 +02:00
common.py refactor: move all llama code to models/llama out of meta reference (#1887) 2025-04-07 15:03:58 -07:00
config.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
generators.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
inference.py refactor: Add ProviderContext for a flexible storage directory 2025-05-14 09:51:56 +02:00
model_parallel.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
parallel_utils.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00