Download examples/train/seq_cls/regression/deploy.sh from BBBBCHAN/StreamDelta: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/datasets/BBBBCHAN/StreamDelta/resolve/main/examples/train/seq_cls/regression/deploy.sh
- Command line
-
hf download hf://datasets/BBBBCHAN/StreamDelta/examples/train/seq_cls/regression/deploy.sh
-
curl -L -o deploy.sh https://huggingface.co/datasets/BBBBCHAN/StreamDelta/resolve/main/examples/train/seq_cls/regression/deploy.sh
431 Bytes
| CUDA_VISIBLE_DEVICES=0 \ | |
| swift deploy \ | |
| --adapters output/vx-xxx/checkpoint-xxx | |
| # curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d '{ | |
| # "model": "Qwen2.5-0.5B", | |
| # "messages": [{"role": "user", "content": "Task: Based on the given two sentences, provide a similarity score between 0.0 and 1.0.\nSentence 1: The animal is eating.\nSentence 2: A woman is dancing.\nSimilarity score: "}] | |
| # }' | |