SAVRN
Search Contact SAVRN

Open-weight model · Text classification

laya-pt-es-typed

by Telepatia telepatia-ai/laya-pt-es-typed

laya-pt-es-typed is an open-weight model for text classification from Telepatia, released under Apache License 2.0. It has 322M parameters. At 16-bit it needs about 0.8 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

This checkpoint fine-tunes convaiinnovations/laya-multilingual for native choice, score, and noul decisions in Portuguese and Spanish. It keeps the original 322M-parameter mmBERT architecture. It adds no inference component and does not generate text.

Parameters322M
Context—
Weights643.8 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Runs On

What it takes to serve laya-pt-es-typed (322M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.6 GB 0.8 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.3 GB 0.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.2 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 1, 2026.

laya-pt-es-typed on every accelerator the SAVRN Index prices, at every precision

Model Card

By Telepatia, published under apache-2.0, revision 0f23acdf2c43.

This checkpoint fine-tunes convaiinnovations/laya-multilingual for native choice, score, and noul decisions in Portuguese and Spanish. It keeps the original 322M-parameter mmBERT architecture. It adds no inference component and does not generate text. It returns typed answers and probabilities in one forward pass. This is a text model. Inference takes a textual state plus typed questions. The second training stage used text decisions derived from public speech corpora, but this checkpoint does not accept audio by itself. The separate audio projector is not included. The official Laya SDK defines these primitives as follows: - choice: selects one key from a runtime-defined criteria object.…

Read Telepatia's full model card

Laya PT/ES Typed Decisions

This checkpoint fine-tunes convaiinnovations/laya-multilingual for native choice, score, and noul decisions in Portuguese and Spanish.

It keeps the original 322M-parameter mmBERT architecture. It adds no inference component and does not generate text. It returns typed answers and probabilities in one forward pass.

Important scope

This is a text model. Inference takes a textual state plus typed questions. The second training stage used text decisions derived from public speech corpora, but this checkpoint does not accept audio by itself. The separate audio projector is not included.

Use

pip install laya
import laya

agent = laya.load("telepatia-ai/laya-pt-es-typed")

state = {
    "subject": "Cobrança duplicada",
    "body": "A fatura 4411 foi cobrada duas vezes. Preciso do estorno hoje.",
}
questions = {
    "department": {
        "type": "choice",
        "instructions": "Qual equipe deve atender este caso?",
        "criteria": {
            "billing": "faturas, pagamentos e estornos",
            "technical": "falhas e indisponibilidade",
            "other": "outros assuntos",
        },
    },
    "urgency": {
        "type": "score",
        "instructions": "Qual é a urgência do caso?",
        "criteria": ["baixa", "média", "alta"],
    },
    "refund_requested": {
        "type": "noul",
        "instructions": "O cliente pediu explicitamente um estorno?",
    },
}

result = agent.predict(state, questions)
print(result["answers"])

The official Laya SDK defines these primitives as follows:

  • choice: selects one key from a runtime-defined criteria object.
  • score: returns an ordinal score over a runtime-defined criteria list.
  • noul: returns a probability from 0 to 1 for a yes-or-no statement.

Use Portuguese or Spanish instructions and option descriptions that match the input language.

Held-out benchmark

The comparison uses 384 held-out decisions from the translated LocalLLaMA/typed-decisions test split. It contains 64 examples for each language and task cell. A separate set of 1,160 validation decisions fits temperature scaling by question type and option count.

Every model answered the same questions. The TypeSafe latency includes network time. Local latency used 48 warm batch-size-one calls on a Modal A100-40GB worker.

Model Accuracy PT ES Choice Score Noul Brier ECE Score MAE p50 / p95
Laya PT/ES 0.8073 0.8021 0.8125 0.7969 0.7891 0.8359 0.1111 0.0271 0.2327 18.25 / 18.69 ms
Laya multilingual 0.3620 0.3646 0.3594 0.2891 0.2734 0.5234 0.2709 0.0820 0.7670 18.67 / 19.23 ms
TypeSafe Jev 0.7396 0.7708 0.7083 0.6484 0.7578 0.8125 0.1413 0.0577 0.3681 358.88 / 439.78 ms

The full metrics, per-language and per-task cells, sample IDs, latency protocol, and comparison gates are in evaluation_results.json.

Training

Training used the official Laya RLCD recipe with full-model updates. It did not use LoRA.

Stage 1 trained one trajectory for 4, 8, and 16 epochs on Portuguese and Spanish typed decisions. Validation selected the 8-epoch checkpoint. The source dataset was LocalLLaMA/typed-decisions, translated with Qwen/Qwen3-4B-Instruct-2507. The pipeline preserved task types, criteria, labels, soft targets, case IDs, and split groups.

Stage 2 continued the selected checkpoint for two epochs on 2,099 hard PT/ES examples. The set contained 827 choice, 998 score, and 274 noul examples. These text examples came from public Common Voice 22.0 and Multilingual LibriSpeech audio with generated decisions. Consensus validation filtered generated labels before training.

The objective combined RLCD and cross-entropy. RLCD used four perturbations, log plus spherical reward, and a linear noise schedule from 0.4 to 0.1.

The complete stage results are in stage1_training_result.json and stage2_training_result.json. The selected checkpoint metadata is in training.json and rl_agent_config.json.

Data and license

  • Base checkpoint: convaiinnovations/laya-multilingual, Apache-2.0.
  • Typed decisions: LocalLLaMA/typed-decisions, revision ea9306458d6e9563628369a3d1e72e362fb381d2, Apache-2.0.
  • Translation model: Qwen/Qwen3-4B-Instruct-2507, revision cdbee75f17c01a7cc42f958dc650907174af0554, Apache-2.0.
  • Common Voice 22.0 source: fsicoli/common_voice_22_0, CC0-1.0.
  • Multilingual LibriSpeech source: facebook/multilingual_librispeech, CC-BY-4.0.
  • Decision generator: Qwen/Qwen3-30B-A3B-Instruct-2507, revision 0d7cf23991f47feeb3a57ecb4c9cee8ea4a17bfe, Apache-2.0.

This repository does not redistribute source dataset rows or audio. See ATTRIBUTIONS.md and provenance.json.

Limitations

  • This checkpoint accepts text, not raw audio.
  • Benchmark inputs cover four synthetic business workflows. They do not prove performance on all domains.
  • score remains the weakest calibrated primitive on the audio-derived validation set.
  • High-cardinality choices share a fixed token budget. Use a larger head_max_len or a hierarchical choice for many options.
  • The audio grounding behavior gate was pending when this text checkpoint was trained. Do not treat the audio-derived continuation as evidence of audio understanding.
  • Refit calibration on a held-out target-domain set before using probabilities as risk scores.

Files

  • model.safetensors: complete fine-tuned weights.
  • encoder/ and tokenizer/: pinned model configuration and tokenizer.
  • rl_agent_config.json: Laya runtime configuration and calibration by task/cardinality.
  • training.json: selected stage-2 configuration, history, and validation results.
  • stage1_training_result.json: 4/8/16 epoch trajectory and held-out evaluation.
  • stage2_training_result.json: hard-example continuation and validation results.
  • evaluation_results.json: full three-model benchmark artifact.
  • typed_dataset_manifest.json: source and translation revisions.
  • audio_dataset_metadata.json, audio_dataset_gates.json, and audio_dataset_resplit_metadata.json: derived-data provenance and quality gates.
  • provenance.json: compact release provenance.
  • SHA256SUMS: integrity manifest.

Identity and Version

Repository
telepatia-ai/laya-pt-es-typed
Publisher
Telepatia
Task
Text classification
Modality
Text
Library
laya
Parameters
322M parameters
Languages
pt, es
Revision
0f23acdf2c4325107ebb20e0b12886b39da41734
First published
2026-09-22
Last updated
2026-09-25

Files and Weights

19 files, 678.3 MB in total. The weights are 1 file totalling 643.8 MB in safetensors.

Weights1 file · 643.8 MB
Configuration12 files · 84.8 KB
Tokenizer2 files · 34.4 MB
Documentation2 files · 8.4 KB
Other1 file · 1.5 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights643.8 MB a84266bbb525
audio_dataset_gates.jsonConfiguration2.7 KB —
audio_dataset_metadata.jsonConfiguration5.4 KB —
audio_dataset_resplit_metadata.jsonConfiguration385 B —
encoder/config.jsonConfiguration1.9 KB —
evaluation_results.jsonConfiguration37.8 KB —
provenance.jsonConfiguration2.0 KB —
publish.pyConfiguration4.3 KB —
rl_agent_config.jsonConfiguration796 B —
stage1_training_result.jsonConfiguration17.1 KB —
stage2_training_result.jsonConfiguration5.8 KB —
training.jsonConfiguration6.1 KB —
typed_dataset_manifest.jsonConfiguration436 B —
ATTRIBUTIONS.mdDocumentation1.1 KB —
README.mdDocumentation7.3 KB —
SHA256SUMSOther1.5 KB —
.gitattributesRepository1.6 KB —
tokenizer/tokenizer.jsonTokenizer34.4 MB 609d8f4c067c
tokenizer/tokenizer_config.jsonTokenizer666 B —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
643.8 MB
Download from Telepatia

Released by Telepatia through its official repository on Hugging Face. Read the license.

Built From

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
Fixed Portuguese and Spanish held-out sample Configuration 64 examples per language and task, seed 42Task Typed decisions (choice, score, noul)Metric AccuracyComparison conditions not established 0.807292 telepatia-ai
Publisher reported
Evaluated revision not stated —
Fixed Portuguese and Spanish held-out sample Configuration 64 examples per language and task, seed 42Task Typed decisions (choice, score, noul)Metric Brier scoreComparison conditions not established 0.111057 telepatia-ai
Publisher reported
Evaluated revision not stated —

Memory Requirements

PrecisionWeights in memory
As published643.8 MB
16-bit0.6 GB
8-bit0.3 GB
4-bit0.2 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About laya-pt-es-typed

How much GPU memory does laya-pt-es-typed need?

About 0.8 GB at 16-bit and 0.2 GB at 4-bit: the weights (322M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run laya-pt-es-typed on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use laya-pt-es-typed commercially?

Yes. laya-pt-es-typed is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Text classification

laya-multilingual

Convai Innovations

Non-autoregressive System 1 decision model covering 100+ languages. Give it a state (text, email, ticket, or JSON) and typed questions; it returns typed answers with probabilities in a single forward pass. No text generation, so nothing to parse and nothing to hallucinate. Part of the Laya family — use this checkpoint for anything that is not English. Since laya 0.3.13 the default Router() keeps both english and this checkpoint resident, so a mixed workload no longer swaps checkpoints on every language change. For a server, load them up front so even the first request of each language is just a forward pass: router.attach("multilingual", agent) registers an Agent you already built, so a…

Open weights apache-2.0 322M parameters transformers

Model · Text classification

laya-coreai

Andrey Babikov

Laya typed decisions on Apple Silicon, running on the Core AI runtime — the successor to Core ML. This is a.aimodel asset exported from via Apple's coreai-torch bridge. It outputs choice / score / noul probabilities (and RL action logits) with zero generated tokens and no PyTorch, Core ML, Transformers, or cloud API at inference time. macOS 27+ (Core AI runtime), Python 3.10+. Validated on M3 Max / macOS 27.2. Validate the download end-to-end (all three specializations, timing, contract checks): Snake demo with the model (terminal game, reuses the laya-coreml UI + safety shield; automatically uses the B3 asset when present for ~2x game throughput): ~3× faster per pass than the fastest Core…

Open weights apache-2.0 322M parameters coreai

Model · Text classification

laya-multilingual

Scott Lamkin

Non-autoregressive System 1 decision model covering 100+ languages. Give it a state (text, email, ticket, or JSON) and typed questions; it returns typed answers with probabilities in a single forward pass. No text generation, so nothing to parse and nothing to hallucinate. Part of the Laya family — use this checkpoint for anything that is not English. The default Router() keeps both english and this checkpoint resident, so a mixed workload no longer swaps checkpoints on every language change. For a server, load them up front so even the first request of each language is just a forward pass: router.attach("multilingual", agent) registers an Agent you already built, so a process that loaded…

Open weights apache-2.0 322M parameters transformers

Classifies GitHub issues written in any language as bug, feature, question or docs. A fine-tune of Laya multilingual (mmBERT-base) used by the laya-triage GitHub Action for non-English issues, next to the English model laya-triage-en. The same 500 NLBSE'23 validation issues, machine-translated with NLLB-200 into 13 languages. Accuracy (±3 points per language): laya-triage and Jev are within noise of each other across languages; both are far ahead of the untuned base. Translations can flatter a model trained on translations, so we also checked real issues: on 367 non-English issues opened in 2026 (never seen, written by people, not translated) accuracy went from 47.1% to 65.7%. Use it…

Open weights apache-2.0 322M parameters

Model · Text classification

rex

NguyenThanhDat

System 1 calibrated decision model for zero-latency threat triage

Open weights apache-2.0 322M parameters

Model · Text classification

sentinel-laya-multilingual

Sep Lol

Fine-tune of convaiinnovations/laya-multilingual (Apache-2.0) for prompt-injection and jailbreak detection. The base model is mmBERT, vocab 256k. Code: 3p3r/sentinel-laya. The English checkpoint is a different model: 3p3r/sentinel-laya. This revision starts from the inject-label checkpoint and adds a round on 3p3r/short-role-attacks, a synthetic English and German set of short role swaps and short orders, each with a benign twin. The five evaluation sets below were not part of training. Noul temperature is 2.2534, kept from the first revision. Threshold is 0.5. Positive class: jailbreak or prompt injection. Metric: Binary F1. Same prompts as the English card, one RTX 3090, batch size 64.…

Open weights apache-2.0 322M parameters