AI Slop Code Risk Monitor

ikawrakow/ik_llama.cpp

SlopCodeMonitor badge for ikawrakow/ik_llama.cpp Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

llama.cpp fork with additional SOTA quants and improved performance

2.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ikawrakow/ik_llama.cpp, a C++ project with 3,355 GitHub stars. SynthScan examined 682,634 lines of code across 1973 source files, recording 1235 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 2.3 (Low 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.

2.3
Adjusted Signal
2.3
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
3.4K
Stars
C++
Language
682.6K
Lines of Code
2.0K
Files
1.2K
Pattern Hits
2026-10-31
Scan Date
0.02
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 8.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

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

Agent Over-Engineering Ratio 3.5/100 · LOW

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

PR Review Velocity Impact 10.8/100 · LOW

Which changes need focused human review? 1235 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 41MEDIUM 59LOW 1135

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1235 distinct pattern matches across 24 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.

Over-Commented Block575 hits · 569 pts
SeverityFileLineSnippetContext
LOWconvert_hf_to_gguf.py1821 assert self.block_count == len(_block_configs)COMMENT
LOWconvert_hf_to_gguf_update.py1#!/usr/bin/env python3COMMENT
LOWconvert_hf_to_gguf_update.py321 CHK_TXT,COMMENT
LOWci/run.sh1#/bin/bashCOMMENT
LOWinclude/llama.h1//COMMENT
LOWinclude/llama.h21# ifdef LLAMA_BUILDCOMMENT
LOWinclude/llama.h41#define LLAMA_DEFAULT_SEED 0xFFFFFFFFCOMMENT
LOWinclude/llama.h81 LLAMA_VOCAB_TYPE_RWKV = 5, // RWKV tokenizer based on greedy tokenizationCOMMENT
LOWinclude/llama.h101 // LLAMA_VOCAB_PRE_TYPE_SMAUG = 14,COMMENT
LOWinclude/llama.h1021 struct llama_context * ctx,COMMENT
LOWinclude/llama.h1141 // Return batch for single sequence of tokens starting at pos_0COMMENT
LOWinclude/llama.h1201 // Set whether to use causal attention or notCOMMENT
LOWinclude/llama.h1241COMMENT
LOWinclude/llama.h1341 llama_token token,COMMENT
LOWgguf-py/scripts/gguf_set_metadata.py21 returnCOMMENT
LOWtests/test-jinja.cpp1#include <string>COMMENT
LOWtests/test-grammar-llguidance.cpp541 },COMMENT
LOWtests/test-rope.cpp1#include "ggml.h"COMMENT
LOWtests/test-rope.cpp21#define MIN(a, b) ((a) < (b) ? (a) : (b))COMMENT
LOWtests/test-chat.cpp1// Tests chat handling, including grammar generation and parsing for tool calling, for various templates.COMMENT
LOWtests/CMakeLists.txt161 # target_include_directories(test-json-schema-to-grammar PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../examples/server)COMMENT
LOWtests/test-grad0.cpp1#define _CRT_SECURE_NO_DEPRECATE // Disables ridiculous "unsafe" warnings on WindowsCOMMENT
LOWtests/test-grad0.cpp21#define MIN(a, b) ((a) < (b) ? (a) : (b))COMMENT
LOWtests/test-grad0.cpp661 struct ggml_tensor * f = ggml_sum(ctx0, ggml_sqr(ctx0, ggml_sub(ctx0, x[0], ggml_repeat_back(ctx0, x[1],COMMENT
LOWtests/test-grad0.cpp1521 // const int nargs = 3;COMMENT
LOWtests/test-grad0.cpp1541 // nev[2] = 1; nev[3] = 1;COMMENT
LOWtests/test-tokenizer-1-bpe.cpp1#include "llama.h"COMMENT
LOWtests/test-tokenizer-1-spm.cpp1#include "llama.h"COMMENT
LOWtests/test-reasoning-budget.cpp1#include "reasoning-budget.h"COMMENT
LOWtests/test-grammar-integration.cpp1#ifdef NDEBUGCOMMENT
LOWtests/test-quantize-fns.cpp1// Unit tests for quantization specific functions - quantize, dequantize and dot productCOMMENT
LOWtests/test-tokenizer-0.cpp1#include "llama.h"COMMENT
LOWtests/test-tokenizer-0.cpp21// { "\t\n" , { 1602, }, },COMMENT
LOWtests/test-tokenizer-0.cpp41// { "\n =" , { 198, 284, }, },COMMENT
LOWtests/test-iq4-ks-kt-decode.cpp1// Checks the IQ4_KS and IQ4_KT decode arithmetic against ggml's to_float.COMMENT
LOWtests/test-opt.cpp1#include "ggml.h"COMMENT
LOWtests/test-opt.cpp21#define GGML_PRINT_DEBUG(...)COMMENT
LOWtests/test-opt.cpp141// int64_t ne3[4] = {128, 256, 1, 1};COMMENT
LOWtests/test-opt.cpp161// main: original e = 126061.1953COMMENT
LOWtests/test-chat-peg-parser.cpp1#include "chat-peg-parser.h"COMMENT
LOWtests/test-tokenizer-0.py21 t_start = time.time()COMMENT
LOWtests/test-double-float.cpp1// These tests may take a long time!COMMENT
LOWtests/test-quantize-perf.cpp1// Benchmark quantization specific functions on synthetic dataCOMMENT
LOWtests/test-chat-template.cpp1#include <string>COMMENT
LOWtests/test-backend-ops.cpp1#include <ggml.h>COMMENT
LOWtests/test-backend-ops.cpp261 default: return std::to_string(pool);COMMENT
LOW…Guide coming over from llama.cpp and ktransformers_.md41# *or* Configure CPU Only BackendCOMMENT
LOW…Guide coming over from llama.cpp and ktransformers_.md61# tl;dr; generally use -mla 2 for CPU+GPU and use -mla 3 for CPU assuming your model architecture supports MLACOMMENT
LOW…Guide coming over from llama.cpp and ktransformers_.md81-amb 512 # 512 MiB compute buffer is a good for DeepSeek-R1 671B on a single <24GB VRAM GPUCOMMENT
LOW…Guide coming over from llama.cpp and ktransformers_.md101-ser 7,1 # or 6,1 or 5,1 for faster trading off quality for speedCOMMENT
LOW…Guide coming over from llama.cpp and ktransformers_.md121# e.g. IQ2_K_R4 and friends for CPU tensorsCOMMENT
LOW…Guide coming over from llama.cpp and ktransformers_.md361 --outtype bf16 \COMMENT
LOW…Guide coming over from llama.cpp and ktransformers_.md421# Q6_K / Q5_K for all non-shared expert down_proj and up_proj/gate_proj respectivelyCOMMENT
LOW…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md81COMMENT
LOW…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md101 #** **#COMMENT
LOW…ub-data/discussions/434 - Quant Cookers Basic Guide.md141# blk.28.attn_q.weight, torch.bfloat16 --> BF16, shape = {5120, 5120}COMMENT
LOW…b-data/pull_requests/336 - Fix termux_android build.md61👤 **ikawrakow** commented during a code review the **2025-04-21** at **06:11:32** on `ggml/src/iqk/iqk_config.h`:<br>COMMENT
LOW…ests/612 - kimi-k2 convert script and chat template.md81# blk.0.attn_norm.weight - [ 7168, 1, 1, 1], type = f32, size = 0.027 MBCOMMENT
LOW…ests/612 - kimi-k2 convert script and chat template.md101# blk.9.attn_kv_a_norm.weight - [ 512, 1, 1, 1], type = f32, size = 0.002 MBCOMMENT
LOW… The streaming every couple of rows blocks for 5-8s.md261#2 gomp_barrier_wait_end (bar=0x55555f628310, state=60160) at ../../../src/libgomp/config/linux/bar.c:48COMMENT
515 more matches not shown…
Hyper-Verbose Identifiers232 hits · 226 pts
SeverityFileLineSnippetContext
LOWconvert_hf_to_gguf.py473 def get_model_part_names_from_weight_map(dir_model: Path, index_name: str) -> list[str]:CODE
LOWconvert_hf_to_gguf.py851 def _create_vocab_sentencepiece(self):CODE
LOWconvert_hf_to_gguf.py1804 def _ffn_mult_to_intermediate_size(ffn_mult: float, n_embd: int) -> int:CODE
LOWconvert_hf_to_gguf.py2446 def _require_target_model_dir(self) -> Path:CODE
LOWconvert_hf_to_gguf.py2732 def _set_vocab_tokenizer_json(self, dir_model: Path, vocab_size: int) -> None:CODE
LOWconvert_hf_to_gguf.py3642 def shuffle_attn_output_weight(self, data_torch):CODE
LOWconvert_hf_to_gguf.py7314 def _set_attention_layer_types(self):CODE
LOWconvert_hf_to_gguf.py7561 def meta_with_dtype_and_shape(cls, dtype: torch.dtype, shape: tuple[int, ...]) -> Tensor:CODE
LOW⚡gguf-py/gguf/gguf_writer.py661 def add_leading_dense_block_count(self, length: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py670 def add_expert_feed_forward_length(self, length: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py673 def add_expert_shared_feed_forward_length(self, length: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py676 def add_expert_chunk_feed_forward_length(self, length: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py682 def add_decoder_start_token_id(self, id: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py688 def add_embedding_length_per_layer_input(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py697 def add_activation_sparsity_scale(self, values: Sequence[float]) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py755 def add_attn_logit_softcapping(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py758 def add_router_logit_softcapping(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py761 def add_final_logit_softcapping(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py812 def add_attention_indexer_head_count(self, count: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py815 def add_attention_indexer_key_length(self, length: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py818 def add_attention_indexer_top_k(self, top_k: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py821 def add_attention_indexer_block_size(self, size: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py824 def add_attention_indexer_local_blocks(self, blocks: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py830 def add_rescale_every_n_layers(self, count: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py881 def add_value_residual_mix_lora_rank(self, length: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py887 def add_relative_attn_buckets_count(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py896 def add_attention_value_scale(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py902 def add_attn_temperature_length(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py932 def add_rope_scaling_attn_factors(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py935 def add_rope_scaling_orig_ctx_len(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py938 def add_rope_scaling_finetuned(self, value: bool) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py941 def add_rope_scaling_yarn_log_mul(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py944 def add_rope_scaling_yarn_ext_factor(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py947 def add_rope_scaling_yarn_attn_factor(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py950 def add_rope_scaling_yarn_beta_fast(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py953 def add_rope_scaling_yarn_beta_slow(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py986 def add_activation_situ_linear_beta(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py989 def add_hyper_connection_count(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py992 def add_hyper_connection_epsilon(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py995 def add_hyper_connection_magnitude(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1090 def add_classifier_output_labels(self, labels: Sequence[str]) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1095 def add_clip_has_vision_encoder(self, value: bool) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1098 def add_clip_has_audio_encoder(self, value: bool) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1104 def add_vision_projection_dim(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1110 def add_vision_embedding_length(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1113 def add_vision_feed_forward_length(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1122 def add_vision_attention_layernorm_eps(self, value: float) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1128 def add_vision_preproc_image_size(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1137 def add_vision_spatial_merge_size(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1146 def add_vision_projector_scale_factor(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1152 def add_vision_is_deepstack_layers(self, layers: Sequence[bool]) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1160 def add_audio_embedding_length(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1163 def add_audio_feed_forward_length(self, value: int) -> None:CODE
LOW⚡gguf-py/gguf/gguf_writer.py1172 def add_audio_attention_layernorm_eps(self, value: float) -> None:CODE
LOWgguf-py/gguf/gguf_writer.py112 def get_total_parameter_count(self) -> tuple[int, int, int, int]:CODE
LOWgguf-py/gguf/gguf_writer.py571 def add_base_model_organization(self, source_id: int, organization: str) -> None:CODE
LOWgguf-py/gguf/gguf_writer.py574 def add_base_model_description(self, source_id: int, description: str) -> None:CODE
LOWgguf-py/gguf/gguf_writer.py643 def add_posnet_embedding_length(self, length: int) -> None:CODE
LOWgguf-py/gguf/gguf_writer.py649 def add_convnext_embedding_length(self, length: int) -> None:CODE
LOWgguf-py/gguf/gguf_writer.py739 def add_sliding_window_pattern(self, value: Sequence[bool]) -> None:CODE
172 more matches not shown…
Cross-File Repetition25 hits · 125 pts
SeverityFileLineSnippetContext
HIGHgguf-py/gguf/vocab.py0returns list of utf-8 byte and a corresponding list of unicode strings. the reversible bpe codes work on unicode stringsSTRING
HIGH…legacy-models/glmedge-convert-image-encoder-to-gguf.py0returns list of utf-8 byte and a corresponding list of unicode strings. the reversible bpe codes work on unicode stringsSTRING
HIGH…es/mtmd/legacy-models/convert_image_encoder_to_gguf.py0returns list of utf-8 byte and a corresponding list of unicode strings. the reversible bpe codes work on unicode stringsSTRING
HIGH…egacy-models/minicpmv-convert-image-encoder-to-gguf.py0returns list of utf-8 byte and a corresponding list of unicode strings. the reversible bpe codes work on unicode stringsSTRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-grammar-integration.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-grammar-integration.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-grammar-integration.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
HIGHtests/test-grammar-integration.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
Structural Annotation Overuse68 hits · 123 pts
SeverityFileLineSnippetContext
LOWinclude/llama.h1377 /// NOTE: This function does not use a jinja parser. It only support a pre-defined list of template. See more: httpsCOMMENT
LOW⚡tests/test-function-calls.cpp1037 // Step 2: Parse incremental message (what server does)COMMENT
LOW⚡tests/test-function-calls.cpp1043 // Step 3: Compute diffs (what server streaming does)COMMENT
LOW⚡tests/test-function-calls.cpp1048 // Step 4: Generate streaming response (critical part that was missing)COMMENT
LOW⚡tests/test-function-calls.cpp1295 // Step 1: During streaming, partial content should not generate diffsCOMMENT
LOW⚡tests/test-function-calls.cpp1304 // Step 2: Only complete tool call should generate tool call diffsCOMMENT
LOW⚡tests/test-function-calls.cpp1345 // Step 1: Extract content like the original server doesCOMMENT
LOW⚡tests/test-function-calls.cpp1349 // Step 2: Test our tool_call_mode fix (force content="" when ctx_server exists)COMMENT
LOW⚡tests/test-function-calls.cpp1356 // Step 3: Simulate slot processingCOMMENT
LOW⚡tests/test-function-calls.cpp1365 // Step 4: Test our incremental parsing fixCOMMENT
LOW⚡tests/test-function-calls.cpp1373 // Step 5: Test our diff computation fixCOMMENT
LOW⚡tests/test-function-calls.cpp1378 // Step 6: Test our early return logic (diffs.empty() → return empty chunks)COMMENT
LOW⚡tests/test-function-calls.cpp1382 // Step 7: Test fallback content logicCOMMENT
LOW⚡tests/test-function-calls.cpp1387 // Step 8: Validate our complete fixCOMMENT
LOW⚡tests/test-function-calls.cpp1874 // Step 1: Simulate the exact content from logsCOMMENT
LOW⚡tests/test-function-calls.cpp1880 // Step 2: Parse using current implementation (partial=true, then partial=false)COMMENT
LOW⚡tests/test-function-calls.cpp1922 // Step 4: Compute diffs (this should be 0 if states are identical)COMMENT
LOW⚡tests/test-function-calls.cpp1928 // Step 5: Check for contamination in diffs (if any)COMMENT
LOW⚡tests/test-function-calls.cpp1943 // Step 6: CRITICAL TEST - Check raw content vs processed content disparityCOMMENT
LOW⚡tests/test-function-calls.cpp1951 // Step 7: REPRODUCTION CHECK - The exact issue from logsCOMMENT
LOWtests/test-function-calls.cpp1026 // Step 1: Simulate what format_partial_response_oaicompat() should doCOMMENT
LOWtests/test-function-calls.cpp1094 // Step 5: Validate the output formatCOMMENT
LOWtests/test-function-calls.cpp1899 // Step 3: Test differential streaming scenario from logsCOMMENT
LOWtests/test-function-calls.cpp1985 // Step 8: Test the exact format_partial_response_oaicompat scenarioCOMMENT
LOWtests/test-function-calls.cpp2017 // Step 9: CRITICAL TEST - Check for content duplicationCOMMENT
LOWtests/test-function-calls.cpp2055 // Step 10: Additional duplication scenariosCOMMENT
LOW⚡docs/development/debugging-tests.md41#### Step 1: Reset and Setup folder contextCOMMENT
LOW⚡docs/development/debugging-tests.md49#### Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
LOW⚡docs/development/debugging-tests.md58#### Step 3: Find all tests available that match REGEXCOMMENT
LOWdocs/development/debugging-tests.md86#### Step 4: Identify Test Command for DebuggingCOMMENT
LOWdocs/development/debugging-tests.md92#### Step 5: Run GDB on test commandCOMMENT
LOW⚡…quests/386 - FlashMLA-3 for DeepSeek models on CUDA.md1057### Step 1: Add the two equations to eliminate \( y \)COMMENT
LOW⚡…quests/386 - FlashMLA-3 for DeepSeek models on CUDA.md1065### Step 2: Solve for \( x \)COMMENT
LOW⚡…quests/386 - FlashMLA-3 for DeepSeek models on CUDA.md1070### Step 3: Substitute \( x = \frac{5}{2} \) into one of the original equations to find \( y \)COMMENT
LOW⚡…ix CUDA DeepSeek FlashMLA-3 with quantized KV cache.md610### Step 1: Add the two equationsCOMMENT
LOW⚡…ix CUDA DeepSeek FlashMLA-3 with quantized KV cache.md616### Step 2: Solve for \( x \)COMMENT
LOW⚡…ix CUDA DeepSeek FlashMLA-3 with quantized KV cache.md622### Step 3: Substitute \( x = 2.5 \) into one of the original equations to find \( y \)COMMENT
LOW⚡…ix CUDA DeepSeek FlashMLA-3 with quantized KV cache.md701### Step 1: Analyze the LengthsCOMMENT
LOW⚡…ix CUDA DeepSeek FlashMLA-3 with quantized KV cache.md707### Step 2: Identify Letter PairsCOMMENT
LOW⚡…ix CUDA DeepSeek FlashMLA-3 with quantized KV cache.md716### Step 3: Match LettersCOMMENT
LOW…ix CUDA DeepSeek FlashMLA-3 with quantized KV cache.md735### Step 4: Formulate the Encoding RuleCOMMENT
LOW…erver/webui_llamacpp/src/lib/utils/latex-protection.ts151 // Step 0: Temporarily remove blockquote markers (>) to process LaTeX correctlyCOMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts165 // Step 1: Protect code blocksCOMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts174 // Step 2: Protect existing LaTeX expressionsCOMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts210 // Step 3: Escape standalone $ before digits (currency like $5 → \$5)COMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts214 // Step 4: Restore protected LaTeX expressions (they are valid)COMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts229 // Step 5: Apply additional escaping functions (brackets and mhchem)COMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts237 // Step 6: Convert remaining \(...\) → $...$, \[...\] → $$...$$COMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts253 // Step 7: Restore code blocksCOMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts259 // Step 8: Restore blockquote markersCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx233 // Step 1: Protect code blocksCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx240 // Step 2: Protect existing LaTeX expressionsCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx266 // Step 3: Escape dollar signs that are likely currency indicators.COMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx270 // Step 4: Restore LaTeX expressionsCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx276 // Step 5: Restore code blocksCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx282 // Step 6: Apply additional escaping functionsCOMMENT
LOWscripts/check-requirements.sh8# WARNING: This is quite IO intensive, because a fresh venv is set up for everyCOMMENT
LOWscripts/debug-test.sh62# Step 0: Check the argsCOMMENT
LOWscripts/debug-test.sh95# Step 1: Reset and Setup folder contextCOMMENT
LOW⚡scripts/debug-test.sh109# Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
8 more matches not shown…
Verbosity Indicators51 hits · 88 pts
SeverityFileLineSnippetContext
LOW⚡tests/test-function-calls.cpp1037 // Step 2: Parse incremental message (what server does)COMMENT
LOW⚡tests/test-function-calls.cpp1043 // Step 3: Compute diffs (what server streaming does)COMMENT
LOW⚡tests/test-function-calls.cpp1048 // Step 4: Generate streaming response (critical part that was missing)COMMENT
LOW⚡tests/test-function-calls.cpp1295 // Step 1: During streaming, partial content should not generate diffsCOMMENT
LOW⚡tests/test-function-calls.cpp1304 // Step 2: Only complete tool call should generate tool call diffsCOMMENT
LOW⚡tests/test-function-calls.cpp1345 // Step 1: Extract content like the original server doesCOMMENT
LOW⚡tests/test-function-calls.cpp1349 // Step 2: Test our tool_call_mode fix (force content="" when ctx_server exists)COMMENT
LOW⚡tests/test-function-calls.cpp1356 // Step 3: Simulate slot processingCOMMENT
LOW⚡tests/test-function-calls.cpp1365 // Step 4: Test our incremental parsing fixCOMMENT
LOW⚡tests/test-function-calls.cpp1373 // Step 5: Test our diff computation fixCOMMENT
LOW⚡tests/test-function-calls.cpp1378 // Step 6: Test our early return logic (diffs.empty() → return empty chunks)COMMENT
LOW⚡tests/test-function-calls.cpp1382 // Step 7: Test fallback content logicCOMMENT
LOW⚡tests/test-function-calls.cpp1387 // Step 8: Validate our complete fixCOMMENT
LOW⚡tests/test-function-calls.cpp1874 // Step 1: Simulate the exact content from logsCOMMENT
LOW⚡tests/test-function-calls.cpp1880 // Step 2: Parse using current implementation (partial=true, then partial=false)COMMENT
LOW⚡tests/test-function-calls.cpp1922 // Step 4: Compute diffs (this should be 0 if states are identical)COMMENT
LOW⚡tests/test-function-calls.cpp1928 // Step 5: Check for contamination in diffs (if any)COMMENT
LOW⚡tests/test-function-calls.cpp1943 // Step 6: CRITICAL TEST - Check raw content vs processed content disparityCOMMENT
LOW⚡tests/test-function-calls.cpp1951 // Step 7: REPRODUCTION CHECK - The exact issue from logsCOMMENT
LOWtests/test-function-calls.cpp1026 // Step 1: Simulate what format_partial_response_oaicompat() should doCOMMENT
LOWtests/test-function-calls.cpp1094 // Step 5: Validate the output formatCOMMENT
LOWtests/test-function-calls.cpp1899 // Step 3: Test differential streaming scenario from logsCOMMENT
LOWtests/test-function-calls.cpp1985 // Step 8: Test the exact format_partial_response_oaicompat scenarioCOMMENT
LOWtests/test-function-calls.cpp2017 // Step 9: CRITICAL TEST - Check for content duplicationCOMMENT
LOWtests/test-function-calls.cpp2055 // Step 10: Additional duplication scenariosCOMMENT
LOWcommon/common.cpp3269 // now we need to check if there is anything after this argvCOMMENT
LOW…erver/webui_llamacpp/src/lib/utils/latex-protection.ts151 // Step 0: Temporarily remove blockquote markers (>) to process LaTeX correctlyCOMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts165 // Step 1: Protect code blocksCOMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts174 // Step 2: Protect existing LaTeX expressionsCOMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts210 // Step 3: Escape standalone $ before digits (currency like $5 → \$5)COMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts214 // Step 4: Restore protected LaTeX expressions (they are valid)COMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts229 // Step 5: Apply additional escaping functions (brackets and mhchem)COMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts237 // Step 6: Convert remaining \(...\) → $...$, \[...\] → $$...$$COMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts253 // Step 7: Restore code blocksCOMMENT
LOW⚡…erver/webui_llamacpp/src/lib/utils/latex-protection.ts259 // Step 8: Restore blockquote markersCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx233 // Step 1: Protect code blocksCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx240 // Step 2: Protect existing LaTeX expressionsCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx266 // Step 3: Escape dollar signs that are likely currency indicators.COMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx270 // Step 4: Restore LaTeX expressionsCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx276 // Step 5: Restore code blocksCOMMENT
LOW⚡…amples/server/webui/src/components/MarkdownDisplay.tsx282 // Step 6: Apply additional escaping functionsCOMMENT
LOWscripts/debug-test.sh62# Step 0: Check the argsCOMMENT
LOWscripts/debug-test.sh95# Step 1: Reset and Setup folder contextCOMMENT
LOW⚡scripts/debug-test.sh109# Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
LOW⚡scripts/debug-test.sh119# Step 3: Find all tests available that matches REGEXCOMMENT
LOWscripts/debug-test.sh135# Step 4: Identify Test Command for DebuggingCOMMENT
LOWscripts/debug-test.sh172# Step 5: Execute or GDB DebugCOMMENT
LOWsrc/llama-sampling.cpp830 // Step 1: Look for restart sequences to limit the maximum repetition length.COMMENT
LOWsrc/llama-sampling.cpp891 // Step 2: Iterate in reverse over the last N tokens of the context, using the "Z-algorithm" (inCOMMENT
LOWsrc/llama-sampling.cpp955 // Step 3: Iterate over dry_repeat_count and last_tokens, examining the maximum repeat lengthCOMMENT
LOWsrc/llama-sampling.cpp982 // Step 4: Apply logit penalties based on the maximum repeat length for relevant tokens.COMMENT
Deep Nesting98 hits · 74 pts
SeverityFileLineSnippetContext
LOWconvert_lora_to_gguf.py56CODE
LOWconvert_lora_to_gguf.py186CODE
LOWconvert_imatrix_gguf_to_dat.py87CODE
LOWconvert_hf_to_gguf.py7655CODE
LOWconvert_hf_to_gguf.py139CODE
LOWconvert_hf_to_gguf.py273CODE
LOWconvert_hf_to_gguf.py544CODE
LOWconvert_hf_to_gguf.py851CODE
LOWconvert_hf_to_gguf.py1283CODE
LOWconvert_hf_to_gguf.py1493CODE
LOWconvert_hf_to_gguf.py1695CODE
LOWconvert_hf_to_gguf.py1740CODE
LOWconvert_hf_to_gguf.py1816CODE
LOWconvert_hf_to_gguf.py1944CODE
LOWconvert_hf_to_gguf.py2000CODE
LOWconvert_hf_to_gguf.py2089CODE
LOWconvert_hf_to_gguf.py2325CODE
LOWconvert_hf_to_gguf.py2536CODE
LOWconvert_hf_to_gguf.py3220CODE
LOWconvert_hf_to_gguf.py3327CODE
LOWconvert_hf_to_gguf.py3456CODE
LOWconvert_hf_to_gguf.py3703CODE
LOWconvert_hf_to_gguf.py3989CODE
LOWconvert_hf_to_gguf.py4777CODE
LOWconvert_hf_to_gguf.py4869CODE
LOWconvert_hf_to_gguf.py4929CODE
LOWconvert_hf_to_gguf.py5028CODE
LOWconvert_hf_to_gguf.py5139CODE
LOWconvert_hf_to_gguf.py5223CODE
LOWconvert_hf_to_gguf.py5759CODE
LOWconvert_hf_to_gguf.py5865CODE
LOWconvert_hf_to_gguf.py6017CODE
LOWconvert_hf_to_gguf.py6087CODE
LOWconvert_hf_to_gguf.py6227CODE
LOWconvert_hf_to_gguf.py6711CODE
LOWconvert_hf_to_gguf.py6822CODE
LOWconvert_hf_to_gguf.py6886CODE
LOWconvert_hf_to_gguf.py6976CODE
LOWconvert_hf_to_gguf.py7115CODE
LOWconvert_llama_ggml_to_gguf.py204CODE
LOWconvert_llama_ggml_to_gguf.py287CODE
LOWgguf-py/gguf/gguf_writer.py112CODE
LOWgguf-py/gguf/gguf_writer.py326CODE
LOWgguf-py/gguf/gguf_writer.py425CODE
LOWgguf-py/gguf/gguf_writer.py1055CODE
LOWgguf-py/gguf/gguf_writer.py1204CODE
LOWgguf-py/gguf/vocab.py141CODE
LOWgguf-py/gguf/metadata.py155CODE
LOWgguf-py/gguf/metadata.py280CODE
LOWgguf-py/gguf/gguf_reader.py56CODE
LOWgguf-py/gguf/gguf_reader.py314CODE
LOWgguf-py/gguf/constants.py2490CODE
LOWgguf-py/gguf/quants.py50CODE
LOWgguf-py/tests/test_quants.py142CODE
LOWgguf-py/tests/test_quants.py85CODE
LOWgguf-py/scripts/gguf_convert_endian.py22CODE
LOWgguf-py/scripts/gguf_new_metadata.py136CODE
LOWgguf-py/scripts/gguf_dump.py34CODE
LOWgguf-py/scripts/gguf_dump.py153CODE
LOWgguf-py/scripts/gguf_dump.py228CODE
38 more matches not shown…
Excessive Try-Catch Wrapping36 hits · 59 pts
SeverityFileLineSnippetContext
MEDIUMconvert_hf_to_gguf.py1124def set_vocab(self):CODE
LOWconvert_hf_to_gguf.py1127 except Exception:CODE
LOWconvert_hf_to_gguf_update.py157 except Exception as e:CODE
MEDIUM…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md159 print(f"Error: tensor_downloader.sh not found or not executable at {tensor_downloader}", file=sys.stderr)CODE
LOW…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md220 except Exception as e:CODE
LOW…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md312 except Exception:CODE
LOW…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md330 except Exception:CODE
MEDIUM…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md397 print(f"Error: qtype '{qtype_arg}' not found in CSV.")CODE
LOW⚡…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md782 except Exception:CODE
LOW⚡…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md790 except Exception:CODE
MEDIUM⚡…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md796 print("Error: CSV must have 'QTYPE' as first column.")CODE
MEDIUM…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md864 print(f"Error: could not parse numeric value for tensor {name!r}: {raw!r}")CODE
LOW…a/discussions/621 - Deepseek v3_r1 poisoned prompt_.md1165 except Exception:CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py66 print(f"Error: unknown tool {json_data['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py142 print(f"Error: unknown tool {json_data['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py285 print(f"Error: unknown tool {call['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar.py1001 print(f"An error occurred while saving the grammar file: {e}")CODE
MEDIUMexamples/pydantic_models_to_grammar.py1008 print(f"An error occurred while saving the documentation file: {e}")CODE
LOWexamples/server/bench/bench.py58 except Exception:CODE
LOWexamples/server/bench/bench.py84 except Exception:CODE
LOWexamples/server/tests/features/environment.py51 except Exception:CODE
MEDIUMexamples/server/tests/features/environment.py23def after_scenario(context, scenario):CODE
MEDIUM…es/llama.swiftui/llama.swiftui/UI/DownloadButton.swift40 print("Error: \(error.localizedDescription)")CODE
MEDIUM…es/llama.swiftui/llama.swiftui/UI/DownloadButton.swift61 print("Error: \(err.localizedDescription)")CODE
MEDIUM…es/llama.swiftui/llama.swiftui/UI/DownloadButton.swift95 print("Error: \(err.localizedDescription)")CODE
MEDIUM…mples/llama.swiftui/llama.swiftui/UI/InputButton.swift44 print("Error: \(error.localizedDescription)")CODE
MEDIUM…mples/llama.swiftui/llama.swiftui/UI/InputButton.swift65 print("Error: \(err.localizedDescription)")CODE
MEDIUM…mples/llama.swiftui/llama.swiftui/UI/InputButton.swift111 print("Error: \(err.localizedDescription)")CODE
MEDIUM…/llama.swiftui/llama.swiftui/UI/LoadCustomButton.swift34 print("Error: \(err.localizedDescription)")CODE
MEDIUM…mples/llama.swiftui/llama.swiftui/UI/ContentView.swift87 print("Error deleting file: \(error)")CODE
MEDIUM…es/llama.swiftui/llama.swiftui/Models/LlamaState.swift39 print("Error loading models from disk: \(error)")CODE
LOWscripts/fetch_server_test_models.py35 except Exception as e:CODE
MEDIUMscripts/fetch_server_test_models.py31def collect_hf_model_test_parameters(test_file) -> Generator[HuggingFaceModel, NCODE
LOWscripts/tool_bench.py103 except Exception as e:CODE
LOWscripts/tool_bench.py283 except Exception as e:CODE
LOWscripts/repack_ternary_to_prism.py21except Exception:CODE
Unused Imports47 hits · 46 pts
SeverityFileLineSnippetContext
LOWconvert_lora_to_gguf.py4CODE
LOWconvert_imatrix_gguf_to_dat.py1CODE
LOWconvert_hf_to_gguf.py4CODE
LOWconvert_llama_ggml_to_gguf.py2CODE
LOWgguf-py/gguf/gguf_writer.py1CODE
LOWgguf-py/gguf/vocab.py1CODE
LOWgguf-py/gguf/metadata.py1CODE
LOWgguf-py/gguf/gguf_reader.py5CODE
LOWgguf-py/gguf/tensor_mapping.py1CODE
LOWgguf-py/gguf/utility.py1CODE
LOWgguf-py/gguf/constants.py1CODE
LOWgguf-py/gguf/__init__.py1CODE
LOWgguf-py/gguf/__init__.py2CODE
LOWgguf-py/gguf/__init__.py3CODE
LOWgguf-py/gguf/__init__.py4CODE
LOWgguf-py/gguf/__init__.py5CODE
LOWgguf-py/gguf/__init__.py6CODE
LOWgguf-py/gguf/__init__.py7CODE
LOWgguf-py/gguf/__init__.py8CODE
LOWgguf-py/gguf/__init__.py9CODE
LOWgguf-py/gguf/lazy.py1CODE
LOWgguf-py/gguf/quants.py1CODE
LOWgguf-py/tests/__init__.py1CODE
LOWgguf-py/tests/test_quants.py7CODE
LOWgguf-py/scripts/gguf_convert_endian.py2CODE
LOWgguf-py/scripts/gguf_new_metadata.py2CODE
LOWgguf-py/scripts/__init__.py3CODE
LOWgguf-py/scripts/__init__.py4CODE
LOWgguf-py/scripts/__init__.py5CODE
LOWgguf-py/scripts/__init__.py6CODE
LOWgguf-py/scripts/gguf_dump.py2CODE
LOWgguf-py/scripts/gguf_dump.py12CODE
LOWgguf-py/scripts/gguf_hash.py2CODE
LOWtests/test-tokenizer-random.py9CODE
LOWexamples/json_schema_to_grammar.py2CODE
LOWexamples/pydantic_models_to_grammar_examples.py5CODE
LOWexamples/convert_legacy_llama.py2CODE
LOWexamples/pydantic_models_to_grammar.py1CODE
LOW…gacy-models/minimaxm3-convert-image-encoder-to-gguf.py4CODE
LOW…gacy-models/minimaxm3-convert-image-encoder-to-gguf.py5CODE
LOW…legacy-models/glmedge-convert-image-encoder-to-gguf.py8CODE
LOW…es/mtmd/legacy-models/convert_image_encoder_to_gguf.py8CODE
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py414CODE
LOWexamples/server/bench/bench.py1CODE
LOWscripts/gen-unicode-data.py1CODE
LOWscripts/gen-unicode-script-data.py2CODE
LOWscripts/repack_ternary_to_prism.py15CODE
Self-Referential Comments13 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMci/run.sh742 # Create a fresh python3 venv and enter itCOMMENT
MEDIUMgguf-py/gguf/metadata.py52 # Create a new Metadata instanceCOMMENT
MEDIUMexamples/ts-type-to-grammar.sh10# Create a temporary directoryCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py186 # Define the rule identifier based on max_digit and min_digitCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py241 # Define the integer part ruleCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py248 # Define the fractional part rule based on precision constraintsCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py264 # Define the float ruleCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py370 # Defining the union grammar rule separatelyCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py1179 # Creating the dynamic modelCOMMENT
MEDIUMexamples/server/chat-llama2.sh57 # Create a temporary file to hold the Python outputCOMMENT
MEDIUM⚡scripts/verify-checksum-models.py25# Define the path to the llama directory (parent folder of script directory)COMMENT
MEDIUM⚡scripts/verify-checksum-models.py28# Define the file with the list of hashes and filenamesCOMMENT
MEDIUM⚡scripts/verify-checksum-models.py40# Create an array to store the resultsCOMMENT
Modern AI Meta-Vocabulary15 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUM…sting _deepseek-ai_DeepSeek-V3-0324_ model support..md3732> Oh nice, a single html sounds cool. I want to re-write my little `dchat.py` app to remove litellm dependency and simplCODE
MEDIUM…sting _deepseek-ai_DeepSeek-V3-0324_ model support..md3776> >I'd like to add [primp](https://github.com/deedy5/primp) directly to it, which I use for my "agentic" stuff like web CODE
MEDIUM…discussions/15 - Will LQER improve k- and i-quants_.md28* In `llama.cpp` the mean log probability is evaluated over the second half of the context window `n_ctx`, while in PythCOMMENT
MEDIUM…UDA error_ an illegal memory access was encountered.md3457The bug was in the matrix-vector multiplication kernel. It only shows up when the number of rows being processed (i.e., CODE
MEDIUM…server/webui_llamacpp/src/lib/stores/agentic.svelte.ts395 // Ensure built-in tools are fetched before checking if agentic is enabledCOMMENT
MEDIUM…es/server/webui_llamacpp/src/lib/stores/chat.svelte.ts544 // If agentic loop is running, inject as a steering message instead of starting a new flowCOMMENT
MEDIUM…es/server/webui_llamacpp/src/lib/stores/chat.svelte.ts550 // If non-agentic streaming is active, queue as a pending message to send after completionCOMMENT
MEDIUM…es/server/webui_llamacpp/src/lib/stores/chat.svelte.ts739 // Update the first assistant message with cumulative agentic timingsCOMMENT
MEDIUM…es/server/webui_llamacpp/src/lib/stores/chat.svelte.ts901 // Generate LLM based title for new conversations after agentic flow completesCOMMENT
MEDIUM…erver/webui_llamacpp/src/lib/utils/legacy-migration.ts181 // Has agentic markers - full migration neededCOMMENT
MEDIUMexamples/server/webui_llamacpp/src/lib/utils/agentic.ts269 // Walk consecutive trailing tool results. The agentic loop only emits toolCOMMENT
MEDIUM…b/components/app/chat/ChatMessages/ChatMessages.svelte179 // Build display entries, grouping agentic sessions into single entries.COMMENT
MEDIUM…b/components/app/chat/ChatMessages/ChatMessages.svelte180 // An agentic session = assistant(with tool_calls) → tool → assistant → tool → ... → assistant(final)COMMENT
MEDIUM…app/chat/ChatMessages/ChatMessageAgenticContent.svelte114 // Group flat sections into agentic turnsCOMMENT
MEDIUMexamples/gritlm/README.md7### Retrieval-Augmented Generation (RAG) use caseCOMMENT
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHconvert_imatrix_gguf_to_dat.py27except AttributeError:CODE
HIGHgguf-py/gguf/vocab.py366except FileNotFoundError:CODE
HIGHgguf-py/gguf/vocab.py439except FileNotFoundError:CODE
HIGHgguf-py/gguf/metadata.py225except ValueError:CODE
HIGHexamples/convert_legacy_llama.py1230except FileNotFoundError:CODE
HIGHscripts/run-with-preset.py143except KeyboardInterrupt:CODE
HIGHscripts/compare-llama-bench.py320except ValueError:CODE
Redundant / Tautological Comments12 hits · 18 pts
SeverityFileLineSnippetContext
LOWgguf-py/gguf/metadata.py176 # Check if we erroneously matched against './' or '../' etc...COMMENT
LOWgguf-py/gguf/gguf_reader.py74 # Check if it's unsafe to perform slice optimization on dataCOMMENT
LOWgguf-py/gguf/gguf_reader.py229 # Check if it's a simple scalar type.COMMENT
LOWgguf-py/scripts/gguf_dump.py334 # Check if new Tensor GroupCOMMENT
LOWexamples/convert_legacy_llama.py1178 # Check if it's a set of safetensors files firstCOMMENT
LOWexamples/pydantic_models_to_grammar.py490 # Check if the field is optional (not required)COMMENT
LOWexamples/pydantic_models_to_grammar.py96 if not parts: # Check if the list is emptyCODE
LOWexamples/mtmd/tests.sh16# Check if the first argument is "big", then run test with big modelsCOMMENT
LOW⚡scripts/verify-checksum-models.py31# Check if the hash list file existsCOMMENT
LOWscripts/verify-checksum-models.py54 # Check if the file existsCOMMENT
LOWscripts/verify-checksum-models.py70 # Add the results to the arrayCOMMENT
LOWscripts/verify-checksum-models.py82# Output the results as a tableCOMMENT
Decorative Section Separators4 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM⚡examples/mtmd/clip.cpp6041 // ├─────┤ │COMMENT
MEDIUM⚡examples/mtmd/clip.cpp6043 // ├─────┤ │COMMENT
MEDIUM⚡examples/mtmd/clip.cpp6045 // └─────┘ │COMMENT
MEDIUM⚡examples/mtmd/clip.cpp6046 // ──────┘ x BCOMMENT
Cross-Language Confusion4 hits · 18 pts
SeverityFileLineSnippetContext
HIGHtests/test-tokenizer-random.py347 if unicodedata.category(chr(cpt)) in ("Cn", "Cs", "Co"): # undefined, surrogates, privateCODE
HIGHscripts/tool_bench.py10 cmake -B build -DLLAMA_CURL=1 && cmake --build build --config Release -j -t llama-serverSTRING
HIGHscripts/compare-llama-bench.py48$ make clean && make llama-benchCODE
HIGHscripts/compare-llama-bench.py51$ make clean && make llama-benchCODE
Example Usage Blocks10 hits · 15 pts
SeverityFileLineSnippetContext
LOWgguf-py/examples/writer.py13# Example usage:COMMENT
LOWtests/test-tokenizer-0.sh3# Usage:COMMENT
LOWtests/test-tokenizer-random.py4# Sample usage:COMMENT
LOWexamples/json_schema_pydantic_example.py1# Usage:COMMENT
LOWexamples/base-translate.sh6# Usage:COMMENT
LOWexamples/server/webui_llamacpp/scripts/dev.sh8# Usage:COMMENT
LOWscripts/sync-ggml-am.sh5# Usage:COMMENT
LOWscripts/build-zen.sh6# Usage:COMMENT
LOWscripts/server-llm.sh16# Usage:COMMENT
LOWscripts/hf.sh5# Usage:COMMENT
AI Response Leakage3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…pull_requests/565 - add hunyuan moe support for 561.md177The mainline PR `https://github.com/ggml-org/llama.cpp/pull/14425` seems still open for now, and yes no rush to merge thCODE
HIGHgithub-data/issues/88 - Bug_ Won_t compile on MSVC.md15As mentioned in #82 this does not compile with MSVC. I was able to get through the issues and make it compile on my machCODE
HIGHgithub-data/issues/345 - build question newbie.md376I'm not familiar with this space, so had to look up what "rock 5b" is. According to [this](https://bret.dk/radxa-rock-5bCODE
Modern Structural Boilerplate12 hits · 12 pts
SeverityFileLineSnippetContext
LOWconvert_hf_to_gguf.py774 def _set_vocab_gpt2(self, dir_model: Path | None = None, vocab_size: int | None = None) -> None:CODE
LOWconvert_hf_to_gguf.py2482 def _set_vocab_gemma4(self, dir_model: Path, vocab_size: int | None = None) -> None:CODE
LOWconvert_hf_to_gguf.py2732 def _set_vocab_tokenizer_json(self, dir_model: Path, vocab_size: int) -> None:CODE
LOWconvert_hf_to_gguf.py2881 def set_gguf_parameters(self) -> None:CODE
LOWconvert_hf_to_gguf.py7251 def set_vocab(self) -> None:CODE
LOWgguf-py/gguf/gguf_writer.py34logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/vocab.py39logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/vocab.py129 def _set_special_token(self, typ: str, tid: Any) -> None:CODE
LOWgguf-py/gguf/gguf_reader.py33logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/lazy.py11logger = logging.getLogger(__name__)CODE
LOWgguf-py/scripts/gguf_set_metadata.py44def set_metadata(reader: GGUFReader, args: argparse.Namespace) -> None:CODE
LOWscripts/tool_bench.py75logger = logging.getLogger(__name__)CODE
AI Slop Vocabulary4 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMgguf-py/gguf/metadata.py309 # (Definitely not part of hugging face formal/informal standard)COMMENT
MEDIUMgguf-py/gguf/metadata.py325 # (Definitely not part of hugging face formal/informal standard... but with model_ appended to match their sCOMMENT
MEDIUMgguf-py/gguf/lazy.py49 # TODO: make this even more comprehensiveCOMMENT
MEDIUMexamples/server/webui_llamacpp/package-lock.json9611 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/server-llm.sh194 printf " model using llama.cpp for demonstration purposes.\n"CODE
MEDIUMscripts/server-llm.sh204 printf " - This script is only for demonstration purposes\n"CODE
LOW.github/ISSUE_TEMPLATE/07-refactor.yml9 Don't forget to [check for existing refactor issue tickets](https://github.com/ikawrakow/ik_llama.cpp/issues?q=iCODE
LOW.github/ISSUE_TEMPLATE/06-research.yml9 Don't forget to check for any duplicate research issue ticketsCODE
AI Structural Patterns7 hits · 6 pts
SeverityFileLineSnippetContext
LOWconvert_hf_to_gguf.py74CODE
LOWexamples/pydantic_models_to_grammar_examples.py308CODE
LOWexamples/pydantic_models_to_grammar.py1027CODE
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py82CODE
LOWexamples/server/tests/features/steps/steps.py1051CODE
LOWexamples/server/tests/features/steps/steps.py1097CODE
LOWscripts/tool_bench.py204CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…pull_requests/287 - Is this better for DeepSeek-R1_.md303The auto-generated code python:CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHexamples/pydantic_models_to_grammar.py532 Generate GBNF Grammar from Pydantic Models. This method takes a list of Pydantic models and uses them to generSTRING
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test-function-calls.cpp492const std::string real_world_api_call = R"(I'll make an API call for you. functions.http_request:0{"method": "POST", "urCODE
LOWexamples/server/public_mikupad/index.html3664 // { "placeholder":"replacement" }COMMENT
LOWexamples/server/public_mikupad/index.html4162 'placeholder'="Name for saved prompt"CODE
LOWexamples/server/public_mikupad/index.html5572 // { "placeholder":"replacement" }COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcommon/speculative.cpp689 // TODO: implementCOMMENT
LOWexamples/server/webui/src/components/ChatMessage.tsx62 // TODO: implement this as remark/rehype plugin in the futureCOMMENT