mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-11 21:48:36 +00:00
Add toolchain from agentic system here
This commit is contained in:
parent
f6b2b2fb39
commit
95781ec85d
71 changed files with 11899 additions and 0 deletions
22
toolchain/spec/package.sh
Normal file
22
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*" "models/llama3/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