Installation ============ Prior to installing OLMo-core you should install `PyTorch `_ according to the official instructions specific to your operating system and hardware. Then you can install OLMo-core from `PyPI `_ with:: pip install ai2-olmo-core There are a number of optional dependencies that must be installed to use certain functionality as well, including: - `flash-attn `_, `ring-flash-attn `_, and `TransformerEngine `_ for the corresponding attention backends. - `Liger-Kernel `_ for a low-memory "fused-linear" loss implementation. - `torchao `_ for float8 training (see :mod:`olmo_core.float8`). - `grouped_gemm `_ for dropless mixture-of-experts (MoE) models (see :mod:`olmo_core.nn.moe`).