Sampling: Fix smoothing factor default fallback
default_factory, not default_factor Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
d7c18855e7
commit
634d299fd9
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class SamplerParams(BaseModel):
|
|||
)
|
||||
|
||||
smoothing_factor: Optional[float] = Field(
|
||||
default_factor=lambda: get_default_sampler_value("smoothing_factor", 0.0),
|
||||
default_factory=lambda: get_default_sampler_value("smoothing_factor", 0.0),
|
||||
)
|
||||
|
||||
top_k: Optional[int] = Field(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue