Files
xpu-llm-ports/lfm3/tools/screenshot.py
T
Pascal LinxweilerandClaude Opus 5.5 1834792bb8 lfm3: add INT4, FP8 per-channel and VL notes, tests, eval and results
Sync the repo with the working directory: full NOTES.md (rounds 4-5, LFM3-VL),
VL tests and test images, quality eval, AutoRound W4A16 quantization scripts
and calibration recipe, the variant.sh MODEL/DOCKER_ENV options, and the
remaining benchmark results. Large regenerable artifacts (INT4 checkpoint,
ref_vl.pt, raw logprob dumps) stay out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 13:59:43 +01:00

12 lines
492 B
Python

# Full-page PNG of a local HTML file: python screenshot.py IN.html OUT.png [width]
import sys
from playwright.sync_api import sync_playwright
src, out = sys.argv[1], sys.argv[2]
width = int(sys.argv[3]) if len(sys.argv) > 3 else 1280
with sync_playwright() as p:
b = p.chromium.launch()
pg = b.new_page(viewport={"width": width, "height": 900}, device_scale_factor=1.5)
pg.goto("file://" + src); pg.wait_for_timeout(1500)
pg.screenshot(path=out, full_page=True)
b.close()