Repository Analysis

FunAudioLLM/CosyVoice

Multi-lingual large voice generation model, providing inference, training and deployment full-stack ability.

17.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of FunAudioLLM/CosyVoice, a Python project with 22,155 GitHub stars. SynthScan v2.0 examined 26,042 lines of code across 136 source files, recording 289 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 17.2 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

17.2
Adjusted Score
17.2
Raw Score
100%
Time Factor
2026-05-25
Last Push
22.2K
Stars
Python
Language
26.0K
Lines of Code
136
Files
289
Pattern Hits
2026-07-14
Scan Date
0.25
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 34MEDIUM 15LOW 240

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 289 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Cross-File Repetition22 hits · 110 pts
SeverityFileLineSnippetContext
HIGHruntime/triton_trtllm/token2wav_dit.py0example usage cuda_visible_devices=0 \ python3 token2wav.py --enable-trt || exit 1STRING
HIGHruntime/triton_trtllm/token2wav.py0example usage cuda_visible_devices=0 \ python3 token2wav.py --enable-trt || exit 1STRING
HIGH…ton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py0example usage cuda_visible_devices=0 \ python3 token2wav.py --enable-trt || exit 1STRING
HIGHruntime/triton_trtllm/offline_inference.py0extract speech ids from token strings like <|s_23456|>STRING
HIGHruntime/triton_trtllm/infer_cosyvoice3.py0extract speech ids from token strings like <|s_23456|>STRING
HIGHexamples/grpo/cosyvoice2/infer_dataset.py0extract speech ids from token strings like <|s_23456|>STRING
HIGHruntime/triton_trtllm/model_repo/cosyvoice2/1/model.py0initialize the model. args: args: dictionary containing model configurationSTRING
HIGH…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py0initialize the model. args: args: dictionary containing model configurationSTRING
HIGHruntime/triton_trtllm/model_repo/token2wav/1/model.py0initialize the model. args: args: dictionary containing model configurationSTRING
HIGH…me/triton_trtllm/model_repo/audio_tokenizer/1/model.py0initialize the model. args: args: dictionary containing model configurationSTRING
HIGH…time/triton_trtllm/model_repo/token2wav_dit/1/model.py0initialize the model. args: args: dictionary containing model configurationSTRING
HIGH…/triton_trtllm/model_repo/speaker_embedding/1/model.py0initialize the model. args: args: dictionary containing model configurationSTRING
HIGH…rtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py0initialize the model. args: args: dictionary containing model configurationSTRING
HIGH…llm/model_repo_cosyvoice3/speaker_embedding/1/model.py0initialize the model. args: args: dictionary containing model configurationSTRING
HIGHruntime/triton_trtllm/model_repo/cosyvoice2/1/model.py0execute inference on the batched requests. args: requests: list of inference requests returns: list of inference responsSTRING
HIGH…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py0execute inference on the batched requests. args: requests: list of inference requests returns: list of inference responsSTRING
HIGHruntime/triton_trtllm/model_repo/token2wav/1/model.py0execute inference on the batched requests. args: requests: list of inference requests returns: list of inference responsSTRING
HIGH…time/triton_trtllm/model_repo/token2wav_dit/1/model.py0execute inference on the batched requests. args: requests: list of inference requests returns: list of inference responsSTRING
HIGH…me/triton_trtllm/model_repo/audio_tokenizer/1/model.py0triton python model for audio tokenization. this model takes reference audio input and extracts semantic tokens using s3STRING
HIGH…/triton_trtllm/model_repo/speaker_embedding/1/model.py0triton python model for audio tokenization. this model takes reference audio input and extracts semantic tokens using s3STRING
HIGH…rtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py0triton python model for audio tokenization. this model takes reference audio input and extracts semantic tokens using s3STRING
HIGH…llm/model_repo_cosyvoice3/speaker_embedding/1/model.py0triton python model for audio tokenization. this model takes reference audio input and extracts semantic tokens using s3STRING
Over-Commented Block70 hits · 70 pts
SeverityFileLineSnippetContext
LOWwebui.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Liu Yue)COMMENT
LOWcosyvoice/llm/llm.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWcosyvoice/bin/export_jit.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWcosyvoice/bin/average_model.py1# Copyright (c) 2020 Mobvoi Inc (Di Wu)COMMENT
LOWcosyvoice/bin/train.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWcosyvoice/bin/export_onnx.py1# Copyright (c) 2024 Antgroup Inc (authors: Zhoubofan, hexisyztem@icloud.com)COMMENT
LOWcosyvoice/dataset/processor.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWcosyvoice/dataset/dataset.py1# Copyright (c) 2021 Mobvoi Inc. (authors: Binbin Zhang)COMMENT
LOWcosyvoice/hifigan/generator.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Kai Hu)COMMENT
LOWcosyvoice/hifigan/f0_predictor.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Kai Hu)COMMENT
LOWcosyvoice/transformer/decoder.py1# Copyright (c) 2021 Mobvoi Inc. (authors: Binbin Zhang, Di Wu)COMMENT
LOWcosyvoice/transformer/attention.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
LOWcosyvoice/transformer/attention.py161 Returns:COMMENT
LOWcosyvoice/transformer/attention.py281 # cache(1, head, 0, d_k * 2) (16/-1, -1/-1, 16/0 mode)COMMENT
LOWcosyvoice/transformer/subsampling.py1# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu)COMMENT
LOWcosyvoice/transformer/convolution.py1# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang, Di Wu)COMMENT
LOWcosyvoice/transformer/upsample_encoder.py1# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu)COMMENT
LOWcosyvoice/transformer/embedding.py1# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang, Di Wu)COMMENT
LOWcosyvoice/transformer/encoder_layer.py1# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu)COMMENT
LOWcosyvoice/transformer/encoder.py1# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu)COMMENT
LOWcosyvoice/transformer/activation.py1# Copyright (c) 2020 Johns Hopkins University (Shinji Watanabe)COMMENT
LOWcosyvoice/transformer/positionwise_feed_forward.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
LOWcosyvoice/transformer/decoder_layer.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
LOWcosyvoice/transformer/label_smoothing_loss.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
LOWcosyvoice/vllm/cosyvoice2.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWcosyvoice/utils/class_utils.py1# Copyright [2023-11-28] <sxc19@mails.tsinghua.edu.cn, Xingchen Song>COMMENT
LOWcosyvoice/utils/mask.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
LOWcosyvoice/utils/train_utils.py1# Copyright (c) 2021 Mobvoi Inc. (authors: Binbin Zhang)COMMENT
LOWcosyvoice/utils/common.py1# Copyright (c) 2020 Mobvoi Inc (Binbin Zhang)COMMENT
LOWcosyvoice/utils/file_utils.py1# Copyright (c) 2021 Mobvoi Inc. (authors: Binbin Zhang)COMMENT
LOWcosyvoice/utils/scheduler.py1# Copyright (c) 2020 Mobvoi Inc (Binbin Zhang)COMMENT
LOWcosyvoice/utils/frontend_utils.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWcosyvoice/utils/executor.py1# Copyright (c) 2020 Mobvoi Inc (Binbin Zhang)COMMENT
LOWcosyvoice/cli/frontend.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWcosyvoice/cli/cosyvoice.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWcosyvoice/cli/model.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWcosyvoice/flow/decoder.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWcosyvoice/flow/flow.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWcosyvoice/flow/length_regulator.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWcosyvoice/flow/flow_matching.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWtools/make_parquet_list.py1#!/usr/bin/env python3COMMENT
LOWtools/extract_speech_token.py1#!/usr/bin/env python3COMMENT
LOWtools/extract_embedding.py1#!/usr/bin/env python3COMMENT
LOWruntime/python/grpc/server.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWruntime/python/grpc/client.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWruntime/python/fastapi/server.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWruntime/python/fastapi/client.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu)COMMENT
LOWruntime/triton_trtllm/token2wav_dit.py1# SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.COMMENT
LOWruntime/triton_trtllm/run_stepaudio2_dit_token2wav.sh101if [ $stage -le 3 ] && [ $stop_stage -ge 3 ]; thenCOMMENT
LOWruntime/triton_trtllm/client_http.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWruntime/triton_trtllm/offline_inference.py1# SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.COMMENT
LOWruntime/triton_trtllm/client_grpc.py1# Copyright 2022 Xiaomi Corp. (authors: Fangjun Kuang)COMMENT
LOWruntime/triton_trtllm/token2wav.py1# SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.COMMENT
LOWruntime/triton_trtllm/model_repo/cosyvoice2/1/model.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWruntime/triton_trtllm/model_repo/token2wav/1/model.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…me/triton_trtllm/model_repo/audio_tokenizer/1/model.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…ton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py1# SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.COMMENT
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…/triton_trtllm/model_repo/speaker_embedding/1/model.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
10 more matches not shown…
Unused Imports57 hits · 57 pts
SeverityFileLineSnippetContext
LOWwebui.py19CODE
LOWwebui.py22CODE
LOWcosyvoice/llm/llm.py18CODE
LOWcosyvoice/llm/llm.py20CODE
LOWcosyvoice/bin/export_jit.py15CODE
LOWcosyvoice/bin/train.py15CODE
LOWcosyvoice/bin/export_onnx.py16CODE
LOWcosyvoice/vllm/cosyvoice2.py35CODE
LOWcosyvoice/flow/DiT/modules.py11CODE
LOWcosyvoice/flow/DiT/dit.py11CODE
LOWruntime/triton_trtllm/offline_inference.py34CODE
LOWruntime/triton_trtllm/offline_inference.py39CODE
LOWruntime/triton_trtllm/streaming_inference.py7CODE
LOWruntime/triton_trtllm/token2wav_cosyvoice3.py12CODE
LOWruntime/triton_trtllm/token2wav_cosyvoice3.py14CODE
LOWruntime/triton_trtllm/token2wav_cosyvoice3.py19CODE
LOWruntime/triton_trtllm/token2wav_cosyvoice3.py20CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py28CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py29CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py32CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py32CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py32CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py42CODE
LOWruntime/triton_trtllm/model_repo/token2wav/1/model.py40CODE
LOW…me/triton_trtllm/model_repo/audio_tokenizer/1/model.py33CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py28CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py31CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py31CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py35CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py39CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py40CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py41CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py41CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py42CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py43CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py44CODE
LOW…/triton_trtllm/model_repo/speaker_embedding/1/model.py33CODE
LOW…iton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py7CODE
LOW…rtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py33CODE
LOW…llm/model_repo_cosyvoice3/speaker_embedding/1/model.py33CODE
LOWruntime/triton_trtllm/scripts/test_llm.py19CODE
LOW…time/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py39CODE
LOW…time/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py39CODE
LOW…time/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py75CODE
LOWexamples/grpo/cosyvoice2/prepare_data.py20CODE
LOWexamples/grpo/cosyvoice2/infer_dataset.py30CODE
LOWexamples/grpo/cosyvoice2/infer_dataset.py33CODE
LOWexamples/grpo/cosyvoice2/infer_dataset.py37CODE
LOWexamples/grpo/cosyvoice2/infer_dataset.py43CODE
LOWexamples/grpo/cosyvoice2/pretrained_to_huggingface.py27CODE
LOWexamples/grpo/cosyvoice2/token2wav_asr_server.py20CODE
LOWexamples/grpo/cosyvoice2/token2wav_asr_server.py25CODE
LOWexamples/grpo/cosyvoice2/token2wav_asr_server.py27CODE
LOWexamples/grpo/cosyvoice2/token2wav_asr_server.py33CODE
LOWexamples/grpo/cosyvoice2/reward_tts.py19CODE
LOWexamples/grpo/cosyvoice2/reward_tts.py119CODE
LOW…amples/grpo/cosyvoice2/scripts/offline-decode-files.py87CODE
Excessive Try-Catch Wrapping22 hits · 40 pts
SeverityFileLineSnippetContext
LOWcosyvoice/dataset/processor.py51 except Exception as ex:CODE
MEDIUMruntime/triton_trtllm/client_grpc.py100 print(f"An error occurred in the stream callback: {error}")CODE
MEDIUMruntime/triton_trtllm/client_grpc.py576 print(f"Error: Audio file not found for item {i}: {item['audio_filepath']}")CODE
LOWruntime/triton_trtllm/client_grpc.py577 except Exception as e:CODE
MEDIUMruntime/triton_trtllm/client_grpc.py578 print(f"Error processing item {i} ({item['target_audio_path']}): {e}")CODE
LOWruntime/triton_trtllm/client_grpc.py588 except Exception as e:CODE
LOWruntime/triton_trtllm/client_grpc.py742 except Exception as e:CODE
LOWruntime/triton_trtllm/client_grpc.py903 except Exception as e:CODE
LOWruntime/triton_trtllm/client_grpc.py910 except Exception as e:CODE
MEDIUMruntime/triton_trtllm/client_grpc.py911 print(f"Error closing async stats client: {e}")CODE
LOWruntime/triton_trtllm/client_grpc.py918 except Exception as e:CODE
MEDIUMruntime/triton_trtllm/client_grpc.py919 print(f"An error occurred in main: {e}")CODE
MEDIUMruntime/triton_trtllm/client_grpc.py915def run_main():CODE
LOW…ton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py427 except Exception as e:CODE
LOW…ton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py483 except Exception as e:CODE
LOWruntime/triton_trtllm/scripts/convert_checkpoint.py293 except Exception as e:CODE
LOWexamples/grpo/cosyvoice2/reward_tts.py106 except Exception as e:CODE
LOWexamples/grpo/cosyvoice2/reward_tts.py212 except Exception as e:CODE
MEDIUMexamples/grpo/cosyvoice2/reward_tts.py213 print(f"Error computing score: {e}")CODE
MEDIUMexamples/grpo/cosyvoice2/reward_tts.py229 print(f"Error: File not found - {args.input}")CODE
LOWexamples/grpo/cosyvoice2/reward_tts.py232 except Exception as e:CODE
MEDIUMexamples/grpo/cosyvoice2/reward_tts.py233 print(f"Error: {e}")CODE
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHcosyvoice/utils/mask.py18 def subsequent_mask( size: int, device: torch.device = torch.device("cpu"), ) -> torch.Tensor: """CSTRING
HIGHcosyvoice/utils/mask.py57Create mask for subsequent steps (size, size). This mask is used only in decoder which works in an auto-regressive STRING
HIGHcosyvoice/utils/mask.py95Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: sSTRING
HIGHcosyvoice/utils/mask.py133Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: sSTRING
HIGHcosyvoice/utils/mask.py240Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: lengthSTRING
HIGHcosyvoice/utils/common.py57Perform padding for the list of tensors. Args: xs (List): List of Tensors [(T_1, `*`), (T_2, `*`), ..., (T_STRING
HIGHcosyvoice/flow/decoder.py211Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channelsSTRING
HIGHcosyvoice/flow/decoder.py406Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channelsSTRING
Deep Nesting37 hits · 37 pts
SeverityFileLineSnippetContext
LOWwebui.py50CODE
LOWcosyvoice/llm/llm.py302CODE
LOWcosyvoice/llm/llm.py505CODE
LOWcosyvoice/llm/llm.py552CODE
LOWcosyvoice/bin/average_model.py43CODE
LOWcosyvoice/dataset/processor.py31CODE
LOWcosyvoice/utils/mask.py161CODE
LOWcosyvoice/utils/train_utils.py111CODE
LOWcosyvoice/utils/train_utils.py291CODE
LOWcosyvoice/cli/model.py101CODE
LOWcosyvoice/cli/model.py175CODE
LOWcosyvoice/flow/decoder.py196CODE
LOWruntime/python/grpc/client.py30CODE
LOWruntime/triton_trtllm/token2wav_dit.py175CODE
LOWruntime/triton_trtllm/offline_inference.py325CODE
LOWruntime/triton_trtllm/client_grpc.py112CODE
LOWruntime/triton_trtllm/client_grpc.py159CODE
LOWruntime/triton_trtllm/client_grpc.py412CODE
LOWruntime/triton_trtllm/client_grpc.py501CODE
LOWruntime/triton_trtllm/client_grpc.py687CODE
LOWruntime/triton_trtllm/token2wav_cosyvoice3.py193CODE
LOWruntime/triton_trtllm/token2wav.py127CODE
LOWruntime/triton_trtllm/infer_cosyvoice3.py219CODE
LOWruntime/triton_trtllm/model_repo/cosyvoice2/1/model.py315CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py121CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py295CODE
LOW…ton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py175CODE
LOW…/triton_trtllm/model_repo/speaker_embedding/1/model.py91CODE
LOW…ton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py84CODE
LOW…ton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py305CODE
LOW…llm/model_repo_cosyvoice3/speaker_embedding/1/model.py91CODE
LOWruntime/triton_trtllm/scripts/fill_template.py6CODE
LOWruntime/triton_trtllm/scripts/convert_checkpoint.py152CODE
LOWruntime/triton_trtllm/scripts/convert_checkpoint.py186CODE
LOWruntime/triton_trtllm/scripts/convert_checkpoint.py282CODE
LOWexamples/grpo/cosyvoice2/infer_dataset.py282CODE
LOW…amples/grpo/cosyvoice2/scripts/offline-decode-files.py137CODE
Hyper-Verbose Identifiers34 hits · 34 pts
SeverityFileLineSnippetContext
LOWcosyvoice/transformer/decoder.py178 def forward_layers_checkpointed(self, x: torch.Tensor,CODE
LOWcosyvoice/transformer/encoder.py173 def forward_layers_checkpointed(self, xs: torch.Tensor,CODE
LOWcosyvoice/utils/mask.py89def subsequent_chunk_mask_deprecated(CODE
LOWcosyvoice/utils/train_utils.py53def init_dataset_and_dataloader(args, configs, gan, dpo):CODE
LOWcosyvoice/utils/train_utils.py72def check_modify_and_save_config(args, configs):CODE
LOWcosyvoice/utils/train_utils.py111def init_optimizer_and_scheduler(args, configs, model, gan):CODE
LOWcosyvoice/utils/scheduler.py397def _linear_warmup_with_cosine_annealing(max_lr, warmup_steps, step,CODE
LOWcosyvoice/utils/scheduler.py543 def _get_linear_warmup_with_cosine_annealing_lr(self, step):CODE
LOWcosyvoice/cli/frontend.py89 def _extract_text_token_generator(self, text_generator):CODE
LOWruntime/triton_trtllm/token2wav_dit.py237 def get_trt_kwargs_dynamic_batch(self, opt_batch_size=2, max_batch_size=64, streaming=False):CODE
LOWruntime/triton_trtllm/token2wav_dit.py264 def prompt_audio_tokenization(self, prompt_audios_list: list[torch.Tensor]) -> list[list[int]]:CODE
LOWruntime/triton_trtllm/token2wav_dit.py371 def get_prompt_audio_cache_for_streaming_tts(CODE
LOWruntime/triton_trtllm/offline_inference.py63async def send_batch_requests_async(api_base, model_name, chats, temperature, top_p, top_k):CODE
LOWruntime/triton_trtllm/client_grpc.py359def prepare_request_input_output(STRING
LOWruntime/triton_trtllm/client_grpc.py412def run_sync_streaming_inference(CODE
LOWruntime/triton_trtllm/token2wav_cosyvoice3.py219 def prompt_audio_tokenization(self, prompt_audios_list):CODE
LOWruntime/triton_trtllm/token2wav.py185 def get_trt_kwargs_dynamic_batch(self, opt_bs=2, max_batch_size=64):CODE
LOWruntime/triton_trtllm/token2wav.py193 def prompt_audio_tokenization(self, prompt_audios_list: list[torch.Tensor]) -> list[list[int]]:CODE
LOWruntime/triton_trtllm/infer_cosyvoice3.py45async def send_batch_requests_async(api_base, model_name, chats, temperature, top_p, top_k):CODE
LOWruntime/triton_trtllm/model_repo/cosyvoice2/1/model.py201 def forward_speaker_embedding(self, wav):CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py52def parse_speech_token_string(response_text: str) -> List[int]:CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py108 def _convert_speech_tokens_to_str(self, speech_tokens: Union[torch.Tensor, List]) -> str:CODE
LOW…ime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py207 def forward_speaker_embedding(self, wav):CODE
LOW…ton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py237 def get_trt_kwargs_dynamic_batch(self, opt_batch_size=2, max_batch_size=64, streaming=False):CODE
LOW…ton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py264 def prompt_audio_tokenization(self, prompt_audios_list: list[torch.Tensor]) -> list[list[int]]:CODE
LOW…ton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py371 def get_prompt_audio_cache_for_streaming_tts(CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py56def get_spk_id_from_prompt_audio(tensor: torch.Tensor) -> str:CODE
LOW…ton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py25def parse_speech_token_string(response_text):CODE
LOW…ton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py72 def _convert_speech_tokens_to_str(self, speech_tokens):CODE
LOW…ton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py181 def forward_speaker_embedding(self, wav):CODE
LOW…ton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py305 async def _process_request_streaming(self, request):CODE
LOWruntime/triton_trtllm/scripts/convert_checkpoint.py186def update_quant_config_from_hf(quant_config, hf_config,CODE
LOWexamples/grpo/cosyvoice2/token2wav_asr_server.py116def get_random_prompt_from_dataset(dataset):CODE
LOW…amples/grpo/cosyvoice2/scripts/offline-decode-files.py588def normalize_text_alimeeting(text: str) -> str:CODE
AI Structural Patterns22 hits · 22 pts
SeverityFileLineSnippetContext
LOWcosyvoice/dataset/dataset.py104CODE
LOWcosyvoice/hifigan/generator.py383CODE
LOWcosyvoice/hifigan/generator.py577CODE
LOWcosyvoice/transformer/decoder.py58CODE
LOWcosyvoice/transformer/decoder.py276CODE
LOWcosyvoice/transformer/convolution.py151CODE
LOWcosyvoice/transformer/upsample_encoder.py108CODE
LOWcosyvoice/transformer/encoder.py39CODE
LOWcosyvoice/transformer/encoder.py341CODE
LOWcosyvoice/transformer/encoder.py390CODE
LOWcosyvoice/utils/mask.py158CODE
LOWcosyvoice/cli/model.py175CODE
LOWcosyvoice/cli/model.py328CODE
LOWcosyvoice/flow/decoder.py295CODE
LOWcosyvoice/flow/flow.py26CODE
LOWcosyvoice/flow/flow.py150CODE
LOWcosyvoice/flow/flow.py285CODE
LOWcosyvoice/flow/DiT/modules.py25CODE
LOWcosyvoice/flow/DiT/dit.py105CODE
LOWcosyvoice/flow/DiT/dit.py176CODE
LOWruntime/triton_trtllm/client_http.py143CODE
LOWexamples/grpo/cosyvoice2/prepare_data.py68CODE
Cross-Language Confusion4 hits · 10 pts
SeverityFileLineSnippetContext
HIGHruntime/triton_trtllm/token2wav_dit.py17 python3 token2wav.py --enable-trt || exit 1STRING
HIGHruntime/triton_trtllm/token2wav_cosyvoice3.py3 python3 token2wav_cosyvoice3.py --enable-trt || exit 1STRING
HIGHruntime/triton_trtllm/token2wav.py17 python3 token2wav.py --enable-trt || exit 1STRING
HIGH…ton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py17 python3 token2wav.py --enable-trt || exit 1STRING
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
LOWcosyvoice/transformer/convolution.py125 # It's better we just return None if no cache is required,COMMENT
MEDIUMcosyvoice/utils/executor.py45 # A context manager to be used in conjunction with an instance ofCOMMENT
MEDIUMcosyvoice/utils/executor.py97 # A context manager to be used in conjunction with an instance ofCOMMENT
Self-Referential Comments2 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…time/triton_trtllm/model_repo/token2wav_dit/1/model.py64 # Create a SHA-256 hash of the byte stringCOMMENT
MEDIUMexamples/grpo/cosyvoice2/run.sh9 # This function is from espnetCOMMENT
Modern Structural Boilerplate6 hits · 6 pts
SeverityFileLineSnippetContext
LOWruntime/triton_trtllm/token2wav_cosyvoice3.py23logger = logging.getLogger(__name__)CODE
LOWruntime/triton_trtllm/model_repo/token2wav/1/model.py46logger = logging.getLogger(__name__)CODE
LOW…time/triton_trtllm/model_repo/token2wav_dit/1/model.py49logger = logging.getLogger(__name__)CODE
LOW…iton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py13logger = logging.getLogger(__name__)CODE
LOW…triton_trtllm/model_repo_cosyvoice3/vocoder/1/model.py11logger = logging.getLogger(__name__)CODE
LOW…time/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py45logger = logging.getLogger(__name__)CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexample.py60 # bistream usage, you can use generator as input, this is useful when using text llm model as inputCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMruntime/triton_trtllm/token2wav_cosyvoice3.py120 # Speaker embedding model (campplus)COMMENT