Skip to content

Commit

Permalink
Fix config_kls bug in SamplerHandlers
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalioglu committed Jan 10, 2025
1 parent 6bfc6d0 commit 16a99e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fairseq2/generation/sampling/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def create(self, config: object) -> Sampler:
@property
@override
def config_kls(self) -> type:
return TopPSamplerHandler
return TopPSamplerConfig


TOP_K_SAMPLER: Final = "top-k"
Expand All @@ -172,4 +172,4 @@ def create(self, config: object) -> Sampler:
@property
@override
def config_kls(self) -> type:
return TopKSamplerHandler
return TopKSamplerConfig

0 comments on commit 16a99e7

Please sign in to comment.