/** * Pulpie WebUI - Sample HTML Documents * * Provides realistic benchmark test cases: * - Blog Article (author banner, main text, code snippet, sidebar, comments) * - Documentation Page (nav tree, breadcrumbs, API params table, footer) * - News Article (disclaimers, cookie banner, headline, lead story, ads) */ export const SAMPLE_HTMLS = { article: ` Understanding WebGPU: Next-Gen Graphics and Compute in the Browser

Understanding WebGPU: Next-Gen Graphics and Compute in the Browser

Published by Elena Rostova on September 8, 2026 · 6 min read

WebGPU is the new web standard for accelerated graphics and compute on the web. Unlike WebGL, which was built on the older OpenGL ES paradigm, WebGPU reflects modern GPU architectures such as Direct3D 12, Metal, and Vulkan.

For machine learning engineers, WebGPU is transformative because it unlocks low-overhead compute shaders (WGSL) and half-precision floating point operations (shader-f16). This allows running 200M+ parameter transformer models directly in the user's browser with native hardware acceleration.

Key Benefits of WebGPU for Inference

Running neural networks directly in the browser provides several crucial advantages over server-side inference:

  • Zero Latency Network Hops: Once weights are cached in browser storage, token classification happens locally in milliseconds.
  • Complete Privacy: Sensitive documents and internal intranet pages never leave the client device.
  • Zero Cloud Compute Cost: Massive scalability without managing GPU server clusters.
const adapter = await navigator.gpu.requestAdapter();
const device = await adapter.requestDevice();
console.log("WebGPU hardware ready:", adapter.info);

As browser engines continue optimizing WebGPU shader compilation, client-side intelligence will become the default architecture for web utilities.

`, docs: ` EuroBERT Architecture Reference & API Docs

EuroBERT Architecture Reference

EuroBERT is a multilingual encoder architecture optimized for token classification and sequence labeling tasks across European languages and structured HTML markup.

Model Specifications

ParameterValueDescription
Total Parameters210 MillionOrange Small encoder checkpoint
Hidden Dimension768Internal transformer vector width
Attention Heads12Multi-head self attention count
Max Sequence Length8,192 tokensContext window per forward pass
PrecisionFloat16 (ONNX)Weights serialized in IEEE 754 half-precision

Block Classification Semantics

Pulpie segments HTML into content blocks separated by the special delimiter <|sep|>. During inference, logits evaluated at each delimiter index classify that block as either primary article content or extraneous boilerplate.

`, news: ` Global Clean Energy Investment Reaches Historic Milestone
BREAKING NEWS: Markets rally as renewable output breaks prior records
Advertisement: Subscribe today for unlimited access - 80% off

Global Clean Energy Investment Reaches Historic Milestone

GENEVA — September 9, 2026 — Clean energy investment has outpaced fossil fuel expenditure for the third consecutive year, according to annual figures published today.

Solar and wind installations accounted for more than 85 percent of all new power generation capacity added worldwide over the past twelve months. Rapid declines in battery storage costs combined with upgraded grid interconnects accelerated deployment across Europe, Asia, and the Americas.

"What we are witnessing is not merely an incremental transition, but an exponential realignment of global capital," remarked Dr. Sarah Vance, senior energy analyst at the International Transition Council.

Grid operators reported record stability during peak summer demand, dispelling earlier concerns regarding renewable intermittency.

Sign up for Morning Briefing

`, };