Skip to main content

URML

A small, opinionated, human-readable language for describing robot intent.

urml.dev


urml-model

Dataset synthesis pipeline and training recipe for a URML-native small model (RFC-0666).

The idea: URML already owns a perfect, free, machine-checkable reward signal. A candidate program is correct exactly when urml_validator.validate accepts it, and when it is wrong the validator says why in ~150 namespaced error codes. This package turns that oracle plus the repository's gold assets (conformance fixtures, the few-shot library, rejected bridge emissions) into a training dataset for a small open-weights model that emits first-pass-valid URML offline.

What this package does not do: train a model, download weights, or call a specific LLM vendor. Training is operator-action, documented in docs/training-recipe.md. No model artifact ever lives in this repository.

Quick start

# Hermetic: mine the repo's gold assets into a dataset (no network, no LLM)
urml-model synthesize --out data/urml-sft.jsonl

# Write a chat-format SFT file (system prompt = the bridge's real prompt)
urml-model export --in data/urml-sft.jsonl --out data/sft-chatml.jsonl --fmt chatml

# After training: score the model with the conformance scorer (RFC-0021 metrics)
urml-model eval --utterances-root conformance/llm-bridge/fixtures \
  --profile home --backend ollama --model my-urml-3b \
  --out conformance/llm-bridge/results/$(date +%F)/home-my-urml-3b.yaml

Dataset shape

One JSONL record per example: nl, program, manifest_ref, profile, language, provenance, validator_verdict, optional envelope_ref and repair. Records rejected by the validator are only allowed as rejection_repair examples (failed emission + error codes + the accepted program as the repair target). The full schema is normative in RFC-0666.

Diversity at scale

The CLI's synthesize path uses the deterministic template back-translator so CI stays hermetic. Real phrasing diversity comes from LLMBackTranslator, a library call that takes any LLMProvider (Anthropic, OpenAI, Ollama, llama.cpp — the bridge's own adapters). Every candidate it produces still goes through the oracle before it enters the dataset.

Metadata

Release files for urml-model 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urml-model 0.5.0
File Size Uploaded Provenance Actions
urml_model-0.5.0.tar.gz 20.3 kB Without provenance Details for urml_model-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urml-model 0.5.0
File Interpreter ABI Platform Actions
urml_model-0.5.0-py3-none-any.whl Python 3 none any Details for urml_model-0.5.0-py3-none-any.whl

Total release size: 38.2 kB

Release files / urml_model-0.5.0.tar.gz

Download URL urml_model-0.5.0.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
43f1f521f6b91374bd04a2f827488d7a51552dfcf1c9613a6b241b1dc859670a
BLAKE2b-256 checksum
How to use checksums
5b65c9552179261f01a81b43a03d20ae9df919c860c0f2afbb9354ada1845a64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / urml_model-0.5.0-py3-none-any.whl

Download URL urml_model-0.5.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fcfe0b894619cff8e00b7a4b8f9ea99e6a700ab7a92dd37d5503a6d8823105b
BLAKE2b-256 checksum
How to use checksums
c70bdc0839eff4236d3e32c1864e8816bfaba2d25d4700dfcc1bd8252903f33e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for urml-model 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page