Skip to content

Fix live GPU regressions and publish reproducible validation evidence - #22

Merged
1Utkarsh1 merged 1 commit into
mainfrom
fix/gpu-validation-and-token-usage
Oct 24, 2026
Merged

1Utkarsh1 merged 1 commit into
mainfrom
fix/gpu-validation-and-token-usage

Conversation

@1Utkarsh1

Copy link
Copy Markdown
Owner

Real GPU validation exposed three user-visible bugs: streamed Python indentation could lose a space after newlines, native Transformers/llama.cpp clients were rejected by require_local=True, and chat/completion token usage replaced engine counts with estimates. This PR fixes those paths, preserves valid engine counters across tool rounds, and keeps unknown HTTP locality fail-closed.

The README now links a reproducible A100 80 GB evidence bundle with raw responses/logs, pinned model revisions, package manifests, source hashes, 30 measured sequential requests across three engines, streaming/concurrency measurements, and two actual screenshots of the generated reports. Most added lines are saved evidence. Runtime code changes are confined to the shared client and affected adapters; there are no new mandatory dependencies or public signature changes.

Validation:

  • On the rented GPU host: 490 tests and 261 subtests passed, 16 intentional skips, with official OpenAI/MCP SDK interoperability enabled.
  • Actual inference: Qwen3.8-27B on vLLM, SGLang, Ollama and native llama.cpp; TinyLlama 1.1B on Transformers and AirLLM. The recorded checks include streaming, context rejection, tool calls, structured output, reasoning and two small image checks where supported.
  • Existing live Ollama suite: 13 passed, 2 skipped, 2 subtests passed. Its short text smoke tests now disable thinking explicitly; independent probes still exercise reasoning.
  • Regressions were run before the fixes and failed, then passed afterward. Incorrect initial benchmark counters were excluded from the published results.
  • Ruff, Black, strict Sphinx, wheel/sdist builds, Twine and fresh-wheel light-core/public-chat smoke passed; all 30 packaged Python sources match the checkout.
  • All 67 downloaded run artifacts and 65 tested source files were verified by SHA-256. The disposable Runpod pod was terminated after copying the results; fresh listing confirmed no pods remain.

The evidence is explicitly v0.3.1 plus the recorded source patch. This PR does not publish another PyPI version. Different engine settings/quantization and the small warm workload prevent a fair engine ranking; untested runtimes and performance/quality limits are documented.

Copilot AI balanced review requested due to automatic review settings October 24, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@1Utkarsh1
1Utkarsh1 merged commit fffc1fd into main Oct 24, 2026
10 checks passed
@1Utkarsh1
1Utkarsh1 deleted the fix/gpu-validation-and-token-usage branch October 24, 2026 16:35
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.

2 participants