Skip to content

take away performance enhancement - #169

Merged
avinash-palleti merged 2 commits into
intel-retail:mainfrom
sainijit:main
Jul 30, 2026
Merged

take away performance enhancement#169
avinash-palleti merged 2 commits into
intel-retail:mainfrom
sainijit:main

Conversation

@sainijit

Copy link
Copy Markdown
Contributor

No description provided.

TanmayeeSharvani22 and others added 2 commits July 30, 2026 14:30
Align take-away with dine-in so both applications share a single OVMS
model instance instead of loading Qwen2.5-VL-7B and MiniCPM separately.

Configuration:
- OVMS_MODEL_NAME defaults to openbmb/MiniCPM-V-4_5-int4, VLM_PRECISION to
  int4, across .env.example, Makefile, docker-compose, application.yaml and
  the Python fallbacks in src/.
- docker-compose now references the locally built images by :latest via
  overridable *_IMAGE variables.

setup_models.sh:
- Per-app default model; --app take-away and --app dine-in both resolve to
  MiniCPM-V-4_5-int4 when OVMS_MODEL_NAME is unset.
- VLM_PRECISION is derived from the precision suffix of OVMS_MODEL_NAME and
  warns when the two disagree, since the suffix is only a directory label and
  an int8 export would otherwise land in an "-int4" directory.
- Legacy Qwen model migration is restricted to the Qwen target path so Qwen
  weights can no longer be copied into a directory named for another model.

VLM client:
- Send chat_template_kwargs.enable_thinking=false. MiniCPM-V-4.5 is a hybrid
  reasoning model whose chat template otherwise opens a <think> block that
  consumes the whole max_completion_tokens budget, truncating the item list.
  Any stray <think> output is stripped before parsing.
- Fit frames into a 448x448 square canvas preserving aspect ratio (LANCZOS,
  white padding, light contrast/sharpening), matching the dine-in pipeline
  and replacing a fixed 512x512 resize that distorted proportions.

Measured on the sample video (1 worker, GPU): average VLM latency dropped
from 8657 ms to ~1900 ms and completion tokens from a truncated 100 to 16-18
clean "item x qty" lines.

Also removes "water bottle" from order 651 in config/orders.json, as it does
not appear in the sample video and was reported as a false mismatch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sainijit
sainijit requested review from sachinkaushik and sumanaga and removed request for sachinkaushik July 30, 2026 15:07
@avinash-palleti
avinash-palleti merged commit 39d558a into intel-retail:main Jul 30, 2026
3 of 4 checks passed
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.

3 participants