Alyosha28/dsh-plugin-c2c ↗★ 0

dsh-plugin-c2c

Cache-to-Cache (C2C) for DeepSeek Harness: exposes the rosetta KV-cache fusion runtime (thu-nics/C2C) as the c2c_* tools through a local daemon 适合需要运行和对比C2C融合模型、进行本地设备内存管理的用户。

Package
dsh-plugin-c2c
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Sep 18, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Alyosha28/dsh-plugin-c2c

Configuration

Defaults work with no editing — repoRoot and pythonPath are auto-detected. Override in the profile's cordis.patch.yml:

- id: c2c
  config:
    repoRoot: /path/to/c2c           # default: auto-detect
    pythonPath: /path/to/python      # default: /.venv/bin/python
    port: 8765                       # loopback daemon port
    idleUnloadSeconds: 900           # 0 disables idle release
    loadTimeoutSeconds: 600

Dependency model

@deepseek-ai/* packages are declared as peerDependencies, matching the other published DSH plugins, and the plugin ships no node_modules. At runtime they resolve through the installation's shared closure at $DSH_HOME/profiles/node_modules.

A symlinked development checkout is the exception: dsh plugin add installs a symlink, and Node resolves it to its real path, so the module walk starts in your checkout and never reaches the shared closure. The bundled .npmrc sets auto-install-peers=true so a plain pnpm install in the checkout materializes them.

Running the daemon by hand

The daemon is a standalone HTTP service and is usable without DSH:

python python/c2c_daemon.py --repo-root /path/to/c2c --port 8765
curl -s localhost:8765/models
curl -s -X POST localhost:8765/generate \
     -H 'content-type: application/json' \
     -d '{"prompt":"Say hello.","mode":"c2c","max_new_tokens":48}'