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

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

Built distribution (wheel)

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

Total release size: 38.2 kB

Release files / urml_model-0.5.2.tar.gz

Download URL urml_model-0.5.2.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
104b3a7d57536d473b335254d28c51105e71448d573d2c2f91f6ce5354d62f54
BLAKE2b-256 checksum
How to use checksums
d8b659bd865215717bd499ed4c121e9afd4a2c03cf9074c854e27b47d85949f4
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.2-py3-none-any.whl

Download URL urml_model-0.5.2-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e711fcf633f6fc2be74ebc8cd5695f29b45d6221b2974b793fac96c8ddff051
BLAKE2b-256 checksum
How to use checksums
942ac4d80236bed3ffe3f0302dd6975b6946dac9993200daec3f467478799253
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.2

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