Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default node config in CI #72

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Changes from all commits
Commits
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
17 changes: 2 additions & 15 deletions .github/workflows/runNode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,12 @@ jobs:
run: |
sudo apt-get update && sudo apt-get install -y curl git jq lsof supervisor

# - name: Use TinyLlama instead of Llama-2-7B
# run: |
# GAIANET_DIR=$HOME/gaianet
# mkdir -p $GAIANET_DIR
# cp config.json $GAIANET_DIR/config.json
# sed -i 's|Llama-2-7B-Chat-GGUF/resolve/main/Llama-2-7b-chat-hf-Q5_K_M.gguf|TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/TinyLlama-1.1B-Chat-v1.0-Q5_K_M.gguf|g' $GAIANET_DIR/config.json
# sed -i 's|llama-2-chat|chatml|g' $GAIANET_DIR/config.json
# cat $GAIANET_DIR/config.json

- name: Run install script
run: |
chmod +x ./install.sh
./install.sh
export PATH=$HOME/gaianet/bin:$PATH
gaianet --help
- name: Use TinyLlama-1.1B-Chat
run: |
export PATH=$HOME/gaianet/bin:$PATH
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 2048 --prompt-template chatml
- name: Initialize
run: |
export PATH=$HOME/gaianet/bin:$PATH
Expand All @@ -52,7 +39,7 @@ jobs:
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":"TinyLlama-1.1B-Chat-v1.0-Q5_K_M"}'
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}]}'
- name: Test frp API
continue-on-error: true
run: |
Expand All @@ -61,7 +48,7 @@ jobs:
curl --fail -X POST https://$ADDRESS.$DOMAIN/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":"TinyLlama-1.1B-Chat-v1.0-Q5_K_M"}'
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}]}'
- name: Stop
run: |
export PATH=$HOME/gaianet/bin:$PATH
Expand Down
Loading