Comments (2)
parallelformers
uses shared memory to transfer data into other processes.
I found ALL errors in environments with limited resource like docker container are related with shared memory size.
So, if you want to use larger model in docker container, please REMOVE the limitation of shared memory by --ipc=host
or INCREASE shared memory size of your docker container by --shm-size=?gb
.
from parallelformers.
Running Flask in a docker container with the module results in problems that do not produce any errors. The performance is equal to CPU and in order to receive printing from lines below the parallelize(), flush = True is needed. In rare cases, it freezes. Running on Ipython on the same machine works fine, with 10x speed-ups which is awesome!
Some docker info:
FROM nvidia/cuda:11.4.2-cudnn8-devel-ubuntu20.04 as base
ENV PYTHON_VERSION 3.7.8
Using pipenv to install modules
docker run --gpus '"device=0,1"' --ipc=host .....ports, volume and docker......
from parallelformers.
Related Issues (20)
- Can you please add support for gpt_neox HOT 2
- Can you please add Question Answering models like LayoutLMv2ForQuestionAnswering
- [Feature Request] Add Bloom to the Auto Policy HOT 2
- Bus error in parallelformers 1.2.7 for OPT model HOT 1
- Support Codegen 12B
- INT8 support
- torch no_grad HOT 1
- A bug with `n_fused` HOT 4
- OSError: [Errno 9] Bad file descriptor HOT 1
- Bug with T511b inference
- RuntimeError: CUDA error: peer access is not supported between these two devices HOT 1
- Add Vision Encoder Decoder model to parallelformers
- Speed up results serialization
- Cross-node inference HOT 3
- Support for LLaMA HOT 3
- Support for Falcon-7B and Falcon-40B models
- freeze_support()
- Still in development?
- Title: RuntimeError: Timed out initializing process group in store based barrier
- Use this library for CNN networks like Unet
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 parallelformers.