Instructions to use DecisionIntelligence/HORAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DecisionIntelligence/HORAI with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("DecisionIntelligence/HORAI", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
HORAI
HORAI forecasts time series from a historical window, text context, and images. This repository contains the model weights and code, the Qwen tokenizer files in qwen/, and the InternVL vision encoder code and configuration in vit/.
Model repository on Hugging Face DecisionIntelligence/HORAI.
Load the model
Install PyTorch and torchvision for your platform, then install the model dependencies. PyTorch installation
python -m pip install 'transformers==4.49.0' 'peft==0.14.0' safetensors timm einops
Download the full repository so the weights, vision assets, and tokenizer are available together. For a local checkout of this model repository, use its directory as model_dir. Download a repository snapshot
from pathlib import Path
from huggingface_hub import snapshot_download
from transformers import AutoModelForCausalLM, AutoTokenizer
model_dir = Path(snapshot_download("DecisionIntelligence/HORAI"))
model = AutoModelForCausalLM.from_pretrained(
model_dir, trust_remote_code=True, local_files_only=True
).eval()
tokenizer = AutoTokenizer.from_pretrained(
model_dir / "qwen", local_files_only=True
)
When using the HORAI experiment scripts, pass the local model directory as --model_path.
- Downloads last month
- -