Skip to content
View uphome's full-sized avatar

Block or report uphome

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
uphome/README.md

Hi there, I'm uphome 👋

专注于 Agent、LLM 推理引擎与模型后训练。


🚀 Featured Projects

MyCoder — Agent Framework from Scratch

一个注重架构设计与工程实践的 Python 本地编码 Agent 框架。

  • 日志是唯一事实源:模型看到的每一条消息都能从 .sessions/*.jsonl 重建,支持崩溃/OOM 后恢复执行。
  • 六层架构:values → capability → state → runtime → app → web,通过分层设计明确模块职责与边界。
  • 完整工具体系:12 个真实工具,支持文件操作、代码执行等能力。
  • 零构建 Web UI:单个 HTML 文件,CLI 与 Web 共享同一份日志投影。
  • 核心设计取舍与实现细节记录在 架构文档。

Python Agent Framework Tool Use Test-Driven Design


Qwen3-engine-from-scratch — LLM Inference Engine from Scratch

使用纯 PyTorch 从零实现 Qwen3 推理引擎,探索 LLM 推理系统的底层实现。

  • 核心算子:手写 RMSNorm、RoPE、GQA、SwiGLU 等模块,完整覆盖 Prefill / Decode 路径。
  • 推理调度:实现 Continuous Batching、Paged KV Cache 与 CUDA Graph 图池。
  • 服务接口:提供 OpenAI 兼容 HTTP API,支持 Chat / Completion、函数调用与思考链开关。
  • 性能分析:配套 Benchmark 体系,覆盖吞吐量、延迟分布、显存占用与算子级耗时分析。

PyTorch Qwen3 Inference Engine CUDA Graph Triton


HowToMove — Agentic RL with GRPO

使用 GRPO 训练 Qwen3-0.6B,让模型通过工具调用完成网格迷宫中的长程寻路任务。

  • 数据与环境:5 个难度等级、5000 张静态地图(4000 train / 500 val / 500 test),全部为 12×12 网格,每个 episode 最多 30 步。
  • 自研训推引擎:手写 Qwen3 推理引擎与 GRPO 训练循环,支持 Paged KV cache、prefix KV cache、continuous batching,不依赖 vLLM / TRL / verl。
  • 训推同源:单进程共享模型与自研训推引擎,Rollout 与训练使用同一模型和 logprob 口径;使用 LoRA 在 A100 上完成 SFT 与 GRPO。
  • 训练流程:完成 SFT → GRPO 全流程;V3 在 3200 张 L1–L4 train maps 上筛选出 95 张失败地图做失败池 GRPO。
  • 最终结果:val 486/500(97.2%),test 488/500(97.6%),L4 test 95/100;val + test 共 1000 个 episode,格式错误 0。

Reinforcement Learning GRPO Qwen3 Agentic RL Tool Calling


"Build it from scratch, understand it from the inside."

Popular repositories Loading

  1. MyCoder MyCoder Public

    Python 实现的本地编码 agent 框架:日志是唯一事实源,模型看到的每条消息都能从日志重建;被动状态机 + Inbox、决策走钩子;分层与不变式由测试守着。CLI + 零构建 Web UI,12 个真实工具。

    Python 7

  2. Qwen3-engine-from-scratch Qwen3-engine-from-scratch Public

    尽可能地多造轮子的学习项目。

    Python 4

  3. HowToMove HowToMove Public

    一个受控环境下的 tool-calling Agentic RL 项目: 让语言模型通过多轮 move 工具调用完成迷宫导航,并从环境反馈中修正错误。

    Python 2

  4. minimind minimind Public

    Forked from jingyaogong/minimind

    🧠 Train a 64M-parameter LLM from scratch in just 2h!

    Python

  5. deepinfer-unpacked deepinfer-unpacked Public

    Forked from ZiyuanDu/deepinfer-unpacked

    Bringing thousands of learners together to unpack DeepInfer through peer-reviewed explanations, documentation, and hands-on examples.

  6. MaiBot MaiBot Public

    Forked from Mai-with-u/MaiBot

    MaiSaka, an LLM-based intelligent agent, is a digital lifeform devoted to understanding you and interacting in the style of a real human. She does not pursue perfection, nor does she seek efficienc…

    Python