Introduction¶
When training or tuning parameters in DeepSeek Harness (DSH), progress is often written to TensorBoard’s event directory. A common approach is to start a separate TensorBoard web service or switch between windows in your IDE. If you want a quick way to view trends in scalar values like reward, validation loss, and learning rate directly within the DSH conversation—without modifying training scripts or uploading to the cloud—you need a read-only, local viewing window. Below is the positioning and usage of the community plugin Training Lens (gu143312/dsh-training-lens).
What is this¶
Training Lens is a DSH client-side plugin released by the maintainer GU143312: it transforms existing TensorBoard scalar logs into a focused view of training progress and trends, without modifying your trainer. The plugin’s description in the DSH directory is: local TensorBoard scalar monitoring for DeepSeek Harness.
- Directory page: https://www.skillhub.cn/plugins/GU143312/dsh-training-lens
- Source code and documentation: https://github.com/GU143312/dsh-training-lens
- Current release version: v0.1.0 (subject to the README and installation command)
- License: MIT
Core Features¶
The following capabilities are all from the project’s README and can be verified in the repository before installation.
- Scalar Selection: Primary and secondary metrics can be chosen freely (e.g., reward, validation loss, accuracy, learning rate, or custom tags).
- Good/Bad Direction: You can explicitly select higher / lower is better; by default, it only displays the observed range and does not automatically determine “whether it is improving”.
- Display & Diagnostics: Shows raw values, optional EMA smoothing, per-metric step, and expandable diagnostic information.
- UI & Refresh: Chinese and English UI, responsive layout, auto-refresh, and run selection.
- Isolation from Training Process: The DSH tool is responsible only for the dashboard started, checked, and stopped by this plugin instance; it has no training control, no telemetry, and no cloud upload.
- No Dependency on a Persistent TensorBoard Web Service: It can be used even if the TensorBoard web service is not running; no browser extensions, frontend builds, or CDNs are required.
Environment and Installation¶
Requirements (as stated in the README): DSH 0.2.1-rc.2 (tested), Node 22+, Python 3.10+ with TensorBoard installed. Compatibility is not guaranteed outside the declared scope of DSH 0.2.
Install the versioned release package (the command must match the source material; desktop can be replaced with your profile name):
dsh plugin --profile desktop add https://github.com/GU143312/dsh-training-lens/releases/download/v0.1.0/dsh-training-lens-0.1.0.tgz
Or install from the source package (pure JavaScript, no build step during installation):
dsh plugin --profile desktop add github:GU143312/dsh-training-lens#v0.1.0
Reload the plugin or restart DSH when convenient. For local testing, you can use: dsh plugin --profile lens-test add /absolute/path/to/dsh-training-lens-0.1.0.tgz.
The Python helper process uses your existing training environment. If TensorBoard is missing, you must install it manually in that interpreter (the plugin will not run pip for you). In the source directory:
python -m pip install -r requirements.txt
The README clarifies: the npm registry release is separate from the GitHub installation method above. Do not assume npm install dsh-training-lens is available until an npm package is published.
Using in DSH¶
State your intent to DSH, for example:
Use training_lens to open my TensorBoard logs at
/absolute/path/to/runs, using Python/absolute/path/to/venv/bin/python.
On Windows, you should provide the path to your training environment’s ...\.venv\Scripts\python.exe. The tool will return a local URL; open it in a browser to select your run and metrics.
Tool Parameters:
| Field | Meaning |
|---|---|
action |
start, status, or stop |
logdir |
Absolute path to an event directory or a parent runs directory |
python |
Path to an existing Python executable, not a shell command |
port |
0 means auto-select a free port; a fixed port will fail if occupied without stopping the occupier |
The dashboard process is bound to the plugin instance: disabling/reloading the plugin or closing DSH will stop the dashboard. Stopping the dashboard does not affect the training process or event files. Each plugin instance owns only one dashboard; you should stop it before changing the log root or interpreter.
Optional Configuration¶
You can set defaults in the profile’s cordis.patch.yml:
- id: training-lens
config:
python: /absolute/path/to/venv/bin/python
logdir: /absolute/path/to/runs
port: 0
staleSeconds: 120
startupTimeoutMs: 60000
Runtime paths are all user-provided; the package does not bundle project paths or datasets.
To start the Python service standalone (outside of DSH) from the source directory:
python python/server.py --logdir /absolute/path/to/runs --port 6008
Use Cases and Caveats¶
Suitable for: Developers who are already using TensorBoard to write scalars, want a read-only view of trends within DSH, and prefer to make minimal changes to their training scripts.
Interpretation and Limitations (summarized from the README’s “Interpretation and limits” section):
statusreflects whether the scalar timestamps are still updating; it is not equivalent to the training process being alive or checkpoints being saved.- It supports common TensorBoard scalars and TF2 scalar-plugin tensor summaries. Unknown tags can be selected, but success rates will not be inferred from rewards.
- The default x-axis is the writer’s step. Some MCTS tag combinations may show epochs based on
training_epochsfromconfig.yaml; the generalTrain/lossdoes not assume an epoch-based axis. - NaN and Infinity are displayed as breakpoints. Duplicate steps are handled according to the latest event after TensorBoard’s restart cleanup.
- Charts with over ~1,600 points will be bucketed. Large mixed-event files may consume significant memory, so it’s advisable to narrow the log root directory.
- It only accepts loopback hosts and does not expose an arbitrary file HTTP interface. It is not an authenticated remote hosting service.
- In a remote DSH environment, the URL points to the DSH host; you need to set up SSH or editor port forwarding yourself. The plugin does not open public tunnels.
Security and Permissions: The plugin runs with the permissions of the current DSH process. Please read the GitHub repository source code and MIT license before installing. The DSH ecosystem emphasizes that “everything is a plugin.” The SkillHub directory page is a community site and is not officially affiliated with DeepSeek or High-Flyer.
Conclusion¶
Training Lens consolidates TensorBoard scalar logs into a local, read-only training window and manages the dashboard lifecycle via the DSH tool training_lens. For installation commands, configuration fields, and boundary descriptions, refer to the GitHub README; you can view the plugin entry on the directory page: dsh-training-lens.