forked from phoenix-oss/llama-stack-mirror
# 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> |
||
|---|---|---|
| .. | ||
| llama3 | ||
| quantization | ||
| __init__.py | ||
| common.py | ||
| config.py | ||
| inference.py | ||
| model_parallel.py | ||
| parallel_utils.py | ||