소스 검색

Fix a typo in error message (#227)

By the code context, it can be inferred that do_sample==False when control reaches this point.
Shuchang Zhou 2 년 전
부모
커밋
3189b395f0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/petals/client/remote_generation.py

+ 1 - 1
src/petals/client/remote_generation.py

@@ -129,7 +129,7 @@ class RemoteGenerationMixin:
                 decoding_algorithm = BeamSearchAlgorithm(num_beams, batch_size=batch_size)
             else:
                 if top_k is not None or top_p is not None:
-                    logger.warning("You passed top_k or top_p but did pass do_sample=True. Running greedy sampling")
+                    logger.warning("You passed top_k or top_p but did not pass do_sample=True. Running greedy sampling")
                 decoding_algorithm = GreedyAlgorithm()
 
         if num_beams > 1: