Skip to content

inferdiff v0.1.0

Choose a tag to compare

@ApacheWang ApacheWang released this 26 Nov 01:17
· 24 commits to main since this release

inferdiff v0.1.0

Wireshark & protocol bill-checker for streaming LLM APIs — zero third-party runtime dependencies (Python 3.11+ standard library only).

Now live on PyPI with OIDC Trusted Publisher attestations: https://pypi.org/project/inferdiff/

Highlights

  • Zero-setup live canary suite (inferdiff doctor): Profiles quick, full, and relay covering probes C1–C8 (truncated tool-call JSON lying as completed/stop, reasoning budget starvation, ignore_eos short generation, stripped trailing include_usage / omitted tool-schema tokens, missing delta.role / parallel tool index collisions, multi-byte UTF-8 U+FFFD corruption, buffered fake-SSE bursts, and heterogeneous backend drift), auto-discovering /models and /api/tags, grading wire health A+–F.
  • Chunk-jitter-tolerant wire recording & frame diff (record, audit, diff, compare): Native adapters for OpenAI Chat Completions, OpenAI /v1/responses, SGLang /generate, and Ollama NDJSON; strict RFC 9112 framing; separates empty handshake ttff_ms from real ttft_effective_ms; deterministic CI exit codes (0 / 1 / 2 / 3).
  • Single-file airgap-safe HTML5 + SVG frame waterfall (--html): Hash-locked CSP (script-src 'sha256-...'), zero external CDN/fonts, adaptive segment folding strictly < 80 KiB.
  • Upstream-ready sanitized exports (export): <=25-line redacted GitHub Issue Markdown with --globoff --url POSIX-safe curl reproducers and reflected-secret scrubbing.
  • v0.2 extensibility: inferdiff.trace.v1 and inferdiff.probes.base.BackendProbe reserve the three-point snapshot hook (T_pre -> T_ttft -> T_eof) for non-invasive KV & storage probes.

Install / Zero-Install Quickstart

# Zero-install via uvx
uvx inferdiff doctor http://127.0.0.1:8080/v1 --html doctor.html

# Or install from PyPI (Python 3.11+, zero runtime dependencies)
pip install inferdiff

Release Attachments

  • inferdiff-0.1.0-py3-none-any.whl & inferdiff-0.1.0.tar.gz — published to PyPI and verified with twine check --strict.
  • case1-waterfall.html — interactive single-file offline HTML frame waterfall for bundled Case 1 (llama.cpp #30773, 18 KiB).