AI Slop Code RIsk Monitor

xorbitsai/inference

Swap GPT for any LLM by changing a single line of code. Xinference lets you run open-source, speech, and multimodal models on cloud, on-prem, or your laptop — all through one unified, production-ready inference API.

18.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for xorbitsai/inference, a Python project with 9,605 GitHub stars. SynthScan examined 983,275 lines of code across 3666 source files, recording 13573 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 18.0 (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.

18.0
Adjusted Signal
18.0
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
9.6K
Stars
Python
Language
983.3K
Lines of Code
3.7K
Files
13.6K
Pattern Hits
2026-10-12
Scan Date
0.24
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 34.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 12.3/100 · LOW

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

Agent Over-Engineering Ratio 46.6/100 · MEDIUM

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

PR Review Velocity Impact 62.8/100 · HIGH

Which changes need focused human review? 13573 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 3HIGH 894MEDIUM 697LOW 11979

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 13573 distinct pattern matches across 26 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.

Hyper-Verbose Identifiers5049 hits · 4843 pts
SeverityFileLineSnippetContext
LOWbuild_backend.py46def _validate_builtin_model_specs(root=None):CODE
LOWbenchmark/utils.py169def _num_special_tokens_to_add(tokenizer: "PreTrainedTokenizerBase") -> int:CODE
LOWbenchmark/utils.py234def _gen_prompt_decode_to_target_len(CODE
LOWbenchmark/utils.py300def _generate_prompt_with_target_len(CODE
LOWbenchmark/benchmark_serving.py30def _validate_random_range_ratio(value: float, name: str) -> float:CODE
LOWbenchmark/tests/test_benchmark_pd.py15def test_goodput_excludes_errors_and_missing_token_timing():CODE
LOWbenchmark/tests/test_benchmark_pd.py32def test_rss_sampling_recovers_from_process_races(monkeypatch, stage, error):CODE
LOWbenchmark/tests/test_benchmark_pd.py59async def test_gpu_sampler_records_failure_and_continues(monkeypatch, error):CODE
LOWbenchmark/tests/test_benchmark_pd.py109def test_native_sglang_benchmark_does_not_launch_or_terminate_models(CODE
LOWbenchmark/tests/test_benchmark_pd.py161async def test_completion_workload_uses_completion_stream_and_token_usage(monkeypatch):CODE
LOWbenchmark/tests/test_analyze_pd_profile.py16def test_nested_profile_stages_are_not_added_and_failures_are_separate():CODE
LOWbenchmark/tests/test_analyze_pd_profile.py56def test_invalid_events_do_not_discard_valid_measurements(payload):CODE
LOWbenchmark/tests/test_benchmark_sglang_pd.py25def test_isolation_rejects_unrelated_allocations_but_accepts_owned_children(CODE
LOWbenchmark/tests/test_benchmark_sglang_pd.py37def test_gpu_monitor_error_cannot_produce_an_accepted_sample(benchmark, monkeypatch):CODE
LOWbenchmark/tests/test_benchmark_sglang_pd.py51def test_client_readiness_and_failed_launch_always_clean_up_owned_server(CODE
LOWbenchmark/tests/test_benchmark_sglang_pd.py75def test_completed_trial_keeps_telemetry_when_next_trial_resets_guard(CODE
LOWbenchmark/tests/test_benchmark_sglang_pd.py120def test_source_manifest_is_independent_of_working_directory(CODE
LOWbenchmark/tests/test_benchmark_embedding.py48async def test_exact_requests_concurrency_and_connection_reuse(CODE
LOWbenchmark/tests/test_benchmark_embedding.py100async def test_failures_are_counted_and_excluded_from_throughput(runner_class, capsys):CODE
LOWbenchmark/tests/test_benchmark_embedding.py140async def test_cancellation_closes_session_and_workers(runner_class):CODE
LOW…register-model/[modelType]/[modelName]/page-client.tsx9export default function RegisterModelEditPageClient() {CODE
LOW…ntend/src/app/running-model/[modelUid]/page-client.tsx7export default function RunningModelDetailPageClient() {CODE
LOW…d/src/components/pages/log-center/runtime-log-utils.ts24export function normalizeRuntimeLogSource(source: RuntimeLogSource): NormalizedRuntimeLogSource {CODE
LOW…d/src/components/pages/log-center/runtime-log-utils.ts39export function runtimeLogSourceSearchText(CODE
LOW…d/src/components/pages/log-center/runtime-log-utils.ts74export function buildHistoricalHandoffQueryState(CODE
LOW…d/src/components/pages/log-center/runtime-log-utils.ts148export function getRuntimeHistoricalSearch(entry: RuntimeLogEntry): {CODE
LOW…d/src/components/pages/log-center/runtime-log-utils.ts315export function getRuntimeLogSourceColorIndex(source: string, colorCount: number): number {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx234export function getLaunchModelEndpointType(type: RequestModelType) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx288function restoreNestedFormListObject(values: FormValues, parent: string, field: string) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx303function transformOnlyValueFormListToArray(values: FormValues, field: string) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx327function transformArrayToOnlyValueFormList(values: FormValues, field: string) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx377function applyNestedFormListObject(values: FormValues, parent: string, field: string) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx399function deleteNestedEmptyArrayField(values: FormValues, parent: string, field: string) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx733function parseReplicaConfigCommandValue(value: string) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx799export function generateCommandLineStatement(params: FormValues) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx1144export function isVisibleRequiredLaunchField(field: LaunchFieldConfig) {CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx1189export function reconcileWorkerSelectionForDevice(CODE
LOWfrontend/src/components/pages/launch-model/utils.tsx1209export function reconcileGpuIndexesForDevice(CODE
LOW…nts/pages/launch-model/launch-dialog/recommendation.ts19export function recommendationUnavailable(values: FormValues) {CODE
LOW…nts/pages/launch-model/launch-dialog/recommendation.ts128export function recommendationWarningKeys(response: RecommendationResponse) {CODE
LOW…/launch-model/launch-dialog/use-launch-history-form.ts9export function replaceLaunchHistoryFormSnapshot(CODE
LOW…nents/pages/running-model-detail/capability-config.tsx145function appendCommonMediaFormData(formData: FormData, context: TransformContext) {CODE
LOW…nents/pages/running-model-detail/capability-config.tsx175function appendCommonVideoFormData(formData: FormData, context: TransformContext) {CODE
LOW…end/src/components/pages/running-model-detail/utils.ts202export function transformFileInfoForResult(message?: ChatChoicesMessage) {CODE
LOW…nts/pages/running-model-detail/emotion-vector-utils.ts28export function parseIndexTTSEmotionVector(value: unknown): number[] | undefined {CODE
LOW…ts/pages/running-model-detail/panels/result-panels.tsx456function SpeakerEmbeddingResultPanel({ result }: { result: unknown }) {CODE
LOW…ts/pages/token-router/router-runtime-detail-drawer.tsx61export function RouterRuntimeDetailDrawer({ router, open, onOpenChange }: Props) {CODE
LOW…ponents/pages/token-router/router-config-normalizer.ts224export function normalizeTokenRouterRuntimeInstances(value: unknown): TokenRouterRuntimeInstance[] {CODE
LOW…ponents/pages/token-router/router-config-normalizer.ts230export function normalizeTokenRouterRuntimeInstance(CODE
LOW…ponents/pages/token-router/router-config-normalizer.ts271export function normalizeTokenRouterAssignments(value: unknown): TokenRouterAssignment[] {CODE
LOW…s/pages/token-router/tokenizer-asset-binding-status.ts13export function getBindingDesiredStateLabel(t: TFunc, state: BindingDesiredState): string {CODE
LOW…s/pages/token-router/tokenizer-asset-binding-status.ts17export function getBindingObservedStateLabel(t: TFunc, state: string): string {CODE
LOW…s/pages/token-router/tokenizer-asset-binding-status.ts43export function getBindingObservedStateBadgeVariant(state: string): BadgeVariant {CODE
LOWxinference/engine_hooks.py95def _validate_preserved_engines(before: EngineTable, candidate: EngineTable) -> None:CODE
LOWxinference/engine_hooks.py115def register_engine_registration_hook(CODE
LOWxinference/engine_hooks.py141def _run_engine_registration_hooks(model_type: str, target: EngineTable) -> None:CODE
LOWxinference/conftest.py178def run_test_cluster_in_subprocess(CODE
LOWxinference/constants.py124def _parse_virtual_env_find_links_allowed_roots(CODE
LOWxinference/constants.py188def _get_or_create_persisted_secret(env_name: str, file_name: str) -> str:CODE
LOWxinference/types.py382def get_pydantic_model_from_method(CODE
4989 more matches not shown…
Cross-File Repetition483 hits · 2415 pts
SeverityFileLineSnippetContext
HIGHxinference/model/video/__init__.py0load downloaded json configurations from the builtin directory.STRING
HIGHxinference/model/llm/__init__.py0load downloaded json configurations from the builtin directory.STRING
HIGHxinference/model/embedding/__init__.py0load downloaded json configurations from the builtin directory.STRING
HIGHxinference/model/image/__init__.py0load downloaded json configurations from the builtin directory.STRING
HIGHxinference/model/audio/__init__.py0load downloaded json configurations from the builtin directory.STRING
HIGHxinference/model/rerank/__init__.py0load downloaded json configurations from the builtin directory.STRING
HIGHxinference/model/video/engine_family.py0whether the engine implements the model, ignoring host constraints.STRING
HIGHxinference/model/audio/engine_family.py0whether the engine implements the model, ignoring host constraints.STRING
HIGHxinference/model/world/engine_family.py0whether the engine implements the model, ignoring host constraints.STRING
HIGH…ence/model/llm/tool_parsers/deepseek_v3_tool_parser.py0extract tool calls from complete model output. parses the model output to find json code blocks containing tool calls anSTRING
HIGHxinference/model/llm/tool_parsers/glm5_tool_parser.py0extract tool calls from complete model output. parses the model output to find json code blocks containing tool calls anSTRING
HIGH…ce/model/llm/tool_parsers/deepseek_v3_1_tool_parser.py0extract tool calls from complete model output. parses the model output to find json code blocks containing tool calls anSTRING
HIGHxinference/model/llm/tool_parsers/glm4_tool_parser.py0extract tool calls from complete model output. parses the model output to find json code blocks containing tool calls anSTRING
HIGH…/thirdparty/fish_speech_s2/fish_speech/conversation.py0visualize the encoded sequence with color-coded tokens. blue/cyan tokens contribute to loss, green tokens do not.STRING
HIGH…rdparty/fish_speech_s2/fish_speech/content_sequence.py0visualize the encoded sequence with color-coded tokens. blue/cyan tokens contribute to loss, green tokens do not.STRING
HIGH…rdparty/fish_speech_s1/fish_speech/content_sequence.py0visualize the encoded sequence with color-coded tokens. blue/cyan tokens contribute to loss, green tokens do not.STRING
HIGH…ce/thirdparty/fish_speech_s2/fish_speech/utils/file.py0list files in a directory. args: path (path): path to the directory. extensions (set, optional): extensions to filter. dSTRING
HIGHxinference/thirdparty/fish_speech/tools/file.py0list files in a directory. args: path (path): path to the directory. extensions (set, optional): extensions to filter. dSTRING
HIGH…ce/thirdparty/fish_speech_s1/fish_speech/utils/file.py0list files in a directory. args: path (path): path to the directory. extensions (set, optional): extensions to filter. dSTRING
HIGH…ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGH…hirdparty/fish_speech_s2/fish_speech/models/dac/rvq.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGH…ish_speech/fish_speech/models/vqgan/modules/firefly.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGH…ty/fish_speech_s1/fish_speech/models/dac/modded_dac.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGH…hirdparty/fish_speech_s1/fish_speech/models/dac/rvq.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGH…ference/thirdparty/indextts/s2mel/dac/model/encodec.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGHxinference/thirdparty/indextts/s2mel/modules/encodec.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGH…ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGH…hirdparty/fish_speech_s2/fish_speech/models/dac/rvq.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGH…ish_speech/fish_speech/models/vqgan/modules/firefly.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGH…ty/fish_speech_s1/fish_speech/models/dac/modded_dac.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGH…hirdparty/fish_speech_s1/fish_speech/models/dac/rvq.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGH…ference/thirdparty/indextts/s2mel/dac/model/encodec.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGHxinference/thirdparty/indextts/s2mel/modules/encodec.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGH…ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py0encode given audio data and return quantized latent codes parameters ---------- audio_data : tensor[b x 1 x t] audio datSTRING
HIGH…ty/fish_speech_s1/fish_speech/models/dac/modded_dac.py0encode given audio data and return quantized latent codes parameters ---------- audio_data : tensor[b x 1 x t] audio datSTRING
HIGHxinference/thirdparty/dacvae/dacvae/model/dacvae.py0encode given audio data and return quantized latent codes parameters ---------- audio_data : tensor[b x 1 x t] audio datSTRING
HIGHxinference/thirdparty/indextts/s2mel/dac/model/dac.py0encode given audio data and return quantized latent codes parameters ---------- audio_data : tensor[b x 1 x t] audio datSTRING
HIGH…ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py0decode given latent codes and return audio data parameters ---------- z : tensor[b x d x t] quantized continuous represeSTRING
HIGHxinference/thirdparty/indextts/s2mel/dac/model/dac.py0decode given latent codes and return audio data parameters ---------- z : tensor[b x d x t] quantized continuous represeSTRING
HIGHxinference/thirdparty/dacvae/dacvae/model/dacvae.py0decode given latent codes and return audio data parameters ---------- z : tensor[b x d x t] quantized continuous represeSTRING
HIGH…ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py0model forward pass parameters ---------- audio_data : tensor[b x 1 x t] audio data to encode sample_rate : int, optionalSTRING
HIGH…ty/fish_speech_s1/fish_speech/models/dac/modded_dac.py0model forward pass parameters ---------- audio_data : tensor[b x 1 x t] audio data to encode sample_rate : int, optionalSTRING
HIGHxinference/thirdparty/dacvae/dacvae/model/dacvae.py0model forward pass parameters ---------- audio_data : tensor[b x 1 x t] audio data to encode sample_rate : int, optionalSTRING
HIGHxinference/thirdparty/indextts/s2mel/dac/model/dac.py0model forward pass parameters ---------- audio_data : tensor[b x 1 x t] audio data to encode sample_rate : int, optionalSTRING
HIGH…hirdparty/fish_speech_s2/fish_speech/models/dac/rvq.py0convnext block. there are two equivalent implementations: (1) dwconv -> layernorm (channels_first) -> 1x1 conv -> gelu -STRING
HIGH…ish_speech/fish_speech/models/vqgan/modules/firefly.py0convnext block. there are two equivalent implementations: (1) dwconv -> layernorm (channels_first) -> 1x1 conv -> gelu -STRING
HIGH…hirdparty/fish_speech_s1/fish_speech/models/dac/rvq.py0convnext block. there are two equivalent implementations: (1) dwconv -> layernorm (channels_first) -> 1x1 conv -> gelu -STRING
HIGH…peech_s2/fish_speech/models/text2semantic/inference.py0takes a conditioning sequence (prompt) as input and continues to generate as many tokens as requested.STRING
HIGH…ference/thirdparty/fish_speech/tools/llama/generate.py0takes a conditioning sequence (prompt) as input and continues to generate as many tokens as requested.STRING
HIGH…peech_s1/fish_speech/models/text2semantic/inference.py0takes a conditioning sequence (prompt) as input and continues to generate as many tokens as requested.STRING
HIGH…thirdparty/indextts/s2mel/modules/gpt_fast/generate.py0takes a conditioning sequence (prompt) as input and continues to generate as many tokens as requested.STRING
HIGH…ch_s2/fish_speech/inference_engine/reference_loader.py0component of the ttsinferenceengine class. loads and manages the cache for the reference audio and text.STRING
HIGH…fish_speech/tools/inference_engine/reference_loader.py0component of the ttsinferenceengine class. loads and manages the cache for the reference audio and text.STRING
HIGH…ch_s1/fish_speech/inference_engine/reference_loader.py0component of the ttsinferenceengine class. loads and manages the cache for the reference audio and text.STRING
HIGH…ish_speech_s2/fish_speech/inference_engine/__init__.py0main inference function: - loads the reference audio and text. - calls the llama model for inference. - decodes the vq tSTRING
HIGH…rdparty/fish_speech/tools/inference_engine/__init__.py0main inference function: - loads the reference audio and text. - calls the llama model for inference. - decodes the vq tSTRING
HIGH…ish_speech_s1/fish_speech/inference_engine/__init__.py0main inference function: - loads the reference audio and text. - calls the llama model for inference. - decodes the vq tSTRING
HIGH…ish_speech_s2/fish_speech/inference_engine/__init__.py0send a request to the llama model to generate the symbolic tokens.STRING
423 more matches not shown…
Unused Imports2598 hits · 2366 pts
SeverityFileLineSnippetContext
LOWbuild_backend.py38CODE
LOWbenchmark/utils.py29CODE
LOWxinference/__init__.py37CODE
LOWxinference/extensions.py28CODE
LOWxinference/device_utils.py134CODE
LOWxinference/device_utils.py143CODE
LOWxinference/device_utils.py152CODE
LOWxinference/device_utils.py161CODE
LOWxinference/device_utils.py162CODE
LOWxinference/device_utils.py171CODE
LOWxinference/_compat.py22CODE
LOWxinference/_compat.py22CODE
LOWxinference/_compat.py22CODE
LOWxinference/_compat.py22CODE
LOWxinference/_compat.py22CODE
LOWxinference/_compat.py22CODE
LOWxinference/_compat.py22CODE
LOWxinference/_compat.py34CODE
LOWxinference/_compat.py35CODE
LOWxinference/_compat.py36CODE
LOWxinference/_compat.py37CODE
LOWxinference/_compat.py39CODE
LOWxinference/_compat.py39CODE
LOWxinference/_compat.py39CODE
LOWxinference/_compat.py39CODE
LOWxinference/_compat.py39CODE
LOWxinference/_compat.py39CODE
LOWxinference/_compat.py39CODE
LOWxinference/_compat.py51CODE
LOWxinference/_compat.py52CODE
LOWxinference/_compat.py53CODE
LOWxinference/_compat.py54CODE
LOWxinference/core/tokenizer_asset_store.py4CODE
LOWxinference/core/router_orchestration.py4CODE
LOWxinference/core/router_config_store.py10CODE
LOWxinference/core/supervisor.py66CODE
LOWxinference/core/supervisor.py103CODE
LOWxinference/core/supervisor.py104CODE
LOWxinference/core/supervisor.py106CODE
LOWxinference/core/supervisor.py107CODE
LOWxinference/core/supervisor.py108CODE
LOWxinference/core/supervisor.py109CODE
LOWxinference/core/launch_strategy.py22CODE
LOWxinference/core/router_scheduler.py4CODE
LOWxinference/core/router_node_store.py4CODE
LOWxinference/core/http_protocol.py131CODE
LOWxinference/core/router_assignment_store.py4CODE
LOWxinference/core/model.py49CODE
LOWxinference/core/model.py51CODE
LOWxinference/core/tokenizer_asset_registry.py4CODE
LOWxinference/core/pd_model.py31CODE
LOWxinference/core/router_deployment_store.py4CODE
LOWxinference/core/system_settings_store.py17CODE
LOWxinference/core/router_registry.py4CODE
LOWxinference/core/tests/test_monitoring_v2.py1CODE
LOWxinference/core/tests/test_router_orchestration.py3CODE
LOWxinference/core/tests/test_tokenizer_asset_store.py3CODE
LOWxinference/deploy/cmdline.py58CODE
LOWxinference/deploy/router_agent.py4CODE
LOWxinference/deploy/router_agent.py6CODE
2538 more matches not shown…
Empty Error Handlers312 hits · 1555 pts
SeverityFileLineSnippetContext
HIGHbuild_backend.py123except OSError:CODE
HIGHbenchmark/benchmark_cross_engine_pd.py334except requests.RequestException:CODE
HIGHbenchmark/benchmark_mlx_xavier.py89except psutil.NoSuchProcess:CODE
HIGHbenchmark/benchmark_mlx_xavier.py144except requests.RequestException:CODE
HIGHbenchmark/benchmark_mlx_xavier.py245except Exception:CODE
HIGHbenchmark/benchmark_sglang_pd.py275except psutil.NoSuchProcess:CODE
HIGHbenchmark/benchmark_sglang_pd.py324except requests.RequestException:CODE
HIGHbenchmark/benchmark_sglang_pd.py462except Exception:CODE
HIGHbenchmark/benchmark_nvidia_mlx_pd.py114except json.JSONDecodeError:CODE
HIGHbenchmark/benchmark_serving.py39except ValueError:CODE
HIGHxinference/constants.py237except OSError:CODE
HIGHxinference/__init__.py38except Exception:CODE
HIGHxinference/device_utils.py329except ImportError:CODE
HIGHxinference/device_utils.py726except (ValueError, KeyError, AttributeError):CODE
HIGHxinference/device_utils.py314except Exception:CODE
HIGHxinference/core/worker.py552except Exception:CODE
HIGHxinference/core/worker.py582except Exception:CODE
HIGHxinference/core/worker.py725except Exception:CODE
HIGHxinference/core/worker.py1005except Exception:CODE
HIGHxinference/core/worker.py356except OSError:CODE
HIGHxinference/core/worker.py613except Exception:CODE
HIGHxinference/core/worker.py1354except Exception:CODE
HIGHxinference/core/worker.py5546except OSError:CODE
HIGHxinference/core/worker.py5733except (psutil.NoSuchProcess, psutil.AccessDenied):CODE
HIGHxinference/core/worker.py5800except (psutil.NoSuchProcess, psutil.AccessDenied):CODE
HIGHxinference/core/worker.py6528except FileNotFoundError:CODE
HIGHxinference/core/worker.py1059except Exception:CODE
HIGHxinference/core/worker.py3525except OSError:CODE
HIGHxinference/core/worker.py3856except importlib.metadata.PackageNotFoundError:CODE
HIGHxinference/core/worker.py5106except Exception:CODE
HIGHxinference/core/worker.py5608except FileNotFoundError:CODE
HIGHxinference/core/worker.py5616except OSError:CODE
HIGHxinference/core/worker.py1080except Exception:CODE
HIGHxinference/core/worker.py3370except (KeyError, ValueError, AssertionError):CODE
HIGHxinference/core/worker.py4205except ImportError:CODE
HIGHxinference/core/worker.py1078except Exception:CODE
HIGHxinference/core/worker.py4968except Exception:CODE
HIGHxinference/core/metrics.py472except Exception:CODE
HIGHxinference/core/metrics.py1240except Exception:CODE
HIGHxinference/core/metrics.py1262except Exception:CODE
HIGHxinference/core/supervisor.py1096except asyncio.TimeoutError:CODE
HIGHxinference/core/supervisor.py4563except RuntimeError:CODE
HIGHxinference/core/supervisor.py6180except RuntimeError:CODE
HIGHxinference/core/supervisor.py537except Exception:CODE
HIGHxinference/core/supervisor.py585except Exception:CODE
HIGHxinference/core/supervisor.py2952except asyncio.CancelledError:CODE
HIGHxinference/core/supervisor.py4246except asyncio.CancelledError:CODE
HIGHxinference/core/supervisor.py5326except Exception:CODE
HIGHxinference/core/supervisor.py4358except asyncio.CancelledError:CODE
HIGHxinference/core/supervisor.py4914except Exception:CODE
HIGHxinference/core/virtual_env_manager.py289except metadata.PackageNotFoundError:CODE
HIGHxinference/core/virtual_env_manager.py1535except Exception:CODE
HIGHxinference/core/virtual_env_manager.py1876except Exception:CODE
HIGHxinference/core/virtual_env_manager.py1226except Exception:CODE
HIGHxinference/core/virtual_env_manager.py1757except Exception:CODE
HIGHxinference/core/virtual_env_manager.py895except OSError:CODE
HIGHxinference/core/virtual_env_manager.py935except OSError:CODE
HIGHxinference/core/virtual_env_manager.py927except OSError:CODE
HIGHxinference/core/model_recommendation.py130except Exception:CODE
HIGHxinference/core/model_recommendation.py142except Exception:CODE
252 more matches not shown…
Decorative Section Separators397 hits · 1322 pts
SeverityFileLineSnippetContext
MEDIUM⚡xinference/device_utils.py32# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/device_utils.py34# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/device_utils.py51# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/device_utils.py53# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/device_utils.py273# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/device_utils.py275# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/device_utils.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/device_utils.py95# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/device_utils.py178# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/device_utils.py180# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/device_utils.py456# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/device_utils.py458# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/device_utils.py565# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/device_utils.py567# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/metrics.py37# ===========================================================================COMMENT
MEDIUM⚡xinference/core/metrics.py39# ===========================================================================COMMENT
MEDIUMxinference/core/metrics.py58# ===========================================================================COMMENT
MEDIUMxinference/core/metrics.py60# ===========================================================================COMMENT
MEDIUMxinference/core/metrics.py102# ===========================================================================COMMENT
MEDIUMxinference/core/metrics.py104# ===========================================================================COMMENT
MEDIUMxinference/core/metrics.py338# ===========================================================================COMMENT
MEDIUMxinference/core/metrics.py340# ===========================================================================COMMENT
MEDIUMxinference/core/metrics.py367# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/metrics.py369# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/metrics.py434# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/metrics.py436# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/metrics.py450# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/metrics.py452# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/otel.py161# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/otel.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/otel.py316# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/otel.py318# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/tests/test_model.py304# ---------------------------------------------------------------------------COMMENT
MEDIUMxinference/core/tests/test_model.py310# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_utils.py840# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_utils.py842# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py114# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py153# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py155# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py187# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py189# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py211# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py213# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py253# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py258# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py356# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py358# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py417# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py419# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py505# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡xinference/core/tests/test_subpool_hardening.py507# ---------------------------------------------------------------------------COMMENT
MEDIUM…nference/deploy/docker/pypiserver/download_packages.py357 # ------------------------------------------------------------------COMMENT
MEDIUM…nference/deploy/docker/pypiserver/download_packages.py359 # ------------------------------------------------------------------COMMENT
MEDIUM…nference/deploy/docker/pypiserver/download_packages.py394 # ------------------------------------------------------------------COMMENT
MEDIUM…nference/deploy/docker/pypiserver/download_packages.py396 # ------------------------------------------------------------------COMMENT
MEDIUM…nference/deploy/docker/pypiserver/download_packages.py458 # ------------------------------------------------------------------COMMENT
MEDIUM…nference/deploy/docker/pypiserver/download_packages.py460 # ------------------------------------------------------------------COMMENT
MEDIUM…nference/deploy/docker/pypiserver/download_packages.py498 # ------------------------------------------------------------------COMMENT
MEDIUM…nference/deploy/docker/pypiserver/download_packages.py502 # ------------------------------------------------------------------COMMENT
337 more matches not shown…
Deep Nesting1158 hits · 1027 pts
SeverityFileLineSnippetContext
LOWbuild_backend.py111CODE
LOWbenchmark/benchmark_cross_engine_pd.py82CODE
LOWbenchmark/benchmark_cross_engine_pd.py288CODE
LOWbenchmark/benchmark_mlx_xavier.py106CODE
LOWbenchmark/benchmark_sglang_pd.py284CODE
LOWbenchmark/benchmark_sglang_pd.py467CODE
LOWbenchmark/benchmark_sglang_pd.py134CODE
LOWbenchmark/benchmark_runner.py88CODE
LOWbenchmark/benchmark_runner.py206CODE
LOWbenchmark/benchmark_nvidia_mlx_pd.py160CODE
LOWxinference/engine_hooks.py71CODE
LOWxinference/constants.py188CODE
LOWxinference/_model_catalog.py147CODE
LOWxinference/utils.py42CODE
LOWxinference/device_utils.py278CODE
LOWxinference/device_utils.py390CODE
LOWxinference/device_utils.py649CODE
LOWxinference/core/runtime_logs.py26CODE
LOWxinference/core/worker.py527CODE
LOWxinference/core/worker.py557CODE
LOWxinference/core/worker.py600CODE
LOWxinference/core/worker.py680CODE
LOWxinference/core/worker.py1000CODE
LOWxinference/core/worker.py1309CODE
LOWxinference/core/worker.py1684CODE
LOWxinference/core/worker.py1955CODE
LOWxinference/core/worker.py2016CODE
LOWxinference/core/worker.py2319CODE
LOWxinference/core/worker.py2444CODE
LOWxinference/core/worker.py2647CODE
LOWxinference/core/worker.py2785CODE
LOWxinference/core/worker.py3178CODE
LOWxinference/core/worker.py3296CODE
LOWxinference/core/worker.py3444CODE
LOWxinference/core/worker.py3634CODE
LOWxinference/core/worker.py3717CODE
LOWxinference/core/worker.py4312CODE
LOWxinference/core/worker.py4428CODE
LOWxinference/core/worker.py4542CODE
LOWxinference/core/worker.py5297CODE
LOWxinference/core/worker.py5551CODE
LOWxinference/core/worker.py5657CODE
LOWxinference/core/worker.py6057CODE
LOWxinference/core/worker.py6170CODE
LOWxinference/core/worker.py6252CODE
LOWxinference/core/worker.py6515CODE
LOWxinference/core/worker.py6545CODE
LOWxinference/core/worker.py6659CODE
LOWxinference/core/worker.py6804CODE
LOWxinference/core/metrics.py550CODE
LOWxinference/core/metrics.py1213CODE
LOWxinference/core/monitor_config_store.py156CODE
LOWxinference/core/supervisor.py123CODE
LOWxinference/core/supervisor.py182CODE
LOWxinference/core/supervisor.py652CODE
LOWxinference/core/supervisor.py1427CODE
LOWxinference/core/supervisor.py2414CODE
LOWxinference/core/supervisor.py2569CODE
LOWxinference/core/supervisor.py2965CODE
LOWxinference/core/supervisor.py3871CODE
1098 more matches not shown…
Excessive Try-Catch Wrapping992 hits · 912 pts
SeverityFileLineSnippetContext
LOWbuild_backend.py106 except Exception:CODE
LOWbenchmark/benchmark_mlx_xavier.py245 except Exception:CODE
LOWbenchmark/benchmark_sglang_pd.py166 except Exception as error:CODE
LOWbenchmark/benchmark_sglang_pd.py462 except Exception:CODE
LOWbenchmark/benchmark_runner.py198 except Exception:CODE
LOWbenchmark/benchmark_pd.py133 except Exception as exc:CODE
LOWxinference/engine_hooks.py168 except Exception:CODE
MEDIUMxinference/conftest.py121 print(f"Error while checking endpoint: {e}")CODE
LOWxinference/__init__.py31 except Exception:CODE
LOWxinference/__init__.py38except Exception:CODE
LOWxinference/extensions.py71 except Exception as error:CODE
MEDIUMxinference/device_utils.py64def _mps_empty_cache():CODE
MEDIUMxinference/device_utils.py318def get_nvidia_gpu_info() -> Dict[str, Any]:CODE
MEDIUMxinference/device_utils.py350def get_metax_gpu_info() -> Dict:CODE
MEDIUMxinference/device_utils.py365def get_rocm_gpu_info() -> Dict:CODE
LOWxinference/device_utils.py307 except Exception as e:CODE
LOWxinference/device_utils.py314 except Exception:CODE
LOWxinference/device_utils.py331 except Exception as e:CODE
LOWxinference/device_utils.py345 except Exception as e:CODE
LOWxinference/device_utils.py360 except Exception as e:CODE
LOWxinference/device_utils.py374 except Exception:CODE
LOWxinference/device_utils.py693 except Exception:CODE
LOWxinference/device_utils.py700 except Exception:CODE
LOWxinference/device_utils.py733 except Exception:CODE
MEDIUMxinference/core/worker.py1556def signal_handler():CODE
MEDIUMxinference/core/worker.py1573def trigger_exit(self) -> bool:CODE
MEDIUMxinference/core/worker.py1800def _record_model_versions_best_effort(self, cache_tracker_ref):CODE
LOW⚡xinference/core/worker.py522 except Exception as e:CODE
LOW⚡xinference/core/worker.py537 except Exception:CODE
LOW⚡xinference/core/worker.py547 except Exception:CODE
LOW⚡xinference/core/worker.py552 except Exception:CODE
LOW⚡xinference/core/worker.py1998 except Exception:CODE
LOW⚡xinference/core/worker.py2009 except Exception:CODE
LOWxinference/core/worker.py566 except Exception:CODE
LOWxinference/core/worker.py577 except Exception:CODE
LOWxinference/core/worker.py582 except Exception:CODE
LOWxinference/core/worker.py613 except Exception:CODE
LOWxinference/core/worker.py675 except Exception:CODE
LOWxinference/core/worker.py725 except Exception:CODE
LOWxinference/core/worker.py754 except Exception:CODE
LOWxinference/core/worker.py769 except Exception:CODE
LOWxinference/core/worker.py851 except Exception:CODE
LOWxinference/core/worker.py1005 except Exception:CODE
LOWxinference/core/worker.py1034 except Exception as e:CODE
LOWxinference/core/worker.py1059 except Exception:CODE
LOWxinference/core/worker.py1078 except Exception:CODE
LOWxinference/core/worker.py1080 except Exception:CODE
LOWxinference/core/worker.py1121 except Exception:CODE
LOWxinference/core/worker.py1146 except Exception as e:CODE
LOWxinference/core/worker.py1164 except Exception:CODE
LOWxinference/core/worker.py1188 except Exception:CODE
LOWxinference/core/worker.py1220 except Exception:CODE
LOWxinference/core/worker.py1354 except Exception:CODE
LOWxinference/core/worker.py1356 except Exception:CODE
LOWxinference/core/worker.py1397 except Exception:CODE
LOWxinference/core/worker.py1512 except Exception:CODE
LOWxinference/core/worker.py1520 except Exception:CODE
LOWxinference/core/worker.py1560 except Exception as e:CODE
LOWxinference/core/worker.py1576 except Exception as e:CODE
LOWxinference/core/worker.py1662 except Exception:CODE
932 more matches not shown…
Over-Commented Block902 hits · 864 pts
SeverityFileLineSnippetContext
LOWbuild_backend.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbuild_web.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbenchmark/benchmark_long.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbenchmark/utils.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbenchmark/benchmark_embedding.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbenchmark/benchmark_runner.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbenchmark/benchmark_latency.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbenchmark/benchmark_rerank.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbenchmark/benchmark_serving.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWbenchmark/tests/test_benchmark_embedding.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWfrontend/next.config.ts1// Output mode (build only):COMMENT
LOWfrontend/src/i18n/locales/zh-TW.ts1// Taiwan Traditional Chinese (zh-TW) localeCOMMENT
LOWxinference/engine_hooks.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/isolation.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/conftest.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/fields.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/constants.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/constants.py161COMMENT
LOWxinference/__init__.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/types.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/extensions.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/utils.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/device_utils.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/_compat.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/ui/__init__.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/worker.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/worker.py3901 # is detected, install from the matching GPU index so the GPU build isCOMMENT
LOWxinference/core/worker.py4801 # the virtualenv is populated: the subprocess boots onCOMMENT
LOWxinference/core/worker.py6601 from ..model.llm.transformers.tensorizer_utils import get_tensorizer_dirCOMMENT
LOWxinference/core/worker.py6941 async def recover_model(self, launch_args: Dict[str, Any]):COMMENT
LOWxinference/core/metrics.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/event.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/progress_tracker.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/log.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/monitor_config_store.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/supervisor.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/supervisor.py5981 # Keep worker-returned specs in _list_models_cache pristine. TheCOMMENT
LOWxinference/core/virtual_env_manager.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/virtual_env_manager.py181 ],COMMENT
LOWxinference/core/launch_strategy.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/resource.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/__init__.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/cache_tracker.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/autostart.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/http_protocol.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/replica_config.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/model.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/download_task_store.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/utils.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/status_guard.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/exceptions.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/rpc_context.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/launch_history_store.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/pd_model.py1# Copyright 2022-2026 XProbe Inc.COMMENT
LOWxinference/core/otel.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/system_settings_store.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/tests/test_virtual_env_manager.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/tests/test_model.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
LOWxinference/core/tests/test_continuous_batching.py1# Copyright 2022-2026 XProbe Inc.COMMENT
LOWxinference/core/tests/test_engine_discovery.py1# Copyright 2022-2026 Xinference Holdings Pte. LtdCOMMENT
842 more matches not shown…
AI Structural Patterns641 hits · 617 pts
SeverityFileLineSnippetContext
LOWxinference/core/worker.py3717CODE
LOWxinference/core/worker.py4542CODE
LOWxinference/core/worker.py6880CODE
LOWxinference/core/metrics.py1279CODE
LOWxinference/core/supervisor.py2804CODE
LOWxinference/core/supervisor.py2965CODE
LOWxinference/core/supervisor.py3871CODE
LOWxinference/core/supervisor.py8046CODE
LOWxinference/core/supervisor.py8062CODE
LOWxinference/core/tests/test_model_recommendation.py14CODE
LOWxinference/deploy/utils.py385CODE
LOWxinference/model/video/core.py172CODE
LOWxinference/model/llm/memory.py349CODE
LOWxinference/model/llm/lmdeploy/core.py308CODE
LOWxinference/model/llm/vllm/distributed_executor_v1.py338CODE
LOW…model/llm/vllm/xavier/xavier_remote_kvcache_manager.py150CODE
LOW…model/llm/vllm/xavier/xavier_remote_kvcache_manager.py180CODE
LOWxinference/model/llm/mlx/core.py424CODE
LOWxinference/model/llm/mlx/core.py619CODE
LOW…nference/model/embedding/sentence_transformers/core.py564CODE
LOWxinference/model/embedding/vllm/core.py371CODE
LOWxinference/model/embedding/vllm/core.py533CODE
LOWxinference/model/image/controlnet.py228CODE
LOWxinference/model/image/rng.py84CODE
LOWxinference/model/image/core.py291CODE
LOWxinference/model/image/tests/test_joyai_image.py137CODE
LOWxinference/model/image/tests/test_qwen_image21.py72CODE
LOWxinference/model/image/ocr/paddleocr_vl.py222CODE
LOWxinference/model/image/vllm/core.py82CODE
LOWxinference/model/image/stable_diffusion/core.py155CODE
LOWxinference/model/image/sglang/core.py69CODE
LOWxinference/model/rerank/sentence_transformers/core.py526CODE
LOWxinference/api/restful_api.py3324CODE
LOWxinference/api/restful_api.py3383CODE
LOWxinference/api/restful_api.py3623CODE
LOWxinference/api/restful_api.py1179CODE
LOWxinference/api/routers/admin.py874CODE
LOWxinference/api/routers/admin.py1985CODE
LOWxinference/api/oauth2/advanced/audit.py148CODE
LOWxinference/client/restful/restful_client.py1271CODE
LOWxinference/client/restful/async_restful_client.py1407CODE
LOW…ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py195CODE
LOW…ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py805CODE
LOW…hirdparty/fish_speech_s2/fish_speech/models/dac/rvq.py205CODE
LOW…sh_speech_s2/fish_speech/models/text2semantic/llama.py844CODE
LOW…peech_s2/fish_speech/models/text2semantic/inference.py523CODE
LOWxinference/thirdparty/cosyvoice/dataset/dataset.py104CODE
LOWxinference/thirdparty/cosyvoice/hifigan/generator.py397CODE
LOWxinference/thirdparty/cosyvoice/transformer/decoder.py58CODE
LOWxinference/thirdparty/cosyvoice/transformer/decoder.py276CODE
LOW…e/thirdparty/cosyvoice/transformer/upsample_encoder.py107CODE
LOWxinference/thirdparty/cosyvoice/transformer/encoder.py39CODE
LOWxinference/thirdparty/cosyvoice/transformer/encoder.py341CODE
LOWxinference/thirdparty/cosyvoice/transformer/encoder.py390CODE
LOWxinference/thirdparty/cosyvoice/utils/mask.py158CODE
LOWxinference/thirdparty/cosyvoice/cli/model.py170CODE
LOWxinference/thirdparty/cosyvoice/cli/model.py321CODE
LOWxinference/thirdparty/cosyvoice/flow/decoder.py295CODE
LOWxinference/thirdparty/cosyvoice/flow/flow.py25CODE
LOWxinference/thirdparty/cosyvoice/flow/flow.py152CODE
581 more matches not shown…
Modern Structural Boilerplate498 hits · 498 pts
SeverityFileLineSnippetContext
LOWbenchmark/benchmark_long.py27logger = logging.getLogger(__name__)CODE
LOWbenchmark/utils.py25logger = logging.getLogger(__name__)CODE
LOWbenchmark/benchmark_embedding.py27logger = logging.getLogger(__name__)CODE
LOWbenchmark/benchmark_runner.py28logger = logging.getLogger(__name__)CODE
LOWbenchmark/benchmark_latency.py26logger = logging.getLogger(__name__)CODE
LOWbenchmark/benchmark_rerank.py28logger = logging.getLogger(__name__)CODE
LOWbenchmark/benchmark_serving.py27logger = logging.getLogger(__name__)CODE
LOWxinference/engine_hooks.py37logger = logging.getLogger(__name__)CODE
LOWxinference/engine_hooks.py39__all__ = [CODE
LOWxinference/constants.py20logger = logging.getLogger(__name__)CODE
LOW⚡xinference/device_utils.py25logger = logging.getLogger(__name__)CODE
LOWxinference/core/worker.py1231 def update_system_settings(self, settings: Dict[str, Any]) -> None:CODE
LOW⚡xinference/core/metrics.py33logger = logging.getLogger(__name__)CODE
LOWxinference/core/metrics.py849def _update_token_router_gauges(cluster_data: Dict[str, Any]) -> None:CODE
LOWxinference/core/metrics.py1213def update_security_gauges(auth_service) -> None:CODE
LOWxinference/core/router_orchestration.py22logger = logging.getLogger(__name__)CODE
LOWxinference/core/progress_tracker.py37logger = logging.getLogger(__name__)CODE
LOWxinference/core/monitor_config_store.py22logger = logging.getLogger(__name__)CODE
LOWxinference/core/supervisor.py6443 async def update_system_settings(self, settings: Dict[str, Any]) -> None:CODE
LOWxinference/core/virtual_env_manager.py34logger = logging.getLogger(__name__)CODE
LOWxinference/core/http_protocol.py19logger = logging.getLogger(__name__)CODE
LOWxinference/core/model.py55logger = logging.getLogger(__name__)CODE
LOWxinference/core/utils.py43logger = logging.getLogger(__name__)CODE
LOWxinference/core/tokenizer_asset_registry.py22logger = logging.getLogger(__name__)CODE
LOWxinference/core/launch_history_store.py28logger = logging.getLogger(__name__)CODE
LOWxinference/core/pd_model.py33logger = logging.getLogger(__name__)CODE
LOWxinference/core/otel.py44logger = logging.getLogger(__name__)CODE
LOWxinference/core/system_settings_store.py30logger = logging.getLogger(__name__)CODE
LOWxinference/core/system_settings_store.py137 def set_optional(name: str, value: str) -> None:CODE
LOWxinference/deploy/worker.py27logger = logging.getLogger(__name__)CODE
LOWxinference/deploy/supervisor.py32logger = logging.getLogger(__name__)CODE
LOWxinference/deploy/local.py37logger = logging.getLogger(__name__)CODE
LOWxinference/deploy/router_agent.py8__all__ = ["main"]CODE
LOWxinference/deploy/utils.py48logger = logging.getLogger(__name__)CODE
LOWxinference/deploy/utils.py984def set_process_log_identity(role: str, address: str) -> None:CODE
LOWxinference/deploy/router.py8__all__ = ["main"]CODE
LOWxinference/model/custom.py26logger = logging.getLogger(__name__)CODE
LOWxinference/model/oci_utils.py30logger = logging.getLogger(__name__)CODE
LOWxinference/model/cache_manager.py9logger = logging.getLogger(__name__)CODE
LOWxinference/model/batch.py24logger = logging.getLogger(__name__)CODE
LOWxinference/model/llmman.py42logger = logging.getLogger(__name__)CODE
LOWxinference/model/utils.py69logger = logging.getLogger(__name__)CODE
LOWxinference/model/video/mlx_video.py42logger = logging.getLogger(__name__)CODE
LOWxinference/model/video/core.py23logger = logging.getLogger(__name__)CODE
LOWxinference/model/video/engine_family.py22logger = logging.getLogger(__name__)CODE
LOWxinference/model/video/diffusers.py49logger = logging.getLogger(__name__)CODE
LOWxinference/model/video/tests/test_diffusers_video.py23logger = logging.getLogger(__name__)CODE
LOWxinference/model/llm/reasoning_parser.py12logger = logging.getLogger(__name__)CODE
LOWxinference/model/llm/custom.py24logger = logging.getLogger(__name__)CODE
LOWxinference/model/llm/cache_manager.py26logger = logging.getLogger(__name__)CODE
LOWxinference/model/llm/llm_family.py44logger = logging.getLogger(__name__)CODE
LOWxinference/model/llm/core.py35logger = logging.getLogger(__name__)CODE
LOWxinference/model/llm/utils.py63logger = logging.getLogger(__name__)CODE
LOWxinference/model/llm/weight_cache.py34logger = logging.getLogger(__name__)CODE
LOW…ence/model/llm/tool_parsers/deepseek_v4_tool_parser.py9logger = logging.getLogger(__name__)CODE
LOW…rence/model/llm/tool_parsers/minimax_m3_tool_parser.py10logger = logging.getLogger(__name__)CODE
LOW…ence/model/llm/tool_parsers/deepseek_v3_tool_parser.py9logger = logging.getLogger(__name__)CODE
LOWxinference/model/llm/tool_parsers/gemma_tool_parser.py9logger = logging.getLogger(__name__)CODE
LOW…nference/model/llm/tool_parsers/minimax_tool_parser.py9logger = logging.getLogger(__name__)CODE
LOW…nference/model/llm/tool_parsers/kimi_k3_tool_parser.py9logger = logging.getLogger(__name__)CODE
438 more matches not shown…
Docstring Block Structure66 hits · 330 pts
SeverityFileLineSnippetContext
HIGHxinference/utils.py87 Recursively convert an object into a hashable form. This function is useful for creating deterministic cache kSTRING
HIGHxinference/deploy/utils.py1266Convert CLI string arguments to appropriate Python types. Handles type conversion for Click command arguments with STRING
HIGH…ence/model/llm/tool_parsers/deepseek_v4_tool_parser.py102 Extract tool calls from complete model output. Args: model_output: The complete output strSTRING
HIGH…ce/model/llm/tool_parsers/deepseek_v3_2_tool_parser.py102 Extract tool calls from complete model output. Args: model_output: The complete output strSTRING
HIGHxinference/model/embedding/core.py382 Extract the 'sentences' argument and remaining kwargs from (*args, **kwargs) for a given function. STRING
HIGHxinference/model/rerank/sentence_transformers/core.py817 Extract the 'documents' and 'query' argument and remaining kwargs from (*args, **kwargs) for a given fuSTRING
HIGHxinference/model/rerank/vllm/core.py520 Extract the 'documents' and 'query' argument and remaining kwargs from (*args, **kwargs) for a given fuSTRING
HIGHxinference/api/utils.py103 Get a model with standardized error handling. Replaces the repeated pattern: ```python try: moSTRING
HIGHxinference/thirdparty/cosyvoice/utils/mask.py18 def subsequent_mask( size: int, device: torch.device = torch.device("cpu"), ) -> torch.Tensor: """CSTRING
HIGHxinference/thirdparty/cosyvoice/utils/mask.py57Create mask for subsequent steps (size, size). This mask is used only in decoder which works in an auto-regressive STRING
HIGHxinference/thirdparty/cosyvoice/utils/mask.py95Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: sSTRING
HIGHxinference/thirdparty/cosyvoice/utils/mask.py133Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: sSTRING
HIGHxinference/thirdparty/cosyvoice/utils/mask.py240Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: lengthSTRING
HIGHxinference/thirdparty/cosyvoice/utils/common.py30Perform padding for the list of tensors. Args: xs (List): List of Tensors [(T_1, `*`), (T_2, `*`), ..., (T_STRING
HIGHxinference/thirdparty/cosyvoice/flow/decoder.py211Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channelsSTRING
HIGHxinference/thirdparty/cosyvoice/flow/decoder.py406Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channelsSTRING
HIGH…hirdparty/controlnet/annotator/mmpkg/mmcv/fileio/io.py19Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. STRING
HIGH…hirdparty/controlnet/annotator/mmpkg/mmcv/fileio/io.py70Dump data to json/yaml/pickle strings or files. This method provides a unified api for dumping data as strings or tSTRING
HIGH…/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py312Download a file from ``filepath`` and return a temporary path. ``get_local_path`` is decorated by :meth:`contxtSTRING
HIGH…/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py732A general file client to access files in different backends. The client loads a file or text in a specified backendSTRING
HIGH…/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py838Parse the prefix of a uri. Args: uri (str | Path): Uri to be parsed that contains the file prefix. STRING
HIGH…/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py869Infer a suitable file client based on the URI and arguments. Args: file_client_args (dict, optionalSTRING
HIGH…/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py1106Download data from ``filepath`` and write the data to local path. ``get_local_path`` is decorated by :meth:`conSTRING
HIGH…dparty/controlnet/annotator/mmpkg/mmcv/fileio/parse.py11Load a text file and parse the content as a list of strings. Note: In v1.3.16 and later, ``list_from_file``STRING
HIGH…dparty/controlnet/annotator/mmpkg/mmcv/fileio/parse.py53Load a text file and parse the content as a dict. Each line of the text file will be two or more columns split by STRING
HIGH…irdparty/controlnet/annotator/mmpkg/mmcv/utils/misc.py39Import modules from the given list of strings. Args: imports (list | str | None): The given module names toSTRING
HIGH…dparty/controlnet/annotator/mmpkg/mmcv/utils/config.py283merge dict ``a`` into dict ``b`` (non-inplace). Values in ``a`` will overwrite ``b``. ``b`` is copied first to STRING
HIGH…dparty/controlnet/annotator/mmpkg/mmcv/utils/config.py627Parse iterable values in the string. All elements inside '()' or '[]' are treated as iterable values. STRING
HIGH…rolnet/annotator/mmpkg/mmcv/cnn/utils/flops_counter.py122Convert FLOPs number into a string. Note that Here we take a multiply-add counts as one FLOP. Args: flSTRING
HIGH…rolnet/annotator/mmpkg/mmcv/cnn/utils/flops_counter.py165Convert parameter number into a string. Args: num_params (float): Parameter number to be converted. STRING
HIGH…rence/thirdparty/controlnet/annotator/openpose/util.py301 Detect hands in the input body pose keypoints and calculate the bounding box for each hand. Args: bodySTRING
HIGH…rence/thirdparty/controlnet/annotator/openpose/util.py413 Detect the face in the input body pose keypoints and calculate the bounding box for the face. Args: boSTRING
HIGH…controlnet/annotator/oneformer/oneformer/data/build.py63 Similar to `build_detection_train_loader`, with default batch size = 1, and sampler = :class:`InferenceSampler`STRING
HIGH…trolnet/annotator/oneformer/detectron2/utils/memory.py28 Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after callinSTRING
HIGH…tator/oneformer/detectron2/modeling/backbone/resnet.py501 Create a list of blocks of the same type that forms one ResNet stage. Args: block_class (tSTRING
HIGH…ontrolnet/annotator/oneformer/detectron2/data/build.py516 Similar to `build_detection_train_loader`, with default batch size = 1, and sampler = :class:`InferenceSampler`STRING
HIGH…t/annotator/oneformer/detectron2/data/datasets/coco.py43 Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segmeSTRING
HIGH…t/annotator/oneformer/detectron2/data/datasets/coco.py253 Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are treated as ground trSTRING
HIGH…t/annotator/oneformer/detectron2/data/datasets/lvis.py46 Load a json file in LVIS's annotation format. Args: json_file (str): full path to the LVIS json annotaSTRING
HIGH…r/oneformer/detectron2/data/transforms/augmentation.py117 Execute the policy based on input data, and decide what transform to apply to inputs. Args: STRING
HIGH…ules/efficientnet_repo/geffnet/efficientnet_builder.py613Decode block definition string Gets a list of block arg (dicts) through a string notation of arguments. E.g. irSTRING
HIGH…u1/prompt_enhance/adapters/chat_completions_adapter.py154Extract the assistant message text from a chat/completions response. Handles both plain-string and list-of-contSTRING
HIGH…u1/prompt_enhance/adapters/chat_completions_adapter.py191Call the ``/chat/completions`` endpoint with vision content. Args: user_prompt: User-facing text inSTRING
HIGH…irdparty/sensenova_u1/prompt_enhance/adapters/utils.py13Read raw image bytes from a path or return bytes unchanged. Args: image: File path to an image, or raw imagSTRING
HIGH…senova_u1/prompt_enhance/adapters/anthropic_adapter.py160Extract the assistant message text from Anthropic Messages response. Handles responses with or without content STRING
HIGH…senova_u1/prompt_enhance/adapters/anthropic_adapter.py193Call the ``/v1/messages`` endpoint with vision content. Args: user_prompt: User-facing text instrucSTRING
HIGH…ce/thirdparty/ace_step_1_5/acestep/model_downloader.py711Resolve a VAE variant id (or absolute path) to its on-disk directory. Args: checkpoint_dir: Root checkpointSTRING
HIGH…/third_parts/nano-vllm/nanovllm/engine/model_runner.py30Encode IPC arguments to UTF-8 JSON bytes for shared-memory transport. Replaces ``pickle`` to avoid arbitrary code eSTRING
HIGH…/third_parts/nano-vllm/nanovllm/engine/model_runner.py84Find an available port starting from start_port. Args: start_port: The starting port number to check STRING
HIGH…1_5/acestep/core/generation/handler/lyric_timestamp.py28Generate LRC timestamps by aligning decoder cross-attention to lyric tokens. Args: pred_latent (torSTRING
HIGH…estep/core/generation/handler/generate_music_decode.py27Collect decode inputs and validate raw diffusion latents. Args: outputs: ``service_generate`` outpuSTRING
HIGH…e/generation/handler/init_service_loader_components.py27Load the VAE checkpoint and return its resolved path. Args: checkpoint_dir: Root checkpoint directoSTRING
HIGH…e/generation/handler/init_service_loader_components.py69Load the text tokenizer and embedding model, then return its path. Args: checkpoint_dir: Root checkSTRING
HIGH…tep_1_5/acestep/core/generation/handler/lyric_score.py27Calculate lyric alignment scores for pure-noise and regressed-latent inputs. Args: pred_latent (torSTRING
HIGH…e_step_1_5/acestep/core/generation/handler/io_audio.py14Read an audio file, with torchaudio fallback for formats unsupported by soundfile. soundfile (libsndfile) supports STRING
HIGH…_1_5/acestep/core/generation/handler/generate_music.py252Generate audio from text/reference inputs and return response payload. Args: captions: Text prompt STRING
HIGH…pytorch/pytorchocr/modeling/backbones/rec_pphgnetv2.py545use 'handle_func' to modify the sub-layer(s) specified by 'layer_name_pattern'. Args: layer_name_paSTRING
HIGH…party/megatts3/tts/modules/ar_dur/commons/seq_utils.py113Make mask tensor containing indices of padded part. Args: lengths (LongTensor or List): Batch of lengths (B,STRING
HIGH…party/megatts3/tts/modules/ar_dur/commons/seq_utils.py219Make mask tensor containing indices of non-padded part. Args: lengths (LongTensor or List): Batch of lengthsSTRING
HIGH…arty/diffusers_community/stable_diffusion_reference.py282 Check the validity of the input arguments for the diffusion model. Args: prompt (Optional[STRING
6 more matches not shown…
Dead Code131 hits · 191 pts
SeverityFileLineSnippetContext
MEDIUM…ference/model/llm/vllm/xavier/xavier_scheduler_hook.py368CODE
MEDIUMxinference/model/image/ocr/deepdoc.py338CODE
MEDIUMxinference/api/tests/test_streaming_outcome.py139CODE
MEDIUM…thirdparty/controlnet/annotator/manga_line/__init__.py36CODE
MEDIUM…thirdparty/controlnet/annotator/manga_line/__init__.py44CODE
MEDIUM…thirdparty/controlnet/annotator/manga_line/__init__.py59CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py296CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py298CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py299CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py303CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py307CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py309CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py322CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py324CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py326CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py327CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py337CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py342CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py343CODE
MEDIUM…ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py344CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py273CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py275CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py276CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py278CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py279CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py281CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py282CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py287CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py288CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py289CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py298CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py300CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py310CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py312CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py313CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py325CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py329CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py353CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py357CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py361CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py362CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py364CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py368CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py369CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py383CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py384CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py385CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py386CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py387CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py388CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py389CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py395CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py396CODE
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py397CODE
MEDIUM…dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py775CODE
MEDIUM…dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py776CODE
MEDIUM…dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py777CODE
MEDIUM…dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py779CODE
MEDIUM…dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py780CODE
MEDIUM…dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py782CODE
71 more matches not shown…
Self-Referential Comments64 hits · 180 pts
SeverityFileLineSnippetContext
MEDIUM⚡xinference/core/tests/test_restful_api.py1684 # Create a mock handler with the conversion methodCOMMENT
MEDIUM⚡xinference/core/tests/test_restful_api.py1691 # Create a temporary RESTfulAPI instance to access the methodCOMMENT
MEDIUM⚡xinference/deploy/test/test_log_rotation.py214 # Create a file dated 100 days agoCOMMENT
MEDIUMxinference/model/utils.py3209 # Create a mapping of updated_at to model for comparisonCOMMENT
MEDIUMxinference/model/llm/vllm/distributed_executor_v1.py150 # Create the parallel GPU workers.COMMENT
MEDIUMxinference/model/llm/vllm/distributed_executor.py146 # Create the parallel GPU workers.COMMENT
MEDIUM…el/llm/vllm/xavier/test/test_remote_kvcache_manager.py44 # Create a XavierRemoteKVCacheManager instance and inject mocked dependenciesCOMMENT
MEDIUMxinference/model/llm/transformers/chatglm.py126 # This method is adapted from https://github.com/THUDM/GLM-4/blob/main/basic_demo/openai_api_server.pyCOMMENT
MEDIUM⚡xinference/model/llm/transformers/core.py69# Define the decorator to support multiple names registrationCOMMENT
MEDIUM⚡…erence/model/llm/transformers/tests/test_tensorizer.py100 # Create a dummy cache file to simulate cache existenceCOMMENT
MEDIUM…ence/model/embedding/vllm/tests/test_vllm_embedding.py104 # Create a long text that exceeds 512 tokensCOMMENT
MEDIUMxinference/model/audio/utils.py298 # Create the file, close our handle immediately, and clean it upCOMMENT
MEDIUMxinference/model/rerank/sentence_transformers/core.py330 # Create a simple wrapper for return value conversion only.COMMENT
MEDIUM…nce/thirdparty/fish_speech_s2/fish_speech/tokenizer.py81 # Create a lookup tensor to handle potential gaps in token IDs safelyCOMMENT
MEDIUM…ch_s2/fish_speech/inference_engine/reference_loader.py36 # Define the torchaudio backendCOMMENT
MEDIUM…ish_speech_s2/fish_speech/inference_engine/__init__.py166 # Create a queue to get the responseCOMMENT
MEDIUM…ator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py146 # Create a map (ModuleDict) of 'name' -> seed_bin_regressorCOMMENT
MEDIUM…ator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py170 # Create a map (ModuleDict) of 'name' -> attractors (ModuleList)COMMENT
MEDIUM…net/annotator/mmpkg/mmcv/runner/default_constructor.py13 >>> # Define a new RunnerReconstructorSTRING
MEDIUM…/thirdparty/controlnet/annotator/mmpkg/mmcv/ops/nms.py12# This function is modified from: https://github.com/pytorch/vision/COMMENT
MEDIUM…rolnet/annotator/mmpkg/mmcv/ops/deprecated_wrappers.py2# This file is for backward compatibility.COMMENT
MEDIUM…/controlnet/annotator/leres/pix2pix/util/image_pool.py7 """This class implements an image buffer that stores previously generated images.STRING
MEDIUM…/annotator/leres/pix2pix/models/pix2pix4depth_model.py8 """This class implements the pix2pix model, for learning a mapping from input images to output images given paired dSTRING
MEDIUM…ontrolnet/annotator/leres/pix2pix/models/base_model.py13 """This class is an abstract base class (ABC) for models.STRING
MEDIUM…trolnet/annotator/oneformer/detectron2/utils/events.py398 # Create a histogram with PyTorchCOMMENT
MEDIUMxinference/thirdparty/audiotools/ml/accelerator.py14 """This class is used to prepare models and dataloaders forSTRING
MEDIUMxinference/thirdparty/fish_speech/tools/run_webui.py73 # Create the inference engineCOMMENT
MEDIUM…rence/thirdparty/fish_speech/tools/vqgan/extract_vq.py24# This file is used to convert the audio files to text files using the Whisper model.COMMENT
MEDIUM…fish_speech/tools/server/agent/pre_generation_utils.py39 # Create a conversation object and encode it for inferenceCOMMENT
MEDIUM…fish_speech/tools/inference_engine/reference_loader.py29 # Define the torchaudio backendCOMMENT
MEDIUM…rdparty/fish_speech/tools/inference_engine/__init__.py166 # Create a queue to get the responseCOMMENT
MEDIUM…erence/thirdparty/fish_speech/fish_speech/i18n/scan.py55# Define the standard file nameCOMMENT
MEDIUM…erence/thirdparty/fish_speech/fish_speech/i18n/scan.py78# Define the standard file nameCOMMENT
MEDIUM…arty/sensenova_u1/models/neo_unify/modeling_neo_vit.py38 # Create the batch index for each patch (B x patch count)COMMENT
MEDIUM…rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py134 # Create the batch index for each patch (B x patch count)COMMENT
MEDIUM…dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py1147 # Create the masksCOMMENT
MEDIUMxinference/thirdparty/melo/text/japanese.py540# Initialize kakasi objectCOMMENT
MEDIUMxinference/thirdparty/melo/text/japanese.py636# # Initialize kakasi objectCOMMENT
MEDIUMxinference/thirdparty/melo/text/korean.py181# # Initialize kakasi objectCOMMENT
MEDIUM…ference/thirdparty/ace_step_1_5/acestep/audio_utils.py83 # Create a copy to avoid modifying original in-placeCOMMENT
MEDIUMxinference/thirdparty/ace_step_1_5/acestep/inference.py960 # Create a copy of params dict for this audioCOMMENT
MEDIUMxinference/thirdparty/f5_tts/infer/utils_infer.py509 # Create a combined spectrogramCOMMENT
MEDIUMxinference/thirdparty/magika/magika.py561 # The following code checks whether the score is "high enough", whereCOMMENT
MEDIUMxinference/thirdparty/deepseek_vl/serve/app_deepseek.py96 # Create a copy of the conversation to avoid history truncation in the UICOMMENT
MEDIUM…ish_speech_s1/fish_speech/inference_engine/__init__.py166 # Create a queue to get the responseCOMMENT
MEDIUMxinference/thirdparty/mineru/utils/model_utils.py28 # Create a white background arrayCOMMENT
MEDIUMxinference/thirdparty/mineru/utils/model_utils.py38 # Create a white background arrayCOMMENT
MEDIUMxinference/thirdparty/mineru/utils/draw_bbox.py65 rect = cal_canvas_rect(page, bbox) # Define the rectangleCODE
MEDIUMxinference/thirdparty/mineru/utils/draw_bbox.py84 rect = cal_canvas_rect(page, bbox) # Define the rectangleCODE
MEDIUM⚡xinference/thirdparty/megatts3/tts/infer_cli.py49 # Define the output path with a .wav extensionCOMMENT
MEDIUM⚡…erence/thirdparty/megatts3/tts/utils/audio_utils/io.py63 # Define the output path with a .wav extensionCOMMENT
MEDIUM…party/ming_image/diffusion/autoencoder_kl_qwenimage.py354 # Create the componentsSTRING
MEDIUMxinference/thirdparty/mlx/flux/flux.py142 # Create the latent variablesCOMMENT
MEDIUMxinference/thirdparty/matcha/onnx/export.py164 # Create the output directory (if not exists)COMMENT
MEDIUMxinference/thirdparty/indextts/infer_v2.py1134 # Create a temporary file for the complete audioCOMMENT
MEDIUM…irdparty/indextts/gpt/transformers_generation_utils.py431 # Create the causal mask with fixed shape in advance, to reduce recompilations. If the function to createCOMMENT
MEDIUMxinference/thirdparty/indextts/BigVGAN/ECAPA_TDNN.py246 """This class implements an attentive statistic pooling layer for each channel.STRING
MEDIUMxinference/thirdparty/indextts/BigVGAN/ECAPA_TDNN.py585 """This class implements the cosine similarity on the top of features.STRING
MEDIUMxinference/thirdparty/indextts/BigVGAN/nnet/CNN.py24 """This function implements SincConv (SincNet).STRING
MEDIUMxinference/thirdparty/indextts/BigVGAN/nnet/CNN.py306 """This function implements 1d convolution.STRING
4 more matches not shown…
Cross-Language Confusion31 hits · 171 pts
SeverityFileLineSnippetContext
HIGHbenchmark/benchmark_runner.py142 # "finish_reason": null,COMMENT
HIGHbenchmark/tests/test_analyze_pd_profile.py53 '{"stage": "load_rpc", "succeeded": true, "elapsed_s": 1, "nbytes": null}',CODE
HIGHxinference/deploy/docker/pypiserver/selfcheck.py90 # live in a writable directory (not /dev/null).COMMENT
HIGH⚡xinference/deploy/test/test_utils.py276 arg = '{"int_val": 10, "float_val": 1.5, "bool_val": false, "null_val": null}'CODE
HIGHxinference/deploy/test/test_utils.py382 result = handle_click_args_type('[1, "two", null, true, {"key": "value"}]')CODE
HIGHxinference/model/llm/tool_parsers/llama3_tool_parser.py53 # (e.g., True/False/None instead of true/false/null).COMMENT
HIGH⚡…odel/llm/tool_parsers/tests/test_llama3_tool_parser.py41 model_output = '{"name": "test_func", "parameters": {"value": null}}'CODE
HIGH…lm/tool_parsers/tests/test_deepseek_v41_tool_parser.py13 '<|DSML| parameter name="data" string="false">{"a": [1, null]}</|DSML| parameter>\n'CODE
HIGHxinference/model/llm/tests/test_utils.py2962 "arguments": None, # null, left as-isCODE
HIGHxinference/model/llm/tests/test_utils.py2980 "arguments": "null", # valid JSON null, left as-isCODE
HIGH⚡xinference/model/image/ocr/tests/test_deepdoc_parse.py167 # The field is omitted rather than set to null, so clients can relyCOMMENT
HIGHxinference/model/audio/minimax_music3.py172 "MiniMax-Music3 only accepts `voice` as null, an empty string, "CODE
HIGHxinference/model/audio/ace_step.py350 "ACE-Step 1.5 only accepts `voice` as null, an empty string, "CODE
HIGHxinference/model/audio/yue2.py173 "YuE2 only accepts `voice` as null, an empty string, or 'default'."CODE
HIGHxinference/api/restful_api.py1322 "npm ci && npm run build" (this stages the export at the directoryCODE
HIGH…nference/api/tests/test_frontend_static_real_export.py18(``cd frontend && npm run build``) and runs this module againstSTRING
HIGHxinference/api/tests/test_anthropic_messages.py146 '"finish_reason":null}]}\n\n'CODE
HIGHxinference/api/tests/test_token_router_dispatch.py1272 yield b'data: {"choices":[{"delta":{"content":"hello"},"finish_reason":null}]}\n\n'CODE
HIGH…rty/controlnet/annotator/oneformer/pycocotools/coco.py18# captions not all functions are defined (e.g. categories are undefined).COMMENT
HIGHxinference/thirdparty/audiotools/preference.py179 if (region != null) {CODE
HIGH…ference/thirdparty/fish_speech/tools/webui/__init__.py18 js="() => {const params = new URLSearchParams(window.location.search);if (!params.has('__theme')) {params.seCODE
HIGH…ference/thirdparty/irodori_tts/gradio_emoji_palette.py113 "const input=root?document.querySelector(root.dataset.target):null;"STRING
HIGH…rence/thirdparty/ace_step_1_5/acestep/llm_inference.py800 logger.error("nano-vllm is not installed. Please install it using 'cd acestep/third_parts/nano-vllm && pip iCODE
HIGH…rence/thirdparty/ace_step_1_5/acestep/llm_inference.py801 return "❌ nano-vllm is not installed. Please install it using 'cd acestep/third_parts/nano-vllm && pip instaCODE
HIGH…ce_step_1_5/acestep/models/common/flow_edit_helpers.py50 """Reduce a ``(cond, null)``-packed prediction to a guided velocity.STRING
HIGH…ce_step_1_5/acestep/models/common/flow_edit_helpers.py184 torch.cat([enc_hs, null], dim=0),CODE
HIGH…model/mfr/unimernet/unimernet_hf/modeling_unimernet.py337 r'\\(?:lefteqn|boldmath|ensuremath|centering|textsubscript|sides|textsl|textcent|emph|protect|null)')CODE
HIGH…odels/codec/speechtokenizer/modules/quantization/ac.py138 self.packer.push(b1)CODE
HIGH…odels/codec/speechtokenizer/modules/quantization/ac.py185 self.packer.push(b1)CODE
HIGH…odels/codec/speechtokenizer/modules/quantization/ac.py304 encoder.push(symbol, q_cdf)CODE
HIGH…nce/thirdparty/indextts/s2mel/modules/flow_matching.py88 # Stack original and CFG (null) inputs for batched processingCOMMENT
Redundant / Tautological Comments120 hits · 159 pts
SeverityFileLineSnippetContext
LOWxinference/core/worker.py3818 # Check if packages contain PyTorch system markers (#system_torch#, etc.)COMMENT
LOWxinference/core/worker.py4718 # Check if cancelled while waiting in queueCOMMENT
LOWxinference/model/utils.py3050 # Check if flash_attn is installedCOMMENT
LOWxinference/model/utils.py3058 # Check if CUDA is availableCOMMENT
LOWxinference/model/llm/reasoning_parser.py55 # Check if <think> is present in previous or delta.COMMENT
LOWxinference/model/llm/llm_family.py422 # Append the class to the list of transformer classesCOMMENT
LOWxinference/model/llm/harmony.py60 # Check if buffer ends with partial 'assistantfinal'COMMENT
LOWxinference/model/llm/harmony.py76 # Check if this is actually a new message starting with 'analysis'COMMENT
LOWxinference/model/llm/harmony.py102 # Check if buffer ends with partial 'assistantfinal'COMMENT
LOWxinference/model/llm/tool_parsers/qwen_tool_parser.py365 # Check if current output contains tool_call start tokenCOMMENT
LOW…ence/model/llm/tool_parsers/deepseek_r1_tool_parser.py86 # Check if this block is a tool callCOMMENT
LOWxinference/model/llm/tests/test_llm_model.py311 # Check if tool_calls is present and is a listCOMMENT
LOWxinference/model/llm/tests/test_llm_model.py325 # Check if arguments is a valid JSON stringCOMMENT
LOWxinference/model/llm/vllm/xavier/legacy_engine.py125 # Check if we have a cached last_output from the previous iteration.COMMENT
LOW…ce/model/llm/vllm/patches/hybrid_kv_cache_page_size.py107 # Check if the original problematic code existsCOMMENT
LOW…ce/model/llm/vllm/patches/hybrid_kv_cache_page_size.py119 # Check if all smaller pages divide max evenlyCOMMENT
LOWxinference/model/llm/transformers/core.py474 # Check if streamingCOMMENT
LOWxinference/model/llm/transformers/core.py1112 # Check if streamingCOMMENT
LOW⚡…erence/model/llm/transformers/tests/test_tensorizer.py118 # Check if the logger.info was called with the expected message, indicating early return due to cache existenceCOMMENT
LOWxinference/model/llm/mlx/core.py184 # Check if next_generated method exists (new API)COMMENT
LOWxinference/model/llm/mlx/core.py494 # Check if there are any pending results (early results that arrived before queue was ready)COMMENT
LOWxinference/model/llm/mlx/core.py546 # Check if generation is finishedCOMMENT
LOWxinference/model/llm/mlx/core.py571 # Check if request is still in active setCOMMENT
LOWxinference/model/llm/mlx/core.py2282 # Check if processor supports audio to avoid feature_extractor errorsCOMMENT
LOWxinference/model/embedding/core.py236 # Check if sentences is a two-dimensional list of integersCOMMENT
LOWxinference/model/image/stable_diffusion/core.py1081 # Check if we have a cancel callback for this requestCOMMENT
LOW…/thirdparty/fish_speech_s2/fish_speech/utils/schema.py69 ): # Check if audio is a string (Base64)CODE
LOW…ch_s2/fish_speech/inference_engine/reference_loader.py170 # Check if directory contains at least one audio file and corresponding .lab fileCOMMENT
LOW…ch_s2/fish_speech/inference_engine/reference_loader.py177 # Check if corresponding .lab file exists for at least one audio fileCOMMENT
LOW…ch_s2/fish_speech/inference_engine/reference_loader.py206 # Check if reference already existsCOMMENT
LOW…ch_s2/fish_speech/inference_engine/reference_loader.py211 # Check if audio file existsCOMMENT
LOW…hirdparty/controlnet/annotator/leres/leres/depthmap.py288 # Check if patching is beneficial by comparing the gradient density of the patch toCOMMENT
LOW…hirdparty/controlnet/annotator/leres/leres/depthmap.py303 # Check if we are still within the imageCOMMENT
LOW…hirdparty/controlnet/annotator/leres/leres/depthmap.py512 # Check if Local boosting is beneficial.COMMENT
LOW…lnet/annotator/oneformer/detectron2/config/defaults.py244# Set this to -1 to use the same number of output channels as input channels.COMMENT
LOW…lnet/annotator/oneformer/detectron2/config/defaults.py631# Set seed to negative to fully randomize everything.COMMENT
LOW…lnet/annotator/oneformer/detectron2/config/defaults.py632# Set seed to positive to use a fixed seed. Note that a fixed seed increasesCOMMENT
LOW…e/thirdparty/mineru_vl_utils/post_process/otsl2html.py25 # Check if this is a native BoundingBox or a bbox from docling-ibm-modelsCOMMENT
LOWxinference/thirdparty/fish_speech/tools/run_webui.py48 # Check if MPS or CUDA is availableCOMMENT
LOW…e/thirdparty/fish_speech/tools/server/model_manager.py37 # Check if MPS or CUDA is availableCOMMENT
LOWxinference/thirdparty/fish_speech/tools/server/views.py159 # Check if the text is too longCOMMENT
LOWxinference/thirdparty/fish_speech/tools/server/views.py166 # Check if streaming is enabledCOMMENT
LOW…/thirdparty/fish_speech/tools/server/agent/generate.py64 # Check if all samples are finishedCOMMENT
LOW…rty/fish_speech/tools/server/agent/generation_utils.py102 # Check if the token is semanticCOMMENT
LOW…nference/thirdparty/ace_step_1_5/acestep/gpu_config.py1217 # Check if a per-process memory fraction has been setCOMMENT
LOW…nference/thirdparty/ace_step_1_5/acestep/gpu_config.py1400 # Check if model size is in available modelsCOMMENT
LOW…rence/thirdparty/ace_step_1_5/acestep/llm_inference.py1688 # Check if user provided a meaningful negative prompt (not the default)COMMENT
LOW…rence/thirdparty/ace_step_1_5/acestep/llm_inference.py2889 # Check if this is a new field (no leading spaces and contains ':')COMMENT
LOW…rence/thirdparty/ace_step_1_5/acestep/llm_inference.py2979 # Check if keys need "model." prefix by inspecting first keyCOMMENT
LOW…rence/thirdparty/ace_step_1_5/acestep/llm_inference.py3287 # Check if all items are doneCOMMENT
LOW…ce/thirdparty/ace_step_1_5/acestep/model_downloader.py646 # Check if this is a known LM modelCOMMENT
LOW…ce/thirdparty/ace_step_1_5/acestep/model_downloader.py648 # Check if it might be a variant nameCOMMENT
LOW…ce/thirdparty/ace_step_1_5/acestep/model_downloader.py689 # Check if this is the default turbo model (part of main)COMMENT
LOW…ce/thirdparty/ace_step_1_5/acestep/model_downloader.py693 # Check if it's a known sub-modelCOMMENT
LOWxinference/thirdparty/ace_step_1_5/acestep/inference.py742 # Check if LM generation failedCOMMENT
LOWxinference/thirdparty/ace_step_1_5/acestep/inference.py913 # Check if generation failedCOMMENT
LOWxinference/thirdparty/ace_step_1_5/acestep/inference.py1154 # Check if LLM is initializedCOMMENT
LOWxinference/thirdparty/ace_step_1_5/acestep/inference.py1178 # Check if LLM returned empty metadata (error case)COMMENT
LOWxinference/thirdparty/ace_step_1_5/acestep/inference.py1331 # Check if LLM is initializedCOMMENT
LOWxinference/thirdparty/ace_step_1_5/acestep/inference.py1353 # Check if LLM returned empty metadata (error case)COMMENT
60 more matches not shown…
Modern AI Meta-Vocabulary18 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUMxinference/core/tests/test_model.py278 # rerank/embedding model must run del + empty_cache so its VRAM isCOMMENT
MEDIUMxinference/core/tests/test_worker.py2606 # test terminate LLM model, then launch embedding modelCOMMENT
MEDIUM…erence/model/llm/vllm/xavier/test/test_gpu_transfer.py17 # Run transport orchestration on CPU; real CUDA IPC/NIXL is covered by theCOMMENT
MEDIUMxinference/model/llm/models/gpt-oss.json145 "chat_template": "{#-\n In addition to the normal inputs of `messages` and `tools`, this template also accepts the\CODE
MEDIUM⚡xinference/model/embedding/embed_family.py115# { embedding model name -> { engine name -> engine params } }COMMENT
MEDIUMxinference/model/embedding/core.py97# this class define the basic info of embedding modelCOMMENT
MEDIUMxinference/model/embedding/core.py104 # Extra accepted input modalities. Text is implicit for every embedding model.COMMENT
MEDIUM…nference/model/embedding/sentence_transformers/core.py752 # seems already support prompt in embedding modelCOMMENT
MEDIUM⚡xinference/api/restful_api.py1206 # Attach API instance for dependency injection (Depends(get_api), etc.)COMMENT
MEDIUMxinference/api/schemas/requests.py39 # <0 = cap at the model's max_tokens. Honored by the embedding model baseCOMMENT
MEDIUM…ference/thirdparty/deepseek_vl2/models/conversation.py33 # The number of few shot examplesCOMMENT
MEDIUM…irdparty/sensenova_u1/models/neo_unify/conversation.py52 # The number of few shot examplesCOMMENT
MEDIUMxinference/thirdparty/deepseek_vl/utils/conversation.py65 # The number of few shot examplesCOMMENT
MEDIUMxinference/thirdparty/internvl/conversation.py50 # The number of few shot examplesCOMMENT
MEDIUMxinference/thirdparty/whisper/transcribe.py402 # skip silence before possible hallucinationsCOMMENT
MEDIUM⚡xinference/thirdparty/whisper/transcribe.py414 # if first segment might be a hallucination, skip leading silenceCOMMENT
MEDIUM⚡xinference/thirdparty/whisper/transcribe.py422 # skip silence before any possible hallucination that is surroundedCOMMENT
MEDIUM⚡xinference/thirdparty/whisper/transcribe.py423 # by silence or more hallucinationsCOMMENT
AI Slop Vocabulary29 hits · 57 pts
SeverityFileLineSnippetContext
LOWxinference/model/utils.py3203 # New model from user, just add itCOMMENT
LOW⚡xinference/model/llm/llm_family.py648 # TODO: If user does not specify quantization, just use the first oneCOMMENT
MEDIUMxinference/model/llm/core.py252 # Use model_specs from huggingface, as HuggingFace is the most comprehensive.COMMENT
LOW⚡xinference/model/embedding/embed_family.py105 # TODO: If user does not specify quantization, just use the first oneCOMMENT
LOWxinference/model/rerank/rerank_family.py104 # TODO: If user does not specify quantization, just use the first oneCOMMENT
LOW…erence/thirdparty/cosyvoice/transformer/convolution.py124 # It's better we just return None if no cache is required,COMMENT
MEDIUMxinference/thirdparty/cosyvoice/utils/executor.py45 # A context manager to be used in conjunction with an instance ofCOMMENT
MEDIUMxinference/thirdparty/cosyvoice/utils/executor.py97 # A context manager to be used in conjunction with an instance ofCOMMENT
LOW…tor/mmpkg/mmcv/runner/optimizer/default_constructor.py249 # if no paramwise option is specified, just use the global settingCOMMENT
MEDIUM…hirdparty/controlnet/annotator/leres/leres/depthmap.py656 # We use a simple Gaussian mask to blend the merged patch region with the base estimate to ensure seamlessCOMMENT
LOW…ontrolnet/annotator/oneformer/detectron2/layers/nms.py18 # just call it directly.COMMENT
LOW⚡…lnet/annotator/oneformer/detectron2/config/defaults.py40# To train on images of different number of channels, just set different mean & std.COMMENT
LOW…r/oneformer/detectron2/modeling/roi_heads/fast_rcnn.py360 # Here we just use proposal_boxes as an arbitrary placeholder because itsCOMMENT
LOW…ontrolnet/annotator/oneformer/detectron2/export/c10.py563 # just return the keypoint heatmap for now,COMMENT
LOW…notator/oneformer/detectron2/export/caffe2_modeling.py79 # used anyway when batch size is 0, so just set them to 0.COMMENT
MEDIUMxinference/thirdparty/sensenova_u1/utils/param_count.py166 # parameter, which is robust to mixed-dtype checkpoints (e.g. normsCOMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py1793 # Avoid infinite recursion: if we're still in a fixed_strings state, just return scoresCOMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py1795 # This shouldn't happen, but if it does, just return scores to avoid recursionCOMMENT
LOW…ep/third_parts/nano-vllm/nanovllm/engine/llm_engine.py65 # For now, just use the same prompt (user should provide unconditional_prompt)COMMENT
MEDIUM…irdparty/ace_step_1_5/acestep/core/scoring/lm_score.py339 # Calculate recall using the robust logicCOMMENT
LOWxinference/thirdparty/f5_tts/model/cfm.py136 duration = torch.maximum(lens + 1, duration) # just add one token so something is generatedCODE
LOWxinference/thirdparty/f5_tts/model/dataset.py214 # if want to have different batches between epochs, may just set a seed and log it in ckptCOMMENT
MEDIUMxinference/thirdparty/f5_tts/infer/speech_edit.py54# [leverage https://github.com/MahmoudAshraf97/ctc-forced-aligner to get char level alignment]COMMENT
MEDIUM…eocr2pytorch/pytorchocr/postprocess/rec_postprocess.py111 ): # grouping word with '-', such as 'state-of-the-art'CODE
MEDIUM…irdparty/indextts/gpt/transformers_generation_utils.py372 # (this alternative is not as robust as calling `generate` and letting it create `cache_position`)COMMENT
MEDIUM…irdparty/indextts/gpt/transformers_generation_utils.py648 # 1. Check whether the user has defined `decoder_input_ids` manually. To facilitate in terms of input naming,COMMENT
LOW…ce/thirdparty/indextts/gpt/transformers_beam_search.py854 # generation. In these cases we simply return the highest scoring outputs.STRING
LOW…thirdparty/indextts/gpt/transformers_modeling_utils.py5402 # We can probably just use the multi-head attention module of PyTorch >=1.1.0STRING
LOWxinference/thirdparty/indextts/gpt/conformer_encoder.py146 # It's better we just return None if no cache is required,COMMENT
Verbosity Indicators30 hits · 49 pts
SeverityFileLineSnippetContext
LOW⚡…m/tool_parsers/tests/test_deepseek_v3_1_tool_parser.py301 # Step 1: Part 1 of end tokenCOMMENT
LOW⚡…m/tool_parsers/tests/test_deepseek_v3_1_tool_parser.py308 # Step 2: Part 2 of end tokenCOMMENT
LOWxinference/model/llm/tests/test_stream_options.py1015 # Step 1: Get the initial response with stream=TrueCOMMENT
LOWxinference/model/llm/tests/test_stream_options.py1033 # Step 2: Get the final response after tool calls with stream=TrueCOMMENT
LOWxinference/model/llm/tests/test_stream_options.py1051 # Step 3: Get the initial response with stream=FalseCOMMENT
LOWxinference/model/llm/tests/test_stream_options.py1068 # Step 4: Get the final response after tool calls with stream=FalseCOMMENT
LOW…n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h174 // Step 1:COMMENT
LOW…n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h186 // Step 2:COMMENT
LOW…n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h197 // Step 3:COMMENT
LOW…n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h243 // Step 4:COMMENT
LOW…n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h259 // Step 5:COMMENT
LOWxinference/thirdparty/fish_speech/tools/fish_e2e.py106 # Step 1: Encode audio using VQGANCOMMENT
LOWxinference/thirdparty/fish_speech/tools/fish_e2e.py135 # Step 2: Prepare LLM requestCOMMENT
LOWxinference/thirdparty/fish_speech/tools/fish_e2e.py182 # Step 3: Stream LLM response and decode audioCOMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py719 # Step 1: Encode full string "keyscale: {keyscale}" (with space, as tokenizer sees it)COMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py723 # Step 2: Find where context ends in full_token_idsCOMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py738 # Step 3: Extract keyscale value tokens (everything after context)COMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py741 # Step 4: Verify we extracted some tokens (sanity check)COMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py747 # Step 5: Verify first token is a note (A-G)COMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py759 # Step 6: Build prefix mappings from keyscale value tokensCOMMENT
LOW⚡…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py156 # Step 1: Concatenate hidden states and masks along sequence dimensionCOMMENT
LOW⚡…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py162 # Step 2: Sort indices so that mask values of 1 come before 0COMMENT
LOW⚡…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py165 # Step 3: Reorder hidden states using sorted indicesCOMMENT
LOW⚡…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py168 # Step 4: Create new mask based on valid sequence lengthsCOMMENT
LOW…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py500 # Step 1: Self-attention with adaptive layer norm (AdaLN)COMMENT
LOW…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py516 # Step 2: Cross-attention (if enabled) for conditioning on encoder outputsCOMMENT
LOW…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py531 # Step 3: Feed-forward (MLP) with adaptive layer normCOMMENT
LOW⚡…hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py329 # Step 1: Self-attention with AdaLNCOMMENT
LOW⚡…hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py339 # Step 2: Cross-attentionCOMMENT
LOW⚡…hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py350 # Step 3: MLP with AdaLNCOMMENT
Structural Annotation Overuse29 hits · 44 pts
SeverityFileLineSnippetContext
LOW⚡…m/tool_parsers/tests/test_deepseek_v3_1_tool_parser.py301 # Step 1: Part 1 of end tokenCOMMENT
LOW⚡…m/tool_parsers/tests/test_deepseek_v3_1_tool_parser.py308 # Step 2: Part 2 of end tokenCOMMENT
LOWxinference/model/llm/tests/test_stream_options.py1015 # Step 1: Get the initial response with stream=TrueCOMMENT
LOWxinference/model/llm/tests/test_stream_options.py1033 # Step 2: Get the final response after tool calls with stream=TrueCOMMENT
LOWxinference/model/llm/tests/test_stream_options.py1051 # Step 3: Get the initial response with stream=FalseCOMMENT
LOWxinference/model/llm/tests/test_stream_options.py1068 # Step 4: Get the final response after tool calls with stream=FalseCOMMENT
LOW…rolnet/annotator/oneformer/detectron2/export/shared.py87 # NOTE: The input dimensions are interpreted in the form:COMMENT
LOWxinference/thirdparty/fish_speech/tools/fish_e2e.py106 # Step 1: Encode audio using VQGANCOMMENT
LOWxinference/thirdparty/fish_speech/tools/fish_e2e.py135 # Step 2: Prepare LLM requestCOMMENT
LOWxinference/thirdparty/fish_speech/tools/fish_e2e.py182 # Step 3: Stream LLM response and decode audioCOMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py719 # Step 1: Encode full string "keyscale: {keyscale}" (with space, as tokenizer sees it)COMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py723 # Step 2: Find where context ends in full_token_idsCOMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py738 # Step 3: Extract keyscale value tokens (everything after context)COMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py741 # Step 4: Verify we extracted some tokens (sanity check)COMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py747 # Step 5: Verify first token is a note (A-G)COMMENT
LOW⚡…y/ace_step_1_5/acestep/constrained_logits_processor.py759 # Step 6: Build prefix mappings from keyscale value tokensCOMMENT
LOW⚡…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py156 # Step 1: Concatenate hidden states and masks along sequence dimensionCOMMENT
LOW⚡…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py162 # Step 2: Sort indices so that mask values of 1 come before 0COMMENT
LOW⚡…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py165 # Step 3: Reorder hidden states using sorted indicesCOMMENT
LOW⚡…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py168 # Step 4: Create new mask based on valid sequence lengthsCOMMENT
LOW…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py500 # Step 1: Self-attention with adaptive layer norm (AdaLN)COMMENT
LOW…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py516 # Step 2: Cross-attention (if enabled) for conditioning on encoder outputsCOMMENT
LOW…1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py531 # Step 3: Feed-forward (MLP) with adaptive layer normCOMMENT
LOW⚡…hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py329 # Step 1: Self-attention with AdaLNCOMMENT
LOW⚡…hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py339 # Step 2: Cross-attentionCOMMENT
LOW⚡…hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py350 # Step 3: MLP with AdaLNCOMMENT
LOW…irdparty/indextts/gpt/transformers_generation_utils.py3549 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING
LOW…irdparty/indextts/gpt/transformers_generation_utils.py3842 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING
LOW…irdparty/indextts/gpt/transformers_generation_utils.py4080 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING
Hallucination Indicators3 hits · 35 pts
SeverityFileLineSnippetContext
CRITICAL…nference/model/embedding/tests/test_embeddinggemma2.py186 model._model.register_forward_pre_hook.return_value.remove.assert_called_once()CODE
CRITICAL⚡…nference/model/embedding/tests/test_embeddinggemma2.py206 model._model.register_forward_pre_hook.return_value.remove.assert_called_once()CODE
CRITICALxinference/thirdparty/audiotools/core/util.py475 batch[k] = torch.utils.data._utils.collate.default_collate(v)CODE
Slop Phrases6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM…rty/controlnet/annotator/oneformer/oneformer/config.py146 # you can use this config to overrideCOMMENT
MEDIUM⚡…lnet/annotator/oneformer/detectron2/config/defaults.py45# Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std)COMMENT
MEDIUMxinference/thirdparty/melo/text/chinese.py73 assert len(word2ph) == len(text) # Sometimes it will crash,you can add a try-catch.CODE
MEDIUMxinference/thirdparty/melo/text/chinese_mix.py80 # assert len(word2ph) == len(text) # Sometimes it will crash,you can add a try-catch.COMMENT
LOW⚡…rence/thirdparty/ace_step_1_5/acestep/llm_inference.py2907 # Don't forget to save the last fieldCOMMENT
MEDIUM…nce/thirdparty/f5_tts/train/datasets/prepare_emilia.py2# if use updated new version, i.e. WebDataset, feel free to modify / draft your own scriptCOMMENT
Synthetic Comment Markers1 hit · 11 pts
SeverityFileLineSnippetContext
HIGH⚡xinference/api/tests/test_ocr_pdf.py531 # 200 A4 pages at zoomin 3 is only 0.902 G px as requested, so theCOMMENT
Fake / Example Data8 hits · 9 pts
SeverityFileLineSnippetContext
LOWfrontend/src/components/ui/segmented.tsx17 'placeholder'CODE
LOW…/controlnet/annotator/leres/pix2pix/models/networks.py365 netD, real_data, fake_data, device, type="mixed", constant=1.0, lambda_gp=10.0CODE
LOW…/controlnet/annotator/leres/pix2pix/models/networks.py372 fake_data (tensor array) -- generated images from the generatorSTRING
LOW…/controlnet/annotator/leres/pix2pix/models/networks.py386 interpolatesv = fake_dataCODE
LOW…/controlnet/annotator/leres/pix2pix/models/networks.py396 interpolatesv = alpha * real_data + ((1 - alpha) * fake_data)CODE
LOW⚡doc/source/norm_zh.py62 ... "Lorem ipsum dolor sit amet, consectetur adipisicing elit, "CODE
LOW⚡doc/source/norm_zh.py62 ... "Lorem ipsum dolor sit amet, consectetur adipisicing elit, "CODE
LOW⚡doc/source/norm_zh.py66 " \"Lorem ipsum dolor sit "CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHxinference/thirdparty/fish_speech/tools/api_client.py176 "authorization": "Bearer YOUR_API_KEY",CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…rty/controlnet/annotator/oneformer/pycocotools/mask.py39# Usage:COMMENT
LOWxinference/thirdparty/fish_speech/tools/fish_e2e.py263# Example usage:COMMENT
LOW…party/matcha/utils/get_durations_from_trained_model.py192 # Example usage:STRING
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOW…y/controlnet/annotator/mmpkg/mmcv/runner/fp16_utils.py84 >>> def do_something(self, pred, others):STRING
LOW…ce/thirdparty/fish_speech/tools/llama/build_dataset.py65def run_task(task):CODE
LOWxinference/thirdparty/mineru/utils/run_async.py38 def helper():CODE