PolyKode translates bidirectionally across SAS, R, and Python. Validated by execution parity, not just syntax. Built for Pharma, BFSI, and Manufacturing, where the translation has to run the same.
Community
Apache 2.0
Execution
parity
SAS · R ·
Python

PROBLEM
In Pharma, BFSI, and Manufacturing, translated code has to run the same.
Generic models translate strings. They do not prove the output matches the original numbers.
Clinical and actuarial work needs SAS-exact numbers, including the RNG stream. Compiling is not enough.
Regulated teams need provenance and a divergence record. Working code alone does not pass review.
THE PRODUCT
Generic code models translate syntax. PolyKode is fine-tuned on real, license-tracked SAS, R, and Python pairs from Pharma, BFSI, and Manufacturing. Then it is rewarded on whether the output matches. Every translation ships with a parity check.
SAS to R, SAS to Python, R to Python. One model, six pairs. Trained on matched implementations from regulated code, not scraped from the open web.
The reward function scores translations on row, column, value, formatting, and language-behavior match. The MT19937 stream is reproduced so SAS, R, and Python agree numerically.
Each output ships with a divergence registry, provenance for training data, and a compliance-ready record. The artifact regulated teams need, not just working code.
Air-gapped ZeroBoxx on-prem, sovereign cloud, private Hugging Face endpoint, or bring your own inference. No code leaves your environment.
TWO EDITIONS, ONE ENGINE
Community is the adoption surface. A full Qwen3-32B checkpoint under Apache 2.0. Enterprise adds the parity harness, divergence registry, certified runtime, and the regulated-delivery commitments that make it viable for production.
Community
FreeApache 2.0
For developers, students, and evaluators. Full model weights, quickstart, and a public benchmark subset.
Enterprise
Contactper environment
For regulated production. Clinical, BFSI, manufacturing. Certified runtime, full parity harness, audit-grade delivery.
Editions differ by parity coverage, certification, SLA, compliance, and deployment. Not by whether the engineering core is the same.See the full matrix
THE MODEL FAMILY
Euclid is ProCogia's own model identity. Community ships the Qwen3-32B baseline. Enterprise runs Euclid 2.8.1 on private H200 endpoints, with a Kimi K2 upgrade path once a dense-model control run proves lift.
Full model familyQwen3-32B checkpoint. Apache 2.0. Public on Hugging Face.
Community
30B params. Custom parity reward. SAS-exact numerical contract. Served on a private H200 endpoint.
Enterprise · shipping
Attention-only LoRA on real K2 architecture. Routed experts frozen. Dense 32B control run first.
Enterprise · in eval
120B target, coupled to BUZZ HPC sovereign compute. Not shipping today.
Roadmap
Community checkpoint
huggingface.co/ProCogia/PolyKode-CommunityQwen3-32B baseline. Apache 2.0. Pull the weights and evaluate the translation yourself.
Tuned for the constructs generic models fumble. PROC steps, macros, CDISC domains, tidyverse, statsmodels.
ZeroBoxx on-prem, sovereign cloud, or a private Hugging Face endpoint. Regulated code stays inside your perimeter.
Includes ZeroBoxx
Point the VS Code extension at any OpenAI-compatible runtime. Hugging Face, vLLM, Ollama, or an internal gateway.
See a translation
Drag the handle to reveal the same PROC MIXED program in SAS and in Python.
Python ← drag → SAS
THE PARITY HARNESS
In clinical, actuarial, and safety-critical work, translated code has to reproduce the original numbers. Bit for bit where possible. Within a documented tolerance everywhere else. The parity harness is the difference between a demo and a submission-grade artifact.
Syntax, imports, undefined references, banned constructs. Cheap, first.
Run the original on licensed SAS 9.4 or Viya and the translation on Python or R against shared inputs.
Rows, columns, values, and formatting compared with tolerance-aware checks. SAS-exact numerical semantics preserved.
Correct-but-different SAS, R, and Python behaviors get annotated and kept. Not discarded as failed examples.
Auto-fixes require detection, idempotence, and before/after evidence. Infrastructure failures are requeued, not silently swallowed.
parity report
clinical_lmm_042.sas
SHA-256 · signed · audit-ready
THE VS CODE EXTENSION
The PolyKode assistant lives inside VS Code as a chat-based agent with tool use. Point it at any model endpoint. The public HF demo, your own private endpoint, or a ZeroBoxx cluster. It runs entirely within your environment.
Publisher PolyKodebyProCogia · Extension polykode-assistant · v0.1.0
# translated by PolyKode · parity ok
import statsmodels.formula.api as smf
fit = smf.mixedlm(
"response ~ treatment",
trial,
groups=trial["subject"],
).fit()
print(fit.summary())parity OK · Δmax 1.4e-10
VALIDATED RESULTS
These are corpus and harness figures. Not projections.
26,269
Deduplicated training pairs
198
SAS constructs covered
98.2%
Rows reachable from more than one source language
55 / 55
Stratified Viya reinforcement runs passed
3-way
SAS, R, and Python execution-verified oracle
SAS-exact
MT19937 stream reproduced in R and Python
Apache 2.0
Community baseline license
6 pairs
Bidirectional language coverage
INDUSTRIES
Three verticals where SAS, R, and Python already run side by side. And where translated code has to hold up under audit.
SDTM and ADaM programming, PROC MIXED, MMRM, survival analysis. Translation lets biostats teams move models between SAS-legacy studies and R or Python first submissions without rewriting.
Actuarial models, PD and LGD, IFRS 9, stress testing. Move legacy SAS actuarial code into modern Python pipelines while preserving the exact numerical answers regulators expect.
SPC, DoE, MSA, reliability. Bring long-running SAS and JMP quality models into R or Python with parity evidence.
TRUST
LLM advisory led by Dr. Xiaoxiao Li (UBC, TEA Lab) covers Euclid's training and evaluation methodology.
The Visual Studio Marketplace publisher is PolyKodebyProCogia. Permanent and company-owned. Not tied to a single product line.
Training intake separates permissive, copyleft, unlicensed, SAS-copyrighted, and CC-BY-SA material. Public availability is never treated as commercial clearance.
Community launch is coordinated with posit::conf outreach. Euclid as the open SAS, R, and Python model. PolyKode as the community-built agent and parity layer.
DEPLOYMENT
Enterprise hardware is ZeroBoxx. Community can start on Hugging Face or a runtime you already own.
ZeroBoxx
Air-gapped appliance. DGX Spark or H200 class. Ships preloaded with Euclid, the parity harness, and sample corpora.
Air-gapped
ZeroBoxx
Sovereign cloud tenancy on AWS or Azure. Post-subsidy pricing anchored to real GPU economics. No renewal cliff.
Sovereign
Also runs on
Private H200 inference endpoint. CPU-only demo Space for a hands-on preview without model spend.
Community + Enterprise
Point the VS Code extension at any OpenAI-compatible endpoint. Your vLLM cluster, Ollama, or an internal gateway.
Community