distributed-llama: terminate called after throwing an instance of 'ReadSocketException'

The nodes connect, but crash after roughly 3 seconds. Server:

sudo main simple-server --weights-float-type q40 --buffer-float-type q40 --nthreads 4 --model ~/dllama_meta-llama-3-8b_q40.bin --tokenizer ~/dllama-llama3-tokenizer.t --workers 192.168.2.212:9998 192.168.2.213:9998 192.168.2.214:9998 192.168.2.215:9998 192.168.2.216:9998 192.168.2.217:9998 192.168.2.218:9998
πŸ’‘ arch: llama2
πŸ’‘ dim: 4096
πŸ’‘ hiddenDim: 14336
πŸ’‘ nLayers: 32
πŸ’‘ nHeads: 32
πŸ’‘ nKvHeads: 8
πŸ’‘ vocabSize: 128256
πŸ’‘ seqLen: 2048
πŸ’‘ nSlices: 8
πŸ’‘ ropeTheta: 500000.0
πŸ“„ bosId: 128000
πŸ“„ eosId: 128001

For Each Worker: sudo main worker --port 9998 --nthreads 4

Listening on 0.0.0.0:9998...
Client connected
terminate called after throwing an instance of 'ReadSocketException'
  what():  std::exception
Aborted

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 35 (17 by maintainers)

Most upvoted comments

Hello @LaeMat! What model are you trying to run? How much RAM do you have?

I’m trying to run LLAMA 3. The root node has 12GB RAM while the worker nodes have 8 or 4GB of RAM.

No just the sudo, nice is for lowering the processor affinity for the process so it runs at a lower priority. Ideally it wouldn’t need to run as sudo, right now it’s required though.