Skip to content

v0.4.0

Choose a tag to compare

@bdauzats bdauzats released this 05 Oct 05:30
· 70 commits to main since this release
5bf9d7a

Added

  • Laya as a model: TypeSafeClient(model="laya"), --model laya (also laya:multilingual,
    laya:typed-decisions or laya:<hub repo or directory>), with pip install "jul[laya]" or
    jul setup --model laya. Laya runs on its own package; JuL hands it the questions and returns its answers
    as JuL's, so ask, run, serve, bench and Escalation take it. JuL's readings, autotune and
    pack do not apply to it. See Models > Laya.
  • jul bench: pick a model on your own data. jul bench test.jsonl --train train.jsonl --models jul-decision-e5-small@onnx,minicpm5-2b@torch -O results.json answers every test row with each model and
    reports, per question, accuracy with its 95% interval, latency (p50/p95) and the model to pick: the fastest
    whose interval reaches the best. Each row carries its question (question, options, state, answer), so one
    file can mix questions and types. With --train (a separate file) each model is also autotuned and measured
    again on the same test rows; train and test are checked for overlap first (exact duplicates after folding
    case, punctuation and digits stop the bench, near duplicates are reported, --drop-overlap removes them).
    --method / --features (or auto) compare the zero-shot readings and autotune heads of each model, one
    row each. Tables in the site's amber on a terminal, --json or -O file for the full results.
  • Embeddings APIs as a backend (--backend api): the vector reading over any embeddings endpoint, local or
    hosted, without the model's weights. jul models add NAME --repo ollama:qwen3-embedding:0.6b --backend api
    (also openai:, mistral:, voyage:, or http(s)://host/v1#model for any OpenAI-compatible server) fits
    the center and tau as for a local model. One layer, no logits (Noul and Score are read as vectors).
  • Escalation on confidence: jul.Escalation chains deciders (a local client, then SystemOneHTTP for
    any /v1/systemone server: Jev, Ollama's Nimble, Kev, another jul serve); only the questions answered
    below the bar go on to the next one, and the response says per question which tier answered.
    jul serve --escalate-to typesafe|ollama[:model]|URL --min-confidence 0.8 does the same over HTTP, with each
    provider's usual key variable (TYPESAFE_API_KEY).
  • Clef on Cloudflare Workers AI as an escalation tier: --escalate-to cloudflare:clef-flash (or :clef),
    jul.escalate.cloudflare_tier() in Python, with CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN.
  • jul-decision-wemm-4b is the default model (alias accurate): wemm-4b-4bit plus LoRA adapters
    (usejul/jul-decision-wemm-4b) that read Noul,
    Score and Choice with the question and the text together. Decision bench (2,108 questions, PyTorch): 0.849,
    Jev 0.873. Attached on PyTorch; on MLX it reads as wemm-4b-4bit until the adapters are measured in
    4-bit. wemm-4b-4bit stays, vectors only.
  • LoRA cross models read a Choice listwise when their cross.json has a choice entry (text, question and
    every option in one pass), mixed with the vector reading (mix).
  • A preset's cross entry may name a repo for some backends only ({"torch": ...}); the others read with
    the vectors.
  • Contrastive heads on any backbone: a reading mode where two projection heads (InfoNCE) read a frozen
    backbone, set by contrastive.json (layer, pooling, rendering, Noul texts, prefix), on MLX, torch or onnx,
    decoders and encoders. jul models add <name> --repo <backbone> --train-heads rows.jsonl trains them;
    autotune trains its usual head on the same embedding.
  • CLM-8B is one profile of it: jul models add clm-8b --repo Contrastive-LM/CLM-v0.1-8B converts CLM's heads
    and runs them on their frozen Qwen3-8B (MLX 8-bit or torch bf16), without vLLM; CLM's reference answers
    reproduced within 0.025. docs/models.md#contrastive-heads-any-backbone-clm-8b.

Full Changelog: v0.3.0...v0.4.0