initial commit
This commit is contained in:
commit
46583caabf
15 changed files with 6230 additions and 0 deletions
18
start_server.sh
Normal file
18
start_server.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
MODEL="$(realpath "$1")"
|
||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
echo "Serverdir: $SCRIPT_DIR"
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "USAGE: start.sh <path-to-model>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Modelpath: $MODEL"
|
||||
|
||||
cd "$SCRIPT_DIR"
|
||||
source "./venv/bin/activate"
|
||||
python3 -m debugpy --listen 0.0.0.0:5679 flask_server.py --rkllm_model_path "$MODEL" --target_platform rk3588
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue