Repository navigation
v0.4.0
Added
- Laya as a model:
TypeSafeClient(model="laya"),--model laya(alsolaya:multilingual,
laya:typed-decisionsorlaya:<hub repo or directory>), withpip 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, soask,run,serve,benchandEscalationtake it. JuL's readings,autotuneand
packdo 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.jsonanswers 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-overlapremoves them).
--method/--features(orauto) compare the zero-shot readings and autotune heads of each model, one
row each. Tables in the site's amber on a terminal,--jsonor-O filefor 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
(alsoopenai:,mistral:,voyage:, orhttp(s)://host/v1#modelfor 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.Escalationchains deciders (a local client, thenSystemOneHTTPfor
any/v1/systemoneserver: Jev, Ollama's Nimble, Kev, anotherjul 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.8does 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, withCLOUDFLARE_ACCOUNT_IDandCLOUDFLARE_API_TOKEN. jul-decision-wemm-4bis the default model (aliasaccurate):wemm-4b-4bitplus 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 aswemm-4b-4bituntil the adapters are measured in
4-bit.wemm-4b-4bitstays, vectors only.- LoRA cross models read a Choice listwise when their
cross.jsonhas achoiceentry (text, question and
every option in one pass), mixed with the vector reading (mix). - A preset's
crossentry 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 bycontrastive.json(layer, pooling, rendering, Noul texts, prefix), on MLX, torch or onnx,
decoders and encoders.jul models add <name> --repo <backbone> --train-heads rows.jsonltrains them;
autotunetrains 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-8Bconverts 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