mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-07 20:50:52 +00:00
rename toolchain/ --> llama_toolchain/
This commit is contained in:
parent
d95f5f863d
commit
f9111652ef
73 changed files with 36 additions and 37 deletions
22
llama_toolchain/spec/package.sh
Normal file
22
llama_toolchain/spec/package.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
TMPDIR=$(mktemp -d)
|
||||
echo "Using temporary directory: $TMPDIR"
|
||||
|
||||
rootdir=$(git rev-parse --show-toplevel)
|
||||
|
||||
files_to_copy=("toolchain/spec/openapi*" "llama_models.llama3_1.api.datatypes.py" "toolchain/inference/api/*.py" "agentic_system/api/*.py" "toolchain/common/*.py" "toolchain/dataset/api/*.py" "toolchain/evaluations/api/*.py" "toolchain/reward_scoring/api/*.py" "toolchain/post_training/api/*.py" "toolchain/safety/api/*.py")
|
||||
for file in "${files_to_copy[@]}"; do
|
||||
relpath="$file"
|
||||
set -x
|
||||
mkdir -p "$TMPDIR/$(dirname $relpath)"
|
||||
eval cp "$rootdir/$relpath" "$TMPDIR/$(dirname $relpath)"
|
||||
set +x
|
||||
done
|
||||
|
||||
cd "$TMPDIR"
|
||||
zip -r output.zip .
|
||||
|
||||
echo "Zip at: $TMPDIR/output.zip"
|
Loading…
Add table
Add a link
Reference in a new issue