소스 검색

feat:修改sdp backend

zhaohaipeng 2 달 전
부모
커밋
a62cc45b4a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fish_speech/models/text2semantic/inference.py

+ 1 - 1
fish_speech/models/text2semantic/inference.py

@@ -308,7 +308,7 @@ def decode_n_tokens(
 
     for i in tqdm(range(num_new_tokens)):
         f_start = time.perf_counter()
-        with sdpa_kernel(SDPBackend.MATH):
+        with sdpa_kernel(SDPBackend.CUDNN_ATTENTION):
             next_token = decode_one_token(
                 model=model,
                 x=cur_token,