-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into scottjlee/text-embeddings
- Loading branch information
Showing
93 changed files
with
1,576 additions
and
305 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/action@v3.0.1 |
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,20 @@ | ||
default_stages: [commit, push] | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: trailing-whitespace | ||
# README might be auto-generated | ||
exclude: templates/.+/README.md | ||
- id: end-of-file-fixer | ||
# README might be auto-generated | ||
exclude: templates/.+/README.md | ||
- repo: local | ||
hooks: | ||
- id: generate-readme | ||
name: Auto generate README.md from README.ipynb | ||
entry: ci/auto-generate-readme.sh | ||
language: script | ||
pass_filenames: false | ||
dependencies: [jupyter] |
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,31 @@ | ||
#!/bin/bash | ||
|
||
# Search for notebook files named "demo" in the ../templates directory | ||
notebook_files=$(find ../templates -name "README.ipynb") | ||
|
||
# Loop through each notebook file | ||
for notebook_file in $notebook_files; do | ||
# Convert notebook file to README.md using nbconvert | ||
jupyter nbconvert --to markdown "$notebook_file" --output-dir "$(dirname "$notebook_file")" | ||
done | ||
|
||
# Define the repo prefix | ||
REPO_PREFIX="https://raw.githubusercontent.com/anyscale/templates/main" | ||
|
||
# Search for README.md in the ../templates directory | ||
readme_files=$(find ../templates -name "README.md") | ||
|
||
# Loop through each readme files | ||
for readme_file in $readme_files; do | ||
# Extract the path of the directory containing the README file, relative to the repository root | ||
readme_dir=$(dirname "$readme_file" | sed "s|\.\./templates/||") | ||
|
||
# Check the operating system | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
# macOS system | ||
sed -i '' "s|<img src=\"\([^\"http://][^\":/][^\"].*\)\"|<img src=\"${REPO_PREFIX}/${readme_dir}/\1\"|g" "$readme_file" | ||
else | ||
# Assuming Linux | ||
sed -i "s|<img src=\"\([^\"http://][^\":/][^\"].*\)\"|<img src=\"${REPO_PREFIX}/${readme_dir}/\1\"|g" "$readme_file" | ||
fi | ||
done |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ worker_node_types: | |
instance_type: m5.2xlarge | ||
min_workers: 0 | ||
max_workers: 2 | ||
use_spot: false | ||
use_spot: false |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ worker_node_types: | |
instance_type: n2-standard-8 | ||
min_workers: 0 | ||
max_workers: 2 | ||
use_spot: false | ||
use_spot: false |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ worker_node_types: | |
instance_type: g4dn.4xlarge | ||
min_workers: 0 | ||
max_workers: 15 | ||
use_spot: false | ||
use_spot: false |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ worker_node_types: | |
instance_type: g5.4xlarge | ||
min_workers: 0 | ||
max_workers: 100 | ||
use_spot: false | ||
use_spot: false |
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,4 @@ | ||
head_node_type: | ||
name: head-node-type | ||
instance_type: m5.xlarge | ||
worker_node_types: [] |
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,4 @@ | ||
head_node_type: | ||
name: head_node_type | ||
instance_type: n1-standard-4 | ||
worker_node_types: [] |
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,3 +1,4 @@ | ||
head_node_type: | ||
name: head_node_type | ||
instance_type: m5.xlarge | ||
worker_node_types: [] |
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,3 +1,4 @@ | ||
head_node_type: | ||
name: head_node_type | ||
instance_type: n2-standard-4 | ||
worker_node_types: [] |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ worker_node_types: | |
min_workers: 0 | ||
max_workers: 100 | ||
use_spot: false | ||
auto_select_worker_config: true |
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,10 +1,11 @@ | ||
# n1-standard-8-nvidia-tesla-t4-1 --> 8 CPUs, 1 GPU | ||
# n1-standard-8-nvidia-t4-16gb-1 --> 8 CPUs, 1 GPU | ||
head_node_type: | ||
name: head_node_type | ||
instance_type: n1-standard-8-nvidia-tesla-t4-1 | ||
instance_type: n1-standard-8-nvidia-t4-16gb-1 | ||
worker_node_types: | ||
- name: gpu_worker | ||
instance_type: n1-standard-8-nvidia-tesla-t4-1 | ||
instance_type: n1-standard-8-nvidia-t4-16gb-1 | ||
min_workers: 0 | ||
max_workers: 100 | ||
use_spot: false | ||
auto_select_worker_config: true |
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
Oops, something went wrong.