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

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

Built distribution (wheel)

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

Total release size: 42.9 kB

Release files / urml_model-0.5.4.tar.gz

Download URL urml_model-0.5.4.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
23535d2a9b0159017c178ec98e8abe5a734fbc505cbfdce90f9e7788f77daaec
BLAKE2b-256 checksum
How to use checksums
a2f520ca41b3f01388a9fa076c6d26d86c21c9c6033bb52f9048c0f91f90c7d3
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.4-py3-none-any.whl

Download URL urml_model-0.5.4-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
847c148413f900c4793259899fb4c5e9d5c68d15cc3e2127b1fbcd38332b9572
BLAKE2b-256 checksum
How to use checksums
1c703723de30c95bbd5b49bab44dddb87645649721c1150a4651aaf3a6688b16
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.4

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