🧠「大模型」2小时完全从0训练64M的小参数LLM!Train a 64M-parameter LLM from scratch in just 2h!
50 matches across 6 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | eval_llm.py | 8 | |
| LOW | dataset/lm_dataset.py | 6 | |
| LOW | model/model_lora.py | 2 | |
| LOW | trainer/train_agent.py | 7 | |
| LOW | trainer/train_agent.py | 9 | |
| LOW | trainer/train_agent.py | 24 | |
| LOW | trainer/train_agent.py | 25 | |
| LOW | trainer/trainer_utils.py | 15 | |
| LOW | trainer/train_ppo.py | 7 | |
| LOW | trainer/train_ppo.py | 15 | |
| LOW | trainer/train_dpo.py | 7 | |
| LOW | trainer/rollout_engine.py | 17 | |
| LOW | trainer/train_pretrain.py | 7 | |
| LOW | trainer/train_grpo.py | 7 | |
| LOW | trainer/train_grpo.py | 11 | |
| LOW | trainer/train_grpo.py | 16 | |
| LOW | trainer/train_grpo.py | 22 | |
| LOW | trainer/train_grpo.py | 23 | |
| LOW | trainer/train_distillation.py | 7 | |
| LOW | trainer/train_full_sft.py | 7 | |
| LOW | trainer/train_lora.py | 7 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | dataset/lm_dataset.py | 88 | |
| LOW | dataset/lm_dataset.py | 176 | |
| LOW | scripts/serve_openai_api.py | 105 | |
| LOW | scripts/eval_toolcall.py | 133 | |
| LOW | scripts/web_demo.py | 124 | |
| LOW | scripts/web_demo.py | 312 | |
| LOW | trainer/train_agent.py | 98 | |
| LOW | trainer/train_agent.py | 188 | |
| LOW | trainer/train_agent.py | 242 | |
| LOW | trainer/trainer_utils.py | 63 | |
| LOW | trainer/train_ppo.py | 79 | |
| LOW | trainer/rollout_engine.py | 107 | |
| LOW | trainer/train_tokenizer.py | 12 | |
| LOW | trainer/train_grpo.py | 37 | |
| LOW | trainer/train_grpo.py | 71 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/serve_openai_api.py | 98 | except Exception: |
| LOW | scripts/serve_openai_api.py | 167 | except Exception as e: |
| LOW | scripts/serve_openai_api.py | 226 | except Exception as e: |
| MEDIUM | scripts/serve_openai_api.py | 105 | def generate_stream_response(messages, temperature, top_p, max_tokens, tools=Non |
| LOW | scripts/eval_toolcall.py | 76 | except Exception: |
| LOW | scripts/eval_toolcall.py | 94 | except Exception: |
| LOW | scripts/eval_toolcall.py | 104 | except Exception: |
| LOW | scripts/eval_toolcall.py | 111 | except Exception as e: |
| LOW | scripts/web_demo.py | 145 | except Exception as e: |
| LOW | trainer/rollout_engine.py | 188 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | dataset/lm_dataset.py | 118 | # # ================ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/eval_toolcall.py | 81 | def parse_tool_call_from_text(content): |
| LOW | scripts/web_demo.py | 149 | def process_assistant_content(content, is_streaming=False): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/convert_model.py | 141 |