From 716f3238679af83a77528fa9c4e8589c62623c2a Mon Sep 17 00:00:00 2001 From: Xin Liu Date: Tue, 30 Apr 2024 19:40:30 +0800 Subject: [PATCH] ci: update workflow Signed-off-by: Xin Liu --- .github/workflows/runNode.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/runNode.yml b/.github/workflows/runNode.yml index 94a830c..0711f24 100644 --- a/.github/workflows/runNode.yml +++ b/.github/workflows/runNode.yml @@ -28,20 +28,23 @@ jobs: chmod +x ./install.sh ./install.sh gaianet --help + - name: Use TinyLlama-1.1B-Chat + run: | + gaianet config --chat-url "https://huggingface.co/second-state/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/TinyLlama-1.1B-Chat-v1.0-Q5_K_M.gguf" --chat-ctx-size 1024 --prompt-template chatml - name: Initialize run: | gaianet init - name: Run run: | gaianet start - - name: Sleep 10 seconds - run: sleep 10 + - name: Sleep 15 seconds + run: sleep 15 - name: Test localhost API run: | curl --fail -X POST http://localhost:8080/v1/chat/completions \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ - -d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"Phi-3-mini-4k-instruct-Q5_K_M"}' + -d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"TinyLlama-1.1B-Chat-v1.0-Q5_K_M"}' - name: Test frp API run: | ADDRESS=$(jq -r '.address' $HOME/gaianet/config.json) @@ -49,7 +52,7 @@ jobs: curl --fail -X POST https://$ADDRESS.gaianet.network/v1/chat/completions \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ - -d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"Phi-3-mini-4k-instruct-Q5_K_M"}' + -d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"TinyLlama-1.1B-Chat-v1.0-Q5_K_M"}' - name: Stop run: | gaianet stop