Skip to content

test: add LightOn OCR-2 integration test for llamacpp#784

Merged
olyasir merged 5 commits into
mainfrom
tmp/lighton-ocr2-integration-test
Mar 10, 2026
Merged

test: add LightOn OCR-2 integration test for llamacpp#784
olyasir merged 5 commits into
mainfrom
tmp/lighton-ocr2-integration-test

Conversation

@olyasir

@olyasir olyasir commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add LightOn OCR-2 integration test (ocr-lighton.test.js) to llamacpp-llm package
  • Test validates OCR text extraction using LightOnOCR-2-1B model with a newspaper document image
  • Force CPU-only on mobile (iOS/Android) to prevent native crashes on Device Farm devices without Vulkan support
  • Add mobile test entry in integration.auto.cjs

Related: #765

Test plan

olyasir added 3 commits March 9, 2026 12:57
Add integration test for LightON OCR-2 vision-language model OCR.
Uses Q4_K_M LLM + F16 mmproj with newspaper document image.
Validates text extraction with keyword matching.
- Increase timeout from 15min to 30min for darwin-x64 (model download + slow inference)
- Add ocr-lighton.test.js to mobile integration.auto.cjs
@olyasir olyasir requested review from a team as code owners March 9, 2026 18:32
@github-actions

Copy link
Copy Markdown
Contributor

Tier-based Approval Status

**PR Tier:** TIER1

**Current Status:** ✅ APPROVED

**Requirements:**
- 1 Team Member approval ✅ (1/1)
- 1 Team Lead OR Management approval ✅ (1/1)



---
*This comment is automatically updated when reviews change.*

@olyasir olyasir merged commit dd17cf4 into main Mar 10, 2026
16 of 17 checks passed
@olyasir olyasir deleted the tmp/lighton-ocr2-integration-test branch March 10, 2026 13:47
olyasir added a commit that referenced this pull request Mar 11, 2026
* test: add LightON OCR-2 integration test

Add integration test for LightON OCR-2 vision-language model OCR.
Uses Q4_K_M LLM + F16 mmproj with newspaper document image.
Validates text extraction with keyword matching.

* fix: increase OCR test timeout and add mobile test entry

- Increase timeout from 15min to 30min for darwin-x64 (model download + slow inference)
- Add ocr-lighton.test.js to mobile integration.auto.cjs

* fix: use cpu-only for LightOn OCR test on mobile

* doc: add LightOn OCR-2 vision-language usage documentation
Proletter pushed a commit that referenced this pull request May 24, 2026
* test: add LightON OCR-2 integration test

Add integration test for LightON OCR-2 vision-language model OCR.
Uses Q4_K_M LLM + F16 mmproj with newspaper document image.
Validates text extraction with keyword matching.

* fix: increase OCR test timeout and add mobile test entry

- Increase timeout from 15min to 30min for darwin-x64 (model download + slow inference)
- Add ocr-lighton.test.js to mobile integration.auto.cjs

* fix: use cpu-only for LightOn OCR test on mobile

* doc: add LightOn OCR-2 vision-language usage documentation
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