vllm启动大模型,千问14B,L20显卡

 vllm 命令启动

conda activate vllm

# 启动大模型,千问14B
vllm serve /opt/models/Qwen-14B/ --dtype bfloat16 --tensor-parallel-size 1 --gpu-memory-utilization 0.99 --max-model-len 2048 --enforce-eager --host 0.0.0.0 --port 7860 --trust-remote-code

# 查看模型名称
curl http://127.0.0.1:7860/v1/models   -H "Authorization: xxxx"

{"object":"list","data":[{"id":"/opt/models/Qwen-14B/","object":"model","created":1752036722,"owned_by":"vllm","root":"/opt/models/Qwen-14B/","parent":null,"max_model_len":2048,"permission":[{"id":"modelperm-1e40c9ae0cb94837a7e1ef3a57e76558","object":"model_permission","created":1752036722,"allow_create_engine":false,"allow_sampling":true,"allow_logprobs":true,"allow_search_indices":false,"allow_view":true,"allow_fine_tuning":false,"organization":"*","group":null,"is_blocking":false}]}]}


#
curl http://127.0.0.1:7860/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "/opt/models/Qwen-14B/",
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值