An open platform for training, serving, and evaluating large language models. Release repo for Vicuna and Chatbot Arena.
This report presents the forensic synthetic code analysis of lm-sys/FastChat, a Python project with 39,491 GitHub stars. SynthScan v2.0 examined 48,283 lines of code across 199 source files, recording 602 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 13.7 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).
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.
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.
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.
The scanner identified 602 distinct pattern matches across 17 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | playground/test_embedding/test_sentence_similarity.py | 2 | CODE | |
| LOW | tests/test_openai_api.py | 7 | CODE | |
| LOW | tests/load_test.py | 3 | CODE | |
| LOW | tests/load_test.py | 5 | CODE | |
| LOW | tests/load_test.py | 6 | CODE | |
| LOW | tests/test_cli.py | 2 | CODE | |
| LOW | fastchat/conversation.py | 11 | CODE | |
| LOW | fastchat/conversation.py | 13 | CODE | |
| LOW | fastchat/model/monkey_patch_non_inplace.py | 6 | CODE | |
| LOW | fastchat/model/model_exllama.py | 5 | CODE | |
| LOW | fastchat/model/rwkv_model.py | 5 | CODE | |
| LOW | fastchat/model/rwkv_model.py | 11 | CODE | |
| LOW | fastchat/model/rwkv_model.py | 11 | CODE | |
| LOW | fastchat/model/__init__.py | 1 | CODE | |
| LOW | fastchat/model/__init__.py | 1 | CODE | |
| LOW | fastchat/model/__init__.py | 1 | CODE | |
| LOW | fastchat/model/apply_delta.py | 17 | CODE | |
| LOW | fastchat/model/model_yuan2.py | 6 | CODE | |
| LOW | fastchat/model/model_cllm.py | 4 | CODE | |
| LOW | fastchat/model/model_cllm.py | 5 | CODE | |
| LOW | fastchat/model/model_cllm.py | 7 | CODE | |
| LOW | fastchat/model/model_cllm.py | 7 | CODE | |
| LOW | fastchat/model/model_cllm.py | 7 | CODE | |
| LOW | fastchat/model/model_cllm.py | 7 | CODE | |
| LOW | fastchat/model/model_cllm.py | 7 | CODE | |
| LOW | fastchat/model/model_cllm.py | 8 | CODE | |
| LOW | fastchat/model/model_cllm.py | 8 | CODE | |
| LOW | fastchat/model/model_cllm.py | 9 | CODE | |
| LOW | fastchat/model/model_cllm.py | 9 | CODE | |
| LOW | fastchat/model/model_cllm.py | 9 | CODE | |
| LOW | fastchat/model/model_cllm.py | 9 | CODE | |
| LOW | fastchat/model/model_cllm.py | 9 | CODE | |
| LOW | fastchat/model/model_cllm.py | 9 | CODE | |
| LOW | fastchat/model/model_cllm.py | 17 | CODE | |
| LOW | fastchat/model/model_cllm.py | 18 | CODE | |
| LOW | fastchat/model/model_falcon.py | 6 | CODE | |
| LOW | fastchat/model/model_adapter.py | 277 | CODE | |
| LOW | fastchat/model/model_codet5p.py | 4 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 16 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 17 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 20 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 21 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 24 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 24 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 27 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 30 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 31 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 35 | CODE | |
| LOW | fastchat/train/train_lora_t5.py | 36 | CODE | |
| LOW | fastchat/train/train_baichuan.py | 23 | CODE | |
| LOW | fastchat/train/train_baichuan.py | 32 | CODE | |
| LOW | fastchat/train/llama_flash_attn_monkey_patch.py | 5 | CODE | |
| LOW | fastchat/train/train.py | 21 | CODE | |
| LOW | fastchat/train/train.py | 23 | CODE | |
| LOW | fastchat/train/train_yuan2.py | 21 | CODE | |
| LOW | fastchat/train/train_yuan2.py | 23 | CODE | |
| LOW | fastchat/train/train_yuan2.py | 30 | CODE | |
| LOW | fastchat/train/train_with_template.py | 23 | CODE | |
| LOW | fastchat/serve/gradio_web_server.py | 6 | CODE | |
| LOW | fastchat/serve/gradio_web_server.py | 8 | CODE | |
| 144 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | playground/benchmark/benchmark_api_provider.py | 25 | def sample_image_and_question(random_questions_dict, index): | CODE |
| LOW | playground/test_embedding/test_semantic_search.py | 40 | def create_embedding_data_frame(data_path, model, max_tokens=500): | CODE |
| LOW | playground/test_embedding/test_classification.py | 38 | def create_embedding_data_frame(data_path, model, max_tokens=500): | CODE |
| LOW | tests/test_image_utils.py | 56 | def test_dont_resize_if_less_than_max(self): | CODE |
| LOW | tests/test_image_utils.py | 74 | def test_resize_large_image_and_send_to_moderation_filter(self): | CODE |
| LOW | tests/test_image_utils.py | 84 | def test_dont_resize_if_max_image_size_is_none(self): | CODE |
| LOW | tests/test_openai_api.py | 72 | def test_chat_completion_stream(model): | CODE |
| LOW | tests/test_openai_vision_api.py | 97 | def test_chat_completion_stream(model): | CODE |
| LOW | docs/commands/webserver.md | 84 | def check_deprecated_parameters( | CODE |
| LOW | fastchat/conversation.py | 383 | def to_openai_vision_api_messages(self, is_mistral=False): | CODE |
| LOW | fastchat/conversation.py | 492 | def to_anthropic_vision_api_messages(self): | CODE |
| LOW | fastchat/conversation.py | 641 | def extract_text_and_image_hashes_from_messages(self): | CODE |
| LOW | fastchat/utils.py | 458 | def image_moderation_provider(image, api_type): | CODE |
| LOW | fastchat/model/monkey_patch_non_inplace.py | 117 | def replace_llama_attn_with_non_inplace_operations(): | CODE |
| LOW | fastchat/model/llama_condense_monkey_patch.py | 68 | def replace_llama_with_condense(ratio): | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2079 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2089 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2099 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2109 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2119 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2129 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2139 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2199 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2209 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2219 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2297 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2307 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2317 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2327 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2337 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2347 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2399 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2409 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW⚡ | fastchat/model/model_adapter.py | 2419 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 143 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 175 | def raise_warning_for_incompatible_cpu_offloading_configuration( | CODE |
| LOW | fastchat/model/model_adapter.py | 398 | def get_conversation_template(model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 404 | def get_generate_stream_function(model: torch.nn.Module, model_path: str): | CODE |
| LOW | fastchat/model/model_adapter.py | 620 | def remove_parent_directory_name(model_path): | CODE |
| LOW | fastchat/model/model_adapter.py | 688 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 723 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 728 | def raise_warning_for_old_weights(self, model): | CODE |
| LOW | fastchat/model/model_adapter.py | 748 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 796 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 829 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 841 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 869 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 894 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 918 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 929 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 950 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 964 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 974 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 997 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 1024 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 1048 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 1068 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 1080 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 1090 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| LOW | fastchat/model/model_adapter.py | 1107 | def get_default_conv_template(self, model_path: str) -> Conversation: | CODE |
| 140 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/load_test.py | 12 | CODE | |
| LOW | tests/load_test.py | 66 | CODE | |
| LOW | fastchat/conversation.py | 76 | CODE | |
| LOW | fastchat/conversation.py | 330 | CODE | |
| LOW | fastchat/conversation.py | 362 | CODE | |
| LOW | fastchat/conversation.py | 383 | CODE | |
| LOW | fastchat/conversation.py | 440 | CODE | |
| LOW | fastchat/conversation.py | 464 | CODE | |
| LOW | fastchat/conversation.py | 492 | CODE | |
| LOW | fastchat/conversation.py | 532 | CODE | |
| LOW | fastchat/conversation.py | 611 | CODE | |
| LOW | fastchat/conversation.py | 641 | CODE | |
| LOW | fastchat/utils.py | 152 | CODE | |
| LOW | fastchat/utils.py | 379 | CODE | |
| LOW | fastchat/model/apply_delta.py | 25 | CODE | |
| LOW | fastchat/model/apply_delta.py | 70 | CODE | |
| LOW | fastchat/model/model_yuan2.py | 13 | CODE | |
| LOW | fastchat/model/model_cllm.py | 109 | CODE | |
| LOW | fastchat/model/model_falcon.py | 13 | CODE | |
| LOW | fastchat/model/model_adapter.py | 201 | CODE | |
| LOW | fastchat/model/model_adapter.py | 404 | CODE | |
| LOW | fastchat/model/model_adapter.py | 438 | CODE | |
| LOW | fastchat/model/model_chatglm.py | 40 | CODE | |
| LOW | fastchat/train/train_yuan2.py | 100 | CODE | |
| LOW | fastchat/train/train_with_template.py | 112 | CODE | |
| LOW | fastchat/train/train_with_template.py | 144 | CODE | |
| LOW | fastchat/train/train_lora.py | 79 | CODE | |
| LOW | fastchat/train/train_lora.py | 104 | CODE | |
| LOW | fastchat/serve/gradio_web_server.py | 444 | CODE | |
| LOW | fastchat/serve/model_worker.py | 185 | CODE | |
| LOW | fastchat/serve/controller.py | 156 | CODE | |
| LOW | fastchat/serve/launch_all_serve.py | 209 | CODE | |
| LOW | fastchat/serve/gradio_block_arena_vision_named.py | 305 | CODE | |
| LOW | fastchat/serve/cli.py | 110 | CODE | |
| LOW | fastchat/serve/gradio_web_server_multi.py | 110 | CODE | |
| LOW | fastchat/serve/gradio_web_server_multi.py | 169 | CODE | |
| LOW | fastchat/serve/gradio_block_arena_vision_anony.py | 378 | CODE | |
| LOW | fastchat/serve/inference.py | 62 | CODE | |
| LOW | fastchat/serve/inference.py | 337 | CODE | |
| LOW | fastchat/serve/gradio_block_arena_vision.py | 194 | CODE | |
| LOW | fastchat/serve/gradio_block_arena_named.py | 224 | CODE | |
| LOW | fastchat/serve/gradio_block_arena_named.py | 314 | CODE | |
| LOW | fastchat/serve/call_monitor.py | 25 | CODE | |
| LOW | fastchat/serve/api_provider.py | 18 | CODE | |
| LOW | fastchat/serve/api_provider.py | 364 | CODE | |
| LOW | fastchat/serve/api_provider.py | 428 | CODE | |
| LOW | fastchat/serve/api_provider.py | 511 | CODE | |
| LOW | fastchat/serve/api_provider.py | 846 | CODE | |
| LOW | fastchat/serve/api_provider.py | 1272 | CODE | |
| LOW | fastchat/serve/openai_api_server.py | 228 | CODE | |
| LOW | fastchat/serve/openai_api_server.py | 266 | CODE | |
| LOW | fastchat/serve/openai_api_server.py | 621 | CODE | |
| LOW | fastchat/serve/gradio_block_arena_anony.py | 358 | CODE | |
| LOW | fastchat/serve/gradio_block_arena_anony.py | 441 | CODE | |
| LOW | fastchat/serve/dashinfer_worker.py | 96 | CODE | |
| LOW | fastchat/serve/monitor/monitor.py | 147 | CODE | |
| LOW | fastchat/serve/monitor/monitor.py | 917 | CODE | |
| LOW | fastchat/serve/monitor/elo_analysis.py | 215 | CODE | |
| LOW | fastchat/serve/monitor/elo_analysis.py | 239 | CODE | |
| LOW | fastchat/serve/monitor/clean_battle_data.py | 116 | CODE | |
| 20 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | playground/test_embedding/test_sentence_similarity.py | 28 | print(f"Error: {response.status_code} - {response.text}") | CODE |
| MEDIUM | playground/test_embedding/test_semantic_search.py | 36 | print(f"Error: {response.status_code} - {response.text}") | CODE |
| MEDIUM | playground/test_embedding/test_classification.py | 34 | print(f"Error: {response.status_code} - {response.text}") | CODE |
| LOW | tests/test_openai_api.py | 82 | except Exception as e: | CODE |
| LOW | tests/load_test.py | 59 | except Exception as e: | CODE |
| MEDIUM | tests/load_test.py | 12 | def litellm_completion(args, tokenizer, image_url=None): | CODE |
| LOW | tests/test_openai_vision_api.py | 117 | except Exception as e: | CODE |
| MEDIUM | fastchat/model/model_exllama.py | 20 | print(f"Error: Failed to load Exllamav2. {e}") | CODE |
| LOW | fastchat/model/apply_delta.py | 64 | except Exception as e: | CODE |
| MEDIUM | fastchat/model/apply_delta.py | 65 | print(f"An error occurred during split_files: {e}") | CODE |
| LOW | fastchat/serve/gradio_web_server.py | 439 | except Exception as e: | STRING |
| LOW | fastchat/serve/gradio_web_server.py | 605 | except Exception as e: | STRING |
| LOW | fastchat/serve/remote_logger.py | 58 | except Exception: | CODE |
| MEDIUM | fastchat/serve/call_monitor.py | 40 | print(f"Error decoding json: {json_file} {line}") | CODE |
| MEDIUM | fastchat/serve/api_provider.py | 364 | def column_api_stream_iter( | CODE |
| MEDIUM | fastchat/serve/api_provider.py | 1272 | def metagen_api_stream_iter( | CODE |
| LOW | fastchat/serve/api_provider.py | 402 | except Exception as e: | CODE |
| LOW | fastchat/serve/api_provider.py | 420 | except Exception as e: | CODE |
| LOW | fastchat/serve/api_provider.py | 817 | except Exception as e: | CODE |
| LOW | fastchat/serve/api_provider.py | 838 | except Exception as e: | CODE |
| LOW | fastchat/serve/api_provider.py | 1016 | except Exception as e: | CODE |
| LOW | fastchat/serve/api_provider.py | 1342 | except Exception as e: | CODE |
| LOW | fastchat/serve/openai_api_server.py | 462 | except Exception as e: | CODE |
| LOW | fastchat/serve/openai_api_server.py | 596 | except Exception as e: | CODE |
| LOW | fastchat/serve/openai_api_server.py | 855 | except Exception as e: | CODE |
| LOW | fastchat/serve/huggingface_api_worker.py | 189 | except Exception as e: | CODE |
| LOW | fastchat/serve/dashinfer_worker.py | 201 | except Exception as e: | CODE |
| LOW | fastchat/serve/monitor/monitor.py | 907 | except Exception as e: | CODE |
| MEDIUM | fastchat/serve/monitor/monitor.py | 908 | print(f"Error: {e}") | CODE |
| MEDIUM | fastchat/serve/monitor/monitor.py | 883 | def get_model_name(model_key): | CODE |
| LOW | fastchat/serve/monitor/classify/label.py | 85 | except Exception as e: | CODE |
| LOW | fastchat/serve/monitor/classify/label.py | 174 | except Exception as e: | CODE |
| MEDIUM | fastchat/serve/monitor/vote_time_stats/analyze_data.py | 42 | print("Error: Key to GC does not exist.") | CODE |
| LOW | fastchat/serve/monitor/vote_time_stats/analyze_data.py | 91 | except Exception: | CODE |
| LOW | fastchat/serve/monitor/vote_time_stats/analyze_data.py | 102 | except Exception as e: | CODE |
| MEDIUM | fastchat/modules/xfastertransformer.py | 29 | print(f"Error: Failed to load xFasterTransformer. {e}") | CODE |
| MEDIUM | fastchat/modules/awq.py | 31 | print(f"Error: Failed to import tinychat. {e}") | CODE |
| MEDIUM | fastchat/modules/awq.py | 84 | print("Error: AWQ checkpoint not found") | CODE |
| MEDIUM | fastchat/modules/gptq.py | 39 | print(f"Error: Failed to load GPTQ-for-LLaMa. {e}") | CODE |
| MEDIUM | fastchat/modules/gptq.py | 74 | print("Error: gptq checkpoint not found") | CODE |
| MEDIUM | fastchat/modules/exllama.py | 29 | print(f"Error: Failed to load Exllamav2. {e}") | CODE |
| LOW | fastchat/data/optional_replace.py | 49 | except Exception as e: | CODE |
| LOW | fastchat/llm_judge/common.py | 516 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | fastchat/data/hardcoded_questions.py | 46 | f"You can call me {name}, and I was trained by {org} researchers as a language model.", | CODE |
| MEDIUM | fastchat/data/hardcoded_questions.py | 47 | f"As a language model, I go by the name {name} and was trained by researchers from {org}.", | CODE |
| MEDIUM | data/dummy_conversation.json | 53 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 74 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 179 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 200 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 305 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 326 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 431 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 452 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 557 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 578 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 683 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 704 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 809 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 830 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 935 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 956 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 1061 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 1082 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 1187 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 1208 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 1313 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 1334 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| MEDIUM | data/dummy_conversation.json | 1439 | "value": "You can call me Vicuna, and I was trained by Large Model Systems Organization (LMSYS) researchers as a | CODE |
| MEDIUM | data/dummy_conversation.json | 1460 | "value": "As a language model, I go by the name Vicuna and was trained by researchers from Large Model Systems O | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | fastchat/train/train_baichuan.py | 0 | make dataset and collator for supervised fine-tuning. | STRING |
| HIGH | fastchat/train/train.py | 0 | make dataset and collator for supervised fine-tuning. | STRING |
| HIGH | fastchat/train/train_yuan2.py | 0 | make dataset and collator for supervised fine-tuning. | STRING |
| HIGH | fastchat/train/train_with_template.py | 0 | make dataset and collator for supervised fine-tuning. | STRING |
| HIGH | fastchat/train/train_flant5.py | 0 | make dataset and collator for supervised fine-tuning. | STRING |
| HIGH | fastchat/serve/gradio_block_arena_vision_named.py | 0 | function (a, b, c, d) { const captureelement = document.queryselector('#share-region-anony'); html2canvas(captureelement | STRING |
| HIGH | fastchat/serve/gradio_block_arena_named.py | 0 | function (a, b, c, d) { const captureelement = document.queryselector('#share-region-anony'); html2canvas(captureelement | STRING |
| HIGH | fastchat/serve/gradio_block_arena_vision_anony.py | 0 | function (a, b, c, d) { const captureelement = document.queryselector('#share-region-anony'); html2canvas(captureelement | STRING |
| HIGH | fastchat/serve/gradio_block_arena_anony.py | 0 | function (a, b, c, d) { const captureelement = document.queryselector('#share-region-anony'); html2canvas(captureelement | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_image_utils.py | 35 | # Create an image from the pixel data | COMMENT |
| MEDIUM | fastchat/model/rwkv_model.py | 43 | # This function is used by fastchat.llm_judge. | COMMENT |
| MEDIUM | fastchat/serve/cli.py | 115 | # Create a Live context for updating the console output | COMMENT |
| MEDIUM | fastchat/serve/monitor/vote_time_stats/plot.py | 24 | # Define the new cutoff and number of bins | COMMENT |
| MEDIUM | fastchat/serve/monitor/vote_time_stats/plot.py | 41 | # Create the plot with custom bins | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fastchat/model/model_adapter.py | 641 | from peft import PeftConfig, PeftModel | COMMENT |
| LOW | fastchat/train/train_lora_t5.py | 1 | # Adapted from tatsu-lab@stanford_alpaca. Below is the original copyright: | COMMENT |
| LOW | fastchat/train/train_baichuan.py | 1 | # This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright: | COMMENT |
| LOW | fastchat/train/train.py | 1 | # This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright: | COMMENT |
| LOW | fastchat/train/train_yuan2.py | 1 | # This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright: | COMMENT |
| LOW | fastchat/train/train_with_template.py | 1 | # This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright: | COMMENT |
| LOW | fastchat/train/train_flant5.py | 1 | # Adapted from tatsu-lab@stanford_alpaca. Below is the original copyright: | COMMENT |
| LOW | fastchat/train/train_lora.py | 1 | # Usage: deepspeed train_lora.py --deepspeed <$PATH_TO_DEEPSPEED_CONFIG> | COMMENT |
| LOW | fastchat/serve/gradio_web_server.py | 741 | width: 100%; | COMMENT |
| LOW | fastchat/serve/gradio_web_server.py | 761 | # } | COMMENT |
| LOW | fastchat/serve/gradio_web_server.py | 781 | # #ack_markdown .prose { | COMMENT |
| LOW | fastchat/serve/gradio_web_server.py | 801 | # margin-top: 8px; /* Adjust the value as needed */ | COMMENT |
| LOW | fastchat/serve/cli.py | 121 | text = outputs["text"] | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | fastchat/serve/api_provider.py | 528 | thread_message = client.beta.threads.messages.with_raw_response.create( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fastchat/model/rwkv_model.py | 38 | CODE | |
| LOW | fastchat/model/model_adapter.py | 201 | CODE | |
| LOW | fastchat/serve/model_worker.py | 39 | CODE | |
| LOW | fastchat/serve/base_model_worker.py | 165 | CODE | |
| LOW | fastchat/serve/inference.py | 337 | CODE | |
| LOW | fastchat/serve/huggingface_api_worker.py | 136 | CODE | |
| LOW | fastchat/serve/monitor/basic_stats.py | 86 | CODE | |
| LOW | fastchat/serve/monitor/elo_analysis.py | 321 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | fastchat/model/model_adapter.py | 1760 | cd flash-attention && pip install . | STRING |
| HIGH | fastchat/serve/gradio_web_server_multi.py | 185 | function gtag(){{dataLayer.push(arguments);}} | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fastchat/serve/huggingface_api.py | 54 | # Print results | COMMENT |
| LOW | fastchat/serve/inference.py | 448 | # Set inp to previous message | COMMENT |
| LOW | fastchat/serve/inference.py | 483 | # Check if file exists and add .json if needed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | fastchat/conversation.py | 63 | # The number of few shot examples | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | fastchat/data/extract_gpt4_only.py | 2 | Extract the conversations generated by GPT-4 only. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fastchat/serve/gradio_web_server.py | 133 | def update_ans_models(self, ans: str) -> None: | STRING |
| LOW | fastchat/serve/gradio_web_server.py | 136 | def update_router_outputs(self, outputs: Dict[str, float]) -> None: | STRING |
| LOW | fastchat/serve/call_monitor.py | 25 | async def update_stats(self, num_file=1) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fastchat/serve/monitor/clean_battle_data.py | 140 | def process_data( | CODE |
| LOW | fastchat/serve/monitor/clean_chat_data.py | 74 | def process_data(row, action_type): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_openai_langchain.py | 1 | # Usage: | COMMENT |