Skip to page content
SAVRN
Search Plan a project

Open-weight model · Question answering

OpenSLA

by Health Intelligence Lab @ UCLA yang-ai-lab/OpenSLA

OpenSLA is an open-weight model for question answering from Health Intelligence Lab @ UCLA, released under MIT License. Its published files total 7.7 KB.

[2026-10-06] Our paper is available on arXiv. - [2026-10-06] Code released on GitHub, and model released on HuggingFace. - [2026-10-06] Project website is live! OpenSLA is a new family of models - Sensor-Langauge-Action (SLA) models.

Parameters—
Context—
Weights7.7 KB
Licensemit
AccessOpen weights
Monthly Downloads—

Model Card

By Health Intelligence Lab @ UCLA, published under mit, revision 507b1ab2d1a5.

[2026-10-06] Our paper is available on arXiv. - [2026-10-06] Code released on GitHub, and model released on HuggingFace. - [2026-10-06] Project website is live! OpenSLA is a new family of models - Sensor-Langauge-Action (SLA) models. It takes a multi-channel sensor history together with language context and produces a structured action prediction and a sensor-state caption. We release prompt as a flat token prefix. the signal into local, per-channel, and global memory tokens. - Python >= 3.10 - PyTorch >= 2.5 - Transformers >= 5.8.1 (for the Qwen3.5 backbone) - PEFT >= 0.12 demo.ipynb loads a checkpoint, builds an input batch, and runs prediction. Download the files from this repository and…

Read Health Intelligence Lab @ UCLA's full model card

Sensor-Language-Action Models

News

Introduction

OpenSLA is a new family of models - Sensor-Langauge-Action (SLA) models. It takes a multi-channel sensor history together with language context and produces a structured action prediction and a sensor-state caption. We release two variants:

  • OpenSLA-B: sensor tokens are projected and prepended to the language prompt as a flat token prefix.
  • OpenSLA-H: builds on B with a hierarchical sensor encoder that compresses the signal into local, per-channel, and global memory tokens.

Table of Contents

  1. Installation
  2. Quick Start
  3. Pretrained Weights
  4. Usage
  5. Datasets
  6. Citation

Installation

git clone https://github.com/yang-ai-lab/Sensor-Language-Action-Model.git
cd Sensor-Language-Action-Model
pip install -r requirements.txt

Dependencies

  • Python >= 3.10
  • PyTorch >= 2.5
  • Transformers >= 5.8.1 (for the Qwen3.5 backbone)
  • PEFT >= 0.12

Quick Start

demo.ipynb loads a checkpoint, builds an input batch, and runs prediction. The same flow in Python:

import torch
from opensla import OpenSLA, SensorBatch

model = OpenSLA.from_checkpoint(
    "pretrained_weights/opensla_h_clinical.pt", domain="clinical",
    dino_checkpoint="pretrained_weights/waveform_encoder.ckpt",
    numeric_config="pretrained_weights/numeric_config.json",
    action_group_types="pretrained_weights/action_group_types.json",
)

batch = torch.load("data/preprocessed_batch.pt", weights_only=True)
predictions = model.predict(batch["input_text"], SensorBatch(**batch["sensors"]))

Pretrained Weights

Model Domain Files
OpenSLA-H clinical opensla_h_clinical.pt, waveform_encoder.ckpt, numeric_config.json, action_group_types.json

Download the files from this repository and put them under pretrained_weights/ in the code repository.

Usage

Input Format

The model takes preprocessed signals as a .pt dictionary with domain, input_text (one text context per sample), and sensors. The sensors are:

  • Waveform: waveform of shape [B, M, C, T], with M one-minute slots, C physical channels, and T = 7500 samples per slot (60 s at 125 Hz), plus a boolean waveform_channel_mask ([B, M, C]) marking observed channel-minutes and int64 waveform_modality_ids ([B, C]) indexing opensla.WAVEFORM_MODALITIES[domain].
  • Numeric: observed events as parallel [B, E] tensors (values, rel_time_min in minutes before the decision, measure_ids, source_ids, event_mask), plus per-measure summary features (summary_features, summary_measure_ids).

Command line

Point configs/template.json at your weights and input batch, then:

opensla --config configs/template.json --dry-run   # print the resolved config
opensla --config configs/template.json             # write outputs/predictions.jsonl

On Slurm:

sbatch --account=YOUR_ACCOUNT --partition=YOUR_PARTITION scripts/run_template.sbatch --config configs/template.json

Datasets

The models are trained and evaluated on six datasets from three healthcare settings, with an additional MIMIC-IV held out as an external clinical cohort. All of them are publicly available and can be accessed through the following links.

Dataset Domain Sensors Source
MC-MED Clinical ECG, plethysmography, respiration, arterial pressure; vital signs, labs, ventilator and other charted measurements PhysioNet
MIMIC-III Clinical same as MC-MED PhysioNet
MIMIC-IV Clinical, external evaluation only waveform-linked subset PhysioNet, waveforms
MOVER Operating room ECG, plethysmography, arterial/central venous pressure, capnography, airway pressure, EEG; vital signs, hemodynamics, ventilation gases, labs UCI MOVER
VitalDB Operating room same as MOVER vitaldb.net, PhysioNet
MetaboNet CGM glucose trace; basal insulin delivery metabo-net.org
PEDAP CGM glucose trace; basal insulin delivery Jaeb Center

Citation

If you use this code or models in your research, please cite our paper:

@misc{xu2026opensla,
  title  = {Sensor-Language-Action Models},
  author = {Xu, Yuekai and Shuai, Zitao and Yang, Yuzhe},
  journal = {arXiv preprint},
  year = {2026}
}

Acknowledgments

The waveform encoder adapts from the sensor encoder from OSF (MIT License).

Identity and Version

Repository
yang-ai-lab/OpenSLA
Publisher
Health Intelligence Lab @ UCLA
Task
Question answering
Modality
Text
Library
pytorch
Parameters
Not stated by the source
Languages
en
Revision
507b1ab2d1a564d7c2b9272bed7b2dc4605e6c50
First published
2026-10-03
Last updated
2026-10-08

Files and Weights

2 files, 7.7 KB in total.

Documentation1 file · 6.1 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
README.mdDocumentation6.1 KB —
.gitattributesRepository1.5 KB —

License and Download

License
mit
Access
Open weights, no gate
Download from Health Intelligence Lab @ UCLA

Released by Health Intelligence Lab @ UCLA through its official repository on Hugging Face. Read the license.

Built From

Questions About OpenSLA

Can I use OpenSLA commercially?

Yes. OpenSLA is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

Model · Question answering

splinter-base

Tel Aviv University

Splinter-base is the pretrained model discussed in the paper Few-Shot Question Answering by Pretraining Span Selection (at ACL 2021). Its original repository can be found here. The model is case-sensitive. Note: This model doesn't contain the pretrained weights for the QASS layer (see paper for details), and therefore the QASS layer is randomly initialized upon loading it. For the model with those weights, see tau/splinter-base-qass. Splinter is a model that is pretrained in a self-supervised fashion for few-shot question answering. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an…

Open weights apache-2.0 512 tokens transformers

This model can be used for the task of question answering. The model should not be used to intentionally create hostile or alienating environments for people. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. The model creators note in the associated paper: The model creators note in the associated paper: The model…

Open weights 512 tokens transformers

Model · Question answering

distilbert-onnx

Philipp Schmid

This model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. This model reaches a F1 score of 87.1 on the dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).

Open weights apache-2.0 512 tokens transformers

Model · Question answering

roberta-base-on-cuad

Mohammed Rakib

This model can be used for the task of Question Answering on Legal Documents. Read: An Open Source Contractual Language Understanding Application Using Machine Learning for detailed information on training procedure, dataset preprocessing and evaluation. See CUAD dataset card for more information. See CUAD dataset card for more information. Used V100/P100 from Google Colab Pro Python, Transformers Mohammed Rakib in collaboration with Ezi Ozoani and the Hugging Face team Use the code below to get started with the model.

Open weights mit 514 tokens transformers