1. Clone repository:
```shell
git clone https://github.com/SalesforceAIResearch/uni2ts.git
cd uni2ts
```

2) Create virtual environment:
```shell
virtualenv venv
. venv/bin/activate
```

3) Build from source:
```shell
pip install -e '.[notebook]'
```

4) Create a `.env` file:
```shell
touch .env
```

We also support installation via PyPI.
```shell
pip install uni2ts
```

One can generate synthetic data with
```
python3 generate_ar.py
```

To pretrain, run
```
python3 -m cli.train -cp conf/pretrain run_name=mixed model=moirai_base data=mixed
```