Skip to content

Commit

Permalink
Update FAQ.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunwoongko authored Jul 27, 2022
1 parent c0e4747 commit 436573b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

# FAQ
### Q. Why do my processes die or stop working?

Many issues have pointed this out. And I've found that running code inside the context of if `__name__ == '__main__'` solves a lot of problems. So if you run have some problems about processes, try writing your code inside the context of it.

### Q. Can I use it on Docker?
Yes, but please note the followings.

I recently found out that ALL errors that occur in environments with limited resources such as docker containers are due to **shared memory size**. So, if you want to use larger models with parallelformers in docker containers, **INCREASE the size of shared memory by --shm-size=?gb or REMOVE the limitation of shared memory size by --ipc=host**. the larger shared memory size is required if you want to use larger model.
I recently found out that ALL errors that occur in environments with limited resources such as docker containers are due to **shared memory size**. So, if you want to use larger models with parallelformers in docker containers, **INCREASE** the size of shared memory by `--shm-size=?gb` or REMOVE the limitation of shared memory size by `--ipc=host`. the larger shared memory size is required if you want to use larger model.

### Q. Why doesn't the GPU usage decrease by exactly _n_ times when I parallelize on _n_ GPUs?

Expand Down

0 comments on commit 436573b

Please sign in to comment.