Commit 9d19b7b4 authored by SkqLiao's avatar SkqLiao
Browse files

fix sed

parent 336b5dd5
......@@ -56,6 +56,7 @@ jobs:
env:
TERM: xterm-256color
run: |
set -e
source /home/qujing3/anaconda3/etc/profile.d/conda.sh
conda activate ktransformers-dev
export PATH=/usr/local/cuda-12.4/bin:$PATH
......@@ -64,9 +65,11 @@ jobs:
cd ${{ github.workspace }}
echo "Running Local Chat 1...(book.txt)"
python ktransformers/local_chat_test.py --model_path /home/qujing3/models/DeepSeek-R1-Q4_K_M/config --gguf_path /home/qujing3/models/DeepSeek-R1-Q4_K_M/ --max_new_tokens 256 --cache_len 1536 --cpu_infer 64 --prompt_file /home/qujing3/prompts/book.txt > log1.txt
echo $(sed -n '/Prompt:/,$p' log1.txt)
output=$(sed -n '/Prompt:/,$p' log1.txt)
echo "$output"
echo "Running Local Chat 2...(chinese.txt)"
python ktransformers/local_chat_test.py --model_path /home/qujing3/models/DeepSeek-R1-Q4_K_M/config --gguf_path /home/qujing3/models/DeepSeek-R1-Q4_K_M/ --max_new_tokens 256 --cache_len 1536 --cpu_infer 64 --prompt_file /home/qujing3/prompts/chinese.txt > log2.txt
echo $(sed -n '/Prompt:/,$p' log2.txt)
output=$(sed -n '/Prompt:/,$p' log2.txt)
echo "$output"
- run: echo "This job's status is ${{ job.status }}."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment