fwerkor commited on
Commit
3227a5d
·
1 Parent(s): 58e08a3

Remove artificial tool latency from Demo

Browse files
Files changed (4) hide show
  1. README.md +1 -1
  2. cid_demo/config.py +1 -1
  3. cid_demo/runtime.py +2 -2
  4. requirements.txt +1 -1
README.md CHANGED
@@ -24,7 +24,7 @@ Interactive Hugging Face Space for the 398.8M-parameter `fwerkor/CID-v1-0.4B` ch
24
 
25
  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.
26
 
27
- 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 `beb84cc2831fb547d2744dc50503d7349246c5da`.
28
 
29
  ## Code layout
30
 
 
24
 
25
  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.
26
 
27
+ 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`.
28
 
29
  ## Code layout
30
 
cid_demo/config.py CHANGED
@@ -1,7 +1,7 @@
1
  MODEL_ID = "fwerkor/CID-v1-0.4B"
2
  MODEL_REVISION = "d1fe52e235ab13409cf3afe3df5f789047147115"
3
  MODEL_CHOICES = [("CID-v1-0.4B · 398.8M", MODEL_ID)]
4
- DEMO_CODE_REVISION = "beb84cc"
5
 
6
  MAX_PROMPT_CHARS = 4_000
7
  MAX_WORKSPACE_CHARS = 24_000
 
1
  MODEL_ID = "fwerkor/CID-v1-0.4B"
2
  MODEL_REVISION = "d1fe52e235ab13409cf3afe3df5f789047147115"
3
  MODEL_CHOICES = [("CID-v1-0.4B · 398.8M", MODEL_ID)]
4
+ DEMO_CODE_REVISION = "5577a80"
5
 
6
  MAX_PROMPT_CHARS = 4_000
7
  MAX_WORKSPACE_CHARS = 24_000
cid_demo/runtime.py CHANGED
@@ -83,7 +83,7 @@ def build_example(
83
 
84
  metadata: dict[str, Any] = {
85
  "benchmark_live_tools": list(enabled_math_names),
86
- "benchmark_live_tool_latency_steps": 1,
87
  "benchmark_tool_argument_candidates": math_candidates,
88
  }
89
  if workspace_enabled:
@@ -91,7 +91,7 @@ def build_example(
91
  {
92
  "benchmark_workspace_documents": list(documents),
93
  "benchmark_workspace_search_top_k": min(5, len(documents)),
94
- "benchmark_workspace_latency_steps": 2,
95
  "interaction_pattern": "retrieval_qa",
96
  }
97
  )
 
83
 
84
  metadata: dict[str, Any] = {
85
  "benchmark_live_tools": list(enabled_math_names),
86
+ "benchmark_live_tool_latency_steps": 0,
87
  "benchmark_tool_argument_candidates": math_candidates,
88
  }
89
  if workspace_enabled:
 
91
  {
92
  "benchmark_workspace_documents": list(documents),
93
  "benchmark_workspace_search_top_k": min(5, len(documents)),
94
+ "benchmark_workspace_latency_steps": 0,
95
  "interaction_pattern": "retrieval_qa",
96
  }
97
  )
requirements.txt CHANGED
@@ -3,4 +3,4 @@ transformers==4.57.1
3
  safetensors>=0.4.5
4
  accelerate>=1.2
5
  sympy>=1.14
6
- git+https://github.com/fwerkor/continuous-interaction-diffusion.git@beb84cc2831fb547d2744dc50503d7349246c5da
 
3
  safetensors>=0.4.5
4
  accelerate>=1.2
5
  sympy>=1.14
6
+ git+https://github.com/fwerkor/continuous-interaction-diffusion.git@5577a801c9927062989179eb45cd8f6ec7f3a191