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.
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
- [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!
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
- Installation
- Quick Start
- Pretrained Weights
- Usage
- Datasets
- 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:
waveformof shape[B, M, C, T], withMone-minute slots,Cphysical channels, andT = 7500samples per slot (60 s at 125 Hz), plus a booleanwaveform_channel_mask([B, M, C]) marking observed channel-minutes and int64waveform_modality_ids([B, C]) indexingopensla.WAVEFORM_MODALITIES[domain]. - Numeric: observed events as parallel
[B, E]tensors (values,rel_time_minin 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.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| README.md | Documentation | 6.1 KB | — |
| .gitattributes | Repository | 1.5 KB | — |
License and Download
- License
- mit
- Access
- Open weights, no gate
Released by Health Intelligence Lab @ UCLA through its official repository on Hugging Face. Read the license.
Built From
- Derived from Qwen/Qwen3.5-2B
- Described by arXiv:2610.08244
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
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…
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…
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).
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.