Alyosha28/dsh-plugin-c2c ↗★ 0

dsh-plugin-c2c

将C2C键值缓存融合运行时暴露为本地工具的插件 适合需要运行和对比C2C融合模型、进行本地设备内存管理的用户。

套件
dsh-plugin-c2c
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年9月18日

安裝

$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}'