Browse Source

feat:修改sdp backend为math

zhaohaipeng 1 tháng trước cách đây
mục cha
commit
7bc99b455b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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.EFFICIENT_ATTENTION):
+        with sdpa_kernel(SDPBackend.MATH):
             next_token = decode_one_token(
                 model=model,
                 x=cur_token,