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.
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 8119 finding(s).
Are imports declared and package/API names verified? 2641 finding(s).
Are wrappers, guards, and repeated structures necessary? 8503 finding(s).
Which changes need focused human review? 13573 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build_backend.py | 46 | def _validate_builtin_model_specs(root=None): | CODE |
| LOW | benchmark/utils.py | 169 | def _num_special_tokens_to_add(tokenizer: "PreTrainedTokenizerBase") -> int: | CODE |
| LOW | benchmark/utils.py | 234 | def _gen_prompt_decode_to_target_len( | CODE |
| LOW | benchmark/utils.py | 300 | def _generate_prompt_with_target_len( | CODE |
| LOW | benchmark/benchmark_serving.py | 30 | def _validate_random_range_ratio(value: float, name: str) -> float: | CODE |
| LOW | benchmark/tests/test_benchmark_pd.py | 15 | def test_goodput_excludes_errors_and_missing_token_timing(): | CODE |
| LOW | benchmark/tests/test_benchmark_pd.py | 32 | def test_rss_sampling_recovers_from_process_races(monkeypatch, stage, error): | CODE |
| LOW | benchmark/tests/test_benchmark_pd.py | 59 | async def test_gpu_sampler_records_failure_and_continues(monkeypatch, error): | CODE |
| LOW | benchmark/tests/test_benchmark_pd.py | 109 | def test_native_sglang_benchmark_does_not_launch_or_terminate_models( | CODE |
| LOW | benchmark/tests/test_benchmark_pd.py | 161 | async def test_completion_workload_uses_completion_stream_and_token_usage(monkeypatch): | CODE |
| LOW | benchmark/tests/test_analyze_pd_profile.py | 16 | def test_nested_profile_stages_are_not_added_and_failures_are_separate(): | CODE |
| LOW | benchmark/tests/test_analyze_pd_profile.py | 56 | def test_invalid_events_do_not_discard_valid_measurements(payload): | CODE |
| LOW | benchmark/tests/test_benchmark_sglang_pd.py | 25 | def test_isolation_rejects_unrelated_allocations_but_accepts_owned_children( | CODE |
| LOW | benchmark/tests/test_benchmark_sglang_pd.py | 37 | def test_gpu_monitor_error_cannot_produce_an_accepted_sample(benchmark, monkeypatch): | CODE |
| LOW | benchmark/tests/test_benchmark_sglang_pd.py | 51 | def test_client_readiness_and_failed_launch_always_clean_up_owned_server( | CODE |
| LOW | benchmark/tests/test_benchmark_sglang_pd.py | 75 | def test_completed_trial_keeps_telemetry_when_next_trial_resets_guard( | CODE |
| LOW | benchmark/tests/test_benchmark_sglang_pd.py | 120 | def test_source_manifest_is_independent_of_working_directory( | CODE |
| LOW | benchmark/tests/test_benchmark_embedding.py | 48 | async def test_exact_requests_concurrency_and_connection_reuse( | CODE |
| LOW | benchmark/tests/test_benchmark_embedding.py | 100 | async def test_failures_are_counted_and_excluded_from_throughput(runner_class, capsys): | CODE |
| LOW | benchmark/tests/test_benchmark_embedding.py | 140 | async def test_cancellation_closes_session_and_workers(runner_class): | CODE |
| LOW | …register-model/[modelType]/[modelName]/page-client.tsx | 9 | export default function RegisterModelEditPageClient() { | CODE |
| LOW | …ntend/src/app/running-model/[modelUid]/page-client.tsx | 7 | export default function RunningModelDetailPageClient() { | CODE |
| LOW | …d/src/components/pages/log-center/runtime-log-utils.ts | 24 | export function normalizeRuntimeLogSource(source: RuntimeLogSource): NormalizedRuntimeLogSource { | CODE |
| LOW | …d/src/components/pages/log-center/runtime-log-utils.ts | 39 | export function runtimeLogSourceSearchText( | CODE |
| LOW | …d/src/components/pages/log-center/runtime-log-utils.ts | 74 | export function buildHistoricalHandoffQueryState( | CODE |
| LOW | …d/src/components/pages/log-center/runtime-log-utils.ts | 148 | export function getRuntimeHistoricalSearch(entry: RuntimeLogEntry): { | CODE |
| LOW | …d/src/components/pages/log-center/runtime-log-utils.ts | 315 | export function getRuntimeLogSourceColorIndex(source: string, colorCount: number): number { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 234 | export function getLaunchModelEndpointType(type: RequestModelType) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 288 | function restoreNestedFormListObject(values: FormValues, parent: string, field: string) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 303 | function transformOnlyValueFormListToArray(values: FormValues, field: string) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 327 | function transformArrayToOnlyValueFormList(values: FormValues, field: string) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 377 | function applyNestedFormListObject(values: FormValues, parent: string, field: string) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 399 | function deleteNestedEmptyArrayField(values: FormValues, parent: string, field: string) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 733 | function parseReplicaConfigCommandValue(value: string) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 799 | export function generateCommandLineStatement(params: FormValues) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 1144 | export function isVisibleRequiredLaunchField(field: LaunchFieldConfig) { | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 1189 | export function reconcileWorkerSelectionForDevice( | CODE |
| LOW | frontend/src/components/pages/launch-model/utils.tsx | 1209 | export function reconcileGpuIndexesForDevice( | CODE |
| LOW | …nts/pages/launch-model/launch-dialog/recommendation.ts | 19 | export function recommendationUnavailable(values: FormValues) { | CODE |
| LOW | …nts/pages/launch-model/launch-dialog/recommendation.ts | 128 | export function recommendationWarningKeys(response: RecommendationResponse) { | CODE |
| LOW | …/launch-model/launch-dialog/use-launch-history-form.ts | 9 | export function replaceLaunchHistoryFormSnapshot( | CODE |
| LOW | …nents/pages/running-model-detail/capability-config.tsx | 145 | function appendCommonMediaFormData(formData: FormData, context: TransformContext) { | CODE |
| LOW | …nents/pages/running-model-detail/capability-config.tsx | 175 | function appendCommonVideoFormData(formData: FormData, context: TransformContext) { | CODE |
| LOW | …end/src/components/pages/running-model-detail/utils.ts | 202 | export function transformFileInfoForResult(message?: ChatChoicesMessage) { | CODE |
| LOW | …nts/pages/running-model-detail/emotion-vector-utils.ts | 28 | export function parseIndexTTSEmotionVector(value: unknown): number[] | undefined { | CODE |
| LOW | …ts/pages/running-model-detail/panels/result-panels.tsx | 456 | function SpeakerEmbeddingResultPanel({ result }: { result: unknown }) { | CODE |
| LOW | …ts/pages/token-router/router-runtime-detail-drawer.tsx | 61 | export function RouterRuntimeDetailDrawer({ router, open, onOpenChange }: Props) { | CODE |
| LOW | …ponents/pages/token-router/router-config-normalizer.ts | 224 | export function normalizeTokenRouterRuntimeInstances(value: unknown): TokenRouterRuntimeInstance[] { | CODE |
| LOW | …ponents/pages/token-router/router-config-normalizer.ts | 230 | export function normalizeTokenRouterRuntimeInstance( | CODE |
| LOW | …ponents/pages/token-router/router-config-normalizer.ts | 271 | export function normalizeTokenRouterAssignments(value: unknown): TokenRouterAssignment[] { | CODE |
| LOW | …s/pages/token-router/tokenizer-asset-binding-status.ts | 13 | export function getBindingDesiredStateLabel(t: TFunc, state: BindingDesiredState): string { | CODE |
| LOW | …s/pages/token-router/tokenizer-asset-binding-status.ts | 17 | export function getBindingObservedStateLabel(t: TFunc, state: string): string { | CODE |
| LOW | …s/pages/token-router/tokenizer-asset-binding-status.ts | 43 | export function getBindingObservedStateBadgeVariant(state: string): BadgeVariant { | CODE |
| LOW | xinference/engine_hooks.py | 95 | def _validate_preserved_engines(before: EngineTable, candidate: EngineTable) -> None: | CODE |
| LOW | xinference/engine_hooks.py | 115 | def register_engine_registration_hook( | CODE |
| LOW | xinference/engine_hooks.py | 141 | def _run_engine_registration_hooks(model_type: str, target: EngineTable) -> None: | CODE |
| LOW | xinference/conftest.py | 178 | def run_test_cluster_in_subprocess( | CODE |
| LOW | xinference/constants.py | 124 | def _parse_virtual_env_find_links_allowed_roots( | CODE |
| LOW | xinference/constants.py | 188 | def _get_or_create_persisted_secret(env_name: str, file_name: str) -> str: | CODE |
| LOW | xinference/types.py | 382 | def get_pydantic_model_from_method( | CODE |
| 4989 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | xinference/model/video/__init__.py | 0 | load downloaded json configurations from the builtin directory. | STRING |
| HIGH | xinference/model/llm/__init__.py | 0 | load downloaded json configurations from the builtin directory. | STRING |
| HIGH | xinference/model/embedding/__init__.py | 0 | load downloaded json configurations from the builtin directory. | STRING |
| HIGH | xinference/model/image/__init__.py | 0 | load downloaded json configurations from the builtin directory. | STRING |
| HIGH | xinference/model/audio/__init__.py | 0 | load downloaded json configurations from the builtin directory. | STRING |
| HIGH | xinference/model/rerank/__init__.py | 0 | load downloaded json configurations from the builtin directory. | STRING |
| HIGH | xinference/model/video/engine_family.py | 0 | whether the engine implements the model, ignoring host constraints. | STRING |
| HIGH | xinference/model/audio/engine_family.py | 0 | whether the engine implements the model, ignoring host constraints. | STRING |
| HIGH | xinference/model/world/engine_family.py | 0 | whether the engine implements the model, ignoring host constraints. | STRING |
| HIGH | …ence/model/llm/tool_parsers/deepseek_v3_tool_parser.py | 0 | extract tool calls from complete model output. parses the model output to find json code blocks containing tool calls an | STRING |
| HIGH | xinference/model/llm/tool_parsers/glm5_tool_parser.py | 0 | extract tool calls from complete model output. parses the model output to find json code blocks containing tool calls an | STRING |
| HIGH | …ce/model/llm/tool_parsers/deepseek_v3_1_tool_parser.py | 0 | extract tool calls from complete model output. parses the model output to find json code blocks containing tool calls an | STRING |
| HIGH | xinference/model/llm/tool_parsers/glm4_tool_parser.py | 0 | extract tool calls from complete model output. parses the model output to find json code blocks containing tool calls an | STRING |
| HIGH | …/thirdparty/fish_speech_s2/fish_speech/conversation.py | 0 | visualize 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.py | 0 | visualize 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.py | 0 | visualize 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.py | 0 | list files in a directory. args: path (path): path to the directory. extensions (set, optional): extensions to filter. d | STRING |
| HIGH | xinference/thirdparty/fish_speech/tools/file.py | 0 | list files in a directory. args: path (path): path to the directory. extensions (set, optional): extensions to filter. d | STRING |
| HIGH | …ce/thirdparty/fish_speech_s1/fish_speech/utils/file.py | 0 | list files in a directory. args: path (path): path to the directory. extensions (set, optional): extensions to filter. d | STRING |
| HIGH | …ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py | 0 | remove padding from x, handling properly zero padding. only for 1d! | STRING |
| HIGH | …hirdparty/fish_speech_s2/fish_speech/models/dac/rvq.py | 0 | remove padding from x, handling properly zero padding. only for 1d! | STRING |
| HIGH | …ish_speech/fish_speech/models/vqgan/modules/firefly.py | 0 | remove padding from x, handling properly zero padding. only for 1d! | STRING |
| HIGH | …ty/fish_speech_s1/fish_speech/models/dac/modded_dac.py | 0 | remove padding from x, handling properly zero padding. only for 1d! | STRING |
| HIGH | …hirdparty/fish_speech_s1/fish_speech/models/dac/rvq.py | 0 | remove padding from x, handling properly zero padding. only for 1d! | STRING |
| HIGH | …s/maskgct/models/codec/speechtokenizer/modules/conv.py | 0 | remove padding from x, handling properly zero padding. only for 1d! | STRING |
| HIGH | …ference/thirdparty/indextts/s2mel/dac/model/encodec.py | 0 | remove padding from x, handling properly zero padding. only for 1d! | STRING |
| HIGH | xinference/thirdparty/indextts/s2mel/modules/encodec.py | 0 | remove padding from x, handling properly zero padding. only for 1d! | STRING |
| HIGH | …ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py | 0 | tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 padd | STRING |
| HIGH | …hirdparty/fish_speech_s2/fish_speech/models/dac/rvq.py | 0 | tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 padd | STRING |
| HIGH | …ish_speech/fish_speech/models/vqgan/modules/firefly.py | 0 | tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 padd | STRING |
| HIGH | …ty/fish_speech_s1/fish_speech/models/dac/modded_dac.py | 0 | tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 padd | STRING |
| HIGH | …hirdparty/fish_speech_s1/fish_speech/models/dac/rvq.py | 0 | tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 padd | STRING |
| HIGH | …s/maskgct/models/codec/speechtokenizer/modules/conv.py | 0 | tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 padd | STRING |
| HIGH | …ference/thirdparty/indextts/s2mel/dac/model/encodec.py | 0 | tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 padd | STRING |
| HIGH | xinference/thirdparty/indextts/s2mel/modules/encodec.py | 0 | tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 padd | STRING |
| HIGH | …ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py | 0 | encode given audio data and return quantized latent codes parameters ---------- audio_data : tensor[b x 1 x t] audio dat | STRING |
| HIGH | …ty/fish_speech_s1/fish_speech/models/dac/modded_dac.py | 0 | encode given audio data and return quantized latent codes parameters ---------- audio_data : tensor[b x 1 x t] audio dat | STRING |
| HIGH | xinference/thirdparty/dacvae/dacvae/model/dacvae.py | 0 | encode given audio data and return quantized latent codes parameters ---------- audio_data : tensor[b x 1 x t] audio dat | STRING |
| HIGH | xinference/thirdparty/indextts/s2mel/dac/model/dac.py | 0 | encode given audio data and return quantized latent codes parameters ---------- audio_data : tensor[b x 1 x t] audio dat | STRING |
| HIGH | …ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py | 0 | decode given latent codes and return audio data parameters ---------- z : tensor[b x d x t] quantized continuous represe | STRING |
| HIGH | xinference/thirdparty/indextts/s2mel/dac/model/dac.py | 0 | decode given latent codes and return audio data parameters ---------- z : tensor[b x d x t] quantized continuous represe | STRING |
| HIGH | xinference/thirdparty/dacvae/dacvae/model/dacvae.py | 0 | decode given latent codes and return audio data parameters ---------- z : tensor[b x d x t] quantized continuous represe | STRING |
| HIGH | …ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py | 0 | model forward pass parameters ---------- audio_data : tensor[b x 1 x t] audio data to encode sample_rate : int, optional | STRING |
| HIGH | …ty/fish_speech_s1/fish_speech/models/dac/modded_dac.py | 0 | model forward pass parameters ---------- audio_data : tensor[b x 1 x t] audio data to encode sample_rate : int, optional | STRING |
| HIGH | xinference/thirdparty/dacvae/dacvae/model/dacvae.py | 0 | model forward pass parameters ---------- audio_data : tensor[b x 1 x t] audio data to encode sample_rate : int, optional | STRING |
| HIGH | xinference/thirdparty/indextts/s2mel/dac/model/dac.py | 0 | model forward pass parameters ---------- audio_data : tensor[b x 1 x t] audio data to encode sample_rate : int, optional | STRING |
| HIGH | …hirdparty/fish_speech_s2/fish_speech/models/dac/rvq.py | 0 | convnext block. there are two equivalent implementations: (1) dwconv -> layernorm (channels_first) -> 1x1 conv -> gelu - | STRING |
| HIGH | …ish_speech/fish_speech/models/vqgan/modules/firefly.py | 0 | convnext 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.py | 0 | convnext block. there are two equivalent implementations: (1) dwconv -> layernorm (channels_first) -> 1x1 conv -> gelu - | STRING |
| HIGH | …peech_s2/fish_speech/models/text2semantic/inference.py | 0 | takes a conditioning sequence (prompt) as input and continues to generate as many tokens as requested. | STRING |
| HIGH | …ference/thirdparty/fish_speech/tools/llama/generate.py | 0 | takes a conditioning sequence (prompt) as input and continues to generate as many tokens as requested. | STRING |
| HIGH | …peech_s1/fish_speech/models/text2semantic/inference.py | 0 | takes a conditioning sequence (prompt) as input and continues to generate as many tokens as requested. | STRING |
| HIGH | …thirdparty/indextts/s2mel/modules/gpt_fast/generate.py | 0 | takes 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.py | 0 | component of the ttsinferenceengine class. loads and manages the cache for the reference audio and text. | STRING |
| HIGH | …fish_speech/tools/inference_engine/reference_loader.py | 0 | component 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.py | 0 | component 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__.py | 0 | main inference function: - loads the reference audio and text. - calls the llama model for inference. - decodes the vq t | STRING |
| HIGH | …rdparty/fish_speech/tools/inference_engine/__init__.py | 0 | main inference function: - loads the reference audio and text. - calls the llama model for inference. - decodes the vq t | STRING |
| HIGH | …ish_speech_s1/fish_speech/inference_engine/__init__.py | 0 | main inference function: - loads the reference audio and text. - calls the llama model for inference. - decodes the vq t | STRING |
| HIGH | …ish_speech_s2/fish_speech/inference_engine/__init__.py | 0 | send a request to the llama model to generate the symbolic tokens. | STRING |
| 423 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build_backend.py | 38 | CODE | |
| LOW | benchmark/utils.py | 29 | CODE | |
| LOW | xinference/__init__.py | 37 | CODE | |
| LOW | xinference/extensions.py | 28 | CODE | |
| LOW | xinference/device_utils.py | 134 | CODE | |
| LOW | xinference/device_utils.py | 143 | CODE | |
| LOW | xinference/device_utils.py | 152 | CODE | |
| LOW | xinference/device_utils.py | 161 | CODE | |
| LOW | xinference/device_utils.py | 162 | CODE | |
| LOW | xinference/device_utils.py | 171 | CODE | |
| LOW | xinference/_compat.py | 22 | CODE | |
| LOW | xinference/_compat.py | 22 | CODE | |
| LOW | xinference/_compat.py | 22 | CODE | |
| LOW | xinference/_compat.py | 22 | CODE | |
| LOW | xinference/_compat.py | 22 | CODE | |
| LOW | xinference/_compat.py | 22 | CODE | |
| LOW | xinference/_compat.py | 22 | CODE | |
| LOW | xinference/_compat.py | 34 | CODE | |
| LOW | xinference/_compat.py | 35 | CODE | |
| LOW | xinference/_compat.py | 36 | CODE | |
| LOW | xinference/_compat.py | 37 | CODE | |
| LOW | xinference/_compat.py | 39 | CODE | |
| LOW | xinference/_compat.py | 39 | CODE | |
| LOW | xinference/_compat.py | 39 | CODE | |
| LOW | xinference/_compat.py | 39 | CODE | |
| LOW | xinference/_compat.py | 39 | CODE | |
| LOW | xinference/_compat.py | 39 | CODE | |
| LOW | xinference/_compat.py | 39 | CODE | |
| LOW | xinference/_compat.py | 51 | CODE | |
| LOW | xinference/_compat.py | 52 | CODE | |
| LOW | xinference/_compat.py | 53 | CODE | |
| LOW | xinference/_compat.py | 54 | CODE | |
| LOW | xinference/core/tokenizer_asset_store.py | 4 | CODE | |
| LOW | xinference/core/router_orchestration.py | 4 | CODE | |
| LOW | xinference/core/router_config_store.py | 10 | CODE | |
| LOW | xinference/core/supervisor.py | 66 | CODE | |
| LOW | xinference/core/supervisor.py | 103 | CODE | |
| LOW | xinference/core/supervisor.py | 104 | CODE | |
| LOW | xinference/core/supervisor.py | 106 | CODE | |
| LOW | xinference/core/supervisor.py | 107 | CODE | |
| LOW | xinference/core/supervisor.py | 108 | CODE | |
| LOW | xinference/core/supervisor.py | 109 | CODE | |
| LOW | xinference/core/launch_strategy.py | 22 | CODE | |
| LOW | xinference/core/router_scheduler.py | 4 | CODE | |
| LOW | xinference/core/router_node_store.py | 4 | CODE | |
| LOW | xinference/core/http_protocol.py | 131 | CODE | |
| LOW | xinference/core/router_assignment_store.py | 4 | CODE | |
| LOW | xinference/core/model.py | 49 | CODE | |
| LOW | xinference/core/model.py | 51 | CODE | |
| LOW | xinference/core/tokenizer_asset_registry.py | 4 | CODE | |
| LOW | xinference/core/pd_model.py | 31 | CODE | |
| LOW | xinference/core/router_deployment_store.py | 4 | CODE | |
| LOW | xinference/core/system_settings_store.py | 17 | CODE | |
| LOW | xinference/core/router_registry.py | 4 | CODE | |
| LOW | xinference/core/tests/test_monitoring_v2.py | 1 | CODE | |
| LOW | xinference/core/tests/test_router_orchestration.py | 3 | CODE | |
| LOW | xinference/core/tests/test_tokenizer_asset_store.py | 3 | CODE | |
| LOW | xinference/deploy/cmdline.py | 58 | CODE | |
| LOW | xinference/deploy/router_agent.py | 4 | CODE | |
| LOW | xinference/deploy/router_agent.py | 6 | CODE | |
| 2538 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | build_backend.py | 123 | except OSError: | CODE |
| HIGH | benchmark/benchmark_cross_engine_pd.py | 334 | except requests.RequestException: | CODE |
| HIGH | benchmark/benchmark_mlx_xavier.py | 89 | except psutil.NoSuchProcess: | CODE |
| HIGH | benchmark/benchmark_mlx_xavier.py | 144 | except requests.RequestException: | CODE |
| HIGH | benchmark/benchmark_mlx_xavier.py | 245 | except Exception: | CODE |
| HIGH | benchmark/benchmark_sglang_pd.py | 275 | except psutil.NoSuchProcess: | CODE |
| HIGH | benchmark/benchmark_sglang_pd.py | 324 | except requests.RequestException: | CODE |
| HIGH | benchmark/benchmark_sglang_pd.py | 462 | except Exception: | CODE |
| HIGH | benchmark/benchmark_nvidia_mlx_pd.py | 114 | except json.JSONDecodeError: | CODE |
| HIGH | benchmark/benchmark_serving.py | 39 | except ValueError: | CODE |
| HIGH | xinference/constants.py | 237 | except OSError: | CODE |
| HIGH | xinference/__init__.py | 38 | except Exception: | CODE |
| HIGH | xinference/device_utils.py | 329 | except ImportError: | CODE |
| HIGH | xinference/device_utils.py | 726 | except (ValueError, KeyError, AttributeError): | CODE |
| HIGH | xinference/device_utils.py | 314 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 552 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 582 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 725 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 1005 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 356 | except OSError: | CODE |
| HIGH | xinference/core/worker.py | 613 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 1354 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 5546 | except OSError: | CODE |
| HIGH | xinference/core/worker.py | 5733 | except (psutil.NoSuchProcess, psutil.AccessDenied): | CODE |
| HIGH | xinference/core/worker.py | 5800 | except (psutil.NoSuchProcess, psutil.AccessDenied): | CODE |
| HIGH | xinference/core/worker.py | 6528 | except FileNotFoundError: | CODE |
| HIGH | xinference/core/worker.py | 1059 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 3525 | except OSError: | CODE |
| HIGH | xinference/core/worker.py | 3856 | except importlib.metadata.PackageNotFoundError: | CODE |
| HIGH | xinference/core/worker.py | 5106 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 5608 | except FileNotFoundError: | CODE |
| HIGH | xinference/core/worker.py | 5616 | except OSError: | CODE |
| HIGH | xinference/core/worker.py | 1080 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 3370 | except (KeyError, ValueError, AssertionError): | CODE |
| HIGH | xinference/core/worker.py | 4205 | except ImportError: | CODE |
| HIGH | xinference/core/worker.py | 1078 | except Exception: | CODE |
| HIGH | xinference/core/worker.py | 4968 | except Exception: | CODE |
| HIGH | xinference/core/metrics.py | 472 | except Exception: | CODE |
| HIGH | xinference/core/metrics.py | 1240 | except Exception: | CODE |
| HIGH | xinference/core/metrics.py | 1262 | except Exception: | CODE |
| HIGH | xinference/core/supervisor.py | 1096 | except asyncio.TimeoutError: | CODE |
| HIGH | xinference/core/supervisor.py | 4563 | except RuntimeError: | CODE |
| HIGH | xinference/core/supervisor.py | 6180 | except RuntimeError: | CODE |
| HIGH | xinference/core/supervisor.py | 537 | except Exception: | CODE |
| HIGH | xinference/core/supervisor.py | 585 | except Exception: | CODE |
| HIGH | xinference/core/supervisor.py | 2952 | except asyncio.CancelledError: | CODE |
| HIGH | xinference/core/supervisor.py | 4246 | except asyncio.CancelledError: | CODE |
| HIGH | xinference/core/supervisor.py | 5326 | except Exception: | CODE |
| HIGH | xinference/core/supervisor.py | 4358 | except asyncio.CancelledError: | CODE |
| HIGH | xinference/core/supervisor.py | 4914 | except Exception: | CODE |
| HIGH | xinference/core/virtual_env_manager.py | 289 | except metadata.PackageNotFoundError: | CODE |
| HIGH | xinference/core/virtual_env_manager.py | 1535 | except Exception: | CODE |
| HIGH | xinference/core/virtual_env_manager.py | 1876 | except Exception: | CODE |
| HIGH | xinference/core/virtual_env_manager.py | 1226 | except Exception: | CODE |
| HIGH | xinference/core/virtual_env_manager.py | 1757 | except Exception: | CODE |
| HIGH | xinference/core/virtual_env_manager.py | 895 | except OSError: | CODE |
| HIGH | xinference/core/virtual_env_manager.py | 935 | except OSError: | CODE |
| HIGH | xinference/core/virtual_env_manager.py | 927 | except OSError: | CODE |
| HIGH | xinference/core/model_recommendation.py | 130 | except Exception: | CODE |
| HIGH | xinference/core/model_recommendation.py | 142 | except Exception: | CODE |
| 252 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | xinference/device_utils.py | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/device_utils.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/device_utils.py | 51 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/device_utils.py | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/device_utils.py | 273 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/device_utils.py | 275 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/device_utils.py | 93 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/device_utils.py | 95 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/device_utils.py | 178 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/device_utils.py | 180 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/device_utils.py | 456 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/device_utils.py | 458 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/device_utils.py | 565 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/device_utils.py | 567 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/metrics.py | 37 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | xinference/core/metrics.py | 39 | # =========================================================================== | COMMENT |
| MEDIUM | xinference/core/metrics.py | 58 | # =========================================================================== | COMMENT |
| MEDIUM | xinference/core/metrics.py | 60 | # =========================================================================== | COMMENT |
| MEDIUM | xinference/core/metrics.py | 102 | # =========================================================================== | COMMENT |
| MEDIUM | xinference/core/metrics.py | 104 | # =========================================================================== | COMMENT |
| MEDIUM | xinference/core/metrics.py | 338 | # =========================================================================== | COMMENT |
| MEDIUM | xinference/core/metrics.py | 340 | # =========================================================================== | COMMENT |
| MEDIUM | xinference/core/metrics.py | 367 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/metrics.py | 369 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/metrics.py | 434 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/metrics.py | 436 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/metrics.py | 450 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/metrics.py | 452 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/otel.py | 161 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/otel.py | 163 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/otel.py | 316 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/otel.py | 318 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/tests/test_model.py | 304 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | xinference/core/tests/test_model.py | 310 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_utils.py | 840 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_utils.py | 842 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 114 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 116 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 153 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 155 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 187 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 189 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 211 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 213 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 253 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 258 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 356 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 358 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 417 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 419 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 505 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_subpool_hardening.py | 507 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …nference/deploy/docker/pypiserver/download_packages.py | 357 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nference/deploy/docker/pypiserver/download_packages.py | 359 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nference/deploy/docker/pypiserver/download_packages.py | 394 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nference/deploy/docker/pypiserver/download_packages.py | 396 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nference/deploy/docker/pypiserver/download_packages.py | 458 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nference/deploy/docker/pypiserver/download_packages.py | 460 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nference/deploy/docker/pypiserver/download_packages.py | 498 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nference/deploy/docker/pypiserver/download_packages.py | 502 | # ------------------------------------------------------------------ | COMMENT |
| 337 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build_backend.py | 111 | CODE | |
| LOW | benchmark/benchmark_cross_engine_pd.py | 82 | CODE | |
| LOW | benchmark/benchmark_cross_engine_pd.py | 288 | CODE | |
| LOW | benchmark/benchmark_mlx_xavier.py | 106 | CODE | |
| LOW | benchmark/benchmark_sglang_pd.py | 284 | CODE | |
| LOW | benchmark/benchmark_sglang_pd.py | 467 | CODE | |
| LOW | benchmark/benchmark_sglang_pd.py | 134 | CODE | |
| LOW | benchmark/benchmark_runner.py | 88 | CODE | |
| LOW | benchmark/benchmark_runner.py | 206 | CODE | |
| LOW | benchmark/benchmark_nvidia_mlx_pd.py | 160 | CODE | |
| LOW | xinference/engine_hooks.py | 71 | CODE | |
| LOW | xinference/constants.py | 188 | CODE | |
| LOW | xinference/_model_catalog.py | 147 | CODE | |
| LOW | xinference/utils.py | 42 | CODE | |
| LOW | xinference/device_utils.py | 278 | CODE | |
| LOW | xinference/device_utils.py | 390 | CODE | |
| LOW | xinference/device_utils.py | 649 | CODE | |
| LOW | xinference/core/runtime_logs.py | 26 | CODE | |
| LOW | xinference/core/worker.py | 527 | CODE | |
| LOW | xinference/core/worker.py | 557 | CODE | |
| LOW | xinference/core/worker.py | 600 | CODE | |
| LOW | xinference/core/worker.py | 680 | CODE | |
| LOW | xinference/core/worker.py | 1000 | CODE | |
| LOW | xinference/core/worker.py | 1309 | CODE | |
| LOW | xinference/core/worker.py | 1684 | CODE | |
| LOW | xinference/core/worker.py | 1955 | CODE | |
| LOW | xinference/core/worker.py | 2016 | CODE | |
| LOW | xinference/core/worker.py | 2319 | CODE | |
| LOW | xinference/core/worker.py | 2444 | CODE | |
| LOW | xinference/core/worker.py | 2647 | CODE | |
| LOW | xinference/core/worker.py | 2785 | CODE | |
| LOW | xinference/core/worker.py | 3178 | CODE | |
| LOW | xinference/core/worker.py | 3296 | CODE | |
| LOW | xinference/core/worker.py | 3444 | CODE | |
| LOW | xinference/core/worker.py | 3634 | CODE | |
| LOW | xinference/core/worker.py | 3717 | CODE | |
| LOW | xinference/core/worker.py | 4312 | CODE | |
| LOW | xinference/core/worker.py | 4428 | CODE | |
| LOW | xinference/core/worker.py | 4542 | CODE | |
| LOW | xinference/core/worker.py | 5297 | CODE | |
| LOW | xinference/core/worker.py | 5551 | CODE | |
| LOW | xinference/core/worker.py | 5657 | CODE | |
| LOW | xinference/core/worker.py | 6057 | CODE | |
| LOW | xinference/core/worker.py | 6170 | CODE | |
| LOW | xinference/core/worker.py | 6252 | CODE | |
| LOW | xinference/core/worker.py | 6515 | CODE | |
| LOW | xinference/core/worker.py | 6545 | CODE | |
| LOW | xinference/core/worker.py | 6659 | CODE | |
| LOW | xinference/core/worker.py | 6804 | CODE | |
| LOW | xinference/core/metrics.py | 550 | CODE | |
| LOW | xinference/core/metrics.py | 1213 | CODE | |
| LOW | xinference/core/monitor_config_store.py | 156 | CODE | |
| LOW | xinference/core/supervisor.py | 123 | CODE | |
| LOW | xinference/core/supervisor.py | 182 | CODE | |
| LOW | xinference/core/supervisor.py | 652 | CODE | |
| LOW | xinference/core/supervisor.py | 1427 | CODE | |
| LOW | xinference/core/supervisor.py | 2414 | CODE | |
| LOW | xinference/core/supervisor.py | 2569 | CODE | |
| LOW | xinference/core/supervisor.py | 2965 | CODE | |
| LOW | xinference/core/supervisor.py | 3871 | CODE | |
| 1098 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build_backend.py | 106 | except Exception: | CODE |
| LOW | benchmark/benchmark_mlx_xavier.py | 245 | except Exception: | CODE |
| LOW | benchmark/benchmark_sglang_pd.py | 166 | except Exception as error: | CODE |
| LOW | benchmark/benchmark_sglang_pd.py | 462 | except Exception: | CODE |
| LOW | benchmark/benchmark_runner.py | 198 | except Exception: | CODE |
| LOW | benchmark/benchmark_pd.py | 133 | except Exception as exc: | CODE |
| LOW | xinference/engine_hooks.py | 168 | except Exception: | CODE |
| MEDIUM | xinference/conftest.py | 121 | print(f"Error while checking endpoint: {e}") | CODE |
| LOW | xinference/__init__.py | 31 | except Exception: | CODE |
| LOW | xinference/__init__.py | 38 | except Exception: | CODE |
| LOW | xinference/extensions.py | 71 | except Exception as error: | CODE |
| MEDIUM | xinference/device_utils.py | 64 | def _mps_empty_cache(): | CODE |
| MEDIUM | xinference/device_utils.py | 318 | def get_nvidia_gpu_info() -> Dict[str, Any]: | CODE |
| MEDIUM | xinference/device_utils.py | 350 | def get_metax_gpu_info() -> Dict: | CODE |
| MEDIUM | xinference/device_utils.py | 365 | def get_rocm_gpu_info() -> Dict: | CODE |
| LOW | xinference/device_utils.py | 307 | except Exception as e: | CODE |
| LOW | xinference/device_utils.py | 314 | except Exception: | CODE |
| LOW | xinference/device_utils.py | 331 | except Exception as e: | CODE |
| LOW | xinference/device_utils.py | 345 | except Exception as e: | CODE |
| LOW | xinference/device_utils.py | 360 | except Exception as e: | CODE |
| LOW | xinference/device_utils.py | 374 | except Exception: | CODE |
| LOW | xinference/device_utils.py | 693 | except Exception: | CODE |
| LOW | xinference/device_utils.py | 700 | except Exception: | CODE |
| LOW | xinference/device_utils.py | 733 | except Exception: | CODE |
| MEDIUM | xinference/core/worker.py | 1556 | def signal_handler(): | CODE |
| MEDIUM | xinference/core/worker.py | 1573 | def trigger_exit(self) -> bool: | CODE |
| MEDIUM | xinference/core/worker.py | 1800 | def _record_model_versions_best_effort(self, cache_tracker_ref): | CODE |
| LOW⚡ | xinference/core/worker.py | 522 | except Exception as e: | CODE |
| LOW⚡ | xinference/core/worker.py | 537 | except Exception: | CODE |
| LOW⚡ | xinference/core/worker.py | 547 | except Exception: | CODE |
| LOW⚡ | xinference/core/worker.py | 552 | except Exception: | CODE |
| LOW⚡ | xinference/core/worker.py | 1998 | except Exception: | CODE |
| LOW⚡ | xinference/core/worker.py | 2009 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 566 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 577 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 582 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 613 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 675 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 725 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 754 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 769 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 851 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1005 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1034 | except Exception as e: | CODE |
| LOW | xinference/core/worker.py | 1059 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1078 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1080 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1121 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1146 | except Exception as e: | CODE |
| LOW | xinference/core/worker.py | 1164 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1188 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1220 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1354 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1356 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1397 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1512 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1520 | except Exception: | CODE |
| LOW | xinference/core/worker.py | 1560 | except Exception as e: | CODE |
| LOW | xinference/core/worker.py | 1576 | except Exception as e: | CODE |
| LOW | xinference/core/worker.py | 1662 | except Exception: | CODE |
| 932 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build_backend.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | build_web.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | benchmark/benchmark_long.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | benchmark/utils.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | benchmark/benchmark_embedding.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | benchmark/benchmark_runner.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | benchmark/benchmark_latency.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | benchmark/benchmark_rerank.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | benchmark/benchmark_serving.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | benchmark/tests/test_benchmark_embedding.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | frontend/next.config.ts | 1 | // Output mode (build only): | COMMENT |
| LOW | frontend/src/i18n/locales/zh-TW.ts | 1 | // Taiwan Traditional Chinese (zh-TW) locale | COMMENT |
| LOW | xinference/engine_hooks.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/isolation.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/conftest.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/fields.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/constants.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/constants.py | 161 | COMMENT | |
| LOW | xinference/__init__.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/types.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/extensions.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/utils.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/device_utils.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/_compat.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/ui/__init__.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/worker.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/worker.py | 3901 | # is detected, install from the matching GPU index so the GPU build is | COMMENT |
| LOW | xinference/core/worker.py | 4801 | # the virtualenv is populated: the subprocess boots on | COMMENT |
| LOW | xinference/core/worker.py | 6601 | from ..model.llm.transformers.tensorizer_utils import get_tensorizer_dir | COMMENT |
| LOW | xinference/core/worker.py | 6941 | async def recover_model(self, launch_args: Dict[str, Any]): | COMMENT |
| LOW | xinference/core/metrics.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/event.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/progress_tracker.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/log.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/monitor_config_store.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/supervisor.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/supervisor.py | 5981 | # Keep worker-returned specs in _list_models_cache pristine. The | COMMENT |
| LOW | xinference/core/virtual_env_manager.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/virtual_env_manager.py | 181 | ], | COMMENT |
| LOW | xinference/core/launch_strategy.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/resource.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/__init__.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/cache_tracker.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/autostart.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/http_protocol.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/replica_config.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/model.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/download_task_store.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/utils.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/status_guard.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/exceptions.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/rpc_context.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/launch_history_store.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/pd_model.py | 1 | # Copyright 2022-2026 XProbe Inc. | COMMENT |
| LOW | xinference/core/otel.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/system_settings_store.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/tests/test_virtual_env_manager.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/tests/test_model.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| LOW | xinference/core/tests/test_continuous_batching.py | 1 | # Copyright 2022-2026 XProbe Inc. | COMMENT |
| LOW | xinference/core/tests/test_engine_discovery.py | 1 | # Copyright 2022-2026 Xinference Holdings Pte. Ltd | COMMENT |
| 842 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | xinference/core/worker.py | 3717 | CODE | |
| LOW | xinference/core/worker.py | 4542 | CODE | |
| LOW | xinference/core/worker.py | 6880 | CODE | |
| LOW | xinference/core/metrics.py | 1279 | CODE | |
| LOW | xinference/core/supervisor.py | 2804 | CODE | |
| LOW | xinference/core/supervisor.py | 2965 | CODE | |
| LOW | xinference/core/supervisor.py | 3871 | CODE | |
| LOW | xinference/core/supervisor.py | 8046 | CODE | |
| LOW | xinference/core/supervisor.py | 8062 | CODE | |
| LOW | xinference/core/tests/test_model_recommendation.py | 14 | CODE | |
| LOW | xinference/deploy/utils.py | 385 | CODE | |
| LOW | xinference/model/video/core.py | 172 | CODE | |
| LOW | xinference/model/llm/memory.py | 349 | CODE | |
| LOW | xinference/model/llm/lmdeploy/core.py | 308 | CODE | |
| LOW | xinference/model/llm/vllm/distributed_executor_v1.py | 338 | CODE | |
| LOW | …model/llm/vllm/xavier/xavier_remote_kvcache_manager.py | 150 | CODE | |
| LOW | …model/llm/vllm/xavier/xavier_remote_kvcache_manager.py | 180 | CODE | |
| LOW | xinference/model/llm/mlx/core.py | 424 | CODE | |
| LOW | xinference/model/llm/mlx/core.py | 619 | CODE | |
| LOW | …nference/model/embedding/sentence_transformers/core.py | 564 | CODE | |
| LOW | xinference/model/embedding/vllm/core.py | 371 | CODE | |
| LOW | xinference/model/embedding/vllm/core.py | 533 | CODE | |
| LOW | xinference/model/image/controlnet.py | 228 | CODE | |
| LOW | xinference/model/image/rng.py | 84 | CODE | |
| LOW | xinference/model/image/core.py | 291 | CODE | |
| LOW | xinference/model/image/tests/test_joyai_image.py | 137 | CODE | |
| LOW | xinference/model/image/tests/test_qwen_image21.py | 72 | CODE | |
| LOW | xinference/model/image/ocr/paddleocr_vl.py | 222 | CODE | |
| LOW | xinference/model/image/vllm/core.py | 82 | CODE | |
| LOW | xinference/model/image/stable_diffusion/core.py | 155 | CODE | |
| LOW | xinference/model/image/sglang/core.py | 69 | CODE | |
| LOW | xinference/model/rerank/sentence_transformers/core.py | 526 | CODE | |
| LOW | xinference/api/restful_api.py | 3324 | CODE | |
| LOW | xinference/api/restful_api.py | 3383 | CODE | |
| LOW | xinference/api/restful_api.py | 3623 | CODE | |
| LOW | xinference/api/restful_api.py | 1179 | CODE | |
| LOW | xinference/api/routers/admin.py | 874 | CODE | |
| LOW | xinference/api/routers/admin.py | 1985 | CODE | |
| LOW | xinference/api/oauth2/advanced/audit.py | 148 | CODE | |
| LOW | xinference/client/restful/restful_client.py | 1271 | CODE | |
| LOW | xinference/client/restful/async_restful_client.py | 1407 | CODE | |
| LOW | …ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py | 195 | CODE | |
| LOW | …ty/fish_speech_s2/fish_speech/models/dac/modded_dac.py | 805 | CODE | |
| LOW | …hirdparty/fish_speech_s2/fish_speech/models/dac/rvq.py | 205 | CODE | |
| LOW | …sh_speech_s2/fish_speech/models/text2semantic/llama.py | 844 | CODE | |
| LOW | …peech_s2/fish_speech/models/text2semantic/inference.py | 523 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/dataset/dataset.py | 104 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/hifigan/generator.py | 397 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/transformer/decoder.py | 58 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/transformer/decoder.py | 276 | CODE | |
| LOW | …e/thirdparty/cosyvoice/transformer/upsample_encoder.py | 107 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/transformer/encoder.py | 39 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/transformer/encoder.py | 341 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/transformer/encoder.py | 390 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/utils/mask.py | 158 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/cli/model.py | 170 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/cli/model.py | 321 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/flow/decoder.py | 295 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/flow/flow.py | 25 | CODE | |
| LOW | xinference/thirdparty/cosyvoice/flow/flow.py | 152 | CODE | |
| 581 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/benchmark_long.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | benchmark/utils.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | benchmark/benchmark_embedding.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | benchmark/benchmark_runner.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | benchmark/benchmark_latency.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | benchmark/benchmark_rerank.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | benchmark/benchmark_serving.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/engine_hooks.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/engine_hooks.py | 39 | __all__ = [ | CODE |
| LOW | xinference/constants.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | xinference/device_utils.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/worker.py | 1231 | def update_system_settings(self, settings: Dict[str, Any]) -> None: | CODE |
| LOW⚡ | xinference/core/metrics.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/metrics.py | 849 | def _update_token_router_gauges(cluster_data: Dict[str, Any]) -> None: | CODE |
| LOW | xinference/core/metrics.py | 1213 | def update_security_gauges(auth_service) -> None: | CODE |
| LOW | xinference/core/router_orchestration.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/progress_tracker.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/monitor_config_store.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/supervisor.py | 6443 | async def update_system_settings(self, settings: Dict[str, Any]) -> None: | CODE |
| LOW | xinference/core/virtual_env_manager.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/http_protocol.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/model.py | 55 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/utils.py | 43 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/tokenizer_asset_registry.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/launch_history_store.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/pd_model.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/otel.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/system_settings_store.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/core/system_settings_store.py | 137 | def set_optional(name: str, value: str) -> None: | CODE |
| LOW | xinference/deploy/worker.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/deploy/supervisor.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/deploy/local.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/deploy/router_agent.py | 8 | __all__ = ["main"] | CODE |
| LOW | xinference/deploy/utils.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/deploy/utils.py | 984 | def set_process_log_identity(role: str, address: str) -> None: | CODE |
| LOW | xinference/deploy/router.py | 8 | __all__ = ["main"] | CODE |
| LOW | xinference/model/custom.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/oci_utils.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/cache_manager.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/batch.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llmman.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/utils.py | 69 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/video/mlx_video.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/video/core.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/video/engine_family.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/video/diffusers.py | 49 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/video/tests/test_diffusers_video.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llm/reasoning_parser.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llm/custom.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llm/cache_manager.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llm/llm_family.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llm/core.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llm/utils.py | 63 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llm/weight_cache.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ence/model/llm/tool_parsers/deepseek_v4_tool_parser.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | …rence/model/llm/tool_parsers/minimax_m3_tool_parser.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ence/model/llm/tool_parsers/deepseek_v3_tool_parser.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | xinference/model/llm/tool_parsers/gemma_tool_parser.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nference/model/llm/tool_parsers/minimax_tool_parser.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nference/model/llm/tool_parsers/kimi_k3_tool_parser.py | 9 | logger = logging.getLogger(__name__) | CODE |
| 438 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | xinference/utils.py | 87 | Recursively convert an object into a hashable form. This function is useful for creating deterministic cache k | STRING |
| HIGH | xinference/deploy/utils.py | 1266 | Convert 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.py | 102 | Extract tool calls from complete model output. Args: model_output: The complete output str | STRING |
| HIGH | …ce/model/llm/tool_parsers/deepseek_v3_2_tool_parser.py | 102 | Extract tool calls from complete model output. Args: model_output: The complete output str | STRING |
| HIGH | xinference/model/embedding/core.py | 382 | Extract the 'sentences' argument and remaining kwargs from (*args, **kwargs) for a given function. | STRING |
| HIGH | xinference/model/rerank/sentence_transformers/core.py | 817 | Extract the 'documents' and 'query' argument and remaining kwargs from (*args, **kwargs) for a given fu | STRING |
| HIGH | xinference/model/rerank/vllm/core.py | 520 | Extract the 'documents' and 'query' argument and remaining kwargs from (*args, **kwargs) for a given fu | STRING |
| HIGH | xinference/api/utils.py | 103 | Get a model with standardized error handling. Replaces the repeated pattern: ```python try: mo | STRING |
| HIGH | xinference/thirdparty/cosyvoice/utils/mask.py | 18 | def subsequent_mask( size: int, device: torch.device = torch.device("cpu"), ) -> torch.Tensor: """C | STRING |
| HIGH | xinference/thirdparty/cosyvoice/utils/mask.py | 57 | Create mask for subsequent steps (size, size). This mask is used only in decoder which works in an auto-regressive | STRING |
| HIGH | xinference/thirdparty/cosyvoice/utils/mask.py | 95 | Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: s | STRING |
| HIGH | xinference/thirdparty/cosyvoice/utils/mask.py | 133 | Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: s | STRING |
| HIGH | xinference/thirdparty/cosyvoice/utils/mask.py | 240 | Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: length | STRING |
| HIGH | xinference/thirdparty/cosyvoice/utils/common.py | 30 | Perform padding for the list of tensors. Args: xs (List): List of Tensors [(T_1, `*`), (T_2, `*`), ..., (T_ | STRING |
| HIGH | xinference/thirdparty/cosyvoice/flow/decoder.py | 211 | Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channels | STRING |
| HIGH | xinference/thirdparty/cosyvoice/flow/decoder.py | 406 | Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channels | STRING |
| HIGH | …hirdparty/controlnet/annotator/mmpkg/mmcv/fileio/io.py | 19 | Load 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.py | 70 | Dump data to json/yaml/pickle strings or files. This method provides a unified api for dumping data as strings or t | STRING |
| HIGH | …/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py | 312 | Download a file from ``filepath`` and return a temporary path. ``get_local_path`` is decorated by :meth:`contxt | STRING |
| HIGH | …/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py | 732 | A general file client to access files in different backends. The client loads a file or text in a specified backend | STRING |
| HIGH | …/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py | 838 | Parse 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.py | 869 | Infer a suitable file client based on the URI and arguments. Args: file_client_args (dict, optional | STRING |
| HIGH | …/controlnet/annotator/mmpkg/mmcv/fileio/file_client.py | 1106 | Download data from ``filepath`` and write the data to local path. ``get_local_path`` is decorated by :meth:`con | STRING |
| HIGH | …dparty/controlnet/annotator/mmpkg/mmcv/fileio/parse.py | 11 | Load 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.py | 53 | Load 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.py | 39 | Import modules from the given list of strings. Args: imports (list | str | None): The given module names to | STRING |
| HIGH | …dparty/controlnet/annotator/mmpkg/mmcv/utils/config.py | 283 | merge 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.py | 627 | Parse iterable values in the string. All elements inside '()' or '[]' are treated as iterable values. | STRING |
| HIGH | …rolnet/annotator/mmpkg/mmcv/cnn/utils/flops_counter.py | 122 | Convert FLOPs number into a string. Note that Here we take a multiply-add counts as one FLOP. Args: fl | STRING |
| HIGH | …rolnet/annotator/mmpkg/mmcv/cnn/utils/flops_counter.py | 165 | Convert parameter number into a string. Args: num_params (float): Parameter number to be converted. | STRING |
| HIGH | …rence/thirdparty/controlnet/annotator/openpose/util.py | 301 | Detect hands in the input body pose keypoints and calculate the bounding box for each hand. Args: body | STRING |
| HIGH | …rence/thirdparty/controlnet/annotator/openpose/util.py | 413 | Detect the face in the input body pose keypoints and calculate the bounding box for the face. Args: bo | STRING |
| HIGH | …controlnet/annotator/oneformer/oneformer/data/build.py | 63 | Similar to `build_detection_train_loader`, with default batch size = 1, and sampler = :class:`InferenceSampler` | STRING |
| HIGH | …trolnet/annotator/oneformer/detectron2/utils/memory.py | 28 | Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after callin | STRING |
| HIGH | …tator/oneformer/detectron2/modeling/backbone/resnet.py | 501 | Create a list of blocks of the same type that forms one ResNet stage. Args: block_class (t | STRING |
| HIGH | …ontrolnet/annotator/oneformer/detectron2/data/build.py | 516 | Similar to `build_detection_train_loader`, with default batch size = 1, and sampler = :class:`InferenceSampler` | STRING |
| HIGH | …t/annotator/oneformer/detectron2/data/datasets/coco.py | 43 | Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segme | STRING |
| HIGH | …t/annotator/oneformer/detectron2/data/datasets/coco.py | 253 | Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are treated as ground tr | STRING |
| HIGH | …t/annotator/oneformer/detectron2/data/datasets/lvis.py | 46 | Load a json file in LVIS's annotation format. Args: json_file (str): full path to the LVIS json annota | STRING |
| HIGH | …r/oneformer/detectron2/data/transforms/augmentation.py | 117 | Execute the policy based on input data, and decide what transform to apply to inputs. Args: | STRING |
| HIGH | …ules/efficientnet_repo/geffnet/efficientnet_builder.py | 613 | Decode block definition string Gets a list of block arg (dicts) through a string notation of arguments. E.g. ir | STRING |
| HIGH | …u1/prompt_enhance/adapters/chat_completions_adapter.py | 154 | Extract the assistant message text from a chat/completions response. Handles both plain-string and list-of-cont | STRING |
| HIGH | …u1/prompt_enhance/adapters/chat_completions_adapter.py | 191 | Call the ``/chat/completions`` endpoint with vision content. Args: user_prompt: User-facing text in | STRING |
| HIGH | …irdparty/sensenova_u1/prompt_enhance/adapters/utils.py | 13 | Read raw image bytes from a path or return bytes unchanged. Args: image: File path to an image, or raw imag | STRING |
| HIGH | …senova_u1/prompt_enhance/adapters/anthropic_adapter.py | 160 | Extract the assistant message text from Anthropic Messages response. Handles responses with or without content | STRING |
| HIGH | …senova_u1/prompt_enhance/adapters/anthropic_adapter.py | 193 | Call the ``/v1/messages`` endpoint with vision content. Args: user_prompt: User-facing text instruc | STRING |
| HIGH | …ce/thirdparty/ace_step_1_5/acestep/model_downloader.py | 711 | Resolve a VAE variant id (or absolute path) to its on-disk directory. Args: checkpoint_dir: Root checkpoint | STRING |
| HIGH | …/third_parts/nano-vllm/nanovllm/engine/model_runner.py | 30 | Encode IPC arguments to UTF-8 JSON bytes for shared-memory transport. Replaces ``pickle`` to avoid arbitrary code e | STRING |
| HIGH | …/third_parts/nano-vllm/nanovllm/engine/model_runner.py | 84 | Find 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.py | 28 | Generate LRC timestamps by aligning decoder cross-attention to lyric tokens. Args: pred_latent (tor | STRING |
| HIGH | …estep/core/generation/handler/generate_music_decode.py | 27 | Collect decode inputs and validate raw diffusion latents. Args: outputs: ``service_generate`` outpu | STRING |
| HIGH | …e/generation/handler/init_service_loader_components.py | 27 | Load the VAE checkpoint and return its resolved path. Args: checkpoint_dir: Root checkpoint directo | STRING |
| HIGH | …e/generation/handler/init_service_loader_components.py | 69 | Load the text tokenizer and embedding model, then return its path. Args: checkpoint_dir: Root check | STRING |
| HIGH | …tep_1_5/acestep/core/generation/handler/lyric_score.py | 27 | Calculate lyric alignment scores for pure-noise and regressed-latent inputs. Args: pred_latent (tor | STRING |
| HIGH | …e_step_1_5/acestep/core/generation/handler/io_audio.py | 14 | Read an audio file, with torchaudio fallback for formats unsupported by soundfile. soundfile (libsndfile) supports | STRING |
| HIGH | …_1_5/acestep/core/generation/handler/generate_music.py | 252 | Generate audio from text/reference inputs and return response payload. Args: captions: Text prompt | STRING |
| HIGH | …pytorch/pytorchocr/modeling/backbones/rec_pphgnetv2.py | 545 | use 'handle_func' to modify the sub-layer(s) specified by 'layer_name_pattern'. Args: layer_name_pa | STRING |
| HIGH | …party/megatts3/tts/modules/ar_dur/commons/seq_utils.py | 113 | Make 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.py | 219 | Make mask tensor containing indices of non-padded part. Args: lengths (LongTensor or List): Batch of lengths | STRING |
| HIGH | …arty/diffusers_community/stable_diffusion_reference.py | 282 | Check the validity of the input arguments for the diffusion model. Args: prompt (Optional[ | STRING |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ference/model/llm/vllm/xavier/xavier_scheduler_hook.py | 368 | CODE | |
| MEDIUM | xinference/model/image/ocr/deepdoc.py | 338 | CODE | |
| MEDIUM | xinference/api/tests/test_streaming_outcome.py | 139 | CODE | |
| MEDIUM | …thirdparty/controlnet/annotator/manga_line/__init__.py | 36 | CODE | |
| MEDIUM | …thirdparty/controlnet/annotator/manga_line/__init__.py | 44 | CODE | |
| MEDIUM | …thirdparty/controlnet/annotator/manga_line/__init__.py | 59 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 296 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 298 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 299 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 303 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 307 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 309 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 322 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 324 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 326 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 327 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 337 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 342 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 343 | CODE | |
| MEDIUM | …ty/sensenova_u1/models/neo_unify/modeling_qwen3_moe.py | 344 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 273 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 275 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 276 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 278 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 279 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 281 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 282 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 287 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 288 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 289 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 298 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 300 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 310 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 312 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 313 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 325 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 329 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 353 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 357 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 361 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 362 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 364 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 368 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 369 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 383 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 384 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 385 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 386 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 387 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 388 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 389 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 395 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 396 | CODE | |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 397 | CODE | |
| MEDIUM | …dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py | 775 | CODE | |
| MEDIUM | …dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py | 776 | CODE | |
| MEDIUM | …dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py | 777 | CODE | |
| MEDIUM | …dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py | 779 | CODE | |
| MEDIUM | …dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py | 780 | CODE | |
| MEDIUM | …dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py | 782 | CODE | |
| 71 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | xinference/core/tests/test_restful_api.py | 1684 | # Create a mock handler with the conversion method | COMMENT |
| MEDIUM⚡ | xinference/core/tests/test_restful_api.py | 1691 | # Create a temporary RESTfulAPI instance to access the method | COMMENT |
| MEDIUM⚡ | xinference/deploy/test/test_log_rotation.py | 214 | # Create a file dated 100 days ago | COMMENT |
| MEDIUM | xinference/model/utils.py | 3209 | # Create a mapping of updated_at to model for comparison | COMMENT |
| MEDIUM | xinference/model/llm/vllm/distributed_executor_v1.py | 150 | # Create the parallel GPU workers. | COMMENT |
| MEDIUM | xinference/model/llm/vllm/distributed_executor.py | 146 | # Create the parallel GPU workers. | COMMENT |
| MEDIUM | …el/llm/vllm/xavier/test/test_remote_kvcache_manager.py | 44 | # Create a XavierRemoteKVCacheManager instance and inject mocked dependencies | COMMENT |
| MEDIUM | xinference/model/llm/transformers/chatglm.py | 126 | # This method is adapted from https://github.com/THUDM/GLM-4/blob/main/basic_demo/openai_api_server.py | COMMENT |
| MEDIUM⚡ | xinference/model/llm/transformers/core.py | 69 | # Define the decorator to support multiple names registration | COMMENT |
| MEDIUM⚡ | …erence/model/llm/transformers/tests/test_tensorizer.py | 100 | # Create a dummy cache file to simulate cache existence | COMMENT |
| MEDIUM | …ence/model/embedding/vllm/tests/test_vllm_embedding.py | 104 | # Create a long text that exceeds 512 tokens | COMMENT |
| MEDIUM | xinference/model/audio/utils.py | 298 | # Create the file, close our handle immediately, and clean it up | COMMENT |
| MEDIUM | xinference/model/rerank/sentence_transformers/core.py | 330 | # Create a simple wrapper for return value conversion only. | COMMENT |
| MEDIUM | …nce/thirdparty/fish_speech_s2/fish_speech/tokenizer.py | 81 | # Create a lookup tensor to handle potential gaps in token IDs safely | COMMENT |
| MEDIUM | …ch_s2/fish_speech/inference_engine/reference_loader.py | 36 | # Define the torchaudio backend | COMMENT |
| MEDIUM | …ish_speech_s2/fish_speech/inference_engine/__init__.py | 166 | # Create a queue to get the response | COMMENT |
| MEDIUM | …ator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py | 146 | # Create a map (ModuleDict) of 'name' -> seed_bin_regressor | COMMENT |
| MEDIUM | …ator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py | 170 | # Create a map (ModuleDict) of 'name' -> attractors (ModuleList) | COMMENT |
| MEDIUM | …net/annotator/mmpkg/mmcv/runner/default_constructor.py | 13 | >>> # Define a new RunnerReconstructor | STRING |
| MEDIUM | …/thirdparty/controlnet/annotator/mmpkg/mmcv/ops/nms.py | 12 | # This function is modified from: https://github.com/pytorch/vision/ | COMMENT |
| MEDIUM | …rolnet/annotator/mmpkg/mmcv/ops/deprecated_wrappers.py | 2 | # This file is for backward compatibility. | COMMENT |
| MEDIUM | …/controlnet/annotator/leres/pix2pix/util/image_pool.py | 7 | """This class implements an image buffer that stores previously generated images. | STRING |
| MEDIUM | …/annotator/leres/pix2pix/models/pix2pix4depth_model.py | 8 | """This class implements the pix2pix model, for learning a mapping from input images to output images given paired d | STRING |
| MEDIUM | …ontrolnet/annotator/leres/pix2pix/models/base_model.py | 13 | """This class is an abstract base class (ABC) for models. | STRING |
| MEDIUM | …trolnet/annotator/oneformer/detectron2/utils/events.py | 398 | # Create a histogram with PyTorch | COMMENT |
| MEDIUM | xinference/thirdparty/audiotools/ml/accelerator.py | 14 | """This class is used to prepare models and dataloaders for | STRING |
| MEDIUM | xinference/thirdparty/fish_speech/tools/run_webui.py | 73 | # Create the inference engine | COMMENT |
| MEDIUM | …rence/thirdparty/fish_speech/tools/vqgan/extract_vq.py | 24 | # 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.py | 39 | # Create a conversation object and encode it for inference | COMMENT |
| MEDIUM | …fish_speech/tools/inference_engine/reference_loader.py | 29 | # Define the torchaudio backend | COMMENT |
| MEDIUM | …rdparty/fish_speech/tools/inference_engine/__init__.py | 166 | # Create a queue to get the response | COMMENT |
| MEDIUM | …erence/thirdparty/fish_speech/fish_speech/i18n/scan.py | 55 | # Define the standard file name | COMMENT |
| MEDIUM | …erence/thirdparty/fish_speech/fish_speech/i18n/scan.py | 78 | # Define the standard file name | COMMENT |
| MEDIUM | …arty/sensenova_u1/models/neo_unify/modeling_neo_vit.py | 38 | # Create the batch index for each patch (B x patch count) | COMMENT |
| MEDIUM | …rty/sensenova_u1/models/neo_unify/modeling_neo_chat.py | 134 | # Create the batch index for each patch (B x patch count) | COMMENT |
| MEDIUM | …dparty/sensenova_u1/models/neo_unify/modeling_qwen3.py | 1147 | # Create the masks | COMMENT |
| MEDIUM | xinference/thirdparty/melo/text/japanese.py | 540 | # Initialize kakasi object | COMMENT |
| MEDIUM | xinference/thirdparty/melo/text/japanese.py | 636 | # # Initialize kakasi object | COMMENT |
| MEDIUM | xinference/thirdparty/melo/text/korean.py | 181 | # # Initialize kakasi object | COMMENT |
| MEDIUM | …ference/thirdparty/ace_step_1_5/acestep/audio_utils.py | 83 | # Create a copy to avoid modifying original in-place | COMMENT |
| MEDIUM | xinference/thirdparty/ace_step_1_5/acestep/inference.py | 960 | # Create a copy of params dict for this audio | COMMENT |
| MEDIUM | xinference/thirdparty/f5_tts/infer/utils_infer.py | 509 | # Create a combined spectrogram | COMMENT |
| MEDIUM | xinference/thirdparty/magika/magika.py | 561 | # The following code checks whether the score is "high enough", where | COMMENT |
| MEDIUM | xinference/thirdparty/deepseek_vl/serve/app_deepseek.py | 96 | # Create a copy of the conversation to avoid history truncation in the UI | COMMENT |
| MEDIUM | …ish_speech_s1/fish_speech/inference_engine/__init__.py | 166 | # Create a queue to get the response | COMMENT |
| MEDIUM | xinference/thirdparty/mineru/utils/model_utils.py | 28 | # Create a white background array | COMMENT |
| MEDIUM | xinference/thirdparty/mineru/utils/model_utils.py | 38 | # Create a white background array | COMMENT |
| MEDIUM | xinference/thirdparty/mineru/utils/draw_bbox.py | 65 | rect = cal_canvas_rect(page, bbox) # Define the rectangle | CODE |
| MEDIUM | xinference/thirdparty/mineru/utils/draw_bbox.py | 84 | rect = cal_canvas_rect(page, bbox) # Define the rectangle | CODE |
| MEDIUM⚡ | xinference/thirdparty/megatts3/tts/infer_cli.py | 49 | # Define the output path with a .wav extension | COMMENT |
| MEDIUM⚡ | …erence/thirdparty/megatts3/tts/utils/audio_utils/io.py | 63 | # Define the output path with a .wav extension | COMMENT |
| MEDIUM | …party/ming_image/diffusion/autoencoder_kl_qwenimage.py | 354 | # Create the components | STRING |
| MEDIUM | xinference/thirdparty/mlx/flux/flux.py | 142 | # Create the latent variables | COMMENT |
| MEDIUM | xinference/thirdparty/matcha/onnx/export.py | 164 | # Create the output directory (if not exists) | COMMENT |
| MEDIUM | xinference/thirdparty/indextts/infer_v2.py | 1134 | # Create a temporary file for the complete audio | COMMENT |
| MEDIUM | …irdparty/indextts/gpt/transformers_generation_utils.py | 431 | # Create the causal mask with fixed shape in advance, to reduce recompilations. If the function to create | COMMENT |
| MEDIUM | xinference/thirdparty/indextts/BigVGAN/ECAPA_TDNN.py | 246 | """This class implements an attentive statistic pooling layer for each channel. | STRING |
| MEDIUM | xinference/thirdparty/indextts/BigVGAN/ECAPA_TDNN.py | 585 | """This class implements the cosine similarity on the top of features. | STRING |
| MEDIUM | xinference/thirdparty/indextts/BigVGAN/nnet/CNN.py | 24 | """This function implements SincConv (SincNet). | STRING |
| MEDIUM | xinference/thirdparty/indextts/BigVGAN/nnet/CNN.py | 306 | """This function implements 1d convolution. | STRING |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | benchmark/benchmark_runner.py | 142 | # "finish_reason": null, | COMMENT |
| HIGH | benchmark/tests/test_analyze_pd_profile.py | 53 | '{"stage": "load_rpc", "succeeded": true, "elapsed_s": 1, "nbytes": null}', | CODE |
| HIGH | xinference/deploy/docker/pypiserver/selfcheck.py | 90 | # live in a writable directory (not /dev/null). | COMMENT |
| HIGH⚡ | xinference/deploy/test/test_utils.py | 276 | arg = '{"int_val": 10, "float_val": 1.5, "bool_val": false, "null_val": null}' | CODE |
| HIGH | xinference/deploy/test/test_utils.py | 382 | result = handle_click_args_type('[1, "two", null, true, {"key": "value"}]') | CODE |
| HIGH | xinference/model/llm/tool_parsers/llama3_tool_parser.py | 53 | # (e.g., True/False/None instead of true/false/null). | COMMENT |
| HIGH⚡ | …odel/llm/tool_parsers/tests/test_llama3_tool_parser.py | 41 | model_output = '{"name": "test_func", "parameters": {"value": null}}' | CODE |
| HIGH | …lm/tool_parsers/tests/test_deepseek_v41_tool_parser.py | 13 | '<|DSML| parameter name="data" string="false">{"a": [1, null]}</|DSML| parameter>\n' | CODE |
| HIGH | xinference/model/llm/tests/test_utils.py | 2962 | "arguments": None, # null, left as-is | CODE |
| HIGH | xinference/model/llm/tests/test_utils.py | 2980 | "arguments": "null", # valid JSON null, left as-is | CODE |
| HIGH⚡ | xinference/model/image/ocr/tests/test_deepdoc_parse.py | 167 | # The field is omitted rather than set to null, so clients can rely | COMMENT |
| HIGH | xinference/model/audio/minimax_music3.py | 172 | "MiniMax-Music3 only accepts `voice` as null, an empty string, " | CODE |
| HIGH | xinference/model/audio/ace_step.py | 350 | "ACE-Step 1.5 only accepts `voice` as null, an empty string, " | CODE |
| HIGH | xinference/model/audio/yue2.py | 173 | "YuE2 only accepts `voice` as null, an empty string, or 'default'." | CODE |
| HIGH | xinference/api/restful_api.py | 1322 | "npm ci && npm run build" (this stages the export at the directory | CODE |
| HIGH | …nference/api/tests/test_frontend_static_real_export.py | 18 | (``cd frontend && npm run build``) and runs this module against | STRING |
| HIGH | xinference/api/tests/test_anthropic_messages.py | 146 | '"finish_reason":null}]}\n\n' | CODE |
| HIGH | xinference/api/tests/test_token_router_dispatch.py | 1272 | yield b'data: {"choices":[{"delta":{"content":"hello"},"finish_reason":null}]}\n\n' | CODE |
| HIGH | …rty/controlnet/annotator/oneformer/pycocotools/coco.py | 18 | # captions not all functions are defined (e.g. categories are undefined). | COMMENT |
| HIGH | xinference/thirdparty/audiotools/preference.py | 179 | if (region != null) { | CODE |
| HIGH | …ference/thirdparty/fish_speech/tools/webui/__init__.py | 18 | js="() => {const params = new URLSearchParams(window.location.search);if (!params.has('__theme')) {params.se | CODE |
| HIGH | …ference/thirdparty/irodori_tts/gradio_emoji_palette.py | 113 | "const input=root?document.querySelector(root.dataset.target):null;" | STRING |
| HIGH | …rence/thirdparty/ace_step_1_5/acestep/llm_inference.py | 800 | logger.error("nano-vllm is not installed. Please install it using 'cd acestep/third_parts/nano-vllm && pip i | CODE |
| HIGH | …rence/thirdparty/ace_step_1_5/acestep/llm_inference.py | 801 | return "❌ nano-vllm is not installed. Please install it using 'cd acestep/third_parts/nano-vllm && pip insta | CODE |
| HIGH | …ce_step_1_5/acestep/models/common/flow_edit_helpers.py | 50 | """Reduce a ``(cond, null)``-packed prediction to a guided velocity. | STRING |
| HIGH | …ce_step_1_5/acestep/models/common/flow_edit_helpers.py | 184 | torch.cat([enc_hs, null], dim=0), | CODE |
| HIGH | …model/mfr/unimernet/unimernet_hf/modeling_unimernet.py | 337 | r'\\(?:lefteqn|boldmath|ensuremath|centering|textsubscript|sides|textsl|textcent|emph|protect|null)') | CODE |
| HIGH | …odels/codec/speechtokenizer/modules/quantization/ac.py | 138 | self.packer.push(b1) | CODE |
| HIGH | …odels/codec/speechtokenizer/modules/quantization/ac.py | 185 | self.packer.push(b1) | CODE |
| HIGH | …odels/codec/speechtokenizer/modules/quantization/ac.py | 304 | encoder.push(symbol, q_cdf) | CODE |
| HIGH | …nce/thirdparty/indextts/s2mel/modules/flow_matching.py | 88 | # Stack original and CFG (null) inputs for batched processing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | xinference/core/worker.py | 3818 | # Check if packages contain PyTorch system markers (#system_torch#, etc.) | COMMENT |
| LOW | xinference/core/worker.py | 4718 | # Check if cancelled while waiting in queue | COMMENT |
| LOW | xinference/model/utils.py | 3050 | # Check if flash_attn is installed | COMMENT |
| LOW | xinference/model/utils.py | 3058 | # Check if CUDA is available | COMMENT |
| LOW | xinference/model/llm/reasoning_parser.py | 55 | # Check if <think> is present in previous or delta. | COMMENT |
| LOW | xinference/model/llm/llm_family.py | 422 | # Append the class to the list of transformer classes | COMMENT |
| LOW | xinference/model/llm/harmony.py | 60 | # Check if buffer ends with partial 'assistantfinal' | COMMENT |
| LOW | xinference/model/llm/harmony.py | 76 | # Check if this is actually a new message starting with 'analysis' | COMMENT |
| LOW | xinference/model/llm/harmony.py | 102 | # Check if buffer ends with partial 'assistantfinal' | COMMENT |
| LOW | xinference/model/llm/tool_parsers/qwen_tool_parser.py | 365 | # Check if current output contains tool_call start token | COMMENT |
| LOW | …ence/model/llm/tool_parsers/deepseek_r1_tool_parser.py | 86 | # Check if this block is a tool call | COMMENT |
| LOW | xinference/model/llm/tests/test_llm_model.py | 311 | # Check if tool_calls is present and is a list | COMMENT |
| LOW | xinference/model/llm/tests/test_llm_model.py | 325 | # Check if arguments is a valid JSON string | COMMENT |
| LOW | xinference/model/llm/vllm/xavier/legacy_engine.py | 125 | # Check if we have a cached last_output from the previous iteration. | COMMENT |
| LOW | …ce/model/llm/vllm/patches/hybrid_kv_cache_page_size.py | 107 | # Check if the original problematic code exists | COMMENT |
| LOW | …ce/model/llm/vllm/patches/hybrid_kv_cache_page_size.py | 119 | # Check if all smaller pages divide max evenly | COMMENT |
| LOW | xinference/model/llm/transformers/core.py | 474 | # Check if streaming | COMMENT |
| LOW | xinference/model/llm/transformers/core.py | 1112 | # Check if streaming | COMMENT |
| LOW⚡ | …erence/model/llm/transformers/tests/test_tensorizer.py | 118 | # Check if the logger.info was called with the expected message, indicating early return due to cache existence | COMMENT |
| LOW | xinference/model/llm/mlx/core.py | 184 | # Check if next_generated method exists (new API) | COMMENT |
| LOW | xinference/model/llm/mlx/core.py | 494 | # Check if there are any pending results (early results that arrived before queue was ready) | COMMENT |
| LOW | xinference/model/llm/mlx/core.py | 546 | # Check if generation is finished | COMMENT |
| LOW | xinference/model/llm/mlx/core.py | 571 | # Check if request is still in active set | COMMENT |
| LOW | xinference/model/llm/mlx/core.py | 2282 | # Check if processor supports audio to avoid feature_extractor errors | COMMENT |
| LOW | xinference/model/embedding/core.py | 236 | # Check if sentences is a two-dimensional list of integers | COMMENT |
| LOW | xinference/model/image/stable_diffusion/core.py | 1081 | # Check if we have a cancel callback for this request | COMMENT |
| LOW | …/thirdparty/fish_speech_s2/fish_speech/utils/schema.py | 69 | ): # Check if audio is a string (Base64) | CODE |
| LOW | …ch_s2/fish_speech/inference_engine/reference_loader.py | 170 | # Check if directory contains at least one audio file and corresponding .lab file | COMMENT |
| LOW | …ch_s2/fish_speech/inference_engine/reference_loader.py | 177 | # Check if corresponding .lab file exists for at least one audio file | COMMENT |
| LOW | …ch_s2/fish_speech/inference_engine/reference_loader.py | 206 | # Check if reference already exists | COMMENT |
| LOW | …ch_s2/fish_speech/inference_engine/reference_loader.py | 211 | # Check if audio file exists | COMMENT |
| LOW | …hirdparty/controlnet/annotator/leres/leres/depthmap.py | 288 | # Check if patching is beneficial by comparing the gradient density of the patch to | COMMENT |
| LOW | …hirdparty/controlnet/annotator/leres/leres/depthmap.py | 303 | # Check if we are still within the image | COMMENT |
| LOW | …hirdparty/controlnet/annotator/leres/leres/depthmap.py | 512 | # Check if Local boosting is beneficial. | COMMENT |
| LOW | …lnet/annotator/oneformer/detectron2/config/defaults.py | 244 | # Set this to -1 to use the same number of output channels as input channels. | COMMENT |
| LOW | …lnet/annotator/oneformer/detectron2/config/defaults.py | 631 | # Set seed to negative to fully randomize everything. | COMMENT |
| LOW | …lnet/annotator/oneformer/detectron2/config/defaults.py | 632 | # Set seed to positive to use a fixed seed. Note that a fixed seed increases | COMMENT |
| LOW | …e/thirdparty/mineru_vl_utils/post_process/otsl2html.py | 25 | # Check if this is a native BoundingBox or a bbox from docling-ibm-models | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/run_webui.py | 48 | # Check if MPS or CUDA is available | COMMENT |
| LOW | …e/thirdparty/fish_speech/tools/server/model_manager.py | 37 | # Check if MPS or CUDA is available | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/server/views.py | 159 | # Check if the text is too long | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/server/views.py | 166 | # Check if streaming is enabled | COMMENT |
| LOW | …/thirdparty/fish_speech/tools/server/agent/generate.py | 64 | # Check if all samples are finished | COMMENT |
| LOW | …rty/fish_speech/tools/server/agent/generation_utils.py | 102 | # Check if the token is semantic | COMMENT |
| LOW | …nference/thirdparty/ace_step_1_5/acestep/gpu_config.py | 1217 | # Check if a per-process memory fraction has been set | COMMENT |
| LOW | …nference/thirdparty/ace_step_1_5/acestep/gpu_config.py | 1400 | # Check if model size is in available models | COMMENT |
| LOW | …rence/thirdparty/ace_step_1_5/acestep/llm_inference.py | 1688 | # Check if user provided a meaningful negative prompt (not the default) | COMMENT |
| LOW | …rence/thirdparty/ace_step_1_5/acestep/llm_inference.py | 2889 | # Check if this is a new field (no leading spaces and contains ':') | COMMENT |
| LOW | …rence/thirdparty/ace_step_1_5/acestep/llm_inference.py | 2979 | # Check if keys need "model." prefix by inspecting first key | COMMENT |
| LOW | …rence/thirdparty/ace_step_1_5/acestep/llm_inference.py | 3287 | # Check if all items are done | COMMENT |
| LOW | …ce/thirdparty/ace_step_1_5/acestep/model_downloader.py | 646 | # Check if this is a known LM model | COMMENT |
| LOW | …ce/thirdparty/ace_step_1_5/acestep/model_downloader.py | 648 | # Check if it might be a variant name | COMMENT |
| LOW | …ce/thirdparty/ace_step_1_5/acestep/model_downloader.py | 689 | # Check if this is the default turbo model (part of main) | COMMENT |
| LOW | …ce/thirdparty/ace_step_1_5/acestep/model_downloader.py | 693 | # Check if it's a known sub-model | COMMENT |
| LOW | xinference/thirdparty/ace_step_1_5/acestep/inference.py | 742 | # Check if LM generation failed | COMMENT |
| LOW | xinference/thirdparty/ace_step_1_5/acestep/inference.py | 913 | # Check if generation failed | COMMENT |
| LOW | xinference/thirdparty/ace_step_1_5/acestep/inference.py | 1154 | # Check if LLM is initialized | COMMENT |
| LOW | xinference/thirdparty/ace_step_1_5/acestep/inference.py | 1178 | # Check if LLM returned empty metadata (error case) | COMMENT |
| LOW | xinference/thirdparty/ace_step_1_5/acestep/inference.py | 1331 | # Check if LLM is initialized | COMMENT |
| LOW | xinference/thirdparty/ace_step_1_5/acestep/inference.py | 1353 | # Check if LLM returned empty metadata (error case) | COMMENT |
| 60 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | xinference/core/tests/test_model.py | 278 | # rerank/embedding model must run del + empty_cache so its VRAM is | COMMENT |
| MEDIUM | xinference/core/tests/test_worker.py | 2606 | # test terminate LLM model, then launch embedding model | COMMENT |
| MEDIUM | …erence/model/llm/vllm/xavier/test/test_gpu_transfer.py | 17 | # Run transport orchestration on CPU; real CUDA IPC/NIXL is covered by the | COMMENT |
| MEDIUM | xinference/model/llm/models/gpt-oss.json | 145 | "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.py | 115 | # { embedding model name -> { engine name -> engine params } } | COMMENT |
| MEDIUM | xinference/model/embedding/core.py | 97 | # this class define the basic info of embedding model | COMMENT |
| MEDIUM | xinference/model/embedding/core.py | 104 | # Extra accepted input modalities. Text is implicit for every embedding model. | COMMENT |
| MEDIUM | …nference/model/embedding/sentence_transformers/core.py | 752 | # seems already support prompt in embedding model | COMMENT |
| MEDIUM⚡ | xinference/api/restful_api.py | 1206 | # Attach API instance for dependency injection (Depends(get_api), etc.) | COMMENT |
| MEDIUM | xinference/api/schemas/requests.py | 39 | # <0 = cap at the model's max_tokens. Honored by the embedding model base | COMMENT |
| MEDIUM | …ference/thirdparty/deepseek_vl2/models/conversation.py | 33 | # The number of few shot examples | COMMENT |
| MEDIUM | …irdparty/sensenova_u1/models/neo_unify/conversation.py | 52 | # The number of few shot examples | COMMENT |
| MEDIUM | xinference/thirdparty/deepseek_vl/utils/conversation.py | 65 | # The number of few shot examples | COMMENT |
| MEDIUM | xinference/thirdparty/internvl/conversation.py | 50 | # The number of few shot examples | COMMENT |
| MEDIUM | xinference/thirdparty/whisper/transcribe.py | 402 | # skip silence before possible hallucinations | COMMENT |
| MEDIUM⚡ | xinference/thirdparty/whisper/transcribe.py | 414 | # if first segment might be a hallucination, skip leading silence | COMMENT |
| MEDIUM⚡ | xinference/thirdparty/whisper/transcribe.py | 422 | # skip silence before any possible hallucination that is surrounded | COMMENT |
| MEDIUM⚡ | xinference/thirdparty/whisper/transcribe.py | 423 | # by silence or more hallucinations | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | xinference/model/utils.py | 3203 | # New model from user, just add it | COMMENT |
| LOW⚡ | xinference/model/llm/llm_family.py | 648 | # TODO: If user does not specify quantization, just use the first one | COMMENT |
| MEDIUM | xinference/model/llm/core.py | 252 | # Use model_specs from huggingface, as HuggingFace is the most comprehensive. | COMMENT |
| LOW⚡ | xinference/model/embedding/embed_family.py | 105 | # TODO: If user does not specify quantization, just use the first one | COMMENT |
| LOW | xinference/model/rerank/rerank_family.py | 104 | # TODO: If user does not specify quantization, just use the first one | COMMENT |
| LOW | …erence/thirdparty/cosyvoice/transformer/convolution.py | 124 | # It's better we just return None if no cache is required, | COMMENT |
| MEDIUM | xinference/thirdparty/cosyvoice/utils/executor.py | 45 | # A context manager to be used in conjunction with an instance of | COMMENT |
| MEDIUM | xinference/thirdparty/cosyvoice/utils/executor.py | 97 | # A context manager to be used in conjunction with an instance of | COMMENT |
| LOW | …tor/mmpkg/mmcv/runner/optimizer/default_constructor.py | 249 | # if no paramwise option is specified, just use the global setting | COMMENT |
| MEDIUM | …hirdparty/controlnet/annotator/leres/leres/depthmap.py | 656 | # We use a simple Gaussian mask to blend the merged patch region with the base estimate to ensure seamless | COMMENT |
| LOW | …ontrolnet/annotator/oneformer/detectron2/layers/nms.py | 18 | # just call it directly. | COMMENT |
| LOW⚡ | …lnet/annotator/oneformer/detectron2/config/defaults.py | 40 | # To train on images of different number of channels, just set different mean & std. | COMMENT |
| LOW | …r/oneformer/detectron2/modeling/roi_heads/fast_rcnn.py | 360 | # Here we just use proposal_boxes as an arbitrary placeholder because its | COMMENT |
| LOW | …ontrolnet/annotator/oneformer/detectron2/export/c10.py | 563 | # just return the keypoint heatmap for now, | COMMENT |
| LOW | …notator/oneformer/detectron2/export/caffe2_modeling.py | 79 | # used anyway when batch size is 0, so just set them to 0. | COMMENT |
| MEDIUM | xinference/thirdparty/sensenova_u1/utils/param_count.py | 166 | # parameter, which is robust to mixed-dtype checkpoints (e.g. norms | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 1793 | # Avoid infinite recursion: if we're still in a fixed_strings state, just return scores | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 1795 | # This shouldn't happen, but if it does, just return scores to avoid recursion | COMMENT |
| LOW | …ep/third_parts/nano-vllm/nanovllm/engine/llm_engine.py | 65 | # For now, just use the same prompt (user should provide unconditional_prompt) | COMMENT |
| MEDIUM | …irdparty/ace_step_1_5/acestep/core/scoring/lm_score.py | 339 | # Calculate recall using the robust logic | COMMENT |
| LOW | xinference/thirdparty/f5_tts/model/cfm.py | 136 | duration = torch.maximum(lens + 1, duration) # just add one token so something is generated | CODE |
| LOW | xinference/thirdparty/f5_tts/model/dataset.py | 214 | # if want to have different batches between epochs, may just set a seed and log it in ckpt | COMMENT |
| MEDIUM | xinference/thirdparty/f5_tts/infer/speech_edit.py | 54 | # [leverage https://github.com/MahmoudAshraf97/ctc-forced-aligner to get char level alignment] | COMMENT |
| MEDIUM | …eocr2pytorch/pytorchocr/postprocess/rec_postprocess.py | 111 | ): # grouping word with '-', such as 'state-of-the-art' | CODE |
| MEDIUM | …irdparty/indextts/gpt/transformers_generation_utils.py | 372 | # (this alternative is not as robust as calling `generate` and letting it create `cache_position`) | COMMENT |
| MEDIUM | …irdparty/indextts/gpt/transformers_generation_utils.py | 648 | # 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.py | 854 | # generation. In these cases we simply return the highest scoring outputs. | STRING |
| LOW | …thirdparty/indextts/gpt/transformers_modeling_utils.py | 5402 | # We can probably just use the multi-head attention module of PyTorch >=1.1.0 | STRING |
| LOW | xinference/thirdparty/indextts/gpt/conformer_encoder.py | 146 | # It's better we just return None if no cache is required, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …m/tool_parsers/tests/test_deepseek_v3_1_tool_parser.py | 301 | # Step 1: Part 1 of end token | COMMENT |
| LOW⚡ | …m/tool_parsers/tests/test_deepseek_v3_1_tool_parser.py | 308 | # Step 2: Part 2 of end token | COMMENT |
| LOW | xinference/model/llm/tests/test_stream_options.py | 1015 | # Step 1: Get the initial response with stream=True | COMMENT |
| LOW | xinference/model/llm/tests/test_stream_options.py | 1033 | # Step 2: Get the final response after tool calls with stream=True | COMMENT |
| LOW | xinference/model/llm/tests/test_stream_options.py | 1051 | # Step 3: Get the initial response with stream=False | COMMENT |
| LOW | xinference/model/llm/tests/test_stream_options.py | 1068 | # Step 4: Get the final response after tool calls with stream=False | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 174 | // Step 1: | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 186 | // Step 2: | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 197 | // Step 3: | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 243 | // Step 4: | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 259 | // Step 5: | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/fish_e2e.py | 106 | # Step 1: Encode audio using VQGAN | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/fish_e2e.py | 135 | # Step 2: Prepare LLM request | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/fish_e2e.py | 182 | # Step 3: Stream LLM response and decode audio | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 719 | # Step 1: Encode full string "keyscale: {keyscale}" (with space, as tokenizer sees it) | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 723 | # Step 2: Find where context ends in full_token_ids | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 738 | # Step 3: Extract keyscale value tokens (everything after context) | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 741 | # Step 4: Verify we extracted some tokens (sanity check) | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 747 | # Step 5: Verify first token is a note (A-G) | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 759 | # Step 6: Build prefix mappings from keyscale value tokens | COMMENT |
| LOW⚡ | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 156 | # Step 1: Concatenate hidden states and masks along sequence dimension | COMMENT |
| LOW⚡ | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 162 | # Step 2: Sort indices so that mask values of 1 come before 0 | COMMENT |
| LOW⚡ | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 165 | # Step 3: Reorder hidden states using sorted indices | COMMENT |
| LOW⚡ | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 168 | # Step 4: Create new mask based on valid sequence lengths | COMMENT |
| LOW | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 500 | # Step 1: Self-attention with adaptive layer norm (AdaLN) | COMMENT |
| LOW | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 516 | # Step 2: Cross-attention (if enabled) for conditioning on encoder outputs | COMMENT |
| LOW | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 531 | # Step 3: Feed-forward (MLP) with adaptive layer norm | COMMENT |
| LOW⚡ | …hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py | 329 | # Step 1: Self-attention with AdaLN | COMMENT |
| LOW⚡ | …hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py | 339 | # Step 2: Cross-attention | COMMENT |
| LOW⚡ | …hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py | 350 | # Step 3: MLP with AdaLN | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …m/tool_parsers/tests/test_deepseek_v3_1_tool_parser.py | 301 | # Step 1: Part 1 of end token | COMMENT |
| LOW⚡ | …m/tool_parsers/tests/test_deepseek_v3_1_tool_parser.py | 308 | # Step 2: Part 2 of end token | COMMENT |
| LOW | xinference/model/llm/tests/test_stream_options.py | 1015 | # Step 1: Get the initial response with stream=True | COMMENT |
| LOW | xinference/model/llm/tests/test_stream_options.py | 1033 | # Step 2: Get the final response after tool calls with stream=True | COMMENT |
| LOW | xinference/model/llm/tests/test_stream_options.py | 1051 | # Step 3: Get the initial response with stream=False | COMMENT |
| LOW | xinference/model/llm/tests/test_stream_options.py | 1068 | # Step 4: Get the final response after tool calls with stream=False | COMMENT |
| LOW | …rolnet/annotator/oneformer/detectron2/export/shared.py | 87 | # NOTE: The input dimensions are interpreted in the form: | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/fish_e2e.py | 106 | # Step 1: Encode audio using VQGAN | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/fish_e2e.py | 135 | # Step 2: Prepare LLM request | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/fish_e2e.py | 182 | # Step 3: Stream LLM response and decode audio | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 719 | # Step 1: Encode full string "keyscale: {keyscale}" (with space, as tokenizer sees it) | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 723 | # Step 2: Find where context ends in full_token_ids | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 738 | # Step 3: Extract keyscale value tokens (everything after context) | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 741 | # Step 4: Verify we extracted some tokens (sanity check) | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 747 | # Step 5: Verify first token is a note (A-G) | COMMENT |
| LOW⚡ | …y/ace_step_1_5/acestep/constrained_logits_processor.py | 759 | # Step 6: Build prefix mappings from keyscale value tokens | COMMENT |
| LOW⚡ | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 156 | # Step 1: Concatenate hidden states and masks along sequence dimension | COMMENT |
| LOW⚡ | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 162 | # Step 2: Sort indices so that mask values of 1 come before 0 | COMMENT |
| LOW⚡ | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 165 | # Step 3: Reorder hidden states using sorted indices | COMMENT |
| LOW⚡ | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 168 | # Step 4: Create new mask based on valid sequence lengths | COMMENT |
| LOW | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 500 | # Step 1: Self-attention with adaptive layer norm (AdaLN) | COMMENT |
| LOW | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 516 | # Step 2: Cross-attention (if enabled) for conditioning on encoder outputs | COMMENT |
| LOW | …1_5/acestep/models/turbo/modeling_acestep_v15_turbo.py | 531 | # Step 3: Feed-forward (MLP) with adaptive layer norm | COMMENT |
| LOW⚡ | …hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py | 329 | # Step 1: Self-attention with AdaLN | COMMENT |
| LOW⚡ | …hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py | 339 | # Step 2: Cross-attention | COMMENT |
| LOW⚡ | …hirdparty/ace_step_1_5/acestep/models/mlx/dit_model.py | 350 | # Step 3: MLP with AdaLN | COMMENT |
| LOW | …irdparty/indextts/gpt/transformers_generation_utils.py | 3549 | # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memory | STRING |
| LOW | …irdparty/indextts/gpt/transformers_generation_utils.py | 3842 | # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memory | STRING |
| LOW | …irdparty/indextts/gpt/transformers_generation_utils.py | 4080 | # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memory | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …nference/model/embedding/tests/test_embeddinggemma2.py | 186 | model._model.register_forward_pre_hook.return_value.remove.assert_called_once() | CODE |
| CRITICAL⚡ | …nference/model/embedding/tests/test_embeddinggemma2.py | 206 | model._model.register_forward_pre_hook.return_value.remove.assert_called_once() | CODE |
| CRITICAL | xinference/thirdparty/audiotools/core/util.py | 475 | batch[k] = torch.utils.data._utils.collate.default_collate(v) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …rty/controlnet/annotator/oneformer/oneformer/config.py | 146 | # you can use this config to override | COMMENT |
| MEDIUM⚡ | …lnet/annotator/oneformer/detectron2/config/defaults.py | 45 | # Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std) | COMMENT |
| MEDIUM | xinference/thirdparty/melo/text/chinese.py | 73 | assert len(word2ph) == len(text) # Sometimes it will crash,you can add a try-catch. | CODE |
| MEDIUM | xinference/thirdparty/melo/text/chinese_mix.py | 80 | # 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.py | 2907 | # Don't forget to save the last field | COMMENT |
| MEDIUM | …nce/thirdparty/f5_tts/train/datasets/prepare_emilia.py | 2 | # if use updated new version, i.e. WebDataset, feel free to modify / draft your own script | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | xinference/api/tests/test_ocr_pdf.py | 531 | # 200 A4 pages at zoomin 3 is only 0.902 G px as requested, so the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/src/components/ui/segmented.tsx | 17 | 'placeholder' | CODE |
| LOW | …/controlnet/annotator/leres/pix2pix/models/networks.py | 365 | netD, real_data, fake_data, device, type="mixed", constant=1.0, lambda_gp=10.0 | CODE |
| LOW | …/controlnet/annotator/leres/pix2pix/models/networks.py | 372 | fake_data (tensor array) -- generated images from the generator | STRING |
| LOW | …/controlnet/annotator/leres/pix2pix/models/networks.py | 386 | interpolatesv = fake_data | CODE |
| LOW | …/controlnet/annotator/leres/pix2pix/models/networks.py | 396 | interpolatesv = alpha * real_data + ((1 - alpha) * fake_data) | CODE |
| LOW⚡ | doc/source/norm_zh.py | 62 | ... "Lorem ipsum dolor sit amet, consectetur adipisicing elit, " | CODE |
| LOW⚡ | doc/source/norm_zh.py | 62 | ... "Lorem ipsum dolor sit amet, consectetur adipisicing elit, " | CODE |
| LOW⚡ | doc/source/norm_zh.py | 66 | " \"Lorem ipsum dolor sit " | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | xinference/thirdparty/fish_speech/tools/api_client.py | 176 | "authorization": "Bearer YOUR_API_KEY", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rty/controlnet/annotator/oneformer/pycocotools/mask.py | 39 | # Usage: | COMMENT |
| LOW | xinference/thirdparty/fish_speech/tools/fish_e2e.py | 263 | # Example usage: | COMMENT |
| LOW | …party/matcha/utils/get_durations_from_trained_model.py | 192 | # Example usage: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …y/controlnet/annotator/mmpkg/mmcv/runner/fp16_utils.py | 84 | >>> def do_something(self, pred, others): | STRING |
| LOW | …ce/thirdparty/fish_speech/tools/llama/build_dataset.py | 65 | def run_task(task): | CODE |
| LOW | xinference/thirdparty/mineru/utils/run_async.py | 38 | def helper(): | CODE |