AI Slop Code RIsk Monitor

lm-sys/FastChat

An open platform for training, serving, and evaluating large language models. Release repo for Vicuna and Chatbot Arena.

14.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for lm-sys/FastChat, a Python project with 39,554 GitHub stars. SynthScan examined 48,283 lines of code across 199 source files, recording 606 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 14.1 (Moderate 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.

14.1
Adjusted Signal
14.1
Raw Pattern Score
100%
Time Factor
2026-05-01
Last Push
39.6K
Stars
Python
Language
48.3K
Lines of Code
199
Files
606
Pattern Hits
2026-10-12
Scan Date
0.09
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 29.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 20.0/100 · LOW

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

Agent Over-Engineering Ratio 26.6/100 · MEDIUM

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

PR Review Velocity Impact 56.1/100 · HIGH

Which changes need focused human review? 606 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 1HIGH 16MEDIUM 50LOW 539

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 606 distinct pattern matches across 18 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.

Unused Imports204 hits · 198 pts
SeverityFileLineSnippetContext
LOWplayground/test_embedding/test_sentence_similarity.py2CODE
LOWtests/test_openai_api.py7CODE
LOWtests/load_test.py3CODE
LOWtests/load_test.py5CODE
LOWtests/load_test.py6CODE
LOWtests/test_cli.py2CODE
LOWfastchat/conversation.py11CODE
LOWfastchat/conversation.py13CODE
LOWfastchat/model/monkey_patch_non_inplace.py6CODE
LOWfastchat/model/model_exllama.py5CODE
LOWfastchat/model/rwkv_model.py5CODE
LOWfastchat/model/rwkv_model.py11CODE
LOWfastchat/model/rwkv_model.py11CODE
LOWfastchat/model/__init__.py1CODE
LOWfastchat/model/__init__.py1CODE
LOWfastchat/model/__init__.py1CODE
LOWfastchat/model/apply_delta.py17CODE
LOWfastchat/model/model_yuan2.py6CODE
LOWfastchat/model/model_cllm.py4CODE
LOWfastchat/model/model_cllm.py5CODE
LOWfastchat/model/model_cllm.py7CODE
LOWfastchat/model/model_cllm.py7CODE
LOWfastchat/model/model_cllm.py7CODE
LOWfastchat/model/model_cllm.py7CODE
LOWfastchat/model/model_cllm.py7CODE
LOWfastchat/model/model_cllm.py8CODE
LOWfastchat/model/model_cllm.py8CODE
LOWfastchat/model/model_cllm.py9CODE
LOWfastchat/model/model_cllm.py9CODE
LOWfastchat/model/model_cllm.py9CODE
LOWfastchat/model/model_cllm.py9CODE
LOWfastchat/model/model_cllm.py9CODE
LOWfastchat/model/model_cllm.py9CODE
LOWfastchat/model/model_cllm.py17CODE
LOWfastchat/model/model_cllm.py18CODE
LOWfastchat/model/model_falcon.py6CODE
LOWfastchat/model/model_adapter.py277CODE
LOWfastchat/model/model_codet5p.py4CODE
LOWfastchat/train/train_lora_t5.py16CODE
LOWfastchat/train/train_lora_t5.py17CODE
LOWfastchat/train/train_lora_t5.py20CODE
LOWfastchat/train/train_lora_t5.py21CODE
LOWfastchat/train/train_lora_t5.py24CODE
LOWfastchat/train/train_lora_t5.py24CODE
LOWfastchat/train/train_lora_t5.py27CODE
LOWfastchat/train/train_lora_t5.py30CODE
LOWfastchat/train/train_lora_t5.py31CODE
LOWfastchat/train/train_lora_t5.py35CODE
LOWfastchat/train/train_lora_t5.py36CODE
LOWfastchat/train/train_baichuan.py23CODE
LOWfastchat/train/train_baichuan.py32CODE
LOWfastchat/train/llama_flash_attn_monkey_patch.py5CODE
LOWfastchat/train/train.py21CODE
LOWfastchat/train/train.py23CODE
LOWfastchat/train/train_yuan2.py21CODE
LOWfastchat/train/train_yuan2.py23CODE
LOWfastchat/train/train_yuan2.py30CODE
LOWfastchat/train/train_with_template.py23CODE
LOWfastchat/serve/gradio_web_server.py6CODE
LOWfastchat/serve/gradio_web_server.py8CODE
144 more matches not shown…
Hyper-Verbose Identifiers200 hits · 164 pts
SeverityFileLineSnippetContext
LOWplayground/benchmark/benchmark_api_provider.py25def sample_image_and_question(random_questions_dict, index):CODE
LOWplayground/test_embedding/test_semantic_search.py40def create_embedding_data_frame(data_path, model, max_tokens=500):CODE
LOWplayground/test_embedding/test_classification.py38def create_embedding_data_frame(data_path, model, max_tokens=500):CODE
LOWtests/test_image_utils.py56 def test_dont_resize_if_less_than_max(self):CODE
LOWtests/test_image_utils.py74 def test_resize_large_image_and_send_to_moderation_filter(self):CODE
LOWtests/test_image_utils.py84 def test_dont_resize_if_max_image_size_is_none(self):CODE
LOWtests/test_openai_api.py72def test_chat_completion_stream(model):CODE
LOWtests/test_openai_vision_api.py97def test_chat_completion_stream(model):CODE
LOWdocs/commands/webserver.md84def check_deprecated_parameters(CODE
LOWfastchat/conversation.py383 def to_openai_vision_api_messages(self, is_mistral=False):CODE
LOWfastchat/conversation.py492 def to_anthropic_vision_api_messages(self):CODE
LOWfastchat/conversation.py641 def extract_text_and_image_hashes_from_messages(self):CODE
LOWfastchat/utils.py458def image_moderation_provider(image, api_type):CODE
LOWfastchat/model/monkey_patch_non_inplace.py117def replace_llama_attn_with_non_inplace_operations():CODE
LOWfastchat/model/llama_condense_monkey_patch.py68def replace_llama_with_condense(ratio):CODE
LOW⚡fastchat/model/model_adapter.py2079 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2089 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2099 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2109 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2119 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2129 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2139 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2199 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2209 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2219 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2297 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2307 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2317 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2327 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2337 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2347 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2399 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2409 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOW⚡fastchat/model/model_adapter.py2419 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py143 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py175def raise_warning_for_incompatible_cpu_offloading_configuration(CODE
LOWfastchat/model/model_adapter.py398def get_conversation_template(model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py404def get_generate_stream_function(model: torch.nn.Module, model_path: str):CODE
LOWfastchat/model/model_adapter.py620def remove_parent_directory_name(model_path):CODE
LOWfastchat/model/model_adapter.py688 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py723 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py728 def raise_warning_for_old_weights(self, model):CODE
LOWfastchat/model/model_adapter.py748 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py796 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py829 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py841 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py869 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py894 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py918 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py929 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py950 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py964 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py974 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py997 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py1024 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py1048 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py1068 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py1080 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py1090 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
LOWfastchat/model/model_adapter.py1107 def get_default_conv_template(self, model_path: str) -> Conversation:CODE
140 more matches not shown…
Deep Nesting80 hits · 78 pts
SeverityFileLineSnippetContext
LOWtests/load_test.py12CODE
LOWtests/load_test.py66CODE
LOWfastchat/conversation.py76CODE
LOWfastchat/conversation.py330CODE
LOWfastchat/conversation.py362CODE
LOWfastchat/conversation.py383CODE
LOWfastchat/conversation.py440CODE
LOWfastchat/conversation.py464CODE
LOWfastchat/conversation.py492CODE
LOWfastchat/conversation.py532CODE
LOWfastchat/conversation.py611CODE
LOWfastchat/conversation.py641CODE
LOWfastchat/utils.py152CODE
LOWfastchat/utils.py379CODE
LOWfastchat/model/apply_delta.py25CODE
LOWfastchat/model/apply_delta.py70CODE
LOWfastchat/model/model_yuan2.py13CODE
LOWfastchat/model/model_cllm.py109CODE
LOWfastchat/model/model_falcon.py13CODE
LOWfastchat/model/model_adapter.py201CODE
LOWfastchat/model/model_adapter.py404CODE
LOWfastchat/model/model_adapter.py438CODE
LOWfastchat/model/model_chatglm.py40CODE
LOWfastchat/train/train_yuan2.py100CODE
LOWfastchat/train/train_with_template.py112CODE
LOWfastchat/train/train_with_template.py144CODE
LOWfastchat/train/train_lora.py79CODE
LOWfastchat/train/train_lora.py104CODE
LOWfastchat/serve/gradio_web_server.py444CODE
LOWfastchat/serve/model_worker.py185CODE
LOWfastchat/serve/controller.py156CODE
LOWfastchat/serve/launch_all_serve.py209CODE
LOWfastchat/serve/gradio_block_arena_vision_named.py305CODE
LOWfastchat/serve/cli.py110CODE
LOWfastchat/serve/gradio_web_server_multi.py110CODE
LOWfastchat/serve/gradio_web_server_multi.py169CODE
LOWfastchat/serve/gradio_block_arena_vision_anony.py378CODE
LOWfastchat/serve/inference.py62CODE
LOWfastchat/serve/inference.py337CODE
LOWfastchat/serve/gradio_block_arena_vision.py194CODE
LOWfastchat/serve/gradio_block_arena_named.py224CODE
LOWfastchat/serve/gradio_block_arena_named.py314CODE
LOWfastchat/serve/call_monitor.py25CODE
LOWfastchat/serve/api_provider.py18CODE
LOWfastchat/serve/api_provider.py364CODE
LOWfastchat/serve/api_provider.py428CODE
LOWfastchat/serve/api_provider.py511CODE
LOWfastchat/serve/api_provider.py846CODE
LOWfastchat/serve/api_provider.py1272CODE
LOWfastchat/serve/openai_api_server.py228CODE
LOWfastchat/serve/openai_api_server.py266CODE
LOWfastchat/serve/openai_api_server.py621CODE
LOWfastchat/serve/gradio_block_arena_anony.py358CODE
LOWfastchat/serve/gradio_block_arena_anony.py441CODE
LOWfastchat/serve/dashinfer_worker.py96CODE
LOWfastchat/serve/monitor/monitor.py147CODE
LOWfastchat/serve/monitor/monitor.py917CODE
LOWfastchat/serve/monitor/elo_analysis.py215CODE
LOWfastchat/serve/monitor/elo_analysis.py239CODE
LOWfastchat/serve/monitor/clean_battle_data.py116CODE
20 more matches not shown…
Excessive Try-Catch Wrapping43 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUMplayground/test_embedding/test_sentence_similarity.py28 print(f"Error: {response.status_code} - {response.text}")CODE
MEDIUMplayground/test_embedding/test_semantic_search.py36 print(f"Error: {response.status_code} - {response.text}")CODE
MEDIUMplayground/test_embedding/test_classification.py34 print(f"Error: {response.status_code} - {response.text}")CODE
LOWtests/test_openai_api.py82 except Exception as e:CODE
LOWtests/load_test.py59 except Exception as e:CODE
MEDIUMtests/load_test.py12def litellm_completion(args, tokenizer, image_url=None):CODE
LOWtests/test_openai_vision_api.py117 except Exception as e:CODE
MEDIUMfastchat/model/model_exllama.py20 print(f"Error: Failed to load Exllamav2. {e}")CODE
LOWfastchat/model/apply_delta.py64 except Exception as e:CODE
MEDIUMfastchat/model/apply_delta.py65 print(f"An error occurred during split_files: {e}")CODE
LOWfastchat/serve/gradio_web_server.py439 except Exception as e:STRING
LOWfastchat/serve/gradio_web_server.py605 except Exception as e:STRING
LOWfastchat/serve/remote_logger.py58 except Exception:CODE
MEDIUMfastchat/serve/call_monitor.py40 print(f"Error decoding json: {json_file} {line}")CODE
MEDIUMfastchat/serve/api_provider.py364def column_api_stream_iter(CODE
MEDIUMfastchat/serve/api_provider.py1272def metagen_api_stream_iter(CODE
LOWfastchat/serve/api_provider.py402 except Exception as e:CODE
LOWfastchat/serve/api_provider.py420 except Exception as e:CODE
LOWfastchat/serve/api_provider.py817 except Exception as e:CODE
LOWfastchat/serve/api_provider.py838 except Exception as e:CODE
LOWfastchat/serve/api_provider.py1016 except Exception as e:CODE
LOWfastchat/serve/api_provider.py1342 except Exception as e:CODE
LOWfastchat/serve/openai_api_server.py462 except Exception as e:CODE
LOWfastchat/serve/openai_api_server.py596 except Exception as e:CODE
LOWfastchat/serve/openai_api_server.py855 except Exception as e:CODE
LOWfastchat/serve/huggingface_api_worker.py189 except Exception as e:CODE
LOWfastchat/serve/dashinfer_worker.py201 except Exception as e:CODE
LOWfastchat/serve/monitor/monitor.py907 except Exception as e:CODE
MEDIUMfastchat/serve/monitor/monitor.py908 print(f"Error: {e}")CODE
MEDIUMfastchat/serve/monitor/monitor.py883def get_model_name(model_key):CODE
LOWfastchat/serve/monitor/classify/label.py85 except Exception as e:CODE
LOWfastchat/serve/monitor/classify/label.py174 except Exception as e:CODE
MEDIUMfastchat/serve/monitor/vote_time_stats/analyze_data.py42 print("Error: Key to GC does not exist.")CODE
LOWfastchat/serve/monitor/vote_time_stats/analyze_data.py91 except Exception:CODE
LOWfastchat/serve/monitor/vote_time_stats/analyze_data.py102 except Exception as e:CODE
MEDIUMfastchat/modules/xfastertransformer.py29 print(f"Error: Failed to load xFasterTransformer. {e}")CODE
MEDIUMfastchat/modules/awq.py31 print(f"Error: Failed to import tinychat. {e}")CODE
MEDIUMfastchat/modules/awq.py84 print("Error: AWQ checkpoint not found")CODE
MEDIUMfastchat/modules/gptq.py39 print(f"Error: Failed to load GPTQ-for-LLaMa. {e}")CODE
MEDIUMfastchat/modules/gptq.py74 print("Error: gptq checkpoint not found")CODE
MEDIUMfastchat/modules/exllama.py29 print(f"Error: Failed to load Exllamav2. {e}")CODE
LOWfastchat/data/optional_replace.py49 except Exception as e:CODE
LOWfastchat/llm_judge/common.py516 except Exception as e:CODE
Slop Phrases26 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMfastchat/data/hardcoded_questions.py46 f"You can call me {name}, and I was trained by {org} researchers as a language model.",CODE
MEDIUMfastchat/data/hardcoded_questions.py47 f"As a language model, I go by the name {name} and was trained by researchers from {org}.",CODE
MEDIUMdata/dummy_conversation.json53 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json74 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json179 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json200 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json305 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json326 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json431 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json452 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json557 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json578 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json683 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json704 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json809 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json830 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json935 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json956 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json1061 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json1082 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json1187 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json1208 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json1313 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json1334 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
MEDIUMdata/dummy_conversation.json1439 "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as aCODE
MEDIUMdata/dummy_conversation.json1460 "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems OCODE
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHfastchat/train/train_baichuan.py0make dataset and collator for supervised fine-tuning.STRING
HIGHfastchat/train/train.py0make dataset and collator for supervised fine-tuning.STRING
HIGHfastchat/train/train_yuan2.py0make dataset and collator for supervised fine-tuning.STRING
HIGHfastchat/train/train_with_template.py0make dataset and collator for supervised fine-tuning.STRING
HIGHfastchat/train/train_flant5.py0make dataset and collator for supervised fine-tuning.STRING
HIGHfastchat/serve/gradio_block_arena_vision_named.py0function (a, b, c, d) { const captureelement = document.queryselector('#share-region-anony'); html2canvas(captureelementSTRING
HIGHfastchat/serve/gradio_block_arena_named.py0function (a, b, c, d) { const captureelement = document.queryselector('#share-region-anony'); html2canvas(captureelementSTRING
HIGHfastchat/serve/gradio_block_arena_vision_anony.py0function (a, b, c, d) { const captureelement = document.queryselector('#share-region-anony'); html2canvas(captureelementSTRING
HIGHfastchat/serve/gradio_block_arena_anony.py0function (a, b, c, d) { const captureelement = document.queryselector('#share-region-anony'); html2canvas(captureelementSTRING
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHfastchat/serve/gradio_block_arena_named.py297except StopIteration:CODE
HIGHfastchat/serve/gradio_block_arena_anony.py434except StopIteration:CODE
HIGHfastchat/serve/monitor/leaderboard_csv_to_html.py47except TypeError:CODE
HIGHfastchat/serve/monitor/vote_time_stats/analyze_data.py91except Exception:CODE
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_image_utils.py35 # Create an image from the pixel dataCOMMENT
MEDIUMfastchat/model/rwkv_model.py43 # This function is used by fastchat.llm_judge.COMMENT
MEDIUMfastchat/serve/cli.py115 # Create a Live context for updating the console outputCOMMENT
MEDIUMfastchat/serve/monitor/vote_time_stats/plot.py24# Define the new cutoff and number of binsCOMMENT
MEDIUMfastchat/serve/monitor/vote_time_stats/plot.py41# Create the plot with custom binsCOMMENT
Over-Commented Block13 hits · 12 pts
SeverityFileLineSnippetContext
LOWfastchat/model/model_adapter.py641 from peft import PeftConfig, PeftModelCOMMENT
LOWfastchat/train/train_lora_t5.py1# Adapted from tatsu-lab@stanford_alpaca. Below is the original copyright:COMMENT
LOWfastchat/train/train_baichuan.py1# This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright:COMMENT
LOWfastchat/train/train.py1# This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright:COMMENT
LOWfastchat/train/train_yuan2.py1# This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright:COMMENT
LOWfastchat/train/train_with_template.py1# This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright:COMMENT
LOWfastchat/train/train_flant5.py1# Adapted from tatsu-lab@stanford_alpaca. Below is the original copyright:COMMENT
LOWfastchat/train/train_lora.py1# Usage: deepspeed train_lora.py --deepspeed <$PATH_TO_DEEPSPEED_CONFIG>COMMENT
LOWfastchat/serve/gradio_web_server.py741 width: 100%;COMMENT
LOWfastchat/serve/gradio_web_server.py761# }COMMENT
LOWfastchat/serve/gradio_web_server.py781# #ack_markdown .prose {COMMENT
LOWfastchat/serve/gradio_web_server.py801# margin-top: 8px; /* Adjust the value as needed */COMMENT
LOWfastchat/serve/cli.py121 text = outputs["text"]COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALfastchat/serve/api_provider.py528 thread_message = client.beta.threads.messages.with_raw_response.create(CODE
AI Structural Patterns8 hits · 8 pts
SeverityFileLineSnippetContext
LOWfastchat/model/rwkv_model.py38CODE
LOWfastchat/model/model_adapter.py201CODE
LOWfastchat/serve/model_worker.py39CODE
LOWfastchat/serve/base_model_worker.py165CODE
LOWfastchat/serve/inference.py337CODE
LOWfastchat/serve/huggingface_api_worker.py136CODE
LOWfastchat/serve/monitor/basic_stats.py86CODE
LOWfastchat/serve/monitor/elo_analysis.py321CODE
Cross-Language Confusion2 hits · 8 pts
SeverityFileLineSnippetContext
HIGHfastchat/model/model_adapter.py1760 cd flash-attention && pip install .STRING
HIGHfastchat/serve/gradio_web_server_multi.py185function gtag(){{dataLayer.push(arguments);}}CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWfastchat/serve/huggingface_api.py54 # Print resultsCOMMENT
LOWfastchat/serve/inference.py448 # Set inp to previous messageCOMMENT
LOWfastchat/serve/inference.py483 # Check if file exists and add .json if neededCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMfastchat/conversation.py63 # The number of few shot examplesCOMMENT
Synthetic Comment Markers1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHfastchat/data/extract_gpt4_only.py2Extract the conversations generated by GPT-4 only.STRING
Modern Structural Boilerplate3 hits · 2 pts
SeverityFileLineSnippetContext
LOWfastchat/serve/gradio_web_server.py133 def update_ans_models(self, ans: str) -> None:STRING
LOWfastchat/serve/gradio_web_server.py136 def update_router_outputs(self, outputs: Dict[str, float]) -> None:STRING
LOWfastchat/serve/call_monitor.py25 async def update_stats(self, num_file=1) -> None:CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWfastchat/serve/monitor/clean_battle_data.py140def process_data(CODE
LOWfastchat/serve/monitor/clean_chat_data.py74def process_data(row, action_type):CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_openai_langchain.py1# Usage:COMMENT