AI Slop Code RIsk Monitor

FunAudioLLM/CosyVoice

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

17.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for FunAudioLLM/CosyVoice, a Python project with 23,913 GitHub stars. SynthScan examined 26,042 lines of code across 136 source files, recording 292 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 17.8 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

17.8
Adjusted Signal
17.8
Raw Pattern Score
100%
Time Factor
2026-05-25
Last Push
23.9K
Stars
Python
Language
26.0K
Lines of Code
136
Files
292
Pattern Hits
2026-10-12
Scan Date
0.27
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 35.0/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 178 finding(s).

Hallucinated Dependency & Supply Chain Risk 12.1/100 · LOW

Are imports declared and package/API names verified? 61 finding(s).

Agent Over-Engineering Ratio 35.4/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 109 finding(s).

PR Review Velocity Impact 62.2/100 · HIGH

Which changes need focused human review? 292 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 37MEDIUM 15LOW 240

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 292 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

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
MEDIUM⚡runtime/triton_trtllm/client_grpc.py576 print(f"Error: Audio file not found for item {i}: {item['audio_filepath']}")CODE
LOW⚡runtime/triton_trtllm/client_grpc.py577 except Exception as e:CODE
MEDIUM⚡runtime/triton_trtllm/client_grpc.py578 print(f"Error processing item {i} ({item['target_audio_path']}): {e}")CODE
LOW⚡runtime/triton_trtllm/client_grpc.py588 except Exception as e:CODE
LOWruntime/triton_trtllm/client_grpc.py742 except Exception as e:CODE
LOW⚡runtime/triton_trtllm/client_grpc.py903 except Exception as e:CODE
LOW⚡runtime/triton_trtllm/client_grpc.py910 except Exception as e:CODE
MEDIUM⚡runtime/triton_trtllm/client_grpc.py911 print(f"Error closing async stats client: {e}")CODE
LOW⚡runtime/triton_trtllm/client_grpc.py918 except Exception as e:CODE
MEDIUM⚡runtime/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
MEDIUM⚡examples/grpo/cosyvoice2/reward_tts.py229 print(f"Error: File not found - {args.input}")CODE
LOW⚡examples/grpo/cosyvoice2/reward_tts.py232 except Exception as e:CODE
MEDIUM⚡examples/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
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHruntime/triton_trtllm/offline_inference.py52except RuntimeError:CODE
HIGHruntime/triton_trtllm/infer_cosyvoice3.py34except RuntimeError:CODE
HIGHexamples/grpo/cosyvoice2/infer_dataset.py52except RuntimeError:CODE
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