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.1

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.1
File Size Uploaded Provenance Actions
urml_model-0.5.1.tar.gz 20.4 kB Without provenance Details for urml_model-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 38.2 kB

Release files / urml_model-0.5.1.tar.gz

Download URL urml_model-0.5.1.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
882c31aa5556f845947edf44bb4f6904fc53d63f5c9305f8ecb9fab888b7481b
BLAKE2b-256 checksum
How to use checksums
4d3cc417e6ae340f7b7f5165b5d4664a5ae6ff37697a5976e451404145fb50e0
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.1-py3-none-any.whl

Download URL urml_model-0.5.1-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6661a3dae987a9182a440e5da3097503be66b44c621d158617682903a413738e
BLAKE2b-256 checksum
How to use checksums
654d12b5a1761b2934cedae93d3616747f9d6b4d6e452c1c52c3c643e1865296
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.1

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.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files No provenance

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