Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ktransformers
Commits
6385308f
Commit
6385308f
authored
Mar 15, 2025
by
SkqLiao
Browse files
replace sed with awk
parent
9d19b7b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
.github/workflows/install.yml
.github/workflows/install.yml
+2
-2
No files found.
.github/workflows/install.yml
View file @
6385308f
...
@@ -65,11 +65,11 @@ jobs:
...
@@ -65,11 +65,11 @@ jobs:
cd ${{ github.workspace }}
cd ${{ github.workspace }}
echo "Running Local Chat 1...(book.txt)"
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
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
output=$(
sed -n
'/Prompt:/
,$p' log1.txt)
output=$(
awk
'/Prompt:/
{found=1} found' log1.txt) || exit_code=$?
echo "$output"
echo "$output"
echo "Running Local Chat 2...(chinese.txt)"
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
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
output=$(
sed -n
'/Prompt:/
,$p' log2.txt)
output=$(
awk
'/Prompt:/
{found=1} found' log2.txt) || exit_code=$?
echo "$output"
echo "$output"
-
run
:
echo "This job's status is ${{ job.status }}."
-
run
:
echo "This job's status is ${{ job.status }}."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment