← Back to Reading
Daily Dose of DS 2026-10-03

How Work is Organized Inside a GPU

Datalab has introduced Lift, an open-weights 9B parameter model that extracts structured JSON directly from documents and images in a single step. The model eliminates traditional multi-stage pipelines that combine OCR, LLM inference, and JSON repair code. Lift processes multi-page documents in a single pass according to a user-provided JSON schema and returns null for missing values to avoid hallucinations. Benchmarks report 90.2% field accuracy over 11,000 fields, rivaling Gemini Flash 3.5 at triple the speed, and the model can be self-hosted with vLLM or Hugging Face. A GPU executes large computational workloads by subdividing them into a hierarchical execution model consisting of grids, thread blocks, warps, and threads. When a kernel function is invoked, it instantiates a grid divided into blocks, which are independently mapped onto Streaming Multiprocessors (SMs). Within each SM, threads are bundled into groups of 32 known as warps, which execute the same instruction simultaneously across different data values. The SM achieves high throughput and hides memory access latency by rapidly switching between ready resident warps whenever executing warps encounter stalls. Many LLM use cases like routing and classification involve choosing among a known set of valid answers rather than generating open-ended text. Standard LLM decoding relies on autoregressive token generation that produces text requiring downstream parsing, whereas structured output masks illegal tokens to enforce a predictable schema like JSON while still decoding token-by-token. In contrast, Jev-style scoring bypasses sequence decoding altogether by directly scoring predefined candidate labels and outputting their probability distribution. The optimal approach depends on whether a system requires open-ended text, schema-constrained unknown values, or direct scoring over known choices.

Read the original ↗
Contents 3 sections
  1. 01Everyone is sleeping on this new JSON extraction model!
  2. 02How work is organized inside a GPU
  3. 03Jev-style scoring, LLM decoding & structured output
OPEN-SOURCE

Everyone is sleeping on this new JSON extraction model!

Datalab has introduced Lift, an open-weights 9B parameter model that extracts structured JSON directly from documents and images in a single step. The model eliminates traditional multi-stage pipelines that combine OCR, LLM inference, and JSON repair code. Lift processes multi-page documents in a single pass according to a user-provided JSON schema and returns null for missing values to avoid hallucinations. Benchmarks report 90.2% field accuracy over 11,000 fields, rivaling Gemini Flash 3.5 at triple the speed, and the model can be self-hosted with vLLM or Hugging Face.

  • Lift combines OCR, LLM inference, and JSON repair into a single open-weights model.
  • The 9B parameter model attains 90.2% field accuracy across 11,000 benchmarked fields.
  • Lift nearly matches Gemini Flash 3.5 performance while operating at three times the speed.
  • The model handles documents spanning multiple pages in a single pass.
  • Lift is engineered to mitigate hallucinations by returning null when data is missing.
  • The model can be self-hosted using vLLM or Hugging Face.
AI ENGINEERING

How work is organized inside a GPU

A GPU executes large computational workloads by subdividing them into a hierarchical execution model consisting of grids, thread blocks, warps, and threads. When a kernel function is invoked, it instantiates a grid divided into blocks, which are independently mapped onto Streaming Multiprocessors (SMs). Within each SM, threads are bundled into groups of 32 known as warps, which execute the same instruction simultaneously across different data values. The SM achieves high throughput and hides memory access latency by rapidly switching between ready resident warps whenever executing warps encounter stalls.

  • A GPU kernel launch instantiates a grid of execution, which is broken down into independently scheduled thread blocks.
  • Thread blocks reside on Streaming Multiprocessors (SMs), sharing execution state and fast shared memory.
  • The hardware groups 32 threads into a warp, which serves as the fundamental unit of execution scheduled on an SM.
  • Branch divergence within a warp forces serialized execution paths, temporarily disabling inactive threads and degrading performance.
  • GPUs hide memory latency through warp scheduling rather than latency reduction, swapping stalled warps for ready ones at minimal cost.
  • Workloads must provide sufficient blocks and resident warps to saturate SM compute resources and enable effective latency hiding.
JEV

Jev-style scoring, LLM decoding & structured output

Many LLM use cases like routing and classification involve choosing among a known set of valid answers rather than generating open-ended text. Standard LLM decoding relies on autoregressive token generation that produces text requiring downstream parsing, whereas structured output masks illegal tokens to enforce a predictable schema like JSON while still decoding token-by-token. In contrast, Jev-style scoring bypasses sequence decoding altogether by directly scoring predefined candidate labels and outputting their probability distribution. The optimal approach depends on whether a system requires open-ended text, schema-constrained unknown values, or direct scoring over known choices.

  • Standard LLM decoding generates text token-by-token, requiring post-processing and parsing to extract discrete decisions.
  • Structured output uses schemas or grammars to mask invalid tokens at each generation step, but still incurs full token-by-token decoding.
  • Structured output is most appropriate when target values are not known in advance but need structured shapes like JSON or tool calls.
  • Jev-style scoring evaluates predefined candidate answers directly, returning probabilities without decoding sentences or JSON objects.
  • Jev-style scoring is optimized for fixed-choice classification, routing, policy checks, and ranking.