petals/README.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

2022-06-12 00:10:27 +00:00
# bloom-demo
2022-06-12 01:23:38 +00:00
Early dev prototype for decentralized bloom. Not for public eyes **yet**.
2022-06-12 00:13:40 +00:00
2022-06-12 01:23:38 +00:00
```python
if you.read(this) and you.name not in '@timdettmers @borzunov @mryab @greenfatguy'.split():
you.go("away")
```
# install
```bash
conda create -y --name bloom-demo python=3.8.12 pip
conda activate bloom-demo
conda install -y -c conda-forge cudatoolkit-dev==11.3.1 cudatoolkit==11.3.1 cudnn==8.2.1.32
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html
2022-06-19 16:06:35 +00:00
pip install accelerate==0.10.0 huggingface-hub==0.7.0
2022-06-12 01:23:38 +00:00
pip install bitsandbytes-cuda113==0.26.0
2022-06-17 07:36:34 +00:00
pip install https://github.com/learning-at-home/hivemind/archive/master.zip
2022-06-19 16:06:35 +00:00
pip install https://github.com/huggingface/transformers/archive/6589e510fa4e6c442059de2fab84752535de9b23.zip
2022-06-12 01:23:38 +00:00
```
2022-06-14 12:18:11 +00:00
# tests
```bash
# run one bloom block for a few steps
python -m cli.inference_one_block --config cli/config.json # see other args
2022-06-14 12:18:38 +00:00
# minimalistic server with non-trained bloom blocks
2022-06-17 08:40:49 +00:00
python -m cli.run_server --prefix smol --block_config bigscience/bloom-6b3 --num_blocks 2 --identity_path ./server1.id --host_maddrs /ip4/127.0.0.1/tcp/31337
2022-06-14 12:18:11 +00:00
```