Core training module for the Open Language Model (OLMo)
Project description
OLMo-core
Building blocks for OLMo modeling and training
Examples || Docs || PyPI || Beaker Images || License || Changelog
Installation
First install PyTorch according to the instructions specific to your operating system. Then you can install from PyPI with:
pip install ai2-olmo-core
Development
After cloning OLMo-core and setting up a Python virtual environment, install the codebase from source with:
pip install -e .[all]
The Python library source code is located in src/olmo_core
. The corresponding tests are located in src/test
. The library docs are located in docs
. You can build the docs locally with make docs
.
Code checks:
- We use
pytest
to run tests. You can run all tests withpytest -v src/test
. You can also pointpytest
at a specific test file to run it individually. - We use
isort
andblack
for code formatting. Ideally you should integrate these into your editor, but you can also run them manually or configure them with a pre-commit hook. To validate that all files are formatted correctly, runmake style-check
. - We use
ruff
as our primary linter. You can run it withmake lint-check
. - We use
mypy
as our type checker. You can run it withmake type-check
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ai2_olmo_core-1.0.4.tar.gz
.
File metadata
- Download URL: ai2_olmo_core-1.0.4.tar.gz
- Upload date:
- Size: 97.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbe6bdc5ba512ac694f139448202e9038aac8e6c9e0e6925c4c71ad474db57cc |
|
MD5 | f5948bd68b5ea10e9920f4d7af392f0b |
|
BLAKE2b-256 | f9de325d4ac45baeeff3967383c840bd9b2fb2e3a0cc2e7bdacd0388c7b757c3 |
File details
Details for the file ai2_olmo_core-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: ai2_olmo_core-1.0.4-py3-none-any.whl
- Upload date:
- Size: 117.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1250839cf29992198d2e1c8808073934365746a54b72e07fb514689bb4d8007 |
|
MD5 | b5e9839e219b156f4f670c3667a409a3 |
|
BLAKE2b-256 | 642213baca36f0b0593849a7ee4bca56881724350b53e4ef46ae6bfb9a710b7a |