Run this model with HF Jobs
Run slprl/StresSLM on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/slprl/StresSLM. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/slprl/StresSLM on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use slprl/StresSLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use slprl/StresSLM with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("slprl/StresSLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
StresSLM
StresSLM is an audio-text-to-text model fine-tuned with LoRA adapters on top of the Qwen/Qwen2-Audio-7B-Instruct base model. It is designed to tackle Sentence Stress Detection (SSD) and Sentence Stress Reasoning (SSR) tasks on the StressTest benchmark.
StresSLM predicts stress patterns and reasoning based on spoken audio.
For more information, see our paper and code:
π» Code | π€ StressTest Dataset | π€ Stress-17k Dataset
π StressTest Paper | π Project Page
Usage
This model can be loaded using the HuggingFace Transformers library:
from transformers import AutoProcessor, Qwen2AudioForConditionalGeneration
from peft import PeftModel, PeftConfig
# Load processor
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-Audio-7B-Instruct")
# Load LoRA config and base model
peft_config = PeftConfig.from_pretrained("slprl/StresSLM")
base_model = Qwen2AudioForConditionalGeneration.from_pretrained(peft_config.base_model_name_or_path)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "slprl/StresSLM")
Tasks
- Sentence Stress Detection (SSD): Identify stressed words in an utterance.
- Sentence Stress Reasoning (SSR): Reason about the speakerβs intention using stress patterns.
For evaluation scripts and benchmarks, refer to the StressTest GitHub repository.
π Citation
If you use this model, please cite:
@misc{yosha2025stresstest,
title={StressTest: Can YOUR Speech LM Handle the Stress?},
author={Iddo Yosha and Gallil Maimon and Yossi Adi},
year={2025},
eprint={2505.22765},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2505.22765},
}
Model tree for slprl/StresSLM
Base model
Qwen/Qwen2-Audio-7B-Instruct