-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/allenai/dolma into mixer-va…
…lidator
- Loading branch information
Showing
18 changed files
with
265 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "dolma" | ||
version = "1.0.9" | ||
version = "1.1.0" | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
UNAME="$(uname)" | ||
PLATFORM="$(uname -m)" | ||
|
||
if [[ $UNAME == "Darwin" ]]; then | ||
echo "MacOS detected..." | ||
which cmake || brew install cmake | ||
which protoc || brew install protobuf | ||
which openssl || brew install openssl | ||
elif [[ $UNAME == "Linux" ]]; then | ||
echo "Linux detected..." | ||
which cmake || sudo apt-get install --yes build-essential cmake | ||
which protoc || sudo apt-get install --yes protobuf-compiler | ||
which openssl || sudo apt-get install --yes libssl-dev | ||
else | ||
echo "Unsupported OS; please install rust, cmake, protobuf, maturin and openssl manually!" | ||
exit 1 | ||
fi | ||
|
||
which cargo || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
|
||
if [[ $PLATFORM == "x86_64" ]]; then | ||
echo "x86_64 detected..." | ||
which maturin || pip install maturin[patchelf] | ||
fi | ||
|
||
if [[ $PLATFORM = "aarch64" ]]; then | ||
echo "aarch64 detected..." | ||
which maturin || pip install maturin | ||
fi | ||
|
||
if [[ $PLATFORM = arm* ]]; then | ||
echo "arm detected..." | ||
which maturin || pip install maturin | ||
else | ||
echo "Unsupported platform; please install maturin manually" | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.