Repository Analysis

OpenMOSS/MOSS-TTS

MOSS‑TTS Family is an open‑source speech and sound generation model family from MOSI.AI and the OpenMOSS team. It is designed for high‑fidelity, high‑expressiveness, and complex real‑world scenarios, covering stable long‑form speech, multi‑speaker dialogue, voice/character design, environmental sound effects, and real‑time streaming TTS.

25.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of OpenMOSS/MOSS-TTS, a Python project with 3,792 GitHub stars. SynthScan v2.0 examined 44,555 lines of code across 147 source files, recording 620 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 25.1 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).

25.1
Adjusted Score
25.1
Raw Score
100%
Time Factor
2026-06-22
Last Push
3.8K
Stars
Python
Language
44.6K
Lines of Code
147
Files
620
Pattern Hits
2026-07-14
Scan Date
0.59
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 87MEDIUM 61LOW 472

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 620 distinct pattern matches across 12 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-Language Confusion84 hits · 419 pts
SeverityFileLineSnippetContext
HIGHmoss_tts_realtime/app.py967let audioCtx = null;CODE
HIGHmoss_tts_realtime/app.py971let boundField = null;CODE
HIGHmoss_tts_realtime/app.py977 if (audioCtx && audioCtx.sampleRate !== sr) {CODE
HIGHmoss_tts_realtime/app.py979 audioCtx = null;CODE
HIGHmoss_tts_realtime/app.py982 audioCtx = new (window.AudioContext || window.webkitAudioContext)({ sampleRate: sr });CODE
HIGHmoss_tts_realtime/app.py1048 audioCtx = null;CODE
HIGHmoss_tts_realtime/app.py1055 const sr = payload.sr || 24000;CODE
HIGHmoss_tts_realtime/app.py1061 if (!field || field === boundField) return;CODE
HIGHmoss_tts_realtime/app.py1079 if (v && v !== lastValue) {CODE
HIGHmoss_tts_realtime/app.py1087 if (initial && initial !== lastValue) {CODE
HIGHmoss_tts_realtime/app.py1096 boundField = null;CODE
HIGHmoss_tts_realtime/app.py1118 if (value && value !== lastValue) {CODE
HIGHmoss_tts_realtime/app.py1127 audioCtx = new (window.AudioContext || window.webkitAudioContext)();CODE
HIGHmoss_tts_realtime/finetuning/common.py115 raise ValueError(f"`{field_name}` must be a string, null, or a list containing strings/nulls.")CODE
HIGHmoss_tts_delay/finetuning/common.py115 raise ValueError(f"`{field_name}` must be a string, null, or a list containing strings/nulls.")CODE
HIGHclis/moss_tts_local_v1.5_app.py1063let currentJob = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1064let audioContext = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1066let statusTimer = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1069let currentStreamAbortController = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1072let playbackCompletionTimer = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1078let currentReferenceObjectUrl = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1080let recordedReferenceFile = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1082let referenceRecordingStream = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1083let referenceRecordingAudioContext = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1084let referenceRecordingSource = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1085let referenceRecordingProcessor = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1089let referenceRecordingTimer = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1113 return Boolean(field("prompt-audio").files[0] || recordedReferenceFile || field("example-audio-path").value);CODE
HIGHclis/moss_tts_local_v1.5_app.py1116 field("status").textContent = typeof obj === "string" ? obj : JSON.stringify(obj, null, 2);CODE
HIGHclis/moss_tts_local_v1.5_app.py1117 if (obj && (obj.generated_frames || obj.generated_frames === 0) && obj.max_new_tokens) {CODE
HIGHclis/moss_tts_local_v1.5_app.py1118 const pct = Math.min(100, 100 * Number(obj.generated_frames || 0) / Number(obj.max_new_tokens || 1));CODE
HIGHclis/moss_tts_local_v1.5_app.py1130 runtimeReady = status && status.state === "ready";CODE
HIGHclis/moss_tts_local_v1.5_app.py1131 const elapsed = status && status.load_elapsed_seconds != null ? ` | load=${Number(status.load_elapsed_seconds).toFixedCODE
HIGHclis/moss_tts_local_v1.5_app.py1133 const error = status && status.error ? ` | error=${status.error}` : "";CODE
HIGHclis/moss_tts_local_v1.5_app.py1134 field("runtime-summary").textContent = `Runtime: ${(status && status.state) || "unknown"}${elapsed}${extra}${error}`;CODE
HIGHclis/moss_tts_local_v1.5_app.py1162 currentReferenceObjectUrl = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1172function showReferencePreview(src, objectUrl = null) {CODE
HIGHclis/moss_tts_local_v1.5_app.py1175 currentReferenceObjectUrl = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1215 if (referenceRecordingActive && nextMode !== "record") stopReferenceRecording(true);CODE
HIGHclis/moss_tts_local_v1.5_app.py1218 recordedReferenceFile = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1228 const safeSeconds = Math.max(0, Math.floor(seconds || 0));CODE
HIGHclis/moss_tts_local_v1.5_app.py1285 referenceRecordingTimer = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1289 referenceRecordingProcessor.onaudioprocess = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1290 referenceRecordingProcessor = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1294 referenceRecordingSource = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1298 referenceRecordingStream = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1302 referenceRecordingAudioContext = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1311 recordedReferenceFile = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1315 const AudioContextCtor = window.AudioContext || window.webkitAudioContext;CODE
HIGHclis/moss_tts_local_v1.5_app.py1318 referenceRecordingSampleRate = referenceRecordingAudioContext.sampleRate || 48000;CODE
HIGHclis/moss_tts_local_v1.5_app.py1326 referenceRecordingChunks.push(new Float32Array(input));CODE
HIGHclis/moss_tts_local_v1.5_app.py1506 const raw = Number(field("initial-playback-delay").value || 0.08);CODE
HIGHclis/moss_tts_local_v1.5_app.py1519 const bytesPerFrame = Math.max(1, Number(channels || 2) * 2);CODE
HIGHclis/moss_tts_local_v1.5_app.py1521 const resolvedSampleRate = Math.max(1, Number(sampleRate || 48000));CODE
HIGHclis/moss_tts_local_v1.5_app.py1592 statusTimer = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1596 currentStreamAbortController = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1600 currentJob = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1604 audioContext = null;CODE
HIGHclis/moss_tts_local_v1.5_app.py1617 if (playbackPaused || nextPlaybackTime - audioContext.currentTime > 0.05) {CODE
HIGHclis/moss_tts_local_v1.5_app.py1622 audioContext = null;CODE
24 more matches not shown…
Decorative Section Separators58 hits · 201 pts
SeverityFileLineSnippetContext
MEDIUMmoss_tts_realtime/example_multiturn_stream_to_tts.py114# ── Core streaming Generation ──────────────────────────────────────────────────COMMENT
MEDIUMmoss_tts_realtime/finetuning/dataset.py86 # ------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_realtime/finetuning/dataset.py88 # ------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_realtime/finetuning/dataset.py109 # ------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_realtime/finetuning/dataset.py111 # ------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_realtime/finetuning/dataset.py166 # ------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_realtime/finetuning/dataset.py168 # ------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_realtime/finetuning/dataset.py210 # ------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_realtime/finetuning/dataset.py212 # ------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/tts_robust_normalizer_single_script.py44# ---------------------------COMMENT
MEDIUMmoss_tts_delay/tts_robust_normalizer_single_script.py46# ---------------------------COMMENT
MEDIUMmoss_tts_delay/tts_robust_normalizer_single_script.py81# ---------------------------COMMENT
MEDIUMmoss_tts_delay/tts_robust_normalizer_single_script.py83# ---------------------------COMMENT
MEDIUMmoss_tts_delay/tts_robust_normalizer_single_script.py100# ---------------------------COMMENT
MEDIUMmoss_tts_delay/tts_robust_normalizer_single_script.py102# ---------------------------COMMENT
MEDIUMmoss_tts_delay/tts_robust_normalizer_single_script.py246# ---------------------------COMMENT
MEDIUMmoss_tts_delay/tts_robust_normalizer_single_script.py248# ---------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py203# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py205# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py349# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py351# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py409 # ── Component factories ──────────────────────────────────────────────COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py471 # ── Generation ───────────────────────────────────────────────────────COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py861# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/pipeline.py863# ---------------------------------------------------------------------------COMMENT
MEDIUMmoss_tts_delay/llama_cpp/conversion/extract_weights.py34# ── Name mapping: MossTTSDelay → Qwen3ForCausalLM ──────────────────────────COMMENT
MEDIUMmoss_tts_delay/llama_cpp/conversion/extract_weights.py50# ── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMmoss_tts_delay/llama_cpp/conversion/extract_weights.py86# ── Main extraction ─────────────────────────────────────────────────────────COMMENT
MEDIUMmoss_tts_delay/llama_cpp/conversion/extract_weights.py117 # ── Pass: iterate shards and extract all three groups ───────────────COMMENT
MEDIUMmoss_tts_delay/llama_cpp/conversion/extract_weights.py150 # ── Embeddings → npy ────────────────────────────────COMMENT
MEDIUMmoss_tts_delay/llama_cpp/conversion/extract_weights.py162 # ── LM heads → npy ──────────────────────────────────COMMENT
MEDIUMmoss_tts_delay/llama_cpp/conversion/extract_weights.py172 # ── Backbone → Qwen3ForCausalLM safetensors ─────────COMMENT
MEDIUMconfigs/llama_cpp/trt.yaml19# ── Model paths ──────────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt.yaml26# ── Audio tokenizer ──────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt.yaml32# ── LM heads backend ────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt.yaml36# ── Runtime settings ─────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt.yaml45# ── Sampling parameters ──────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt-8gb.yaml17# ── Model paths ──────────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt-8gb.yaml24# ── Audio tokenizer ──────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt-8gb.yaml31# ── LM heads backend ────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt-8gb.yaml36# ── Runtime settings ─────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt-8gb.yaml49# ── KV cache / attention ────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/trt-8gb.yaml59# ── Sampling parameters ──────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/cpu-only.yaml10# ── Model paths ──────────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/cpu-only.yaml17# ── Audio tokenizer ──────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/cpu-only.yaml23# ── LM heads backend ────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/cpu-only.yaml27# ── Runtime settings ─────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/cpu-only.yaml36# ── Sampling parameters ──────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/default.yaml14# ── Model paths ──────────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/default.yaml26# ── Audio tokenizer ──────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/default.yaml34# ── LM heads backend ────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/default.yaml41# ── Runtime settings ─────────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/default.yaml50# ── KV cache / attention ────────────────────────────────────────────────────COMMENT
MEDIUMconfigs/llama_cpp/default.yaml61# ── Sampling parameters ──────────────────────────────────────────────────────COMMENT
Hyper-Verbose Identifiers153 hits · 157 pts
SeverityFileLineSnippetContext
LOWREADME.md332def resolve_attn_implementation() -> str:CODE
LOWREADME_zh.md338def resolve_attn_implementation() -> str:CODE
LOWmoss_tts_realtime/inferencer.py93 def _build_local_past_key_values(self):CODE
LOWmoss_tts_realtime/inferencer.py354 def generate_local_transformer(CODE
LOWmoss_tts_realtime/fast_api.py208def _resampled_audio_cache_path(src: Path, target_sample_rate: int) -> Path:CODE
LOWmoss_tts_realtime/fast_api.py216def _ensure_audio_resampled_file(src: Path, target_sample_rate: int = SAMPLE_RATE) -> Path:CODE
LOWmoss_tts_realtime/fast_api.py597 def _reset_audio_queue_for_new_turn(self, sess: SessionRuntime) -> None:CODE
LOWmoss_tts_realtime/app.py386def _format_completion_status(CODE
LOWmoss_tts_realtime/app.py519 def _build_text_only_turn_input(CODE
LOWmoss_tts_realtime/infer.py19 def resolve_attn_implementation() -> str:CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py96 def _build_local_past_key_values(self):CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py101 def _get_local_transformer_runner(self):CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py331 def generate_local_transformer(CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py356 def _generate_local_transformer_impl(CODE
LOWmoss_tts_realtime/finetuning/prepare_data.py203def attach_reference_audio_codes(CODE
LOWmoss_tts_realtime/finetuning/common.py103def normalize_audio_path_list(CODE
LOWmoss_tts_realtime/finetuning/sft.py151def resolve_attn_implementation(requested: str, dtype: torch.dtype) -> str:CODE
LOWdocs/moss_tts_realtime_model_card.md107def resolve_attn_implementation() -> str:CODE
LOWdocs/moss_sound_effect_model_card.md67def resolve_attn_implementation() -> str:CODE
LOWdocs/moss_tts_model_card.md131def resolve_attn_implementation() -> str:CODE
LOWdocs/moss_tts_model_card.md250def resolve_attn_implementation() -> str:CODE
LOWdocs/moss_voice_generator_model_card.md50def resolve_attn_implementation() -> str:CODE
LOWdocs/moss_ttsd_model_card.md83def resolve_attn_implementation() -> str:CODE
LOWmoss_tts_delay/processing_moss_tts.py454 def _replace_audio_placeholders(CODE
LOWmoss_tts_delay/processing_moss_tts.py494 def _merge_consecutive_audio_placeholders(CODE
LOWmoss_tts_delay/processing_moss_tts.py770 def _get_audio_tokenizer_device(self) -> torch.device:CODE
LOWmoss_tts_delay/modeling_moss_tts.py199 def _compute_input_embeddings(self, input_ids: torch.LongTensor) -> torch.Tensor:STRING
LOWmoss_tts_delay/tts_robust_normalizer_single_script.py116def _normalize_markdown_and_lines(text: str) -> str:CODE
LOWmoss_tts_delay/tts_robust_normalizer_single_script.py192def _normalize_structural_punctuation(text: str) -> str:CODE
LOWmoss_tts_delay/tts_robust_normalizer_single_script.py223def _normalize_repeated_punctuation(text: str) -> str:CODE
LOWmoss_tts_delay/inference_utils.py62def apply_repetition_penalty_delay_pattern(CODE
LOWmoss_tts_delay/finetuning/prepare_data.py129def attach_reference_audio_codes(CODE
LOWmoss_tts_delay/finetuning/README.md305def resolve_attn_implementation(device: str, dtype: torch.dtype) -> str:CODE
LOWmoss_tts_delay/finetuning/dataset.py32def normalize_audio_code_list(CODE
LOWmoss_tts_delay/finetuning/common.py103def normalize_audio_path_list(CODE
LOWmoss_tts_delay/finetuning/README_zh.md305def resolve_attn_implementation(device: str, dtype: torch.dtype) -> str:CODE
LOWmoss_tts_delay/finetuning/sft.py164def resolve_attn_implementation(requested: str, dtype: torch.dtype) -> str:CODE
LOWmoss_tts_delay/finetuning/sft.py195def parse_channelwise_loss_weight(spec: Optional[str], n_heads: int) -> Optional[List[float]]:CODE
LOWmoss_tts_delay/finetuning/sft.py245def processor_needs_audio_tokenizer(records: List[Dict[str, Any]]) -> bool:CODE
LOWmoss_tts_delay/llama_cpp/gpu_monitor.py85def _nvidia_smi_device_used_mb() -> float:CODE
LOWmoss_tts_delay/llama_cpp/processor.py138def _replace_audio_placeholders(CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py37def _resolve_wan_audio_dit_preset(dit_variant: str):CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py100def _convert_hf_dit_state_dict(state_dict: dict) -> dict:CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py181 def check_resize_num_channels_num_samples(self, num_channels, num_samples):CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py42 def check_resize_height_width(self, height, width, num_frames=None):CODE
LOW…ect_v2/diffsynth/models/wan_video_camera_controller.py46 def process_camera_coordinates(CODE
LOW…ect_v2/diffsynth/models/wan_video_camera_controller.py184def generate_camera_coordinates(CODE
LOWmoss_soundeffect_v2/diffsynth/models/utils.py55def load_state_dict_from_folder(file_path, torch_dtype=None):CODE
LOWmoss_soundeffect_v2/diffsynth/models/utils.py72def load_state_dict_from_safetensors(file_path, torch_dtype=None, device="cpu"):CODE
LOWmoss_soundeffect_v2/diffsynth/models/utils.py148def convert_state_dict_keys_to_single_str(state_dict, with_shape=True):CODE
LOWmoss_soundeffect_v2/diffsynth/models/utils.py164def split_state_dict_with_prefix(state_dict):CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py762 def export_trainable_state_dict(self, state_dict, remove_prefix=None):CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py126def load_added_token_content_by_id(tokenizer_json_path: Path) -> dict[int, str]:CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py157def resolve_processor_token_strings(CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py213def group_weight_map_by_shard(weight_map: dict[str, str]) -> dict[str, list[str]]:CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py222def build_prefixed_codec_keys(CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py247def build_remapped_main_weight_map(main_weight_map: dict[str, str]) -> dict[str, str]:CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py493def collect_tokenizer_asset_filenames(model_dir: Path) -> list[str]:CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py536def local_processor_source_path() -> Path:CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py599def patch_tokenizer_config_processor_class(CODE
93 more matches not shown…
Unused Imports104 hits · 104 pts
SeverityFileLineSnippetContext
LOWmoss_tts_realtime/example_llm_stream_to_tts.py1CODE
LOWmoss_tts_realtime/infer.py4CODE
LOWmoss_tts_realtime/example_multiturn_stream_to_tts.py1CODE
LOW…realtime/mossttsrealtime/processing_mossttsrealtime.py16CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py16CODE
LOW…s_realtime/mossttsrealtime/modeling_mossttsrealtime.py16CODE
LOWmoss_tts_realtime/mossttsrealtime/__init__.py22CODE
LOWmoss_tts_realtime/mossttsrealtime/__init__.py23CODE
LOWmoss_tts_realtime/mossttsrealtime/__init__.py24CODE
LOWmoss_tts_realtime/mossttsrealtime/__init__.py25CODE
LOWmoss_tts_realtime/mossttsrealtime/__init__.py26CODE
LOW…ltime/mossttsrealtime/configuration_mossttsrealtime.py17CODE
LOW…time/mossttsrealtime/modeling_mossttsrealtime_local.py16CODE
LOWmoss_tts_realtime/finetuning/dataset.py31CODE
LOWmoss_tts_realtime/finetuning/dataset.py31CODE
LOWmoss_tts_realtime/finetuning/dataset.py31CODE
LOWmoss_tts_realtime/finetuning/dataset.py31CODE
LOWmoss_tts_realtime/finetuning/sft.py40CODE
LOWmoss_tts_delay/processing_moss_tts.py17CODE
LOWmoss_tts_delay/processing_moss_tts.py17CODE
LOWmoss_tts_delay/processing_moss_tts.py17CODE
LOWmoss_tts_delay/tts_robust_normalizer_single_script.py38CODE
LOWmoss_tts_delay/llama_cpp/_constants.py10CODE
LOWmoss_tts_delay/llama_cpp/delay_state.py14CODE
LOWmoss_tts_delay/llama_cpp/delay_state.py21CODE
LOWmoss_tts_delay/llama_cpp/delay_state.py21CODE
LOWmoss_tts_delay/llama_cpp/embedding.py14CODE
LOWmoss_tts_delay/llama_cpp/backbone.py9CODE
LOWmoss_tts_delay/llama_cpp/gpu_monitor.py27CODE
LOWmoss_tts_delay/llama_cpp/__init__.py25CODE
LOWmoss_tts_delay/llama_cpp/__init__.py25CODE
LOWmoss_tts_delay/llama_cpp/processor.py11CODE
LOWmoss_tts_delay/llama_cpp/processor.py30CODE
LOWmoss_tts_delay/llama_cpp/lm_heads.py12CODE
LOWmoss_tts_delay/llama_cpp/pipeline.py25CODE
LOWmoss_tts_delay/llama_cpp/sampling.py8CODE
LOWmoss_tts_delay/llama_cpp/conversion/extract_weights.py20CODE
LOWmoss_soundeffect_v2/__init__.py1CODE
LOWmoss_soundeffect_v2/__init__.py1CODE
LOWmoss_soundeffect_v2/hf_export.py5CODE
LOWmoss_soundeffect_v2/diffsynth/__init__.py1CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py1CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py1CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py1CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py1CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py3CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py4CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py5CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py6CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py7CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py9CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py16CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/__init__.py1CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py1CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py1CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py5CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py5CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py6CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py9CODE
LOWmoss_soundeffect_v2/diffsynth/models/wan_audio_dit.py3CODE
44 more matches not shown…
Deep Nesting63 hits · 62 pts
SeverityFileLineSnippetContext
LOWmoss_tts_realtime/fast_api.py552CODE
LOWmoss_tts_realtime/fast_api.py622CODE
LOWmoss_tts_realtime/app.py1146CODE
LOWmoss_tts_realtime/tts_client.py42CODE
LOW…realtime/mossttsrealtime/processing_mossttsrealtime.py90CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py652CODE
LOW…time/mossttsrealtime/modeling_mossttsrealtime_local.py286CODE
LOWmoss_tts_realtime/finetuning/sft.py562CODE
LOWmoss_tts_delay/processing_moss_tts.py65CODE
LOWmoss_tts_delay/processing_moss_tts.py249CODE
LOWmoss_tts_delay/processing_moss_tts.py688CODE
LOWmoss_tts_delay/processing_moss_tts_delay_with_codec.py74CODE
LOWmoss_tts_delay/finetuning/sft.py617CODE
LOWmoss_tts_delay/llama_cpp/pipeline.py307CODE
LOWmoss_tts_delay/llama_cpp/conversion/extract_weights.py88CODE
LOWmoss_soundeffect_v2/hf_export.py61CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py100CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py685CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py93CODE
LOWmoss_soundeffect_v2/diffsynth/utils/__init__.py184CODE
LOWmoss_soundeffect_v2/diffsynth/models/wan_audio_dit.py208CODE
LOWmoss_soundeffect_v2/diffsynth/models/wan_audio_dit.py349CODE
LOWmoss_soundeffect_v2/diffsynth/models/dac_vae.py111CODE
LOWmoss_soundeffect_v2/diffsynth/models/utils.py101CODE
LOWmoss_soundeffect_v2/diffsynth/models/utils.py113CODE
LOWmoss_soundeffect_v2/diffsynth/models/utils.py135CODE
LOWmoss_soundeffect_v2/diffsynth/models/utils.py148CODE
LOWmoss_soundeffect_v2/diffsynth/models/wan_video_dit.py36CODE
LOWmoss_soundeffect_v2/diffsynth/models/wan_video_dit.py387CODE
LOWmoss_soundeffect_v2/diffsynth/models/wan_video_dit.py528CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/cache_shards.py82CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/cache_shards.py124CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py843CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py17CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py325CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py485CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py579CODE
LOWscripts/extract_weights_llama_cpp.py78CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py363CODE
LOWclis/moss_tts_app.py414CODE
LOWclis/moss_ttsd_app.py72CODE
LOWclis/moss_ttsd_app.py530CODE
LOWclis/moss_voice_generator_app.py210CODE
LOWclis/moss_sound_effect_app.py85CODE
LOWclis/moss_tts_local_v1.5_app.py380CODE
LOWclis/moss_tts_local_v1.5_app.py449CODE
LOWmoss_tts_local/processing_moss_tts.py64CODE
LOWmoss_tts_local/processing_moss_tts.py250CODE
LOWmoss_tts_local/processing_moss_tts.py688CODE
LOWmoss_tts_local/finetuning/sft.py620CODE
LOWmoss_tts_local_v1.5/processing_moss_tts.py483CODE
LOWmoss_tts_local_v1.5/processing_moss_tts.py727CODE
LOWmoss_tts_local_v1.5/qwen3_decoder.py467CODE
LOWmoss_tts_local_v1.5/gpt2_decoder.py440CODE
LOWmoss_tts_local_v1.5/gpt2_decoder.py595CODE
LOWmoss_tts_local_v1.5/streaming.py105CODE
LOWmoss_tts_local_v1.5/streaming.py735CODE
LOWmoss_tts_local_v1.5/streaming.py1083CODE
LOWmoss_tts_local_v1.5/streaming.py781CODE
LOWmoss_tts_local_v1.5/finetuning/common.py103CODE
3 more matches not shown…
Excessive Try-Catch Wrapping54 hits · 58 pts
SeverityFileLineSnippetContext
LOWmoss_tts_realtime/fast_api.py32except Exception:CODE
LOWmoss_tts_realtime/fast_api.py221 except Exception:CODE
LOWmoss_tts_realtime/fast_api.py420 except Exception as e:CODE
LOWmoss_tts_realtime/fast_api.py560 except Exception as e:CODE
LOWmoss_tts_realtime/fast_api.py580 except Exception as e:CODE
LOWmoss_tts_realtime/fast_api.py588 except Exception:CODE
LOWmoss_tts_realtime/fast_api.py594 except Exception:CODE
LOWmoss_tts_realtime/fast_api.py713 except Exception:CODE
LOWmoss_tts_realtime/fast_api.py719 except Exception:CODE
LOWmoss_tts_realtime/fast_api.py841 except Exception:CODE
LOWmoss_tts_realtime/fast_api.py920 except Exception as e:CODE
LOWmoss_tts_realtime/fast_api.py947 except Exception as e:CODE
LOWmoss_tts_realtime/fast_api.py987 except Exception:CODE
LOWmoss_tts_realtime/app.py832 except Exception as exc:CODE
LOWmoss_tts_realtime/app.py1296 except Exception as exc:STRING
MEDIUMmoss_tts_realtime/app.py731def _run(self) -> None:CODE
LOWmoss_tts_realtime/tts_client.py89 except Exception as exc:CODE
LOWmoss_tts_realtime/tts_client.py195 except Exception as e:CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py811 except Exception:CODE
LOWmoss_tts_delay/processing_moss_tts.py215 except Exception:CODE
LOWmoss_tts_delay/processing_moss_tts.py311 except Exception:CODE
LOWmoss_tts_delay/modeling_moss_tts.py42except Exception:CODE
LOWmoss_tts_delay/llama_cpp/_constants.py44 except Exception as exc:CODE
LOWmoss_tts_delay/llama_cpp/gpu_monitor.py57 except Exception:CODE
LOWmoss_tts_delay/llama_cpp/gpu_monitor.py96 except Exception:CODE
LOWmoss_tts_delay/llama_cpp/pipeline.py617 except Exception:CODE
LOWmoss_tts_delay/llama_cpp/pipeline.py761 except Exception as e:CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/cache_shards.py23 except Exception:CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/cache_shards.py221 except Exception:CODE
MEDIUMmoss_soundeffect_v2/diffsynth/trainers/cache_shards.py18def _get_rank_and_world_size() -> Tuple[int, int]:CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py505 except Exception:CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py570 except Exception:CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py613 except Exception:CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py662 except Exception as e:CODE
LOWscripts/fuse_moss_tts_delay_with_codec.py475 except Exception as exc:CODE
LOWscripts/batch_eval_llama_cpp.py165 except Exception as e:CODE
MEDIUMclis/moss_tts_local_v1.5_app.py281def _load() -> None:CODE
LOWclis/moss_tts_local_v1.5_app.py284 except Exception:CODE
LOWclis/moss_tts_local_v1.5_app.py307 except Exception as exc:CODE
LOWclis/moss_tts_local_v1.5_app.py513 except Exception as exc: # noqa: BLE001CODE
LOWmoss_tts_local/processing_moss_tts.py214 except Exception:CODE
LOWmoss_tts_local/processing_moss_tts.py312 except Exception:CODE
LOWmoss_tts_local_v1.5/processing_moss_tts.py247 except Exception:CODE
LOWmoss_tts_local_v1.5/processing_moss_tts.py529 except Exception:CODE
LOWmoss_tts_local_v1.5/qwen3_decoder.py22except Exception:CODE
LOWmoss_tts_local_v1.5/gpt2_decoder.py19except Exception:CODE
LOWmoss_tts_local_v1.5/streaming.py125 except Exception:CODE
LOWmoss_tts_local_v1.5/streaming.py645 except Exception as exc: # noqa: BLE001CODE
LOWmoss_tts_local_v1.5/streaming.py655 except Exception as exc: # noqa: BLE001CODE
LOWmoss_tts_local_v1.5/finetuning/prepare_data.py111 except Exception:CODE
LOWmoss_tts_local_v1.5/finetuning/sft.py36except Exception:CODE
LOWmoss_tts_local_v1.5/finetuning/sft.py293 except Exception:CODE
LOWcommunity/norwegian-lora/train_lora.py106 except Exception as exc:CODE
LOWcommunity/norwegian-lora/train_lora.py121 except Exception as exc:CODE
AI Structural Patterns44 hits · 42 pts
SeverityFileLineSnippetContext
LOWmoss_tts_realtime/inferencer.py306CODE
LOW…realtime/mossttsrealtime/processing_mossttsrealtime.py34CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py153CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py486CODE
LOW…s_realtime/mossttsrealtime/modeling_mossttsrealtime.py111CODE
LOW…ltime/mossttsrealtime/configuration_mossttsrealtime.py38CODE
LOW…ltime/mossttsrealtime/configuration_mossttsrealtime.py88CODE
LOW…time/mossttsrealtime/modeling_mossttsrealtime_local.py286CODE
LOW…time/mossttsrealtime/modeling_mossttsrealtime_local.py395CODE
LOWmoss_tts_delay/processing_moss_tts.py375CODE
LOWmoss_tts_delay/processing_moss_tts.py491CODE
LOWmoss_tts_delay/processing_moss_tts_delay_with_codec.py18CODE
LOWmoss_tts_delay/modeling_moss_tts.py226CODE
LOWmoss_tts_delay/modeling_moss_tts.py394CODE
LOWmoss_tts_delay/configuration_moss_tts.py62CODE
LOWmoss_soundeffect_v2/pipeline_moss_soundeffect.py156CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py685CODE
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py284CODE
LOWmoss_soundeffect_v2/diffsynth/models/wan_audio_dit.py106CODE
LOW…ect_v2/diffsynth/models/wan_video_camera_controller.py44CODE
LOWmoss_soundeffect_v2/diffsynth/models/dac_vae.py805CODE
LOWmoss_soundeffect_v2/diffsynth/models/wan_video_dit.py294CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py843CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py17CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py153CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/utils.py325CODE
LOWmoss_soundeffect_v2/diffsynth/schedulers/flow_match.py7CODE
LOWclis/moss_tts_local_v1.5_app.py380CODE
LOWclis/moss_tts_local_v1.5_app.py521CODE
LOWmoss_tts_local/processing_moss_tts.py381CODE
LOWmoss_tts_local/processing_moss_tts.py495CODE
LOWmoss_tts_local/modeling_moss_tts.py187CODE
LOWmoss_tts_local/modeling_moss_tts.py542CODE
LOWmoss_tts_local/modeling_moss_tts.py642CODE
LOWmoss_tts_local/modeling_moss_tts.py708CODE
LOWmoss_tts_local/modeling_moss_tts.py778CODE
LOWmoss_tts_local/configuration_moss_tts.py62CODE
LOWmoss_tts_local_v1.5/processing_moss_tts.py280CODE
LOWmoss_tts_local_v1.5/qwen3_decoder.py467CODE
LOWmoss_tts_local_v1.5/gpt2_decoder.py595CODE
LOWmoss_tts_local_v1.5/modeling_moss_tts.py273CODE
LOWmoss_tts_local_v1.5/modeling_moss_tts.py463CODE
LOWmoss_tts_local_v1.5/streaming.py175CODE
LOWmoss_tts_local_v1.5/configuration_moss_tts.py32CODE
Over-Commented Block33 hits · 33 pts
SeverityFileLineSnippetContext
LOW…realtime/mossttsrealtime/processing_mossttsrealtime.py1# Copyright 2026 OpenMOSS and the HuggingFace Inc. team. All rights reserved.COMMENT
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py1# Copyright 2025 The HuggingFace Team. All rights reserved.COMMENT
LOW…s_realtime/mossttsrealtime/modeling_mossttsrealtime.py1# Copyright 2026 OpenMOSS and the HuggingFace Inc. team. All rights reserved.COMMENT
LOWmoss_tts_realtime/mossttsrealtime/__init__.py1# Copyright 2026 OpenMOSS and the HuggingFace Inc. team. All rights reserved.COMMENT
LOW…ltime/mossttsrealtime/configuration_mossttsrealtime.py1# Copyright 2026 OpenMOSS and the HuggingFace Inc. team. All rights reserved.COMMENT
LOW…time/mossttsrealtime/modeling_mossttsrealtime_local.py1# Copyright 2026 OpenMOSS and the HuggingFace Inc. team. All rights reserved.COMMENT
LOWmoss_tts_realtime/finetuning/prepare_data.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_realtime/finetuning/dataset.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_realtime/finetuning/common.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_realtime/finetuning/sft.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_delay/processing_moss_tts.py1# coding=utf-8COMMENT
LOWmoss_tts_delay/modeling_moss_tts.py1# coding=utf-8COMMENT
LOWmoss_tts_delay/configuration_moss_tts.py1# coding=utf-8COMMENT
LOWmoss_tts_delay/inference_utils.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_delay/finetuning/prepare_data.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_delay/finetuning/dataset.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_delay/finetuning/common.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_delay/finetuning/sft.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_delay/llama_cpp/build_bridge.sh1#!/usr/bin/env bashCOMMENT
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py141 # WanVideoUnit_ImageEmbedderVAE(),COMMENT
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py281COMMENT
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py301 # camera_control_speed: Optional[float] = 1/54,COMMENT
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py321 switch_DiT_boundary: Optional[float] = 0.875,COMMENT
LOWmoss_soundeffect_v2/diffsynth/pipelines/wan_audio.py361 # "input_video": input_video, "denoising_strength": denoising_strength,COMMENT
LOWconfigs/llama_cpp/trt.yaml1# MOSS-TTS-Delay — llama.cpp Backend (TensorRT audio, maximum performance)COMMENT
LOWconfigs/llama_cpp/trt-8gb.yaml1# MOSS-TTS-Delay — 8 GB GPU config (low-memory mode)COMMENT
LOWconfigs/llama_cpp/default.yaml1# MOSS-TTS-Delay — llama.cpp Backend (ONNX audio, default)COMMENT
LOWmoss_tts_local/processing_moss_tts.py1# coding=utf-8COMMENT
LOWmoss_tts_local/configuration_moss_tts.py1# coding=utf-8COMMENT
LOWmoss_tts_local/finetuning/prepare_data.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_local/finetuning/dataset.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_local/finetuning/common.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
LOWmoss_tts_local/finetuning/sft.py1# Copyright 2026 OpenMOSS team. All rights reserved.COMMENT
Modern Structural Boilerplate17 hits · 18 pts
SeverityFileLineSnippetContext
LOW…realtime/mossttsrealtime/processing_mossttsrealtime.py179__all__ = ["MossTTSRealtimeProcessor"]CODE
LOW…_realtime/mossttsrealtime/streaming_mossttsrealtime.py1045__all__ = [CODE
LOW…s_realtime/mossttsrealtime/modeling_mossttsrealtime.py190__all__ = ["MossTTSRealtime", "MossTTSRealtimeConfig", "MossTTSRealtimeOutputWithPast", "MossTTSRealtimePretrainedModel"CODE
LOW…ltime/mossttsrealtime/configuration_mossttsrealtime.py115__all__ = ["MossTTSRealtimeConfig", "MossTTSRealtimeLocalTransformerConfig"]CODE
LOW…time/mossttsrealtime/modeling_mossttsrealtime_local.py461__all__ = [CODE
LOWmoss_tts_realtime/finetuning/prepare_data.py226logger = logging.getLogger(__name__)CODE
LOWmoss_tts_delay/processing_moss_tts_delay_with_codec.py251__all__ = ["MossTTSDelayWithCodecProcessor"]CODE
LOWmoss_tts_delay/llama_cpp/__init__.py27__all__ = ["LlamaCppPipeline", "PipelineConfig"]CODE
LOWmoss_soundeffect_v2/__init__.py6__all__ = [CODE
LOWmoss_soundeffect_v2/diffsynth/trainers/__init__.py7__all__ = [CODE
LOWclis/moss_tts_local_v1.5_app.py227 def _set_status(self, *, state: str, error: str | None = None) -> None:CODE
LOWmoss_tts_local_v1.5/__init__.py5__all__ = [CODE
LOWmoss_tts_local_v1.5/modeling_moss_tts.py47 def _set_gradient_checkpointing(self, module: nn.Module, value: bool = False) -> None:CODE
LOWmoss_tts_local_v1.5/modeling_moss_tts.py123 def set_input_embeddings(self, value: nn.Embedding) -> None:CODE
LOWmoss_tts_local_v1.5/modeling_moss_tts.py131 def set_output_embeddings(self, new_embeddings: nn.Linear) -> None:CODE
LOWmoss_tts_local_v1.5/finetuning/sft.py241def set_rank_cuda_device(accelerator: Accelerator) -> None:CODE
LOWmoss_tts_local_v1.5/finetuning/sft.py527def set_gradient_checkpointing_flag(module: torch.nn.Module, value: bool) -> None:CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHmoss_tts_delay/processing_moss_tts.py0<user_inst> - reference(s): {reference} - instruction: {instruction} - tokens: {tokens} - quality: {quality} - sound eveSTRING
HIGHmoss_tts_local/processing_moss_tts.py0<user_inst> - reference(s): {reference} - instruction: {instruction} - tokens: {tokens} - quality: {quality} - sound eveSTRING
HIGHmoss_tts_local_v1.5/processing_moss_tts.py0<user_inst> - reference(s): {reference} - instruction: {instruction} - tokens: {tokens} - quality: {quality} - sound eveSTRING
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWmoss_tts_delay/llama_cpp/README.md42### Step 1: Download pre-quantized TTS backbone & weightsCOMMENT
LOWmoss_tts_delay/llama_cpp/README.md57### Step 2: Download ONNX audio tokenizerCOMMENT
LOWmoss_tts_delay/llama_cpp/README.md66### Step 3: Build the C bridgeCOMMENT
LOWmoss_tts_delay/llama_cpp/conversion/README.md54## Step 1: Extract WeightsCOMMENT
LOWmoss_tts_delay/llama_cpp/conversion/README.md99## Step 2: Convert Backbone to GGUFCOMMENT
LOWmoss_tts_delay/llama_cpp/conversion/README.md112## Step 3: QuantizeCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmoss_tts_delay/llama_cpp/build_bridge.sh4# Usage:COMMENT