Comments (4)
Hi @frankxyy,
Dynamic SplitFuse splits a long prompt to fit it to the remaining capacity of the specified forward size, rather than evenly splitting. This approach optimizes the efficiency when you receive many requests.
Maybe it is better split long input into chunks of sizes in decreasing order?
I'm not sure if I fully understand your suggestion. Can you elaborate on it?
from deepspeed-mii.
@tohtana Hi, I misunderstood the approach of splitAndFuse, in fact the splited size is determined by the remaining capacity of forward... Thank you for your remind.
from deepspeed-mii.
@tohtana Hi, I rethink about this issue and have some new opinions. I find that as the sequence length increases, the compute intensity of the same forward size differs(the q_len remains the same, but kv_len increases). So the splitting to the same forward sizes may not split to the same compute intensity?
from deepspeed-mii.
@frankxyy Yes, the amount of computation varies depending on lengths of kv.
We have a target forward size to balance the efficiency and latency but I'm not sure how much difference the varying kv lengths cause.
from deepspeed-mii.
Related Issues (20)
- Tf32 support
- How can I use the same prompt to produce the same text output as vllm
- Support LLava next stronger
- support Qwen
- support Qwen1.5
- support stream
- [BUG] MII Backend Hangs After 9999 Exceptions in `MIIAsyncPipeline.put_request` HOT 2
- few questions regarding the implementation of streaming and batching
- Configure server log level HOT 2
- Compute perplexity
- Attempting to flush sequence N which does not exist
- [QUERY] Expert Parallelism Supported?
- deepseed-mii支持多节点推理么 HOT 2
- Import Error, not compatible with transformer package HOT 4
- CUDA device rank in mii.pipeline
- Client cannot find deployment error
- Dummy data loading?
- non-persistent simple example does not work HOT 5
- non-persistent example doesn't work on Mixtral-8*7B-v0.1
- Can't use Llama 3.1 with MII, ImportError: cannot import name 'Conversation' from 'transformers'
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 deepspeed-mii.