Comments (4)
Xinference 是兼容 OpenAI 的 API,你可以在 LangChain使用 OpenAI API来访问 Xinference。
from inference.
Xinference 是兼容 OpenAI 的 API,你可以在 LangChain使用 OpenAI API来访问 Xinference。
谢谢,根据您的提示,我调起来了text-generation和chat的接口,有个新的问题,不知道是不是bug
客户端:
llm = OpenAI(model="qwen1.5-chat-14B", temperature=0.9, max_tokens=30 * 1024, streaming=True)
query_result = llm.invoke(input="你的名字", temperature=0.9, max_tokens=30 * 1024, logit_bias=None, stream=True)
这里需要指定logit_bias=None(也可能是langchain的问题)
服务端这边判断的是None,如果我不显式指定logit_bias为None,就会返回给客户端501
from inference.
目前 logit_bias 还没实现,所以如果传了值会提示 501 错误。
from inference.
目前 logit_bias 还没实现,所以如果传了值会提示 501 错误。
感谢回复
from inference.
Related Issues (20)
- 使用docker运行qwen1.5-chat的时候报错:CUDA error: uncorrectable ECC error encountered
- BUG: model_uri converts symlink in cache to CamelCase case automatically resuling in a wrong path to directory or file
- BUG Not support multi card when load gguf format HOT 1
- Install failed: AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? HOT 2
- BUG replica=2时,系统报错 HOT 1
- BUG XINFERENCE_MODEL_SRC not work?
- 自定义embedding模型缺少model_id
- The stream output format is not consistent with the OpenAI standard format.
- 【BUG】安裝一個模型時提示:Server error: 503 - [address=0.0.0.0:30891, pid=146681] No available slot found for the model HOT 7
- 希望尽快支持 glm-4-9b-chat,谢谢! HOT 3
- CogVLM2使用量化问题
- QUESTION:How are xinference and ragflow linked?
- glm4 tool calls support HOT 3
- Support for Classification Models like bert-base-chinese in Xinference
- A BUG when use qwen with stream and tools. HOT 6
- QUESTIONdocker pull error HOT 1
- BUG: Lack of thirdparty.ChatTTS files in built wheels HOT 1
- BUG: missing ChatTTS thirdparty files in docker image HOT 1
- QUESTION:GLM-4V-9B为什么没有4bit量化版本,我看官方性能测试里面是有的
- chatTTS BUG HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inference.