[PR #48] [MERGED] kvcache-simulator: commit the bundled resources, release 0.1.3 #48

Closed
opened 2026-10-29 14:32:14 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kvcache-ai/kvcache-blog/pull/48
Author: @Venkat2811
Created: 9/25/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @ykwd

Base: main ← Head: fix/simulator-bundled-resources


📝 Commits (1)

  • 1b5b379 kvcache-simulator: commit the bundled resources, release 0.1.3

📊 Changes

8 files changed (+1974 additions, -2 deletions)

View changed files

📝 .gitignore (+2 -0)
📝 packages/kvcache-simulator/README.md (+9 -0)
📝 packages/kvcache-simulator/pyproject.toml (+1 -1)
📝 packages/kvcache-simulator/src/kvcache_sim/__init__.py (+1 -1)
➕ packages/kvcache-simulator/src/kvcache_sim/resources/__init__.py (+0 -0)
➕ packages/kvcache-simulator/src/kvcache_sim/resources/kv-cache-lab-native-sim.cc (+710 -0)
➕ packages/kvcache-simulator/src/kvcache_sim/resources/models.yaml (+1244 -0)
➕ scripts/sync-simulator-resources.sh (+7 -0)

📄 Description

Summary

A clean clone cannot build the package: the root .gitignore rule resources/ (Hugo's cache) also ignores packages/kvcache-simulator/src/kvcache_sim/resources/, so the bundled models.yaml and C++ core were never committed. After pip install ./packages/kvcache-simulator, kvcache-simulator list-models fails with No module named 'kvcache_sim.resources'. The batch core the cpp backend runs (--policy batch --capacities ...) existed only inside the 0.1.2 wheel; scripts/kv-cache-lab-native-sim.cc is the single-budget core of the precompute pipeline. calculator.py already carries Kimi K3, unreleased.

Changes

  • .gitignore: re-include the package's resources folder
  • add resources/kv-cache-lab-native-sim.cc (the batch core from the 0.1.2 wheel) and resources/models.yaml, plus scripts/sync-simulator-resources.sh to refresh the catalog copy
  • README development notes; version 0.1.3

Validation

  • fresh venv: pip install ./packages/kvcache-simulator; kvcache-simulator list-models shows kimi-k3
  • pytest packages/kvcache-simulator: 23 passed; the cpp/python parity test compiles the committed core
  • a 1,422-request trace on the cpp backend reproduces the 0.1.2 wheel's results point for point
  • a wheel built from the repo has the same file list as the published wheel
  • node --test tests/*.test.mjs: 154 of 155, same as main; the failing catalog test predates this change

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kvcache-ai/kvcache-blog/pull/48 **Author:** [@Venkat2811](https://github.com/Venkat2811) **Created:** 9/25/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@ykwd](https://github.com/ykwd) **Base:** `main` ← **Head:** `fix/simulator-bundled-resources` --- ### 📝 Commits (1) - [`1b5b379`](https://github.com/kvcache-ai/kvcache-blog/commit/1b5b379fe37689a5f1d02e9ece2a6886276ecbd9) kvcache-simulator: commit the bundled resources, release 0.1.3 ### 📊 Changes **8 files changed** (+1974 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) 📝 `packages/kvcache-simulator/README.md` (+9 -0) 📝 `packages/kvcache-simulator/pyproject.toml` (+1 -1) 📝 `packages/kvcache-simulator/src/kvcache_sim/__init__.py` (+1 -1) ➕ `packages/kvcache-simulator/src/kvcache_sim/resources/__init__.py` (+0 -0) ➕ `packages/kvcache-simulator/src/kvcache_sim/resources/kv-cache-lab-native-sim.cc` (+710 -0) ➕ `packages/kvcache-simulator/src/kvcache_sim/resources/models.yaml` (+1244 -0) ➕ `scripts/sync-simulator-resources.sh` (+7 -0) </details> ### 📄 Description ## Summary A clean clone cannot build the package: the root `.gitignore` rule `resources/` (Hugo's cache) also ignores `packages/kvcache-simulator/src/kvcache_sim/resources/`, so the bundled `models.yaml` and C++ core were never committed. After `pip install ./packages/kvcache-simulator`, `kvcache-simulator list-models` fails with `No module named 'kvcache_sim.resources'`. The batch core the cpp backend runs (`--policy batch --capacities ...`) existed only inside the 0.1.2 wheel; `scripts/kv-cache-lab-native-sim.cc` is the single-budget core of the precompute pipeline. `calculator.py` already carries Kimi K3, unreleased. ## Changes - `.gitignore`: re-include the package's resources folder - add `resources/kv-cache-lab-native-sim.cc` (the batch core from the 0.1.2 wheel) and `resources/models.yaml`, plus `scripts/sync-simulator-resources.sh` to refresh the catalog copy - README development notes; version 0.1.3 ## Validation - fresh venv: `pip install ./packages/kvcache-simulator`; `kvcache-simulator list-models` shows kimi-k3 - `pytest packages/kvcache-simulator`: 23 passed; the cpp/python parity test compiles the committed core - a 1,422-request trace on the cpp backend reproduces the 0.1.2 wheel's results point for point - a wheel built from the repo has the same file list as the published wheel - `node --test tests/*.test.mjs`: 154 of 155, same as `main`; the failing catalog test predates this change 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 14:32:14 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/kvcache-blog#48
No description provided.