Comments (3)
Thanks for raising this. I'm not having any issues with the fauxpilot plugin so that's really interesting sorry to hear that it's not working for you. I might have a dig around and see if I can recreate that issue. Are you on Mac OS?
I haven't had a look at the co-pilot official plugin for a while - it seems particularly annoying/tricky to reverse engineer and I've not had time to figure it out
The HF issue is interesting. You're right that the problem is caused by multiple requests being serviced by the same device. I'm not entirely sure that cancelling previous requests would be the desired behaviour (what does the hf plugin do with those requests? Are they actually invalid or is it trying to gather multiple results? What about a use case where multiple users want to make requests from the same server?). However, queueing requests or using some sort of locking/mutex structure might provide a short term fix.
from turbopilot.
Thanks for the reply! No I am actually running all of this on fedora.
The HF plugin doesn't seem to care, it shows only the results from the latest request. I can't verify for sure but if the server isn't available (ie still starting) it'll just happily wait forever. The first request that is sent and responded to satisfies it and it stops listening to other requests is how it appears.
In retrospect that makes sense, I'm almost certain official one is built to discard all requests except the latest, because the inference isn't fast enough to keep up with someone typing without pause.
That's why I figure some kind of ID per user would be better, though if the plugin doesn't send something like that already I can see how it would be tough.
A queue doesn't sound right, you'd want to serve the latest request from each user no?
If a request is sent for
def divideby
the completion should be
def divideby(x,y):
return x/y
But if I kept typing while turbopilot was crunching away and now my code says
def divideby2(x):
Then the completion turbopilot is already working on isn't useful to me anymore.
However having a lock is absolutely better than having the server crash.
from turbopilot.
The locking change has gone in. I agree that it would probably be nice to have a way to cancel ongoing requests - I need to better study the crowcpp docs and see how I could go about doing that.
My thinking is to have the model evaluation loop try to acquire a semaphor and break after evaluation of each token. Then, have Crow throw up the semaphor if a connection is closed prematurely. I need to see where this logic could hook into.
from turbopilot.
Related Issues (20)
- Local build failing to run (NO AVX2) HOT 3
- use WebSocket for Real-time reception
- terminated by signal SIGABRT (Abort)
- Fauxpilot client does not communicate with TurboPilot πserver
- How to use it with cuda in v0.0.5 HOT 2
- Any chance for cuda 12 support? HOT 1
- Is there any roadmap to add support for replit models? HOT 2
- Add support for StableCode
- Support Huggingface Code plugin
- "symbol not found" error in docker image running under ARM64 HOT 3
- How to build for Mac OS Apple Silicon? HOT 2
- ggml_new_tensor_impl: not enough space in the context's memory pool HOT 7
- docker turbopilot:v0.1.0-cuda12 not using gpu HOT 3
- OOM - Segmentation fault (core dumped) HOT 3
- CAN NOT RUN TURBOPILOT USING DOCKER HOT 5
- Support for Code Llama HOT 1
- Docker Image Fail to load model
- Failed to load model wizardcoder (Illegal Instruction)
- [Feature request] Add refact model
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 turbopilot.