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

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.3
File Size Uploaded Provenance Actions
urml_model-0.5.3.tar.gz 22.5 kB Without provenance Details for urml_model-0.5.3.tar.gz

Built distribution (wheel)

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

Total release size: 42.9 kB

Release files / urml_model-0.5.3.tar.gz

Download URL urml_model-0.5.3.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
924ccd3289d0839bab4272fb6c91fc2e943bf9f113e41516fdbcdd393452e352
BLAKE2b-256 checksum
How to use checksums
3bdc905bd2754b41fec4cf716d0ed2cf453254a1bfc792e23bbe81c59d951b8c
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.3-py3-none-any.whl

Download URL urml_model-0.5.3-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c29f9620d79c8900136488d6433517cf40859d0d80c9d72b66acf8863a7dffa2
BLAKE2b-256 checksum
How to use checksums
0d511272035af5fe59699586338c96bb0daf32eb5669d120c2fc62dc17310d9a
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.3

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