Repository Analysis

josStorer/RWKV-Runner

A RWKV management and startup tool, full automation, only 8MB. And provides an interface compatible with the OpenAI API. RWKV is a large language model that is fully open source and available for commercial use.

8.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of josStorer/RWKV-Runner, a TypeScript project with 6,427 GitHub stars. SynthScan v2.0 examined 140,720 lines of code across 408 source files, recording 1086 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 8.0 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

8.0
Adjusted Score
8.0
Raw Score
100%
Time Factor
2026-07-07
Last Push
6.4K
Stars
TypeScript
Language
140.7K
Lines of Code
408
Files
1.1K
Pattern Hits
2026-07-14
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 15MEDIUM 22LOW 1049

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1086 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers343 hits · 334 pts
SeverityFileLineSnippetContext
LOWfrontend/wailsjs/go/backend_golang/App.d.ts25export function ConvertSafetensorsWithPython(arg1:string,arg2:string,arg3:string):Promise<string>;CODE
LOWfrontend/wailsjs/go/backend_golang/App.d.ts51export function GetMaxCudaComputeCapability():Promise<string>;CODE
LOWfrontend/wailsjs/go/backend_golang/App.js45export function ConvertSafetensorsWithPython(arg1, arg2, arg3) {CODE
LOWfrontend/wailsjs/go/backend_golang/App.js97export function GetMaxCudaComputeCapability() {CODE
LOWfrontend/wailsjs/runtime/runtime.d.ts103export function WindowSetSystemDefaultTheme(): void;CODE
LOWfrontend/wailsjs/runtime/runtime.d.ts203export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;CODE
LOWfrontend/wailsjs/runtime/runtime.js72export function WindowSetSystemDefaultTheme() {CODE
LOWfrontend/wailsjs/runtime/runtime.js160export function WindowSetBackgroundColour(R, G, B, A) {CODE
LOWfrontend/src/utils/index.tsx188function initLastUnfinishedModelDownloads() {CODE
LOWfrontend/src/utils/index.tsx457export function forceDownloadProgramFiles() {CODE
LOWfrontend/src/utils/index.tsx464export async function deleteDynamicProgramFiles() {CODE
LOWfrontend/src/utils/index.tsx855export function getMidiRawContentMainInstrument(rawContent: MidiMessage[]) {CODE
LOWfrontend/src/utils/index.tsx877export function flushMidiRecordingContent() {CODE
LOWfrontend/src/utils/rwkv-task.ts267export async function convertSafetensorsWithPython(CODE
LOWfrontend/src/utils/get-available-torch-cu-version.ts5export function getAvailableTorchCuVersion(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_cache.py228 def _find_longest_prefix_node(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_speculative.py136 def find_candidate_pred_tokens(CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1094def ggml_backend_buffer_clear(buffer: ggml_backend_buffer_t, value: ctypes.c_uint8):CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1103def ggml_backend_buffer_is_host(buffer: ggml_backend_buffer_t) -> ctypes.c_bool:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1112def ggml_backend_buffer_set_usage(buffer: ggml_backend_buffer_t, usage: ctypes.c_int32):CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1121def ggml_backend_buffer_get_usage(buffer: ggml_backend_buffer_t) -> ctypes.c_int32:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1130def ggml_backend_buffer_get_type(buffer: ggml_backend_buffer_t) -> ggml_backend_buffer_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1139def ggml_backend_buffer_reset(buffer: ggml_backend_buffer_t):CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py933def ggml_backend_buft_alloc_buffer(CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py945def ggml_backend_buft_get_alignment(buft: ggml_backend_buffer_type_t) -> ctypes.c_size_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py954def ggml_backend_buft_get_max_size(buft: ggml_backend_buffer_type_t) -> ctypes.c_size_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py966def ggml_backend_buft_get_alloc_size(CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py978def ggml_backend_buft_is_host(buft: ggml_backend_buffer_type_t) -> ctypes.c_bool:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py987def ggml_backend_buft_get_device(buft: ggml_backend_buffer_type_t) -> ggml_backend_dev_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1028def ggml_backend_buffer_get_base(buffer: ggml_backend_buffer_t):CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1037def ggml_backend_buffer_get_size(buffer: ggml_backend_buffer_t) -> ctypes.c_size_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1049def ggml_backend_buffer_init_tensor(CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1061def ggml_backend_buffer_get_alignment(buffer: ggml_backend_buffer_t) -> ctypes.c_size_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1070def ggml_backend_buffer_get_max_size(buffer: ggml_backend_buffer_t) -> ctypes.c_size_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1082def ggml_backend_buffer_get_alloc_size(CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1188def ggml_backend_device_register(device: ctypes.c_void_p):CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1259def ggml_backend_init_by_name(name: ctypes.c_char_p, params: ctypes.c_char_p) -> ggml_backend_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1319def ggml_backend_load_all_from_path(dir_path: ctypes.c_char_p):CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1334def ggml_backend_cpu_buffer_from_ptr(CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1350def ggml_backend_cpu_buffer_type() -> ggml_backend_buffer_type_t:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py147 def register_chat_completion_handler(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py165 def get_chat_completion_handler_by_name(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py177def get_chat_completion_handler(name: str) -> LlamaChatCompletionHandler:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py183def register_chat_completion_handler(name: str):CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py299def _convert_text_completion_logprobs_to_chat(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py324def _convert_text_completion_to_chat(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py348def _convert_text_completion_chunks_to_chat(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py391def _convert_completion_to_chat(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py408def _convert_completion_to_chat_function(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py457 def _stream_response_to_function_stream(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py585def chat_formatter_to_chat_completion_handler(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py778def hf_autotokenizer_to_chat_formatter(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py803def hf_autotokenizer_to_chat_completion_handler(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py810def hf_tokenizer_config_to_chat_formatter(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py858def hf_tokenizer_config_to_chat_completion_handler(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py868def guess_chat_format_from_gguf_metadata(metadata: Dict[str, str]) -> Optional[str]:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py974def _format_add_colon_space_single(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1033def _grammar_for_response_format(CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1568 def generate_shared_definitions(shared_defs, indent_level: int) -> str:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1585 def generate_schema_from_functions(functions, namespace="functions") -> str:CODE
283 more matches not shown…
Unused Imports308 hits · 286 pts
SeverityFileLineSnippetContext
LOWpy310/Lib/site-packages/llama_cpp/llama_cache.py9CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_cache.py20CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_tokenizer.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py10CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py16CODE
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py16CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py42CODE
LOWpy310/Lib/site-packages/llama_cpp/__init__.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/__init__.py2CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py23CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py30CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py30CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py30CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py30CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py26CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py27CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py33CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py35CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py37CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py37CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py37CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py37CODE
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py5CODE
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py21CODE
LOWpy310/Lib/site-packages/llama_cpp/_ctypes_extensions.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_embedding.py7CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_embedding.py7CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_embedding.py7CODE
LOWpy310/Lib/site-packages/llama_cpp/server/types.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/server/model.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/server/cli.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/server/settings.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/server/app.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/server/errors.py1CODE
LOWpy310/Lib/site-packages/llama_cpp/server/errors.py6CODE
LOWpy310/Lib/site-packages/llama_cpp/server/errors.py6CODE
LOWpy310/Lib/site-packages/llama_cpp/server/__main__.py25CODE
LOWfinetune/json2binidx_tool/tools/rwkv_tokenizer.py6CODE
LOWfinetune/json2binidx_tool/tools/rwkv_tokenizer.py6CODE
LOWfinetune/json2binidx_tool/tools/rwkv_tokenizer.py6CODE
LOWfinetune/json2binidx_tool/tools/rwkv_tokenizer.py6CODE
LOWfinetune/json2binidx_tool/tools/tokenizer.py24CODE
LOWfinetune/lora/merge_lora.py2CODE
LOWfinetune/lora/v6/train.py13CODE
LOWfinetune/lora/v6/train.py163CODE
LOWfinetune/lora/v6/train.py163CODE
LOWfinetune/lora/v6/train.py163CODE
LOWfinetune/lora/v6/train.py347CODE
LOWfinetune/lora/v6/merge/merge_state.py1CODE
LOWfinetune/lora/v6/merge/merge_state.py2CODE
LOWfinetune/lora/v6/merge/merge_state.py3CODE
LOWfinetune/lora/v6/merge/merge_state.py5CODE
LOWfinetune/lora/v6/merge/merge_state.py7CODE
LOWfinetune/lora/v6/merge/merge.py2CODE
LOWfinetune/lora/v6/merge/merge.py3CODE
248 more matches not shown…
Deep Nesting114 hits · 104 pts
SeverityFileLineSnippetContext
LOWparse_api_log.py5CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py585CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1495CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1884CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py5737CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py588CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1535CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1619CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1945CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py2228CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py2972CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py3074CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py3266CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py3635CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1669CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1398CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1969CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py85CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py873CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py1107CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py1244CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py1794CODE
LOWpy310/Lib/site-packages/llama_cpp/_ctypes_extensions.py23CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py296CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py319CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py603CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py663CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py834CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py609CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py687CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_embedding.py85CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_embedding.py119CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_embedding.py179CODE
LOWpy310/Lib/site-packages/llama_cpp/server/model.py74CODE
LOWpy310/Lib/site-packages/llama_cpp/server/errors.py162CODE
LOWpy310/Lib/site-packages/llama_cpp/server/errors.py170CODE
LOWpy310/Lib/site-packages/llama_cpp/server/__main__.py43CODE
LOWfinetune/json2binidx_tool/tools/rwkv_tokenizer.py76CODE
LOWfinetune/json2binidx_tool/tools/indexed_dataset.py35CODE
LOWfinetune/lora/v6/fla/layers/delta_net.py140CODE
LOWfinetune/lora/v6/fla/layers/linear_attn.py15CODE
LOWfinetune/lora/v6/fla/layers/multiscale_retention.py155CODE
LOWfinetune/lora/v6/fla/models/abc/modeling_abc.py128CODE
LOW…une/lora/v6/fla/models/delta_net/modeling_delta_net.py128CODE
LOWfinetune/lora/v6/fla/models/hgrn/modeling_hgrn.py123CODE
LOW…lora/v6/fla/models/transformer/modeling_transformer.py257CODE
LOWfinetune/lora/v6/fla/models/mamba/modeling_mamba.py330CODE
LOWfinetune/lora/v6/fla/models/gla/modeling_gla.py128CODE
LOW…lora/v6/fla/models/linear_attn/modeling_linear_attn.py128CODE
LOWfinetune/lora/v6/fla/models/retnet/modeling_retnet.py126CODE
LOWfinetune/lora/v6/fla/models/hgrn2/modeling_hgrn2.py123CODE
LOWfinetune/lora/v6/fla/models/rwkv6/modeling_rwkv6.py166CODE
LOWfinetune/lora/v6/fla/modules/feature_map.py219CODE
LOWfinetune/lora/v6/src/model.py86CODE
LOWfinetune/lora/v6/src/model.py1271CODE
LOWfinetune/lora/v6/src/model.py1479CODE
LOWfinetune/lora/v6/src/model.py1868CODE
LOWfinetune/lora/v6/src/model.py1632CODE
LOWfinetune/lora/v6/src/model.py1763CODE
LOWfinetune/lora/v6/src/dataset.py15CODE
54 more matches not shown…
Excessive Try-Catch Wrapping72 hits · 78 pts
SeverityFileLineSnippetContext
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py726 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1026 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1790 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py2173 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py2959 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py3251 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py3531 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py5938 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py6087 except Exception as e:CODE
MEDIUMpy310/Lib/site-packages/llama_cpp/_internals.py1323def __del__(self):CODE
MEDIUMpy310/Lib/site-packages/llama_cpp/_internals.py1676def __del__(self):CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py85 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py510 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py935 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1148 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1316 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1326 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1659 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1679 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1799 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1851 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py604 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py653 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py930 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py1046 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ctypes_extensions.py107 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/_ctypes_extensions.py118 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py43 except Exception as err:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_grammar.py77 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_embedding.py437 except Exception as e:CODE
LOWpy310/Lib/site-packages/llama_cpp/server/errors.py180 except Exception as exc:CODE
LOWpy310/Lib/site-packages/llama_cpp/server/errors.py198 except Exception:CODE
LOWpy310/Lib/site-packages/llama_cpp/server/__main__.py80 except Exception as e:CODE
LOWfinetune/json2binidx_tool/tools/preprocess_data.py248 except Exception as e:CODE
LOWfinetune/lora/merge_lora.py66except Exception as e:CODE
LOWfinetune/lora/v6/src/trainer.py287 except Exception as e:CODE
LOWfinetune/lora/v5/src/trainer.py254 except Exception as e:CODE
LOWfinetune/lora/v4/src/trainer.py174 except Exception as e:CODE
LOWbackend-python/convert_safetensors.py119 except Exception as e:CODE
LOWbackend-python/convert_pytorch_to_ggml.py245 except Exception as e:CODE
LOWbackend-python/convert_model.py233except Exception as e:CODE
LOWbackend-python/bench/albatross_api_benchmark.py141 except Exception as error:CODE
LOWbackend-python/bench/albatross_http_client.py30 except Exception as exc:CODE
LOWbackend-python/bench/albatross_real_http_benchmark.py53 except Exception as exc:CODE
LOWbackend-python/tests/manual_albatross_smoke.py111 except Exception:CODE
LOWbackend-python/utils/rwkv.py813 except Exception as e:STRING
LOWbackend-python/utils/log.py40 except Exception as e:CODE
LOWbackend-python/utils/log.py49 except Exception as e:CODE
LOWbackend-python/rwkv_pip/utils.py84 except Exception as e:CODE
MEDIUMbackend-python/rwkv_pip/utils.py85 print(f"Error loading {WORD_NAME}: {e}")CODE
LOWbackend-python/albatross_engine/worker.py209 except Exception as e:CODE
LOWbackend-python/albatross_engine/worker.py256 except Exception as e:CODE
LOWbackend-python/albatross_engine/adapter.py128 except Exception as e:CODE
LOWbackend-python/albatross_engine/adapter.py136 except Exception as e:CODE
LOWbackend-python/albatross_engine/adapter.py253 except Exception as e:CODE
LOWbackend-python/albatross_engine/adapter.py266 except Exception:CODE
LOWbackend-python/albatross_engine/adapter.py375 except Exception as e:CODE
LOWbackend-python/albatross_engine/adapter.py390 except Exception:CODE
LOWbackend-python/albatross_engine/adapter.py443 except Exception as e:CODE
MEDIUMbackend-python/albatross_engine/adapter.py444 print(f"Error shutting down Albatross engine: {e}")CODE
12 more matches not shown…
Over-Commented Block97 hits · 70 pts
SeverityFileLineSnippetContext
LOWfrontend/wailsjs/runtime/runtime.d.ts101// *Windows only*COMMENT
LOWfrontend/src/App.tsx1// reference: https://github.com/oliverschwendener/electron-fluent-uiCOMMENT
LOWfrontend/src/components/RunButton.tsx181 // await startWebGPUTaskChain(modelName, modelConfig)COMMENT
LOWfrontend/src/_locales/resources.ts1import ja from './ja/main.json'COMMENT
LOWfrontend/src/_locales/resources.ts21 // translation: it,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py81# // NOTE: always add types at the end of the enum to keep backward compatibilityCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py101# GGML_TYPE_IQ3_XXS = 18,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py161 GGML_TYPE_Q1_0 = 41COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py181# GGML_FTYPE_MOSTLY_Q4_1 = 3, // except 1d tensorsCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py241# GGML_OP_ADD_ID,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py261# GGML_OP_SILU_BACK,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py281# GGML_OP_GET_ROWS_BACK,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py301# GGML_OP_POOL_2D_BACK,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py321# GGML_OP_ADD_REL_POS,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py461# GGML_UNARY_OP_RELU,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py561 ("type", ctypes.c_int),COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py621COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py661COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py821COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_ggml.py1141 Reset ggml_backend_bufferCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py3221 # The C++ parser only sees identical placeholders (e.g., "<__media__>").COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py141# NOTE: Deprecated and will be removed in the future. (already gone in llama.cpp)COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py161# LLAMA_VOCAB_PRE_TYPE_CHATGLM3 = 16,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py181# LLAMA_VOCAB_PRE_TYPE_HUNYUAN = 36,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py281LLAMA_TOKEN_TYPE_USER_DEFINED = 4COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py321# LLAMA_FTYPE_MOSTLY_Q8_0 = 7, // except 1d tensorsCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py341# LLAMA_FTYPE_MOSTLY_IQ3_M = 27, // except 1d tensorsCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py401# LLAMA_ROPE_SCALING_TYPE_LINEAR = 1,COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py461COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py541# // Input data for llama_encode/llama_decodeCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py701COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py721# // Called with a progress value between 0.0 and 1.0. Pass NULL to disable.COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py821COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py841# float yarn_ext_factor; // YaRN extrapolation mix factor, negative = from modelCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py861# bool offload_kqv; // offload the KQV ops (including the KV cache) to GPUCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py1021COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py1161COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py1181# ggml_tensor * apply_to(ggml_context * ctx, ggml_tensor * cur, int il) const;COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py2141# // n_embd should be the size of a single layer's control, and data should pointCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py2881COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py2941COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py3701# // The API is thread-safe.COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py3761COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py3801 vocab: The vocabulary to use for tokenization.COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py3861# //COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py3941 Returns:COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py3961# //COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py4001 ("logits", ctypes.c_void_p),COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py4021# // note: call once per samplerCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py4581# ///COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py4641# // "hell": 0.2COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py4781 ...COMMENT
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py61# * WARNING: This API is experimental and subject to many BREAKING CHANGES.COMMENT
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py81# struct mtmd_context;COMMENT
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py101# };COMMENT
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py121# }COMMENT
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py141# struct mtmd_input_chunk {COMMENT
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py181# enum clip_flash_attn_type flash_attn_type;COMMENT
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py201# enum llama_flash_attn_type flash_attn_type;COMMENT
LOWpy310/Lib/site-packages/llama_cpp/mtmd_cpp.py621# // 1. "here is an image: <start_of_image>"COMMENT
37 more matches not shown…
AI Structural Patterns58 hits · 51 pts
SeverityFileLineSnippetContext
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1495CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py1884CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py5737CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py85CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py588CODE
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py3266CODE
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1276CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py85CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py1107CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py1244CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py1794CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py2446CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py2600CODE
LOWpy310/Lib/site-packages/llama_cpp/llama.py2749CODE
LOWfinetune/lora/v6/fla/layers/hgrn.py22CODE
LOWfinetune/lora/v6/fla/layers/hgrn2.py22CODE
LOWfinetune/lora/v6/fla/layers/delta_net.py49CODE
LOWfinetune/lora/v6/fla/layers/rwkv6.py21CODE
LOWfinetune/lora/v6/fla/layers/rebased.py21CODE
LOWfinetune/lora/v6/fla/layers/simple_gla.py49CODE
LOWfinetune/lora/v6/fla/layers/gla.py68CODE
LOWfinetune/lora/v6/fla/layers/based.py18CODE
LOWfinetune/lora/v6/fla/layers/gated_abc.py22CODE
LOWfinetune/lora/v6/fla/layers/linear_attn.py15CODE
LOWfinetune/lora/v6/fla/layers/multiscale_retention.py62CODE
LOWfinetune/lora/v6/fla/layers/abc.py22CODE
LOWfinetune/lora/v6/fla/models/abc/modeling_abc.py183CODE
LOWfinetune/lora/v6/fla/models/abc/modeling_abc.py341CODE
LOWfinetune/lora/v6/fla/models/abc/configuration_abc.py13CODE
LOW…une/lora/v6/fla/models/delta_net/modeling_delta_net.py183CODE
LOW…une/lora/v6/fla/models/delta_net/modeling_delta_net.py352CODE
LOW…ora/v6/fla/models/delta_net/configuration_delta_net.py13CODE
LOWfinetune/lora/v6/fla/models/hgrn/modeling_hgrn.py180CODE
LOWfinetune/lora/v6/fla/models/hgrn/modeling_hgrn.py354CODE
LOWfinetune/lora/v6/fla/models/hgrn/configuration_hgrn.py13CODE
LOW…lora/v6/fla/models/transformer/modeling_transformer.py312CODE
LOW…lora/v6/fla/models/transformer/modeling_transformer.py469CODE
LOW…v6/fla/models/transformer/configuration_transformer.py13CODE
LOW…netune/lora/v6/fla/models/mamba/configuration_mamba.py99CODE
LOWfinetune/lora/v6/fla/models/gla/modeling_gla.py183CODE
LOWfinetune/lora/v6/fla/models/gla/modeling_gla.py350CODE
LOWfinetune/lora/v6/fla/models/gla/configuration_gla.py13CODE
LOW…lora/v6/fla/models/linear_attn/modeling_linear_attn.py185CODE
LOW…lora/v6/fla/models/linear_attn/modeling_linear_attn.py368CODE
LOW…v6/fla/models/linear_attn/configuration_linear_attn.py13CODE
LOWfinetune/lora/v6/fla/models/retnet/modeling_retnet.py183CODE
LOWfinetune/lora/v6/fla/models/retnet/modeling_retnet.py356CODE
LOW…tune/lora/v6/fla/models/retnet/configuration_retnet.py15CODE
LOWfinetune/lora/v6/fla/models/hgrn2/modeling_hgrn2.py180CODE
LOWfinetune/lora/v6/fla/models/hgrn2/modeling_hgrn2.py354CODE
LOW…netune/lora/v6/fla/models/hgrn2/configuration_hgrn2.py13CODE
LOWfinetune/lora/v6/fla/models/rwkv6/modeling_rwkv6.py223CODE
LOWfinetune/lora/v6/fla/models/rwkv6/modeling_rwkv6.py390CODE
LOW…netune/lora/v6/fla/models/rwkv6/configuration_rwkv6.py13CODE
LOWfinetune/lora/v6/fla/modules/fused_cross_entropy.py324CODE
LOWbackend-python/rwkv_pip/utils.py13CODE
LOWbackend-python/albatross_engine/interface.py30CODE
LOWbackend-python/albatross_engine/core.py227CODE
Cross-File Repetition10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHfinetune/json2binidx_tool/tools/indexed_dataset.py0retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [STRING
HIGHfinetune/lora/v6/src/binidx.py0retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [STRING
HIGHfinetune/lora/v5/src/binidx.py0retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [STRING
HIGHfinetune/lora/v4/src/binidx.py0retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [STRING
HIGHfinetune/lora/v6/src/model.py0############################################################################ # # init model weight (slow for large modelSTRING
HIGHfinetune/lora/v5/src/model.py0############################################################################ # # init model weight (slow for large modelSTRING
HIGHfinetune/lora/v4/src/model.py0############################################################################ # # init model weight (slow for large modelSTRING
HIGHfinetune/lora/v6/src/binidx.py0if distributed is initialized print only on rank 0.STRING
HIGHfinetune/lora/v5/src/binidx.py0if distributed is initialized print only on rank 0.STRING
HIGHfinetune/lora/v4/src/binidx.py0if distributed is initialized print only on rank 0.STRING
Modern Structural Boilerplate28 hits · 28 pts
SeverityFileLineSnippetContext
LOWpy310/Lib/site-packages/llama_cpp/llama_speculative.py43 def _update_cache(self, input_ids: npt.NDArray[np.intc]) -> None:CODE
LOWfinetune/lora/v6/fla/__init__.py16__all__ = [CODE
LOWfinetune/lora/v6/fla/layers/__init__.py14__all__ = [CODE
LOWfinetune/lora/v6/fla/models/__init__.py18__all__ = [CODE
LOWfinetune/lora/v6/fla/models/abc/__init__.py13__all__ = ['ABCConfig', 'ABCForCausalLM', 'ABCModel']CODE
LOWfinetune/lora/v6/fla/models/delta_net/__init__.py14__all__ = ['DeltaNetConfig', 'DeltaNetForCausalLM', 'DeltaNetModel']CODE
LOWfinetune/lora/v6/fla/models/hgrn/__init__.py13__all__ = ['HGRNConfig', 'HGRNForCausalLM', 'HGRNModel']CODE
LOWfinetune/lora/v6/fla/models/transformer/__init__.py14__all__ = ['TransformerConfig', 'TransformerForCausalLM', 'TransformerModel']CODE
LOWfinetune/lora/v6/fla/models/mamba/__init__.py14__all__ = ['MambaConfig', 'MambaForCausalLM', 'MambaModel', 'MambaBlock']CODE
LOWfinetune/lora/v6/fla/models/gla/__init__.py13__all__ = ['GLAConfig', 'GLAForCausalLM', 'GLAModel']CODE
LOWfinetune/lora/v6/fla/models/linear_attn/__init__.py14__all__ = ['LinearAttentionConfig', 'LinearAttentionForCausalLM', 'LinearAttentionModel']CODE
LOWfinetune/lora/v6/fla/models/retnet/__init__.py13__all__ = ['RetNetConfig', 'RetNetForCausalLM', 'RetNetModel']CODE
LOWfinetune/lora/v6/fla/models/hgrn2/__init__.py13__all__ = ['HGRN2Config', 'HGRN2ForCausalLM', 'HGRN2Model']CODE
LOWfinetune/lora/v6/fla/models/rwkv6/__init__.py13__all__ = ['RWKV6Config', 'RWKV6ForCausalLM', 'RWKV6Model']CODE
LOWfinetune/lora/v6/fla/ops/__init__.py8__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/abc/__init__.py7__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/delta_rule/__init__.py7__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/retention/__init__.py8__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/hgrn/__init__.py6__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/rwkv4/__init__.py5__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/simple_gla/__init__.py5__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/gla/__init__.py7__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/linear_attn/__init__.py7__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/rebased/__init__.py5__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/based/__init__.py6__all__ = [CODE
LOWfinetune/lora/v6/fla/ops/rwkv6/__init__.py6__all__ = [CODE
LOWfinetune/lora/v6/fla/modules/__init__.py14__all__ = [CODE
LOWbackend-python/scripts/build_albatross_kernel.py208def update_manifest(manifest_path: Path, entry: dict) -> None:CODE
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHpy310/Lib/site-packages/llama_cpp/llama.py156Load a llama.cpp model from `model_path`. Examples: Basic usage >>> import llama_cpp STRING
HIGHpy310/Lib/site-packages/llama_cpp/llama.py809Tokenize a string. Args: text: The utf-8 encoded string to tokenize. add_bos: Whether tSTRING
HIGHpy310/Lib/site-packages/llama_cpp/llama.py1284Create a generator of tokens from a prompt. Examples: >>> llama = Llama("models/ggml-7b.bin") STRING
HIGHpy310/Lib/site-packages/llama_cpp/llama.py2491Generate text from a prompt. Args: prompt: The prompt to generate text from. suffix: A suffix to apSTRING
HIGHpy310/Lib/site-packages/llama_cpp/llama.py2645Generate text from a prompt. Args: prompt: The prompt to generate text from. suffix: A STRING
Structural Annotation Overuse11 hits · 22 pts
SeverityFileLineSnippetContext
LOWpy310/Lib/site-packages/llama_cpp/llama_types.py519# NOTE: The following type names are not part of the OpenAI OpenAPI specificationCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_cpp.py3868# /// NOTE: This function does not use a jinja parser. It only support a pre-defined list of template. See more: https:/COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1112 # Step 1: Transfer new logits from the model output to our working buffer.COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1115 # Step 2: Critical Reset.COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1120 # Step 3: Metadata update.COMMENT
LOWbackend-python/tests/function_call_stream.py110 # Step 3: call the functionCOMMENT
LOWbackend-python/tests/function_call_stream.py115 # Step 4: send the info for each function call and function response to the modelCOMMENT
LOWbackend-python/tests/function_call.py29 # Step 1: send the conversation and available functions to the modelCOMMENT
LOWbackend-python/tests/function_call.py64 # Step 2: check if the model wanted to call a functionCOMMENT
LOWbackend-python/tests/function_call.py66 # Step 3: call the functionCOMMENT
LOWbackend-python/tests/function_call.py72 # Step 4: send the info for each function call and function response to the modelCOMMENT
Verbosity Indicators9 hits · 20 pts
SeverityFileLineSnippetContext
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1112 # Step 1: Transfer new logits from the model output to our working buffer.COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1115 # Step 2: Critical Reset.COMMENT
LOWpy310/Lib/site-packages/llama_cpp/_internals.py1120 # Step 3: Metadata update.COMMENT
LOWbackend-python/tests/function_call_stream.py110 # Step 3: call the functionCOMMENT
LOWbackend-python/tests/function_call_stream.py115 # Step 4: send the info for each function call and function response to the modelCOMMENT
LOWbackend-python/tests/function_call.py29 # Step 1: send the conversation and available functions to the modelCOMMENT
LOWbackend-python/tests/function_call.py64 # Step 2: check if the model wanted to call a functionCOMMENT
LOWbackend-python/tests/function_call.py66 # Step 3: call the functionCOMMENT
LOWbackend-python/tests/function_call.py72 # Step 4: send the info for each function call and function response to the modelCOMMENT
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMpy310/Lib/site-packages/llama_cpp/_internals.py1076 # Define the structure of llama_token_data to match the C++ memory layout.COMMENT
MEDIUMpy310/Lib/site-packages/llama_cpp/llama.py693 # Create a thread-safe interrupt eventCOMMENT
MEDIUMfinetune/json2binidx_tool/tools/preprocess_data.py2# This file is based on code by the authors denoted below and has been modified from its original version.COMMENT
MEDIUMfinetune/json2binidx_tool/tools/tokenizer.py2# This file is based on code by the authors denoted below and has been modified from its original version.COMMENT
MEDIUMfinetune/json2binidx_tool/tools/indexed_dataset.py2# This file is based on code by the authors denoted below and has been modified from its original version.COMMENT
MEDIUMassets/sound-font/sound_fetch.py86 # Create the file nameCOMMENT
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWpy310/Lib/site-packages/llama_cpp/llama_cache.py241 # Check if the empty prefix (root) is cachedCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_speculative.py54 # Check if it's a perfect incremental append (verify if the previous token matches)COMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py2936 # Check if vision is supportedCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama_chat_format.py2945 # Check if audio is supportedCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/_internals.py448 # Check if the adapter exists and hasn't been freed yetCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/llama.py2095 # Check if stop sequence is in the tokenCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/_utils.py48 # Check if sys.stdout and sys.stderr have fileno methodCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/server/app.py110 # Check if yaml fileCOMMENT
LOWpy310/Lib/site-packages/llama_cpp/server/__main__.py63 # Check if yaml fileCOMMENT
LOWassets/sound-font/sound_fetch.py89 # Check if the file already existsCOMMENT
Slop Phrases6 hits · 8 pts
SeverityFileLineSnippetContext
LOWexportModelsJson.js1// Execute this script on the Hugging Face files list page to export JSON data. Don't forget to click "Load more files".COMMENT
MEDIUMmanifest.json4 "en": "RWKV is an open-source, commercially usable large language model with high flexibility and great potential foCODE
LOWfrontend/src/_locales/zh-hans/main.json368 "Don't forget to correctly fill in your Ollama API Chat Model Name.": "不要忘记正确填写你的Ollama API 聊天模型名",CODE
LOWfrontend/src/_locales/ja/main.json368 "Don't forget to correctly fill in your Ollama API Chat Model Name.": "Ollama APIチャットモデル名を正しく記入するのを忘れないでください。",CODE
LOWfrontend/src/pages/Settings.tsx259 "Don't forget to correctly fill in your Ollama API Chat Model Name."CODE
MEDIUMfinetune/lora/v6/fla/ops/abc/naive.py73 This is just for demonstration purposes, with no numerical stabilities guaranteed.STRING
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpy310/Lib/site-packages/llama_cpp/llama.py900 # 2. Sanity check: If the incoming chunk itself is larger than the entire context window,COMMENT
MEDIUMpy310/Lib/site-packages/llama_cpp/llama.py1949 # Truncate max_tokens if requested tokens would exceed the context windowCOMMENT
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/package-lock.json7327 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE
MEDIUMpy310/Lib/site-packages/llama_cpp/llama_cpp.py2862# // NOTE: this is a helper function to facilitate transition to the new batch API - avoid using itCOMMENT
LOWfinetune/lora/v6/fla/modules/feature_map.py158 # currently we simply use linear layers without any non-linear activationsSTRING
Decorative Section Separators2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMbackend-python/routes/completion.py1177# -----------------------------------STRING
MEDIUMbackend-python/routes/completion.py1179# -----------------------------------STRING
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWassets/soundfont_builder.rb18# Usage:COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfrontend/i18nally.json70 "placeholder",CODE