torch transformers streamlit dataclasses typing plotly scipy accelerate