llama-stack-mirror/llama_stack/providers/inline/inference/meta_reference
Sébastien Han 803bf0e029
fix: solve ruff B008 warnings (#1444)
# What does this PR do?

The commit addresses the Ruff warning B008 by refactoring the code to
avoid calling SamplingParams() directly in function argument defaults.
Instead, it either uses Field(default_factory=SamplingParams) for
Pydantic models or sets the default to None and instantiates
SamplingParams inside the function body when the argument is None.

Signed-off-by: Sébastien Han <seb@redhat.com>
2025-03-06 16:48:35 -08:00
..
llama3 refactor: move generation.py to llama3 2025-03-03 13:46:50 -08:00
quantization refactor: move llama3 impl to meta_reference provider (#1364) 2025-03-03 13:22:57 -08:00
__init__.py Add provider deprecation support; change directory structure (#397) 2024-11-07 13:04:53 -08:00
common.py refactor: move generation.py to llama3 2025-03-03 13:46:50 -08:00
config.py build: format codebase imports using ruff linter (#1028) 2025-02-13 10:06:21 -08:00
inference.py fix: solve ruff B008 warnings (#1444) 2025-03-06 16:48:35 -08:00
model_parallel.py refactor: move generation.py to llama3 2025-03-03 13:50:19 -08:00
parallel_utils.py refactor: move generation.py to llama3 2025-03-03 13:46:50 -08:00