Repository Analysis

2noise/ChatTTS

A generative speech model for daily dialogue.

5.2 Low AI signal View on GitHub
5.2
Adjusted Score
5.2
Raw Score
100%
Time Factor
2026-04-10
Last Push
39,359
Stars
Python
Language
31,102
Lines of Code
90
Files
106
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 7MEDIUM 12LOW 87

Pattern Findings

106 matches across 11 categories. Click a row to expand file-level details.

Unused Imports38 hits · 38 pts
SeverityFileLineSnippet
LOWtools/llm/__init__.py1
LOWtools/logger/__init__.py1
LOWtools/seeder/__init__.py1
LOWtools/audio/__init__.py1
LOWtools/audio/__init__.py2
LOWtools/audio/__init__.py2
LOWtools/audio/__init__.py2
LOWtools/audio/__init__.py3
LOWtools/audio/__init__.py4
LOWtools/normalizer/__init__.py1
LOWtools/normalizer/__init__.py2
LOWChatTTS/__init__.py1
LOWChatTTS/config/__init__.py1
LOWChatTTS/utils/__init__.py1
LOWChatTTS/utils/__init__.py1
LOWChatTTS/utils/__init__.py2
LOWChatTTS/utils/__init__.py3
LOWChatTTS/utils/__init__.py3
LOWChatTTS/utils/__init__.py3
LOWChatTTS/utils/__init__.py3
LOWChatTTS/utils/__init__.py4
LOWChatTTS/utils/gpu.py6
LOWChatTTS/model/__init__.py1
LOWChatTTS/model/__init__.py2
LOWChatTTS/model/__init__.py3
LOWChatTTS/model/__init__.py4
LOWChatTTS/model/__init__.py5
LOWChatTTS/model/__init__.py6
LOWChatTTS/model/cuda/__init__.py1
LOWChatTTS/model/velocity/llm_engine.py23
LOWChatTTS/model/velocity/llm_engine.py25
LOWChatTTS/model/velocity/llm_engine.py31
LOWChatTTS/model/velocity/__init__.py1
LOWChatTTS/model/velocity/__init__.py2
LOWChatTTS/model/velocity/model_loader.py9
LOWexamples/web/webui.py13
LOWexamples/api/openai_api.py20
LOWexamples/api/postScript.py2
Self-Referential Comments12 hits · 36 pts
SeverityFileLineSnippet
MEDIUMtools/audio/pcm.py16 # Create an in-memory byte stream buffer
MEDIUMChatTTS/model/velocity/llm_engine.py104 # Create the parallel GPU workers.
MEDIUMChatTTS/model/velocity/llm_engine.py117 # Create the scheduler.
MEDIUMChatTTS/model/velocity/llm_engine.py312 # Create the engine configs.
MEDIUMChatTTS/model/velocity/llm_engine.py317 # Create the LLM engine.
MEDIUMChatTTS/model/velocity/llm_engine.py354 # Create the sequences.
MEDIUMChatTTS/model/velocity/llm_engine.py359 # Create the sequence group.
MEDIUMChatTTS/model/velocity/llm_engine.py624 # Create the outputs.
MEDIUMChatTTS/model/velocity/model_loader.py53 # Create a model instance.
MEDIUMChatTTS/model/velocity/scheduler.py83 # Create the block space manager.
MEDIUMChatTTS/model/velocity/output.py101 # Create the outputs.
MEDIUMexamples/api/openai_api.py35# Import necessary modules
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippet
HIGHexamples/cmd/run.py41 "Run: conda install -c conda-forge pynini=2.1.5 && pip install nemo_text_processing",
HIGHexamples/cmd/run.py50 "Run: conda install -c conda-forge pynini=2.1.5 && pip install WeTextProcessing",
HIGHexamples/web/funcs.py99 "Run: conda install -c conda-forge pynini=2.1.5 && pip install nemo_text_processing",
HIGHexamples/web/funcs.py108 "Run: conda install -c conda-forge pynini=2.1.5 && pip install WeTextProcessing",
Hyper-Verbose Identifiers20 hits · 19 pts
SeverityFileLineSnippet
LOWChatTTS/norm.py235 def _count_invalid_characters(self, s: str):
LOWChatTTS/utils/dl.py114def download_and_extract_tar_gz(
LOWChatTTS/model/gpt.py164 def _prepare_generation_inputs(
LOWChatTTS/model/gpt.py291 def _prepare_generation_outputs(
LOWChatTTS/model/velocity/worker.py92 def profile_num_available_blocks(
LOWChatTTS/model/velocity/worker.py207def _init_distributed_environment(
LOWChatTTS/model/velocity/worker.py241def _check_if_gpu_supports_dtype(torch_dtype: torch.dtype):
LOWChatTTS/model/velocity/configs.py203 def verify_with_parallel_config(
LOWChatTTS/model/velocity/configs.py322 def verify_with_parallel_config(
LOWChatTTS/model/velocity/llm_engine.py377 def get_num_unfinished_requests(self) -> int:
LOWChatTTS/model/velocity/llm_engine.py385 def _check_beam_search_early_stopping(
LOWChatTTS/model/velocity/llm_engine.py429 def _process_sequence_group_outputs(
LOWChatTTS/model/velocity/scheduler.py127 def get_num_unfinished_seq_groups(self) -> int:
LOWexamples/onnx/exporter.py137 def convert_embedding_code_cache():
LOWexamples/onnx/modeling_llama.py615 def _set_gradient_checkpointing(self, module, value=False):
LOWexamples/onnx/modeling_llama.py720 def _prepare_decoder_attention_mask(
LOWexamples/onnx/modeling_llama.py1041 def prepare_inputs_for_generation(
LOWexamples/web/funcs.py237def set_buttons_before_generate(generate_button, interrupt_button):
LOWexamples/web/funcs.py249def set_buttons_after_generate(generate_button, interrupt_button, audio_output):
LOWexamples/api/main.py52async def validation_exception_handler(request, exc: RequestValidationError):
Deep Nesting16 hits · 16 pts
SeverityFileLineSnippet
LOWChatTTS/core.py66
LOWChatTTS/core.py210
LOWChatTTS/core.py390
LOWChatTTS/utils/dl.py19
LOWChatTTS/utils/io.py41
LOWChatTTS/utils/gpu.py13
LOWChatTTS/model/gpt.py164
LOWChatTTS/model/gpt.py324
LOWChatTTS/model/velocity/sequence.py35
LOWChatTTS/model/velocity/llm_engine.py429
LOWChatTTS/model/velocity/llm.py193
LOWChatTTS/model/velocity/scheduler.py103
LOWChatTTS/model/velocity/scheduler.py130
LOWexamples/cmd/stream.py74
LOWexamples/onnx/modeling_llama.py1121
LOWexamples/web/webui.py17
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippet
HIGHREADME.md0in some versions of torchaudio, the first line works but in other versions, so does the second line.
HIGHREADME.md0in some versions of torchaudio, the first line works but in other versions, so does the second line.
HIGHdocs/kr/README.md0in some versions of torchaudio, the first line works but in other versions, so does the second line.
Redundant / Tautological Comments5 hits · 10 pts
SeverityFileLineSnippet
LOWChatTTS/model/velocity/worker.py242 # Check if the GPU supports the dtype.
LOWChatTTS/model/velocity/llm_engine.py558 # Check if we can stop the beam search.
LOWChatTTS/model/velocity/llm_engine.py782 # Check if the sequence has reached max_model_len.
LOWChatTTS/model/velocity/llm_engine.py787 # Check if the sequence has reached max_tokens.
LOWChatTTS/model/velocity/llm_engine.py792 # Check if the sequence has generated the EOS token.
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippet
LOWChatTTS/norm.py212 except Exception as e:
LOWChatTTS/model/gpt.py101 except Exception as e:
LOWexamples/web/funcs.py128 except Exception as e:
LOWexamples/api/openai_api.py217 except Exception as e:
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippet
LOWChatTTS/model/velocity/llama.py1# coding=utf-8
LOWexamples/onnx/modeling_llama.py1# coding=utf-8
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippet
LOWChatTTS/model/velocity/model_runner.py133 # yet. In this case, we just use a dummy slot mapping.
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWChatTTS/model/velocity/configs.py590 # make sure to update docs/source/models/engine_args.rst