Download examples/train/seq_cls/bert/deploy.sh from BBBBCHAN/StreamDelta: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/datasets/BBBBCHAN/StreamDelta/resolve/main/examples/train/seq_cls/bert/deploy.sh
- Command line
-
hf download hf://datasets/BBBBCHAN/StreamDelta/examples/train/seq_cls/bert/deploy.sh
-
curl -L -o deploy.sh https://huggingface.co/datasets/BBBBCHAN/StreamDelta/resolve/main/examples/train/seq_cls/bert/deploy.sh
392 Bytes
| CUDA_VISIBLE_DEVICES=0 \ | |
| swift deploy \ | |
| --adapters output/vx-xxx/checkpoint-xxx \ | |
| --served_model_name bert-base-chinese \ | |
| --truncation_strategy right \ | |
| --max_length 512 | |
| # curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d '{ | |
| # "model": "bert-base-chinese", | |
| # "messages": [{"role": "user", "content": "包装差,容易被调包。"}] | |
| # }' | |