Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

vegaml

Latest version: v0.20.2

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: nandakishor
322 Stars
40 Forks
39 Versions
52.1K Downloads
Python Repo language

Scan summary

vegaml was last scanned on 29 Nov 2026 at version 0.20.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 39 versions; the latest 4 were published within 7 days (23–29 Nov 2026).
  • Findings: No rules fired in version 0.20.2.
  • Downloads: 52,064 downloads.

Versions

39 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.20.2 LATEST 29 Nov 2026 No rules fired
0.20.1 26 Nov 2026 No rules fired
0.20.0 25 Nov 2026 No rules fired
0.19.0 23 Nov 2026 Not shown
0.18.0 21 Nov 2026 Not shown

No rules fired in 0.20.2

Findings

Findings for v0.20.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.20.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Cite this work. M, N.; M, A. From Laya to Vega: Open Non-Autoregressive Decision Models with Calibrated Probabilities. Preprints 2026, 2026110781. https://doi.org/10.20944/preprints202611.0781.v1

@article{m2026laya_vega,
  title   = {From Laya to Vega: Open Non-Autoregressive Decision Models with Calibrated Probabilities},
  author  = {M, N. and M, A.},
  journal = {Preprints},
  year    = {2026},
  pages   = {2026110781},
  doi     = {10.20944/preprints202611.0781.v1},
  url     = {https://doi.org/10.20944/preprints202611.0781.v1}
}
pip install vegaml
import vegaml

v = vegaml.load()                                   # the 0.8B reader; vegaml.load("4b") for the 4B
out = v.decide("Third notice. Pay the overdue invoice now.",
               {"team": {"type": "choice", "instructions": "Which team should handle this?",
                         "criteria": {"billing": "payments and invoices", "technical": "product faults"}}})
out["answers"]["team"]["choice"]                    # 'billing', with probs, a conformal set and abstain

Licence at a glance

vegaml is Apache 2.0: the decision engine, heads fitted on your labels, calibration, policies, images, audio, video and serving are free for any use, including commercial.

Continuous learning (a model that keeps learning from the answers your team confirms, or from a teacher model) is not part of this open package. It is available from Embedding Space under a commercial licence, and as the hosted vega Proxy at platform.embedding.in. Write to nandakishor@embedding.in or see embedding.in/licence.

What it does

  • Text, images, audio and video. v.decide(text), v.decide_image(img), v.decide_audio(wav) and v.decide_video(clip) give the same typed answers for each.
  • 73,728 tokens of context. Whole contracts, threads and logs in one read.
  • Abstain and unbound. Every engine answer carries a calibrated probability, a conformal answer set, an abstain flag when it should not commit, and an unbound flag when the input sits far from every answer (likely off-distribution).
  • Physics, not text generation. Each candidate answer is a well in an energy landscape; the input becomes a particle that rolls and settles in one of them. Deterministic, constant cost, nothing generated. See How it works.
  • Any LLM as the reader. vega-U is one 14.3M engine over any frozen reader from 0.8B to 27B, and vegaml.attach() connects your own.
  • Keeps learning, as a commercial add-on. Continuous learning (a model that keeps learning from the answers your team confirms, or from a teacher model) is not part of this open package. It is available from Embedding Space under a commercial licence, and as the hosted vega Proxy at platform.embedding.in. Write to nandakishor@embedding.in or see embedding.in/licence.

Hosted: the vega Proxy runs at platform.embedding.in, with 10,000 decisions a month free. Point your OpenAI or Anthropic client at it and it learns your decisions from your LLM, then answers the routine ones itself in about 50 ms.

What's new

  • 0.20.2. vegaml is the decision engine and nothing else: one package, Apache 2.0. Documentation and packaging updated to match.
How abstain and unbound work

The input becomes a particle in a small decision space where every candidate answer is a well. Where it settles, and how deep, is the answer and its probability.

  • abstain: the engine declines to commit. Its threshold is calibrated so that, among the answers it does give, the error rate stays under the configured risk (10% by default).
  • prediction_set: the conformal set, every option the answer could still be at alpha 0.10. One option means it is sure; two or more means the input really is ambiguous.
  • unbound: the particle settled far from every well, so the input looks unlike anything the engine knows (likely off-distribution). It is reported on every answer, but on its own it is a weak signal: measured, it also fired on 71% of normal banking77 rows, so route on abstain and the set, or on a fitted band.
Benchmarks at a glance

Continuous learning. 14 decision templates (31 questions), each starting from about 600 generated examples, then learning from confirmed answers; scored on 60 held-out rows per template.

day one after 40 confirmed answers after 120
vega with continuous learning 84.7% 91.6% 96.0%
Jev 1.14, confirmed answers written into its criteria 89.5% 91.5% 92.6%

Jev leads on day one (23 of 31 questions); they are level at 40; vega leads at 120 (12 wins, 7 losses, 12 ties). Jev cannot be taught, only prompted, and is a hosted API (364 ms a request from India).

What learning costs. 300 answers learned in 34 s on 8 CPU threads, with no GPU (0.72 s an answer, 6.4 GB of RAM; on a GPU 40 ms and 2 GB). Fine-tuning a 421M encoder on the same 300 rows takes 89 s on a GPU with 9 GB and rewrites every weight.

Learning from a stream, November 2026 (4B reader, held-out rows):

vega Jev 1.14
banking77, 924 held out, after 4,928 rows 87.5%, ECE 0.028, 92.5% routed auto at 91.5% precision 79.4% as shipped (ECE 0.078), 85.7% with examples
typed-decisions, 2,000 decisions, after 1,200 rows 73.7%, ECE 0.031 74.7%, ECE 0.047 (level)

vega-U across readers, one byte-identical engine, 50,676 held-out records: 0.8B 76.5%, 4B 79.1%, 27B 81.1%, ECE 0.010 to 0.021 (full board). New options: on 15 intents never trained on, the engine answers 59.7% zero-shot, which a fitted classifier cannot do at all.

Where it loses. Zero-shot on generic public suites, a large hosted model leads. As a prompt-injection gate on real traffic (ToxicChat, 1.8% attacks), Jev untaught catches 79.1% at 0.3% refused against 73.0% at 0.7% for a fitted head. On familiar labels with enough examples, a plain classifier on the same features matches or beats the engine; the engine's edge is cold start and new options.

Studio, from Embedding Space builds the starting set for your questions and runs it for you.

Typed decisions from a frozen language model and a small physics engine. You give it a state and a question whose answer type is fixed in advance; it returns a value your code can use directly: a choice, a 0 to 1 score, or the probability that a statement is true. Each carries a calibrated probability, a conformal answer set and an explicit abstain flag.

vega-U: one 14.3M engine, any frozen reader, from 0.8B to 27B · 73,728-token context · images · runs on your own hardware. No text is generated anywhere in the path.

The default model. Four frozen readers behind one byte-identical 14.3M engine; the readers marked "attached cold" were never part of the engine's training and scored highest anyway. The full per-source board, the method and the caveats are in docs/vega-u.md; the full per-source board is in the Benchmarks section below.

pip install vegaml

Inference on a single T4, end to end, in the browser.

Releases are cut by tagging vX.Y.Z: CI builds, checks the version matches the tag, and publishes through PyPI Trusted Publishing, so no API token exists in this repository.

Quick start

import vegaml

v = vegaml.load()            # vega-U with the 0.8B reader: the default
# v = vegaml.load("4b")      # vega-U with the Qwen3.5-4B reader, same engine, same interface

out = v.decide(
    {"from": "billing@acme.com", "subject": "Invoice overdue", "body": "Third notice. Pay now."},
    {"team":  {"type": "choice", "instructions": "Which team should handle this?",
               "criteria": {"billing": "payments and invoices",
                            "technical": "product faults",
                            "sales": "new business"}},
     "churn": {"type": "boolean", "instructions": "Is this customer at risk of leaving?",
               "criteria": {"true": "shows intent to cancel", "false": "no such signal"}}})

print(out["answers"]["team"]["choice"])        # 'billing'
print(out["answers"]["team"]["probs"])         # calibrated, sums to 1
print(out["answers"]["churn"]["abstain"])      # False -> the engine stands behind it

Both questions are answered from one read of the state.

Attach your own model, without retraining anything

From 0.12, a base model the checkpoint ships no port for is something you attach yourself, locally, with vegaml.attach. The engine is never retrained, the reader is never fine-tuned, and none of the original training data is needed: the alignment is self-supervised. The checkpoint's own root reader generates the shared-space target for any text, so the port (what a port is: the vega-U section, next) is fitted from running both readers over the same prompts, on text you bring.

The structure of the text file, and yes, the content can be almost anything:

rule what it means
one document per line a line is one text: an email, a ticket, a review, a log, a contract, a chat transcript
plain text only UTF-8, no labels, no headers, no JSON, no markup needed; attach never reads answers here
long documents stay on one line replace newlines inside a document with spaces; blank lines are skipped
any length a sentence to tens of thousands of tokens; include genuinely long lines if you will read long records
content: your domain whatever your model will actually read in production; the languages your readers handle are fine
diverse beats big 1,000 varied lines beat 10,000 near-duplicates; do not repeat one template

"Can it be anything?" Almost: it needs no labels, no questions and no structure, because the alignment is self-supervised, the anchor reader generates the target for every line. The one thing that matters is that the lines look like your production traffic, since the port tunes to the corpus it is fitted on. The shipped starter corpus looks like this:

I was charged 320.00 twice for the booking system all week. Please refund the duplicate and confirm by email, or I will have to cancel the account.
Review: disappointed with the router. It looked fine out of the box but failed with an authentication loop on the second day, and support has not replied this morning.
Incident report, the north plant: at 06:40 the sensor on line 2 reported a blank screen. The shift lead paused the belt, cleared the jam, and production resumed at 07:05. No injuries.
Full incident timeline, for the record. <...a several-thousand-token document, still one line...>
import vegaml

# a synthetic starter corpus ships in the repo; swap in strings from YOUR domain
# (on Colab, fetch it first:
#  !curl -sO https://raw.githubusercontent.com/NandhaKishorM/vegaml/main/examples/sample_attach_texts.txt
#  and open "sample_attach_texts.txt")
texts = [t for t in open("examples/sample_attach_texts.txt") if t.strip()]

report = vegaml.attach(
    "HuggingFaceTB/SmolLM2-1.7B-Instruct",   # any instruction-tuned causal LM
    texts=texts,
    out_dir="vega-u-smollm2-1.7b",
)
print(report["ridge_cosines"])               # how faithfully the port landed

v = vegaml.load("vega-u-smollm2-1.7b")       # same engine, byte for byte, new eyes

Three steps happen under that call:

  1. Anchor pass. The 0.8B root reader reads every text under a fixed set of probe questions; its features ARE the shared-space coordinates, so this writes the targets. The anchor is then freed before your reader loads.
  2. Port fit. Your reader reads the same prompts, its features are standardized, and one linear map per tapped layer is fitted in closed form (ridge, lambda picked on a holdout), then refined for a few hundred steps so the frozen engine decides the same way through the new port as through the anchor. Both steps are label-free.
  3. A servable dir is written: the unchanged engine, the new port, the extraction statistics and a config load() reads like any shipped reader.

What to bring, and what it costs:

  • Texts: 1,000+ strings from your domain is a good corpus, 100 is the floor; diverse beats big. Include long records if you will read long records. More text raises the reported holdout cosines, and well under ~0.8 usually means too little or too narrow.
  • GPU memory: enough for your reader itself in bf16, which is the whole bill. Roughly 2 GB per billion parameters plus a few GB of headroom: a 1B reader attaches on any 8 GB card, a 7B to 9B on 24 GB, a 27B wants 80 GB or more. The anchor (0.8B) and the engine (14.3M) are noise next to that. CPU and Apple silicon (MPS) work too, just slower.
  • Time: dominated by reading the texts through your reader, 6 probe prompts per text. A 7B reader over 1,000 short texts is tens of minutes on a 24 GB GPU; the ridge and the refine are minutes. max_len= caps prompt length if your texts are long and you want a faster first fit.
  • Labels, only for calibration. The attached dir answers immediately but its probabilities are raw until you calibrate on your own labelled examples, which beat any data we could ship because they match your distribution:
import json

# a labelled starter set ships next to the corpus: the question sheet plus
# 600 [state, labels] pairs, generated with ground-truth labels
# (on Colab:
#  !curl -sO https://raw.githubusercontent.com/NandhaKishorM/vegaml/main/examples/sample_calibrate.json)
cal = json.load(open("examples/sample_calibrate.json"))

vegaml.calibrate("vega-u-smollm2-1.7b", cal["examples"], cal["questions"])

And then the attached, calibrated model answers exactly like the Quick start one:

v = vegaml.load("vega-u-smollm2-1.7b")

out = v.decide(
    "The dishwasher stopped working this morning and now shows error E-114. "
    "I already restarted it twice. Send a technician this week or refund me.",
    cal["questions"])                                # or any questions of your own

print(out["answers"]["complaint"]["boolean"])        # p(yes), high here
print(out["answers"]["category"]["choice"])          # 'technical'
print(out["answers"]["category"]["probs"])           # calibrated on YOUR examples, sums to 1
print(out["answers"]["urgency"]["score"])            # 0 to 4
print(out["answers"]["complaint"]["abstain"])        # False -> the engine stands behind it

sample_calibrate.json is also the format to copy for your own data: questions maps each id to its definition, and every example is [state, {question_id: label}], the same shapes Vega.fit takes:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases vegaml

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229