LLM inference in C/C++
1859 matches across 20 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/quantize/quantize.cpp | 1 | #include "llama.h" |
| LOW | tools/ui/embed.cpp | 1 | // llama-ui-embed: generate ui.cpp / ui.h that embed UI assets as C arrays. |
| LOW | tools/ui/scripts/dev.sh | 1 | #!/bin/bash |
| LOW | tools/cvector-generator/pca.hpp | 1 | #include "common.h" |
| LOW | tools/cvector-generator/cvector-generator.cpp | 1 | #include "ggml.h" |
| LOW | tools/cvector-generator/cvector-generator.cpp | 21 | #include <algorithm> |
| LOW | tools/mtmd/mtmd.h | 1 | #ifndef MTMD_H |
| LOW | tools/mtmd/mtmd.h | 41 | # define MTMD_API __declspec(dllimport) |
| LOW | tools/mtmd/mtmd.h | 121 | // whether the current model supports vision input |
| LOW | tools/mtmd/mtmd.h | 201 | }; |
| LOW | tools/mtmd/mtmd-helper.cpp | 1 | // fix problem with std::min and std::max |
| LOW | tools/mtmd/mtmd-helper.cpp | 21 | #ifndef MTMD_AUDIO_DEBUG |
| LOW | tools/mtmd/mtmd.cpp | 1 | #include "clip.h" |
| LOW | tools/mtmd/clip.cpp | 1 | #include "clip.h" |
| LOW | tools/mtmd/mtmd-helper.h | 1 | #ifndef MTMD_HELPER_H |
| LOW | tools/mtmd/mtmd-helper.h | 21 | // |
| LOW | tools/mtmd/mtmd-helper.h | 41 | MTMD_API mtmd_bitmap * mtmd_helper_bitmap_init_from_buf(mtmd_context * ctx, const unsigned char * buf, size_t len); |
| LOW | tools/mtmd/clip-impl.h | 1 | #pragma once |
| LOW | tools/mtmd/clip-impl.h | 21 | #define KEY_NAME "general.name" |
| LOW | tools/mtmd/clip-impl.h | 41 | #define KEY_IMAGE_MAX_PIXELS "clip.vision.image_max_pixels" |
| LOW | tools/mtmd/clip-impl.h | 61 | #define KEY_SAM_N_HEAD "clip.vision.sam.head_count" |
| LOW | tools/mtmd/clip-impl.h | 81 | #define TN_CLASS_EMBD "v.class_embd" |
| LOW | tools/mtmd/clip-impl.h | 101 | #define TN_LS_2 "%s.blk.%d.ls2.%s" // layer scale |
| LOW | tools/mtmd/clip-impl.h | 121 | #define TN_MM_PROJECTOR "mm.model.fc.%s" // idefics3, deepseekocr |
| LOW | tools/mtmd/clip-impl.h | 141 | #define TN_VIT_MERGER_ATTN_Q "v.vit_merger.attn_q.%s" |
| LOW | tools/mtmd/clip-impl.h | 161 | #define TN_MM_AUDIO_FC "mm.a.fc.%s" // fully connected layer |
| LOW | tools/mtmd/clip-impl.h | 181 | #define TN_SAM_PRE_NORM "v.sam.blk.%d.pre_ln.%s" |
| LOW | tools/mtmd/clip-impl.h | 201 | #define TN_NORM_CONV "%s.blk.%d.norm_conv.%s" |
| LOW | tools/mtmd/clip-impl.h | 221 | #define TN_QF_CROSS_ATTN_K "a.proj_blk.%d.cross_attn_k.%s" |
| LOW | tools/mtmd/clip-impl.h | 241 | #define TN_A_FFN_POST_NORM "%s.blk.%d.ffn_post_norm.%s" |
| LOW | tools/mtmd/clip-impl.h | 261 | #define TN_MNV5_BLK_PW_EXP_BN "v.blk.%d.%d.pw_exp.bn.weight" |
| LOW | tools/mtmd/clip-impl.h | 281 | #define TN_MNV5_MSFA_FFN_PROJ_BN "v.msfa.ffn.pw_proj.bn.weight" |
| LOW | tools/mtmd/mtmd-audio.cpp | 1 | #include "mtmd-audio.h" |
| LOW | tools/mtmd/mtmd-cli.cpp | 1 | #include "arg.h" |
| LOW | …ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py | 281 | block_count = v_hparams["num_hidden_layers"] - 1 if has_llava_projector else v_hparams["num_hidden_layers"] |
| LOW | …ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py | 301 | # [ |
| LOW | …egacy-models/minicpmv-convert-image-encoder-to-gguf.py | 1 | # coding=utf-8 |
| LOW | tools/mtmd/models/mimovl.cpp | 1 | #include "models.h" |
| LOW | tools/mtmd/debug/mtmd-debug.cpp | 1 | #include "mtmd-debug.h" |
| LOW | tools/completion/completion.cpp | 1 | #include "arg.h" |
| LOW | tools/completion/completion.cpp | 21 | #include <unistd.h> |
| LOW | tools/server/server-common.h | 1 | #pragma once |
| LOW | tools/server/server-http.cpp | 1 | #include "common.h" |
| LOW | tools/server/server-task.cpp | 1 | #include "server-task.h" |
| LOW | tools/server/server-common.cpp | 1 | #include "common.h" |
| LOW | tools/server/server-common.cpp | 1441 | const bool spm_infill, |
| LOW | tools/server/server-context.cpp | 1 | |
| LOW | tools/server/server-context.cpp | 21 | #include <cinttypes> |
| LOW | tools/server/server-context.cpp | 3181 | // | Eagle3 | yes | |
| LOW | tools/server/server-context.cpp | 3201 | // if (llama_model_has_encoder(model_dft.get())) { |
| LOW | tools/server/server-http.h | 1 | #pragma once |
| LOW | tools/server/server-chat.cpp | 281 | if (response_body.contains("max_output_tokens")) { |
| LOW | tools/server/server-models.cpp | 1 | #include "server-common.h" |
| LOW | tools/server/server-models.cpp | 21 | #include <filesystem> |
| LOW | tools/server/server-queue.cpp | 1 | #include "server-task.h" |
| LOW | tools/server/server-tools.cpp | 1 | #include "server-tools.h" |
| LOW | tools/server/server.cpp | 1 | #include "server-context.h" |
| LOW | tools/server/tests/unit/test_tool_call.py | 121 | assert expected_function_name == tool_call["function"]["name"], f'Expected tool name to be {tool_call["function"]["n |
| LOW | tools/server/tests/unit/test_tool_call.py | 141 | # def test_completion_with_required_tool_tiny_fast(template_name: str, tool: dict, argument_key: str | None, stream: Com |
| LOW | tools/server/tests/unit/test_tool_call.py | 161 | # # Functionary v3.2 format supports raw python content, which w/ a dummy stories model will never end on its own. |
| 763 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …legacy-models/glmedge-convert-image-encoder-to-gguf.py | 0 | returns list of utf-8 byte and a corresponding list of unicode strings. the reversible bpe codes work on unicode strings |
| HIGH | …ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py | 0 | returns list of utf-8 byte and a corresponding list of unicode strings. the reversible bpe codes work on unicode strings |
| HIGH | …egacy-models/minicpmv-convert-image-encoder-to-gguf.py | 0 | returns list of utf-8 byte and a corresponding list of unicode strings. the reversible bpe codes work on unicode strings |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "type": "integer", "minimum": 5, "maximum": 30 }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "type": "integer", "minimum": 5, "maximum": 30 }) |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ({ "type": "integer", "minimum": 5, "maximum": 30 }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "type": "integer", "minimum": -123, "maximum": 42 }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "type": "integer", "minimum": -123, "maximum": 42 }) |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ({ "type": "integer", "minimum": -123, "maximum": 42 }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] }) |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "type": "string", "minlength": 1, "maxlength": 4 }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "type": "string", "minlength": 1, "maxlength": 4 }) |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ({ "type": "string", "minlength": 1, "maxlength": 4 }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "enum": ["red", "amber", "green", null, 42, ["foo"]] }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "enum": ["red", "amber", "green", null, 42, ["foo"]] }) |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ({ "enum": ["red", "amber", "green", null, 42, ["foo"]] }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 }) |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "type": "object", "properties": { "number": { "type": "number" }, "street_name": { "type": "string" }, "street_type": |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "type": "object", "properties": { "number": { "type": "number" }, "street_name": { "type": "string" }, "street_type": |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "type": "object", "properties": { "number": { "type": "number" }, "street_name": { "type": "string" }, "street_type": |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania" }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania" }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania" }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania" }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania" }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania" }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type": "avenue" }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type": "avenue" }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type": "avenue" }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type": "avenue" }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type": "avenue" }) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type": "avenue" }) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": "1600", "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": "1600", "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": "1600", "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": "1600", "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": "1600", "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": "1600", "street_name": "pennsylvania", "street_type":"avenue"}) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type":"avenue", "direction":"nw"}) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type":"avenue", "direction":"nw"}) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type":"avenue", "direction":"nw"}) |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "number": 1600, "street_name": "pennsylvania", "street_type":"avenue", "direction":"nw"}) |
| HIGH | tests/test-grammar-llguidance.cpp | 0 | ({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} }, |
| HIGH | tests/test-grammar-integration.cpp | 0 | ({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} }, |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} }, |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ( array ::= "[" space ( value ("," space value)* )? "]" space boolean ::= ("true" | "false") space char ::= [^"\\\x7f\x0 |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ( array ::= "[" space ( value ("," space value)* )? "]" space boolean ::= ("true" | "false") space char ::= [^"\\\x7f\x0 |
| HIGH | tests/test-json-schema-to-grammar.cpp | 0 | ( array ::= "[" space ( value ("," space value)* )? "]" space boolean ::= ("true" | "false") space char ::= [^"\\\x7f\x0 |
| HIGH | examples/llama-eval/llama-eval.py | 0 | solve the following math problem step by step. put your answer inside \\boxed{{}}. {question} remember to put your answe |
| HIGH | examples/llama-eval/llama-eval.py | 0 | solve the following math problem step by step. put your answer inside \\boxed{{}}. {question} remember to put your answe |
| HIGH | examples/llama-eval/llama-eval.py | 0 | solve the following math problem step by step. put your answer inside \\boxed{{}}. {question} remember to put your answe |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/ui/tests/unit/agentic-strip.test.ts | 11 | function stripLegacyContextMarkers(content: string): string { |
| LOW | …ls/ui/src/lib/contexts/chat-settings-config.context.ts | 12 | export function setChatSettingsConfigContext( |
| LOW | …ls/ui/src/lib/contexts/chat-settings-config.context.ts | 18 | export function getChatSettingsConfigContext(): ChatSettingsConfigContext { |
| LOW | tools/ui/src/lib/stores/agentic.svelte.ts | 985 | export function agenticPendingPermissionRequest(conversationId: string) { |
| LOW | tools/ui/src/lib/stores/agentic.svelte.ts | 993 | export function agenticPendingContinueRequest(conversationId: string) { |
| LOW | tools/ui/src/lib/stores/agentic.svelte.ts | 1001 | export function agenticHasPendingSteeringMessage(conversationId: string) { |
| LOW | tools/ui/src/lib/stores/agentic.svelte.ts | 1005 | export function agenticInjectSteeringMessage( |
| LOW | tools/ui/src/lib/stores/agentic.svelte.ts | 1013 | export function agenticPendingSteeringMessageContent(conversationId: string) { |
| LOW | tools/ui/src/lib/stores/agentic.svelte.ts | 1017 | export function agenticPendingSteeringMessageExtras(conversationId: string) { |
| LOW | tools/ui/src/lib/stores/agentic.svelte.ts | 1021 | export function agenticClearSteeringMessage(conversationId: string) { |
| LOW | tools/ui/src/lib/utils/audio-recording.ts | 249 | export function isAudioRecordingSupported(): boolean { |
| LOW | tools/ui/src/lib/utils/sanitize.ts | 21 | export function sanitizeKeyValuePairValue(raw: string): string { |
| LOW | tools/ui/src/lib/utils/modality-file-validation.ts | 17 | export function isFileTypeSupportedByModel( |
| LOW | tools/ui/src/lib/utils/modality-file-validation.ts | 134 | export function generateModalityErrorMessage( |
| LOW | tools/ui/src/lib/utils/clipboard.ts | 103 | export function formatMessageForClipboard( |
| LOW | tools/ui/src/lib/utils/clipboard.ts | 255 | function isValidMcpPromptAttachment(obj: unknown): obj is { |
| LOW | tools/ui/src/lib/utils/text.ts | 15 | export function generateConversationTitle(content: string, useFirstLine: boolean = false): string { |
| LOW | tools/ui/src/lib/utils/mcp.ts | 41 | export function detectMcpTransportFromUrl(url: string): MCPTransportType { |
| LOW | tools/ui/src/lib/utils/code.ts | 51 | export function detectIncompleteCodeBlock(markdown: string): IncompleteCodeBlock | null { |
| LOW | tools/ui/src/lib/utils/image-error-fallback.ts | 5 | export function getImageErrorFallbackHtml(src: string): string { |
| LOW | tools/ui/src/lib/utils/agentic.ts | 179 | export function parseToolResultWithImages( |
| LOW | tools/ui/src/lib/utils/convert-files-to-extra.ts | 30 | export async function parseFilesToMessageExtras( |
| LOW | tools/ui/src/lib/utils/file-type.ts | 110 | export function getFileTypeCategoryByExtension(filename: string): FileTypeCategory | null { |
| LOW | tools/ui/src/lib/utils/process-uploaded-files.ts | 51 | export async function processFilesToChatUploaded( |
| LOW | tools/ui/src/lib/utils/request-helpers.ts | 87 | export function formatDiagnosticErrorMessage(error: unknown): string { |
| LOW | tools/ui/src/lib/utils/attachment-display.ts | 47 | export function getAttachmentDisplayItems( |
| LOW | …ttings/SettingsChat/SettingsChatImportExportTab.svelte | 44 | function handleSettingsExportConfirm() { |
| LOW | …ttings/SettingsChat/SettingsChatImportExportTab.svelte | 68 | function handleSettingsExportCancel() { |
| LOW | …s/app/chat/ChatMessages/ChatMessage/ChatMessage.svelte | 322 | function handleShowDeleteDialogChange(show: boolean) { |
| LOW | …i/src/lib/components/app/chat/ChatForm/ChatForm.svelte | 411 | function handleInlineResourcePickerClose() { |
| LOW | …i/src/lib/components/app/chat/ChatForm/ChatForm.svelte | 417 | function handleInlineResourceSelect() { |
| LOW | …c/lib/components/app/chat/ChatScreen/ChatScreen.svelte | 180 | function handleProcessingInfoVisibility(visible: boolean) { |
| LOW | …c/lib/components/app/chat/ChatScreen/ChatScreen.svelte | 204 | function handleErrorDialogOpenChange(open: boolean) { |
| LOW | …tion/SidebarNavigation/SidebarNavigationActions.svelte | 27 | function handleSearchModeDeactivate() { |
| LOW | …/navigation/SidebarNavigation/SidebarNavigation.svelte | 113 | export function handleMobileSidebarItemClick() { |
| LOW | …nts/app/content/MarkdownContent/MarkdownContent.svelte | 292 | function handlePreviewDialogOpenChange(open: boolean) { |
| LOW | …ownContent/plugins/rehype/resolve-attachment-images.ts | 10 | export function rehypeResolveAttachmentImages(options: { attachments?: DatabaseMessageExtra[] }) { |
| LOW | …omponents/app/dialogs/DialogMcpResourcesBrowser.svelte | 128 | async function handleAttachTemplateResource() { |
| LOW | …omponents/app/dialogs/DialogMcpResourcesBrowser.svelte | 204 | function getAllResourcesFlatInTreeOrder(): MCPResourceInfo[] { |
| LOW | tools/ui/src/lib/hooks/use-auto-scroll.svelte.ts | 212 | export function createAutoScrollController(options: AutoScrollOptions = {}): AutoScrollController { |
| LOW | tools/mtmd/legacy-models/llava_surgery_v2.py | 65 | def clean_vision_tower_from_checkpoint(checkpoint_path): |
| LOW | tools/mtmd/legacy-models/llava_surgery_v2.py | 101 | def find_relevant_checkpoints(checkpoint_paths, newline_criteria, projector): |
| LOW | …ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py | 233 | def get_non_negative_vision_feature_layers(v_hparams): |
| LOW | tools/server/bench/speed-bench/speed_bench.py | 139 | def parse_completion_response(data: dict[str, Any]) -> tuple[dict[str, Any], dict[str, Any], str | None, str]: |
| LOW | tools/server/tests/conftest.py | 7 | def stop_server_after_each_test(): |
| LOW | tools/server/tests/unit/test_infill.py | 12 | def test_infill_without_input_extra(): |
| LOW | tools/server/tests/unit/test_infill.py | 24 | def test_infill_with_input_extra(): |
| LOW | tools/server/tests/unit/test_infill.py | 47 | def test_invalid_input_extra_req(input_extra): |
| LOW | tools/server/tests/unit/test_basic.py | 99 | def test_server_model_aliases_and_tags(): |
| LOW | tools/server/tests/unit/test_security.py | 17 | def test_access_public_endpoint(endpoint: str): |
| LOW | tools/server/tests/unit/test_security.py | 25 | def test_access_static_assets_without_api_key(): |
| LOW | tools/server/tests/unit/test_security.py | 61 | def test_correct_api_key_anthropic_header(): |
| LOW | tools/server/tests/unit/test_security.py | 74 | def test_openai_library_correct_api_key(): |
| LOW | tools/server/tests/unit/test_router.py | 32 | def test_router_chat_completion_stream(model: str, success: bool): |
| LOW | tools/server/tests/unit/test_router.py | 118 | def test_router_models_max_evicts_lru(): |
| LOW | tools/server/tests/unit/test_router.py | 147 | def test_router_no_models_autoload(): |
| LOW | tools/server/tests/unit/test_router.py | 180 | def test_router_api_key_required(): |
| LOW | tools/server/tests/unit/test_router.py | 216 | def test_router_reload_models(): |
| LOW | tools/server/tests/unit/test_ctx_shift.py | 50 | def test_ctx_shift_disabled_short_prompt(n_predict: int, n_token_output: int, truncated: bool): |
| LOW | tools/server/tests/unit/test_ctx_shift.py | 63 | def test_ctx_shift_disabled_long_prompt(): |
| 230 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/mtmd/clip.cpp | 3424 | // ├─────┤ │ |
| MEDIUM | tools/mtmd/clip.cpp | 3426 | // ├─────┤ │ |
| MEDIUM | tools/mtmd/clip.cpp | 3428 | // └─────┘ │ |
| MEDIUM | tools/mtmd/clip.cpp | 3429 | // ──────┘ x B |
| MEDIUM | …com/arm/aichat/internal/gguf/GgufMetadataReaderImpl.kt | 120 | // ── 1. header ────────────────────────────────────────────────────────── |
| MEDIUM | …com/arm/aichat/internal/gguf/GgufMetadataReaderImpl.kt | 129 | // ── 3. build structured object ──────────────────────────────────────── |
| MEDIUM | examples/llama.android/lib/src/main/cpp/CMakeLists.txt | 14 | # -------------------------------------------------------------------------- |
| MEDIUM | examples/llama.android/lib/src/main/cpp/CMakeLists.txt | 16 | # -------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 17 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 19 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 77 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 79 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 242 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 244 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 273 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 275 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 1076 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 1078 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 1089 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-function-call.py | 1091 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 29 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 31 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 97 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 99 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 254 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 256 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 337 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 339 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 372 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 374 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 913 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 915 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 927 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-parallel-tc.py | 929 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 29 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 31 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 100 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 102 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 258 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 260 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 355 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 357 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 970 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 972 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 984 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/server-test-structured.py | 986 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/jinja/jinja-tester.py | 157 | # ------------------------ |
| MEDIUM | scripts/jinja/jinja-tester.py | 159 | # ------------------------ |
| MEDIUM | scripts/jinja/jinja-tester.py | 287 | # ------------------------ |
| MEDIUM | scripts/jinja/jinja-tester.py | 289 | # ------------------------ |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 121 | # ============================================================================= |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 123 | # ============================================================================= |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 230 | # ============================================================================= |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 232 | # ============================================================================= |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 271 | # ============================================================================= |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 273 | # ============================================================================= |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 365 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 367 | # --------------------------------------------------------------------------- |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 515 | # ============================================================================= |
| MEDIUM | scripts/snapdragon/qdc/run_qdc_jobs.py | 517 | # ============================================================================= |
| 10 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | convert_hf_to_gguf_update.py | 267 | except Exception as e: |
| LOW | convert_hf_to_gguf_update.py | 302 | except Exception as e: |
| LOW | tools/server/bench/bench.py | 58 | except Exception: |
| LOW | tools/server/bench/bench.py | 84 | except Exception: |
| LOW | tools/server/bench/speed-bench/speed_bench.py | 252 | except Exception as exc: |
| LOW | tools/server/bench/speed-bench/speed_bench.py | 389 | except Exception as exc: |
| LOW | tools/server/bench/speed-bench/speed_bench_compare.py | 73 | except Exception as exc: |
| LOW | tools/server/tests/utils.py | 296 | except Exception as e: |
| LOW | tools/server/tests/utils.py | 321 | except Exception as e: |
| MEDIUM | tools/server/tests/utils.py | 322 | print(f"Error waiting for server: {e}") |
| LOW | tools/server/tests/utils.py | 631 | except Exception as e: |
| MEDIUM | tools/server/tests/utils.py | 627 | def worker(index, func, args): |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 923 | except Exception as e: |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1588 | except Exception as e: |
| MEDIUM | examples/pydantic_models_to_grammar_examples.py | 66 | print(f"Error: unknown tool {json_data['function']}") |
| MEDIUM | examples/pydantic_models_to_grammar_examples.py | 142 | print(f"Error: unknown tool {json_data['function']}") |
| MEDIUM | examples/pydantic_models_to_grammar_examples.py | 285 | print(f"Error: unknown tool {call['function']}") |
| MEDIUM | examples/pydantic_models_to_grammar.py | 1001 | print(f"An error occurred while saving the grammar file: {e}") |
| MEDIUM | examples/pydantic_models_to_grammar.py | 1008 | print(f"An error occurred while saving the documentation file: {e}") |
| LOW | examples/llama-eval/llama-eval.py | 1055 | except Exception as e: |
| LOW | examples/llama-eval/llama-eval.py | 1097 | except Exception as e: |
| LOW | examples/llama-eval/llama-eval.py | 1137 | except Exception as e: |
| MEDIUM | examples/llama-eval/llama-eval.py | 1138 | print(f"Error: Cannot reach server {server_config.name} ({server_config.url}): {e}", file=sys.stderr) |
| LOW | examples/llama-eval/llama-eval.py | 1235 | except Exception as e: |
| MEDIUM | examples/llama-eval/llama-eval.py | 1471 | print(f"Error: --server ({len(server_urls)} URLs) and --threads ({len(thread_counts)} values) must have the same |
| MEDIUM | examples/llama-eval/llama-eval.py | 1478 | print(f"Error: --server-name ({len(server_names)} names) and --server ({len(server_urls)} URLs) must have th |
| MEDIUM | examples/llama-eval/llama-eval.py | 1489 | print("Error: GPQA dataset requires --grader-type llm") |
| MEDIUM | examples/llama-eval/llama-eval.py | 1499 | print(f"Error: Model mismatch. State has '{eval_state.model_name}', but --model is '{args.model}'") |
| MEDIUM | examples/llama-eval/llama-eval.py | 1525 | print("Error: --grader-type llm requires --grader-model or --model") |
| MEDIUM | examples/llama-eval/llama-eval.py | 1537 | print("Error: No existing eval state found to resume") |
| MEDIUM | examples/llama-eval/llama-eval.py | 1543 | print("Error: --grader-type llm requires --grader-model or --model") |
| LOW | examples/llama-eval/llama-server-simulator.py | 295 | except Exception as e: |
| MEDIUM | examples/llama-eval/llama-server-simulator.py | 296 | print(f"Error processing request: {e}") |
| LOW | …ples/model-conversion/scripts/causal/compare-logits.py | 18 | except Exception as e: |
| MEDIUM | …ples/model-conversion/scripts/causal/compare-logits.py | 52 | print(f"Error: PyTorch logits file not found: {pytorch_file}") |
| MEDIUM | …ples/model-conversion/scripts/causal/compare-logits.py | 57 | print(f"Error: llama.cpp logits file not found: {llamacpp_file}") |
| MEDIUM | …mples/model-conversion/scripts/causal/run-org-model.py | 116 | print("Error: Model path must be specified either via --model-path argument or MODEL_PATH environment variable") |
| MEDIUM | …del-conversion/scripts/embedding/run-original-model.py | 125 | print(f"Error: Prompts file '{args.prompts_file}' not found") |
| LOW | …del-conversion/scripts/embedding/run-original-model.py | 127 | except Exception as e: |
| MEDIUM | …del-conversion/scripts/embedding/run-original-model.py | 128 | print(f"Error reading prompts file: {e}") |
| MEDIUM | …del-conversion/scripts/embedding/run-original-model.py | 139 | print("Error: Model path must be specified either via --model-path argument " |
| LOW | examples/model-conversion/scripts/utils/check-nmse.py | 172 | except Exception as e: |
| LOW | …conversion/scripts/utils/hf-add-model-to-collection.py | 31 | except Exception as e: |
| MEDIUM | …conversion/scripts/utils/hf-add-model-to-collection.py | 33 | print(f"Error: {e}") |
| LOW | …conversion/scripts/utils/hf-add-model-to-collection.py | 49 | except Exception as e: |
| LOW | …es/model-conversion/scripts/utils/inspect-org-model.py | 50 | except Exception as e: |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 51 | print(f"Error reading {single_file}: {e}") |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 54 | print(f"Error: No safetensors files found in {model_path}") |
| LOW | …es/model-conversion/scripts/utils/inspect-org-model.py | 111 | except Exception as e: |
| LOW | …es/model-conversion/scripts/utils/inspect-org-model.py | 120 | except Exception as e: |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 121 | print(f"Error reading {single_file}: {e}") |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 124 | print(f"Error: No safetensors files found in {model_path}") |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 182 | print(f"Error: Could not find tensor '{tensor_name}' in model index") |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 212 | print(f"Error: Tensor '{tensor_name}' not found in {tensor_file}") |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 216 | print(f"Error: The file '{file_path}' was not found.") |
| LOW | …es/model-conversion/scripts/utils/inspect-org-model.py | 218 | except Exception as e: |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 219 | print(f"An error occurred: {e}") |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 268 | print("Error: --model-path not provided and MODEL_PATH environment variable not set") |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 273 | print(f"Error: Model path does not exist: {model_path}") |
| MEDIUM | …es/model-conversion/scripts/utils/inspect-org-model.py | 277 | print(f"Error: Model path is not a directory: {model_path}") |
| 53 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | convert_lora_to_gguf.py | 58 | |
| LOW | convert_lora_to_gguf.py | 222 | |
| LOW | convert_hf_to_gguf.py | 30 | |
| LOW | convert_hf_to_gguf.py | 162 | |
| LOW | convert_llama_ggml_to_gguf.py | 204 | |
| LOW | convert_llama_ggml_to_gguf.py | 287 | |
| LOW | …egacy-models/minicpmv-convert-image-encoder-to-gguf.py | 202 | |
| LOW | …egacy-models/minicpmv-convert-image-encoder-to-gguf.py | 312 | |
| LOW | tools/server/bench/bench.py | 24 | |
| LOW | tools/server/tests/utils.py | 383 | |
| LOW | tools/server/tests/unit/test_router.py | 32 | |
| LOW | tools/server/tests/unit/test_vision_api.py | 8 | |
| LOW | tools/server/tests/unit/test_chat_completion.py | 388 | |
| LOW | tools/server/tests/unit/test_completion.py | 463 | |
| LOW | gguf-py/gguf/gguf_writer.py | 113 | |
| LOW | gguf-py/gguf/gguf_writer.py | 330 | |
| LOW | gguf-py/gguf/gguf_writer.py | 438 | |
| LOW | gguf-py/gguf/gguf_writer.py | 1084 | |
| LOW | gguf-py/gguf/gguf_writer.py | 1313 | |
| LOW | gguf-py/gguf/vocab.py | 149 | |
| LOW | gguf-py/gguf/metadata.py | 240 | |
| LOW | gguf-py/gguf/metadata.py | 365 | |
| LOW | gguf-py/gguf/gguf_reader.py | 57 | |
| LOW | gguf-py/gguf/gguf_reader.py | 318 | |
| LOW | gguf-py/gguf/constants.py | 4291 | |
| LOW | gguf-py/gguf/scripts/gguf_convert_endian.py | 72 | |
| LOW | gguf-py/gguf/scripts/gguf_new_metadata.py | 103 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 448 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 495 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 643 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 784 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 938 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1062 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1131 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1476 | |
| LOW | gguf-py/gguf/scripts/gguf_dump.py | 32 | |
| LOW | gguf-py/gguf/scripts/gguf_dump.py | 153 | |
| LOW | gguf-py/gguf/scripts/gguf_dump.py | 228 | |
| LOW | gguf-py/gguf/scripts/gguf_dump.py | 444 | |
| LOW | gguf-py/tests/test_quants.py | 145 | |
| LOW | gguf-py/tests/test_quants.py | 88 | |
| LOW | tests/test-tokenizer-random.py | 255 | |
| LOW | tests/test-tokenizer-random.py | 267 | |
| LOW | examples/json_schema_to_grammar.py | 30 | |
| LOW | examples/json_schema_to_grammar.py | 53 | |
| LOW | examples/json_schema_to_grammar.py | 337 | |
| LOW | examples/json_schema_to_grammar.py | 397 | |
| LOW | examples/json_schema_to_grammar.py | 568 | |
| LOW | examples/json_schema_to_grammar.py | 343 | |
| LOW | examples/json_schema_to_grammar.py | 421 | |
| LOW | examples/pydantic_models_to_grammar_examples.py | 89 | |
| LOW | examples/convert_legacy_llama.py | 699 | |
| LOW | examples/convert_legacy_llama.py | 1100 | |
| LOW | examples/convert_legacy_llama.py | 773 | |
| LOW | examples/pydantic_models_to_grammar.py | 55 | |
| LOW | examples/pydantic_models_to_grammar.py | 280 | |
| LOW | examples/pydantic_models_to_grammar.py | 528 | |
| LOW | examples/pydantic_models_to_grammar.py | 676 | |
| LOW | examples/pydantic_models_to_grammar.py | 832 | |
| LOW | examples/pydantic_models_to_grammar.py | 1260 | |
| 106 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | convert_lora_to_gguf.py | 4 | |
| LOW | convert_hf_to_gguf.py | 4 | |
| LOW | convert_llama_ggml_to_gguf.py | 2 | |
| LOW | …legacy-models/glmedge-convert-image-encoder-to-gguf.py | 8 | |
| LOW | …ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py | 8 | |
| LOW | …egacy-models/minicpmv-convert-image-encoder-to-gguf.py | 414 | |
| LOW | tools/server/bench/bench.py | 1 | |
| LOW | tools/server/bench/speed-bench/speed_bench.py | 2 | |
| LOW | tools/server/bench/speed-bench/speed_bench_compare.py | 2 | |
| LOW | tools/server/bench/speed-bench/speed_bench_compare.py | 9 | |
| LOW | tools/server/tests/conftest.py | 2 | |
| LOW | tools/server/tests/utils.py | 17 | |
| LOW | tools/server/tests/utils.py | 17 | |
| LOW | tools/server/tests/unit/test_infill.py | 2 | |
| LOW | tools/server/tests/unit/test_basic.py | 3 | |
| LOW | tools/server/tests/unit/test_security.py | 3 | |
| LOW | tools/server/tests/unit/test_sleep.py | 3 | |
| LOW | tools/server/tests/unit/test_router.py | 2 | |
| LOW | tools/server/tests/unit/test_ctx_shift.py | 2 | |
| LOW | tools/server/tests/unit/test_speculative.py | 2 | |
| LOW | tools/server/tests/unit/test_compat_oai_responses.py | 3 | |
| LOW | tools/server/tests/unit/test_tool_call.py | 10 | |
| LOW | tools/server/tests/unit/test_vision_api.py | 2 | |
| LOW | tools/server/tests/unit/test_rerank.py | 2 | |
| LOW | tools/server/tests/unit/test_embedding.py | 5 | |
| LOW | tools/server/tests/unit/test_ignore_eos.py | 2 | |
| LOW | tools/server/tests/unit/test_chat_completion.py | 3 | |
| LOW | tools/server/tests/unit/test_tokenize.py | 2 | |
| LOW | tools/server/tests/unit/test_kv_keep_only_active.py | 4 | |
| LOW | tools/server/tests/unit/test_compat_gcp.py | 2 | |
| LOW | tools/server/tests/unit/test_proxy.py | 2 | |
| LOW | tools/server/tests/unit/test_slot_save.py | 2 | |
| LOW | tools/server/tests/unit/test_completion.py | 7 | |
| LOW | tools/server/tests/unit/test_compat_anthropic.py | 6 | |
| LOW | tools/server/tests/unit/test_template.py | 13 | |
| LOW | tools/server/tests/unit/test_lora.py | 2 | |
| LOW | gguf-py/gguf/gguf_writer.py | 1 | |
| LOW | gguf-py/gguf/vocab.py | 1 | |
| LOW | gguf-py/gguf/metadata.py | 1 | |
| LOW | gguf-py/gguf/gguf_reader.py | 5 | |
| LOW | gguf-py/gguf/tensor_mapping.py | 1 | |
| LOW | gguf-py/gguf/utility.py | 1 | |
| LOW | gguf-py/gguf/constants.py | 1 | |
| LOW | gguf-py/gguf/__init__.py | 1 | |
| LOW | gguf-py/gguf/__init__.py | 2 | |
| LOW | gguf-py/gguf/__init__.py | 3 | |
| LOW | gguf-py/gguf/__init__.py | 4 | |
| LOW | gguf-py/gguf/__init__.py | 5 | |
| LOW | gguf-py/gguf/__init__.py | 6 | |
| LOW | gguf-py/gguf/__init__.py | 7 | |
| LOW | gguf-py/gguf/__init__.py | 8 | |
| LOW | gguf-py/gguf/__init__.py | 9 | |
| LOW | gguf-py/gguf/lazy.py | 1 | |
| LOW | gguf-py/gguf/quants.py | 1 | |
| LOW | gguf-py/gguf/scripts/gguf_convert_endian.py | 2 | |
| LOW | gguf-py/gguf/scripts/gguf_new_metadata.py | 2 | |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 2 | |
| LOW | gguf-py/gguf/scripts/gguf_dump.py | 2 | |
| LOW | gguf-py/gguf/scripts/gguf_hash.py | 2 | |
| LOW | gguf-py/tests/__init__.py | 1 | |
| 99 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/mtmd/tests.sh | 16 | # Check if the first argument is "big", then run test with big models |
| LOW | tools/mtmd/tests.sh | 31 | # Check if the second argument is "flash", then enable flash attention |
| LOW | tools/server/tests/utils.py | 298 | # Check if process died |
| LOW | tools/server/tests/utils.py | 644 | # Check if there were any exceptions |
| LOW | tools/server/tests/unit/test_compat_anthropic.py | 295 | # Check if model used the tool (it might not always, depending on the model) |
| LOW | tools/tts/convert_pt_to_hf.py | 40 | # Check if the loaded model is a state_dict or a model instance |
| LOW | gguf-py/gguf/metadata.py | 261 | # Check if we erroneously matched against './' or '../' etc... |
| LOW | gguf-py/gguf/metadata.py | 457 | # Check if Hugging Face ID is present in URL |
| LOW | gguf-py/gguf/metadata.py | 515 | # Check if Hugging Face ID is present in URL |
| LOW | gguf-py/gguf/gguf_reader.py | 75 | # Check if it's unsafe to perform slice optimization on data |
| LOW | gguf-py/gguf/gguf_reader.py | 233 | # Check if it's a simple scalar type. |
| LOW | gguf-py/gguf/utility.py | 207 | # Check if we have enough data to read the metadata |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1150 | # Check if this is an enum field |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1155 | # Check if it's a name |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1160 | # Check if it's a number or "NAME (value)" format |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 965 | # Check if this is an enum array |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 972 | # Check if this is an enum field |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1072 | # Check if this field has an enum type |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1317 | # Check if this is one of the linked tokenizer keys |
| LOW | gguf-py/gguf/scripts/gguf_editor_gui.py | 1431 | # Check if key already exists |
| LOW | gguf-py/gguf/scripts/gguf_dump.py | 336 | # Check if new Tensor Group |
| LOW | tests/test-lora-conversion-inference.sh | 139 | # Print results |
| LOW | examples/convert_legacy_llama.py | 1200 | # Check if it's a set of safetensors files first |
| LOW | examples/pydantic_models_to_grammar.py | 490 | # Check if the field is optional (not required) |
| LOW | examples/pydantic_models_to_grammar.py | 96 | if not parts: # Check if the list is empty |
| LOW | examples/llama-eval/llama-server-simulator.py | 127 | # Check if question text is contained in the cleaned request |
| LOW | …mples/model-conversion/scripts/utils/perplexity-gen.sh | 16 | # Check if data/wikitext-2-raw directory exists |
| LOW | …odel-conversion/scripts/utils/perplexity-run-simple.sh | 15 | # Check if data/wikitext-2-raw directory exists |
| LOW | examples/model-conversion/scripts/utils/common.py | 65 | # Check if there's an overlap between first and last indices or if we're at the edge case of s = 2 * max_seq |
| LOW | …model-conversion/scripts/utils/hf-create-collection.py | 23 | # Check if HF_TOKEN is available |
| LOW | …mples/model-conversion/scripts/utils/semantic_check.py | 40 | # Check if this is pooled (single embedding) or per-token embeddings |
| LOW | …mples/model-conversion/scripts/utils/semantic_check.py | 85 | # Check if the distance of each token embedding from the origin and compare |
| LOW | scripts/compare-llama-bench.py | 187 | # Check if all required Python libraries are installed. Would have failed earlier if not. |
| LOW | scripts/verify-checksum-models.py | 31 | # Check if the hash list file exists |
| LOW | scripts/verify-checksum-models.py | 54 | # Check if the file exists |
| LOW | scripts/verify-checksum-models.py | 70 | # Add the results to the array |
| LOW | scripts/verify-checksum-models.py | 82 | # Output the results as a table |
| LOW | scripts/apple/validate-macos.sh | 688 | # Check if authentication credentials are provided |
| LOW | scripts/apple/validate-macos.sh | 707 | # Check if app was created successfully |
| LOW | scripts/apple/validate-macos.sh | 715 | # Check if app binary exists and is executable |
| LOW | scripts/apple/validate-macos.sh | 723 | # Check if framework was properly embedded |
| LOW | scripts/apple/validate-macos.sh | 731 | # Check if framework binary exists |
| LOW | scripts/apple/validate-visionos.sh | 682 | # Check if authentication credentials are provided |
| LOW | scripts/apple/validate-visionos.sh | 707 | # Check if validation failed because the app isn't in App Store Connect |
| LOW | scripts/apple/validate-visionos.sh | 716 | # Check if IPA was created successfully |
| LOW | scripts/apple/validate-visionos.sh | 724 | # Check if app binary exists and is executable |
| LOW | scripts/apple/validate-visionos.sh | 732 | # Check if framework was properly embedded |
| LOW | scripts/apple/validate-visionos.sh | 740 | # Check if framework binary exists |
| LOW | scripts/apple/validate-ios.sh | 691 | # Check if authentication credentials are provided |
| LOW | scripts/apple/validate-ios.sh | 716 | # Check if validation failed because the app isn't in App Store Connect |
| LOW | scripts/apple/validate-ios.sh | 725 | # Check if IPA was created successfully |
| LOW | scripts/apple/validate-ios.sh | 733 | # Check if app binary exists and is executable |
| LOW | scripts/apple/validate-ios.sh | 741 | # Check if framework was properly embedded |
| LOW | scripts/apple/validate-ios.sh | 749 | # Check if framework binary exists |
| LOW | scripts/apple/validate-tvos.sh | 684 | # Check if authentication credentials are provided |
| LOW | scripts/apple/validate-tvos.sh | 709 | # Check if validation failed because the app isn't in App Store Connect |
| LOW | scripts/apple/validate-tvos.sh | 718 | # Check if IPA was created successfully |
| LOW | scripts/apple/validate-tvos.sh | 726 | # Check if app binary exists and is executable |
| LOW | scripts/apple/validate-tvos.sh | 734 | # Check if framework was properly embedded |
| LOW | scripts/apple/validate-tvos.sh | 742 | # Check if framework binary exists |
| 5 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | build-xcframework.sh | 367 | # Create a separate directory for dSYMs for all platforms |
| MEDIUM | build-xcframework.sh | 375 | # Create a copy of the binary that will be stripped |
| MEDIUM | tools/tts/convert_pt_to_hf.py | 135 | # Create the weight map |
| MEDIUM | ci/run.sh | 714 | # Create a fresh python3 venv and enter it |
| MEDIUM | gguf-py/gguf/metadata.py | 66 | # Create a new Metadata instance |
| MEDIUM | gguf-py/gguf/scripts/gguf_editor_gui.py | 42 | # Define the tokenizer keys that should be edited together |
| MEDIUM | gguf-py/gguf/scripts/gguf_editor_gui.py | 228 | # Create a dialog with enum options |
| MEDIUM | gguf-py/gguf/scripts/gguf_editor_gui.py | 539 | # Create a widget to hold the button |
| MEDIUM | gguf-py/gguf/scripts/gguf_editor_gui.py | 579 | # Create a dialog with enum options |
| MEDIUM | gguf-py/gguf/scripts/gguf_editor_gui.py | 705 | # Create a dialog with enum options |
| MEDIUM | gguf-py/gguf/scripts/gguf_editor_gui.py | 1271 | # Create a dialog with enum options |
| MEDIUM | examples/ts-type-to-grammar.sh | 10 | # Create a temporary directory |
| MEDIUM | examples/pydantic_models_to_grammar.py | 186 | # Define the rule identifier based on max_digit and min_digit |
| MEDIUM | examples/pydantic_models_to_grammar.py | 241 | # Define the integer part rule |
| MEDIUM | examples/pydantic_models_to_grammar.py | 248 | # Define the fractional part rule based on precision constraints |
| MEDIUM | examples/pydantic_models_to_grammar.py | 264 | # Define the float rule |
| MEDIUM | examples/pydantic_models_to_grammar.py | 370 | # Defining the union grammar rule separately |
| MEDIUM | examples/pydantic_models_to_grammar.py | 1179 | # Creating the dynamic model |
| MEDIUM | …model-conversion/scripts/utils/hf-create-collection.py | 39 | # Create the collection |
| MEDIUM | scripts/verify-checksum-models.py | 25 | # Define the path to the llama directory (parent folder of script directory) |
| MEDIUM | scripts/verify-checksum-models.py | 28 | # Define the file with the list of hashes and filenames |
| MEDIUM | scripts/verify-checksum-models.py | 40 | # Create an array to store the results |
| MEDIUM | scripts/apple/validate-macos.sh | 574 | # Create a simple xcscheme file to avoid xcodebuild scheme issues |
| MEDIUM | scripts/apple/validate-macos.sh | 670 | # Create a zip file for potential distribution |
| MEDIUM | scripts/apple/validate-visionos.sh | 568 | # Create a simple xcscheme file to avoid xcodebuild scheme issues |
| MEDIUM | scripts/apple/validate-ios.sh | 577 | # Create a simple xcscheme file to avoid xcodebuild scheme issues |
| MEDIUM | scripts/apple/validate-tvos.sh | 570 | # Create a simple xcscheme file to avoid xcodebuild scheme issues |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 151 | // Step 0: Temporarily remove blockquote markers (>) to process LaTeX correctly |
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 165 | // Step 1: Protect code blocks |
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 174 | // Step 2: Protect existing LaTeX expressions |
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 210 | // Step 3: Escape standalone $ before digits (currency like $5 → \$5) |
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 214 | // Step 4: Restore protected LaTeX expressions (they are valid) |
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 229 | // Step 5: Apply additional escaping functions (brackets and mhchem) |
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 237 | // Step 6: Convert remaining \(...\) → $...$, \[...\] → $$...$$ |
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 253 | // Step 7: Restore code blocks |
| LOW | tools/ui/src/lib/utils/latex-protection.ts | 259 | // Step 8: Restore blockquote markers |
| LOW | tools/mtmd/models/mobilenetv5.cpp | 217 | // Step 1: Compute Q @ K.T |
| LOW | tests/test-backend-ops.cpp | 1932 | // Step 1: create input tensors that don't depend on any other tensors: |
| LOW | tests/test-backend-ops.cpp | 1939 | // Step 2: use the op that you want to test in the GGML compute graph. |
| LOW | tests/test-backend-ops.cpp | 1943 | // Step 3: return the output tensor. |
| LOW | scripts/debug-test.sh | 62 | # Step 0: Check the args |
| LOW | scripts/debug-test.sh | 95 | # Step 1: Reset and Setup folder context |
| LOW | scripts/debug-test.sh | 109 | # Step 2: Setup Build Environment and Compile Test Binaries |
| LOW | scripts/debug-test.sh | 118 | # Step 3: Find all tests available that matches REGEX |
| LOW | scripts/debug-test.sh | 134 | # Step 4: Identify Test Command for Debugging |
| LOW | scripts/debug-test.sh | 171 | # Step 5: Execute or GDB Debug |
| LOW | ggml/src/ggml-webgpu/ggml-webgpu.cpp | 1290 | // For set rows specifically, we need to check if src and idx are empty |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 2809 | // Step 5: multiply by attn_factor |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 2826 | // Step 6: repeat |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 3090 | // Step 1: Prepare trans tensors for F16 type conversion to F32 if needed |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 3115 | // Step 2: Prepare head tensors for tail splitting if needed |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 3144 | // Step 3: Execute RotaryPositionEmbedding |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 3191 | // Step 4: Copy unrotated tail portion from source to destination |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 3220 | // Step 5: Cast back to F16 if needed |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 3906 | // Step 1: cast the src0 (Query) to fp16 if needed |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 3929 | // Step 2: create the acl tensors for src1 (Key), src2 (Value), |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 3973 | // Step 3: create the PSEShift tensor if needed |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 4042 | // Step 4: set the inputs for FusedInferAttention. |
| LOW | ggml/src/ggml-cann/aclnn_ops.cpp | 4103 | // Step 6: post-processing — slice padded output and/or cast to f32 |
| LOW | src/llama-sampler.cpp | 2947 | // Step 1: Look for restart sequences to limit the maximum repetition length. |
| LOW | src/llama-sampler.cpp | 3008 | // Step 2: Iterate in reverse over the last N tokens of the context, using the "Z-algorithm" (in |
| LOW | src/llama-sampler.cpp | 3072 | // Step 3: Iterate over dry_repeat_count and last_tokens, examining the maximum repeat length |
| LOW | src/llama-sampler.cpp | 3099 | // Step 4: Apply logit penalties based on the maximum repeat length for relevant tokens. |
| LOW | src/models/kimi-linear.cpp | 197 | // Step 1: Q, K, V projections -> [d_inner, n_tokens] |
| LOW | src/models/kimi-linear.cpp | 377 | // Step 1: Q projection and reshape |
| LOW | src/models/kimi-linear.cpp | 382 | // Step 2: KV compression |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | common/arg.cpp | 468 | params.speculative.draft.mparams.path.empty() && |
| CRITICAL | common/arg.cpp | 469 | params.speculative.draft.mparams.hf_repo.empty() && |
| CRITICAL | common/arg.cpp | 470 | params.speculative.draft.mparams.url.empty()) { |
| CRITICAL | examples/speculative/speculative.cpp | 52 | if (params.speculative.draft.mparams.path.empty()) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | CONTRIBUTING.md | 18 | Code that is initially generated by AI and subsequently edited will still be considered AI-generated. AI assistance is p |
| HIGH | tools/completion/README.md | 90 | <!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually --> |
| HIGH | tools/server/README.md | 28 | <!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually --> |
| HIGH | tools/cli/README.md | 7 | <!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually --> |
| HIGH | tests/test-backend-ops.cpp | 9813 | printf(" --test-file reads test operators from a test file generated by llama-export-graph-ops\n"); |
| HIGH | examples/gen-docs/gen-docs.cpp | 14 | #define NOTE_MESSAGE "<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually |
| HIGH | ggml/src/ggml-virtgpu/regenerate_remoting.py | 3 | # Generated by Claude AI |
| HIGH | ggml/src/ggml-hexagon/ggml-hexagon.cpp | 2484 | // Check for F16 support only as requested |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | gguf-py/gguf/metadata.py | 394 | # (Definitely not part of hugging face formal/informal standard) |
| MEDIUM | gguf-py/gguf/metadata.py | 410 | # (Definitely not part of hugging face formal/informal standard... but with model_ appended to match their s |
| MEDIUM | gguf-py/gguf/lazy.py | 49 | # TODO: make this even more comprehensive |
| LOW | examples/model-conversion/scripts/utils/common.py | 70 | # If there's overlap, just use the combined unique indices |
| MEDIUM | examples/embedding/embedding.cpp | 122 | // utilize the full context |
| LOW | scripts/jinja/jinja-tester.py | 116 | # Malformed template, just add the token |
| LOW | scripts/jinja/jinja-tester.py | 135 | # Malformed template, just add the token |
| LOW | conversion/deepseek.py | 40 | # @bluebread: there's no window_size in config but just add it here anyway |
| MEDIUM | ggml/src/ggml-zendnn/ggml-zendnn.cpp | 600 | // gather + batched matmul + scatter approach. Future versions will leverage |
| MEDIUM | ggml/src/ggml-cpu/amx/mmq.cpp | 603 | // pack again with 128 to fully utilize vector length |
| MEDIUM | ggml/src/ggml-cpu/amx/mmq.cpp | 645 | // pack again with 128 to fully utilize vector length |
| MEDIUM | ggml/src/ggml-cpu/amx/mmq.cpp | 743 | // pack again with 128 to fully utilize vector length |
| MEDIUM | ggml/src/ggml-opencl/ggml-opencl.cpp | 4396 | // that wraps around q and d to utilize image access path. |
| MEDIUM | ggml/src/ggml-opencl/ggml-opencl.cpp | 4430 | // that wraps around q and d to utilize image access path. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test-tokenizer-random.py | 346 | if unicodedata.category(chr(cpt)) in ("Cn", "Cs", "Co"): # undefined, surrogates, private |
| HIGH | scripts/tool_bench.py | 10 | cmake -B build && cmake --build build --config Release -j -t llama-server |
| HIGH | scripts/snapdragon/qdc/run_qdc_jobs.py | 173 | "cd $basedir; chmod +x bin/* lib/* 2>/dev/null;", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/ui/scripts/dev.sh | 8 | # Usage: |
| LOW | gguf-py/examples/writer.py | 13 | # Example usage: |
| LOW | tests/test-tokenizer-0.sh | 3 | # Usage: |
| LOW | tests/test-tokenizer-random.py | 4 | # Sample usage: |
| LOW | examples/json_schema_pydantic_example.py | 1 | # Usage: |
| LOW | scripts/sync-ggml-am.sh | 5 | # Usage: |
| LOW | scripts/hf.sh | 5 | # Usage: |
| LOW | ggml/src/ggml-sycl/dpct/helper.hpp | 3012 | /// Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/server/tests/unit/test_ctx_shift.py | 8 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| LOW | tools/server/tests/unit/test_ctx_shift.py | 8 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| LOW | tools/server/tests/unit/test_ctx_shift.py | 14 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| LOW | tools/server/tests/unit/test_ctx_shift.py | 14 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tools/server/README.md | 1467 | -H "x-api-key: your-api-key" \ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | examples/pydantic_models_to_grammar.py | 532 | Generate GBNF Grammar from Pydantic Models. This method takes a list of Pydantic models and uses them to gener |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/ISSUE_TEMPLATE/030-research.yml | 9 | Don't forget to check for any [duplicate research issue tickets](https://github.com/ggml-org/llama.cpp/issues?q= |
| LOW | .github/ISSUE_TEMPLATE/040-refactor.yml | 9 | Don't forget to [check for existing refactor issue tickets](https://github.com/ggml-org/llama.cpp/issues?q=is%3A |
| LOW | conversion/base.py | 1353 | # To avoid unexpected issues - we make sure to normalize non-normalized tokens |
| LOW | conversion/base.py | 2097 | # To avoid unexpected issues - we make sure to normalize non-normalized tokens |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/server/tests/conftest.py | 19 | def do_something(): |