--- 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.