Comments (1)
Hey, ds-inference is also doing world_size streams
However, accelerate is only doing 1 stream since we are just using naive pipeline parallelism capability from accelerate.
A more efficient approach for pipeline parallelism could be overlapping microbatches in the forward pass (no backward pass is needed)
For example, check this image from the Megatron-LM paper. This would be more efficient when serving. I think this will require you to have multiple processes for implementing this. But you might still get better throughout using DS-inference.
Also, if you are really interested in exploring serving models, I would suggest using text-gen-inference. This does dynamic batching and is much more efficient.
from transformers-bloom-inference.
Related Issues (20)
- It does not work with Falcon-40B correctly
- ValueError: Couldn't instantiate the backend tokenizer from one of:
- root_dir in TemporaryCheckpointsJSON is redundant
- The details of hf-accelerate pp. HOT 2
- Big batchsize cause OOM in bloom-ds-inference.py, how to adjust max_split_size_mb value HOT 1
- Unable to reload a quantized model HOT 4
- why no use deepspeed.init_inference in zero benchmark HOT 2
- question regarding the float16 and bfloat HOT 1
- pip install command does not work as expected HOT 2
- Bloom176B RuntimeError: expected scalar type Half but found BFloat16 HOT 3
- Inference(chatbot) does not work as expected on 2 gpus with bigscience/bloom-7b1 model HOT 2
- `accelerate` in `bloom-inference-scripts`? HOT 1
- ds_inference success but OOM when use tp_presharded_mode=True HOT 2
- Can I combine fastertransformer to make it faster HOT 1
- Are there fine-tuning and inference scripts available for int4 quantization in bloom-7b? Is it possible to limit the GPU memory usage to within 10GB? HOT 1
- AttributeError: 'BloomForCausalLM' object has no attribute 'module'
- The Makefile execution was successful, but there is no response when entering text.
- When deploying the Bloom model, I noticed that the POST method is used for the generation task. Is it possible to modify it to perform question-answering instead?
- does this work for llama 65B HOT 1
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 transformers-bloom-inference.