Pea

Pea is Vej’s 2B text model. Pea supports native decisions (returning probabilities over developer-defined outcomes) and document extraction (pointing directly to evidence spans). Your code decides what happens next.

2B · Limited hosted early access · Extraction Beta

Realtime context: 96K · Batch context: 2K tokens per row for Pea and Pea Pod. Context limits.

Access

The hosted Pea API is live in limited early access and Beta, by request. Create your account for manual approval. Already registered? Sign in to the console. Text only; capacity is limited, with no uptime guarantee yet. Hosted Choice, Noul and Score decision probabilities use temperature 1.334. Document extraction is served in Beta on /v1beta/extract. For questions, use the contact form.

Pea 1 decision weights are listed at ItsVej/pea-1. Download requires an approved Hugging Face access request. The repository root is the serving export. The native checkpoint is in checkpoint/. These released weights support decision inference only; hosted extraction capability weights are private.

The core development repository at LodeKennes/Vej is private. This public website is hosted from LodeKennes/vej-site.

Run Pea locally for decisions

Download ItsVej/pea-1 after your Hugging Face access request is approved. The native checkpoint is the checkpoint directory in that download. Python 3.12 to 3.14 is supported. vej predict still needs the private Vej source and its locked dependencies. (Local execution runs Pea decisions; extraction capability is served via the hosted API.)

HF_HUB_OFFLINE=1 python -m vej predict \
  examples/decisions.json --checkpoint /path/to/download/checkpoint --device cpu

CPU execution is a functional fallback and can be slow. The backbone remains BF16. Disabling autocast does not convert it to FP32. For compatible CUDA or ROCm environments, follow the supplied installation instructions in your GPU environment, then execute:

HF_HUB_OFFLINE=1 python -m vej predict examples/decisions.json \
  --checkpoint /path/to/download/checkpoint --device cuda \
  --precision bfloat16 --candidate-batch-size 4

Local HTTP and SDKs

vej serve --backend local --checkpoint /path/to/download/checkpoint --device cuda

The server binds to 127.0.0.1 by default, without authentication. Keep it local. It exposes POST /v1/predict, /healthz, /readyz and /metrics; native responses include usage.processed_tokens.

The official TypeSafe (Jev) Python SDK uses POST /v1/systemone. Cloudflare Clef uses POST /client/v4/accounts/{account_id}/ai/run/@cf/cloudflare/{clef|clef-flash}. Both text wire formats work on local and experimental vLLM backends.

The serving commands, SDK adapters, exporter and context override require the current private Vej source with its locked model runtime dependencies. The prediction commands above use that source with the downloaded checkpoint directory.

Serving export

The root of ItsVej/pea-1 is a classification export for vLLM ≥ 0.27. vllm serve ItsVej/pea-1 needs no extra flags. The native checkpoint under checkpoint/ remains the reference loader.

Document extraction capability

Alongside decision probabilities, Pea provides structured document extraction in hosted Beta. Instead of generating freeform text or JSON strings, Pea points directly to Unicode evidence spans in your document to extract developer-defined fields.

Extraction is hosted exclusively via the Beta API (POST https://api.itsvej.com/v1beta/extract). Extraction weights are private and are not included in the downloadable Pea 1 decision checkpoint.

Architecture

Pea uses a pretrained 2B text backbone. Vej freezes its base BF16 parameters and trains rank-16 LoRA adapters alongside a custom FP32 scalar decision head. There is no vocabulary projection head or token generator in this text-only checkpoint. Pea’s released checkpoint is designed and evaluated for text decisions.

State + question + outcomeScalar score

State, question, and candidate text are concatenated and passed through the model to produce a scalar score. The model normalises candidate scores into probabilities for each independent question. Application code calculates zero-based rubric expectations.

Base model
pretrained text backbone (revision 15852e8)
Text backbone
Approximately 1.88 billion parameters (frozen BF16)
Trainable parameters
Approximately 16.82 million (LoRA adapters + scalar head)
Checkpoint size
Full native state dict, approximately 3.6 GiB
Input token limit
Hosted realtime Pea decisions and Pea Pod extraction: 96K (98,304) tokens per fully rendered row. Batch: 2K (2,048) tokens per row. The row includes state or document, framing, instructions and candidate or field. Offline checkpoint defaults remain 2,048; overlong inputs fail closed. Longer-context quality is user-attested; no new accuracy or calibration measurement accompanies this runtime limit.
Selected checkpoint
Recovery step 6,144 (lowest pooled validation NLL: 0.458497)
Execution mode
Independent candidate batching with repeated state encoding

Usage guidance for decisions

The final test recorded 76.60% exact accuracy across 14,286 decisions: 89.22% on Choice, 91.71% on Noul and 51.62% on Score. Those figures use temperature 1. The hosted runtime applies temperature 1.334. Validate thresholds on your own workflow and keep independent policy checks around consequential actions. See the evaluation for the same-test comparison with hosted Jev. (For extraction development metrics and limitations, see Pea extraction.)

Vej code and model adaptations use Apache-2.0, while upstream base assets and training datasets retain their respective terms. See licences and attribution.

Hosted runtime

The hosted API is live in limited early access, by request. It serves Pea’s native reference runtime for text only; image input is refused. Hosted Choice, Noul and Score probabilities use temperature 1.334, fitted on 2,026 held-out calibration decisions and checked on 1,016 further decisions. That scale does not make a stated probability a guaranteed frequency on a new workflow. Capacity is limited, with no uptime guarantee yet. Published evaluations describe the native checkpoint at temperature 1, not a separate hosted evaluation.

If hosted Pea moves to vLLM, probabilities may differ from the native reference by up to about 0.05 (five percentage points) in development checks. Served-runtime temperature fitting and separate held-out verification would be needed. This development tolerance is not a claim of native equivalence or a universal error bound.