Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang committed Dec 26, 2024
1 parent 87fb32a commit 9b75b48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
File renamed without changes.
5 changes: 2 additions & 3 deletions examples/train/seq_cls/bert/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
CUDA_VISIBLE_DEVICES=0 \
swift deploy \
--model output/vx-xxx/checkpoint-xxx \
--served_model_name bert-base-chinese bert-base-chinese
--served_model_name bert-base-chinese

# curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
# "model": "bert-base-chinese",
# "messages": [{"role": "user", "content": "Task: Sentiment Classification\nSentence: 包装差,容易被调包。\nCategory: negative, positive\nOutput:"}],
# "temperature": 0
# "messages": [{"role": "user", "content": "Task: Sentiment Classification\nSentence: 包装差,容易被调包。\nCategory: negative, positive\nOutput:"}]
# }'
3 changes: 1 addition & 2 deletions examples/train/seq_cls/qwen2_5/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ swift deploy \

# curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
# "model": "Qwen2.5-7B",
# "messages": [{"role": "user", "content": "Task: Sentiment Classification\nSentence: 包装差,容易被调包。\nCategory: negative, positive\nOutput:"}],
# "temperature": 0
# "messages": [{"role": "user", "content": "Task: Sentiment Classification\nSentence: 包装差,容易被调包。\nCategory: negative, positive\nOutput:"}]
# }'

0 comments on commit 9b75b48

Please sign in to comment.