Giter Site home page Giter Site logo

Comments (3)

xs818818 avatar xs818818 commented on September 22, 2024

我希望是在网页上部署类似效果
CUDA_VISIBLE_DEVICES=0 python -m vllm.entrypoints.openai.api_server
--trust-remote-code
--max-model-len 4096
--model /qwen/Qwen1.5-14B-Chat
--enable-lora
--lora-modules lora1=
/lora/xxx lora2=~/lora/xxx
curl --request POST
--url http://localhost:8000/v1/chat/completions
--header 'content-type: application/json'
--data '{
"model": "lora2",
"messages": [ { "role": "system", "content": "You are a helpful assistant." },
{ "role": "user", "content": "China is a" }
],
"stop_token_ids": [151645, 151644, 151643],
"max_tokens": 5,
"temperature": 0.7
}'

from inference.

ChengjieLi28 avatar ChengjieLi28 commented on September 22, 2024

@xs818818v0.9.2 支持了lora的集成,参考文档:https://inference.readthedocs.io/zh-cn/latest/models/lora.html
但是目前不对lora模型进行管理,目前是用户自行下载,与LLM image模型一起launch。

from inference.

mxdlzg avatar mxdlzg commented on September 22, 2024

现在UI里如果填了lora config,应该如何请求呢?
OpenAI的接口。

from inference.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.