Skip to content

Simplify inference to one sequence#12

Merged
FuJacob merged 1 commit into
mainfrom
chore/single-sequence-runtime
Jul 18, 2026
Merged

Simplify inference to one sequence#12
FuJacob merged 1 commit into
mainfrom
chore/single-sequence-runtime

Conversation

@FuJacob

@FuJacob FuJacob commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

Match CotabbyInference to the shipping product workload: one model, one context, and one live autocomplete sequence. Remove the unused second slot, decoder worker/queue/batching machinery, dead chat/manual-logit/snapshot/test-only APIs, the ineffective native token-budget field, and the obsolete Phase-0 benchmark. Refresh the public README and repository guidance, and ignore local .internal/ maintainer notes.

The engine still uses a changing external sequence ID over fixed llama.cpp slot zero, preserving stale-handle rejection after resets while cutting unused context capacity and native lifecycle states.

Validation

  • swift test — 14 tests, 7 model-backed skips, 0 failures.
  • COTABBY_TEST_MODEL_PATH=.../Qwen3.5-0.8B-Base.i1-Q6_K.gguf swift test — 14 tests, 0 failures.
  • COTABBY_TEST_MODEL_PATH=.../SmolLM2-135M-Instruct-q8_0.gguf swift test — 14 tests, 0 failures.
  • Cotabby xcodebuild ... build against package commit 8f3979d — exit 0.
  • Cotabby compatibility bridge merged first in Update Cotabby for single-sequence inference cotabby#803.
  • git diff --check — clean.

Risk / rollout notes

This intentionally removes unused public API. The only current Cotabby caller affected by the aggregate layout was updated and merged before this PR. Partial KV trim remains model-capability-dependent; Cotabby already rebuilds the sequence when hybrid/SWA caches reject it.

@FuJacob
FuJacob merged commit 7574a21 into main Jul 18, 2026
1 check passed
@FuJacob
FuJacob deleted the chore/single-sequence-runtime branch July 18, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant