Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2df13fd
intial version to support walk milestone and beta version
jeremiaswerner Aug 20, 2025
90e7151
use offical agent
jeremiaswerner Aug 27, 2025
eb18a45
adjust wordcount example to mounts
jeremiaswerner Aug 27, 2025
e238e5e
adjust docling tutorial to beta version
jeremiaswerner Aug 27, 2025
8c9d2d1
align GPU sample
jeremiaswerner Aug 27, 2025
e4a8b5b
align readme to the beta milestone
jeremiaswerner Aug 27, 2025
32c611e
remove tutorials that are not yet aligned with beta version
jeremiaswerner Aug 27, 2025
782c1cc
describe PDS more prominently
jeremiaswerner Aug 27, 2025
c2790ca
small fixes and alignments
jeremiaswerner Aug 27, 2025
6cd171f
Update beta/serverless-fleets/tutorials/docling/run
jeremiaswerner Aug 28, 2025
dc1bda9
Update beta/serverless-fleets/tutorials/docling/run_gpu
jeremiaswerner Aug 28, 2025
288013c
Update beta/serverless-fleets/run_parallel_tasks
jeremiaswerner Aug 28, 2025
7d3e275
Update beta/serverless-fleets/run_wordcount
jeremiaswerner Aug 28, 2025
5e299b8
Update beta/serverless-fleets/README.md
jeremiaswerner Aug 28, 2025
519cbb9
Update beta/serverless-fleets/run
jeremiaswerner Aug 28, 2025
aac8526
Update beta/serverless-fleets/tutorials/docling/run
jeremiaswerner Aug 28, 2025
92224c1
Update beta/serverless-fleets/run_wordcount
jeremiaswerner Aug 28, 2025
b18193f
Update beta/serverless-fleets/run
jeremiaswerner Aug 28, 2025
124dabc
make rclone environment and upload/download scripts more dynamic
jeremiaswerner Aug 28, 2025
03f5350
use 12 vCPU and max-scale of 8 to show more parallism
jeremiaswerner Aug 28, 2025
79959cd
remove inferencing and simulation input data since the tutorials are …
jeremiaswerner Aug 28, 2025
cfebd56
fix logging config to be lower case and remove download/upload
jeremiaswerner Aug 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions beta/serverless-fleets/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*sshkey*
custom_*
.rclone*
data/taskstore/*
!data/taskstore/.keep
data/output/*
!data/output/inferencing/.keep
!data/output/docling/.keep
!data/output/wordcount/.keep
!data/output/simulation/.keep
*/.DS_Store
.DS_Store
578 changes: 578 additions & 0 deletions beta/serverless-fleets/README.md

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions beta/serverless-fleets/common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/bash

# ==============================
# COMMON FUNCTIONS
# ==============================

RED="\033[31m"
BLUE="\033[94m"
GREEN="\033[32m"
ENDCOLOR="\033[0m"

function print_error {
echo -e "${RED}\n==========================================${ENDCOLOR}"
echo -e "${RED} FAILED${ENDCOLOR}"
echo -e "${RED}==========================================\n${ENDCOLOR}"
echo -e "${RED}$1${ENDCOLOR}"
echo -e ""
}
function print_msg {
echo -e "${BLUE}$1${ENDCOLOR}"
}
function print_success {
echo -e "${GREEN}$1${ENDCOLOR}"
}

# Helper function to check whether prerequisites are installed
function check_prerequisites {
# Ensure that jq tool is installed
if ! command -v jq &>/dev/null; then
print_error "'jq' tool is not installed"
exit 1
fi
}

# ==============================
# COMMON IBMCLOUD HELPERS
# ==============================

# helper function to check whether IBM Cloud CLI plugins should get updated, or not
function ensure_plugin_is_up_to_date() {
echo "Checking $1 ..."
# check whether plugin is installed
if ! ibmcloud plugin show $1 -q >/dev/null; then
# install it
ibmcloud plugin install $1 -f --quiet
else
# check whether there is an update available
ibmcloud plugin update $1 -f --quiet
fi
}

function target_region {
print_msg "\nTargetting IBM Cloud region '$1' ..."
current_region=$(ibmcloud target --output JSON |jq -r '.region|.name')
if [[ "$current_region" != "$1" ]]; then
ibmcloud target -r $1 --quiet
fi
}

function target_resource_group {
print_msg "\nTargetting resource group '$1' ..."
current_resource_group_guid=$(ibmcloud target --output JSON |jq -r '.resource_group|.guid')
new_resource_group_guid=$(ibmcloud resource group $1 -output json|jq -r '.[0].id')
if [[ "$current_resource_group_guid" != "$new_resource_group_guid" ]]; then
ibmcloud target -g $1 --quiet
fi
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3,758 changes: 3,758 additions & 0 deletions beta/serverless-fleets/data/input/wordcount/alice_in_wonderland.txt

Large diffs are not rendered by default.

Loading