kirineko/dsh-function-plot ↗★ 0
dsh-function-plot
2D teaching plots for DeepSeek Harness: activations, distributions, and classroom curves
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kirineko/dsh-function-plot说明文档
阅读完整 README ↗使用
打开 http://127.0.0.1:3080,直接说要画什么。图会出现在 plot_function 卡片里:可切换远景 / 近景 / 对照,查看完整函数信息,或下载 SVG。不必再让模型调用 read_image。例如:
- 对比 ReLU 和 GELU
- 画标准正态密度
- 画线性需求和供给
- 画 sigmoid 的导数
- 画 y = x^2 / 2,x 从 -3 到 3
画完后打开工作区里的 .dsh-plots/*.svg。不要让模型对 SVG 调用 read_image(只接受 PNG/JPEG/WebP/GIF,且 DeepSeek 官方模型不接收图像)。
同图画需求和供给时会标均衡点。改主题或采样数,编辑 ~/.dsh/profiles/web/cordis.patch.yml,按 id 整行覆盖:
- id: function-plot
name: dsh-function-plot
config:
outputDir: .dsh-plots
samples: 400
width: 960
height: 540
theme: light