CID-Demo / README.md
fwerkor's picture
Remove artificial tool latency from Demo
3227a5d
|
Raw History Blame
1.63 kB
metadata
title: CID · Demo
emoji: 🧠
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.44.1
python_version: 3.10.13
app_file: app.py
pinned: false
models:
  - fwerkor/CID-v1-0.4B
tags:
  - cid
  - continuous-interaction-diffusion
  - diffusion-language-model
  - tool-use
  - reasoning

CID · Demo

Interactive Hugging Face Space for the 398.8M-parameter fwerkor/CID-v1-0.4B checkpoint.

The demo exposes CID's revisable Display and runtime trace with example prompts for the released 0.4B checkpoint. calculator, symbolic_math, and the task-local workspace are enabled explicitly from the UI. The workspace editor is disabled until its tool switch is enabled; document-backed examples enable it automatically. Workspace mode exposes read-only workspace_search and workspace_read information needs while reasoning.

The model is mechanism-focused rather than a general-purpose chat model. The Space uses the published unified checkpoint and pins the CID runtime implementation to commit 5577a801c9927062989179eb45cd8f6ec7f3a191.

Code layout

  • app.py — minimal Space entrypoint.
  • cid_demo/ui.py — Gradio component tree and event wiring.
  • cid_demo/runtime.py — CID request construction and benchmark execution.
  • cid_demo/model.py — checkpoint download and model bundle initialization.
  • cid_demo/tools.py — tool descriptors and math argument extraction.
  • cid_demo/workspace.py — task-local document parsing.
  • cid_demo/examples.py — public examples and workspace fixtures.
  • cid_demo/presentation.py and cid_demo/assets/styles.css — display formatting, HTML, and styling.