Commit Graph

243 Commits (pip-installable-v2)
 

Author SHA1 Message Date
Aleksandr Borzunov ef89b8813e Recover requirements*.txt for compatibility reasons 2 years ago
Aleksandr Borzunov 82efafe131 Update Dmitry's deploy scripts 2 years ago
Aleksandr Borzunov ec50fa60cf Update dev installation instructions 2 years ago
Aleksandr Borzunov f7ed387f09 Fix circular imports (2) 2 years ago
Aleksandr Borzunov 5f985e7d73 Allow hivemind >= 1.1.3 2 years ago
Aleksandr Borzunov da66b67663 Fix circular imports 2 years ago
Aleksandr Borzunov 4f366f834e Fix imports 2 years ago
Aleksandr Borzunov 654aa644de Don't expose BloomTokenizerFast 2 years ago
Aleksandr Borzunov c931366da7 Don't import anything into top-level package to avoid running
bitsandbytes
2 years ago
Aleksandr Borzunov 31c4ef0c34 Expose BloomTokenizerFast in petals.client 2 years ago
Aleksandr Borzunov 384dc80919 isort 2 years ago
Aleksandr Borzunov 5105e4bb74 Update version 2 years ago
Aleksandr Borzunov c859eb9749 Fix running speed test 2 years ago
Aleksandr Borzunov 1a34fd41b3 Remove project_name 2 years ago
Aleksandr Borzunov e2a43476a6 Fix readme, notebook, workflows 2 years ago
Aleksandr Borzunov 78b06bb9c1 Use setup.cfg and pyproject.toml isntead of requirements*.txt 2 years ago
Aleksandr Borzunov ef1d73477e Fix imports 2 years ago
Aleksandr Borzunov 97a935dbb9 Move `cli` => `src/petals/cli` 2 years ago
Aleksandr Borzunov 3c3eea47f8 Move `src` => `src/petals` 2 years ago
Alexander Borzunov 0c3781a89c
Shorten bullet points in readme 2 years ago
Alexander Borzunov ab41223b17
Fix dtype- and device-related client issues (#98)
This PR:

1. Makes inference/forward/backward calls on client remember the dtype and device of source tensors, then move/cast the outputs to the same dtype/device. This way:
    - Users don't need to make changes in the code launching `RemoteSequential` to make it run on a different device.
    - `model.generate()` also starts to support both CPU and GPU.

2. Sets default `low_cpu_mem_usage=True`, client's request timeout to 20 sec.

3. Removes excess casts to float32 left in Dmitry's code.

4. (minor) Improves error messages.
2 years ago
Alexander Borzunov c6e1b5a8e5
Add various server timeouts, lower --max_batch_size and --inference_max_length defaults (#97) 2 years ago
Alexander Borzunov d8ef09146e
Improve server's logging (#96)
Log all RPC calls with block indices and shortened peer IDs, print attention cache stats.
2 years ago
Artem Chumachenko fdb3583a8c
Add Beam Search decoding algorithm (#87)
Add beam_search
2 years ago
Alexander Borzunov fef7257fe0
Try to fix protobuf versions once again (#95)
The goals of these changes are:

- Make Petals work in Colab right after just doing `pip install -r requirements.txt`
- Make tests work independently of the protobuf package version chosen while installing dependencies
2 years ago
Aleksandr Borzunov 1b51703444 Revert protobuf version change 2 years ago
Alexander Borzunov b26b0b7121
Require hivemind with fixed compression and protobuf working on Colab (#94) 2 years ago
Alexander Borzunov 8a73b41a42
Make ServerState announcements work better (#93)
- Before this PR, `ServerState.JOINING` was announced only once. This announcement quickly expires in case of the full-size BLOOM, since loading blocks takes several minutes. This PR fixes it, so `ServerState.JOINING` is announced periodically in a thread until blocks are loaded.

- This PR also makes the `Server` class a non-thread, so it runs in the main thread and can catch `KeyboardInterrupt`. This is important, since if we are downloading blocks right now, we need to stop it and send the `ServerState.OFFLINE` message. Note that `ModuleContainer` is still a thread.

- (minor) For the sake of readability, I moved the `ModuleContainer.create()` definition, so it is now defined before `Server.__init__()` (this is because `.create()` is invoked first).
2 years ago
Alexander Borzunov dc71574a63
Use public swarm by default (#92)
This PR makes servers and clients use public swarm's bootstrap peers if no other initial peers are specified.

If you'd like a server to start a new swarm, provide the `--new_swarm` CLI argument.
2 years ago
Alexander Borzunov 11d6ba683c
Make inference, forward, and backward fully fault-tolerant (#91) 2 years ago
Artem Chumachenko 695df826c2
Force reinstall for hivemind in example notebooks (#88) 2 years ago
Alexander Borzunov dc6ecccac5
Implement timeouts in forward/backward (#90) 2 years ago
Aleksandr Borzunov 4518d65fdd Add MIT license 2 years ago
Alexander Borzunov 898f614515
Fix floating point issues in block_selection.py (#89) 2 years ago
Alexander Borzunov c07a7e0812
Add "Terms of Use" 2 years ago
Artem Chumachenko 0d9c7de0bd
Add sst-2 ipynb example (#86)
- Add sst-2 example of a prompt-based training
- Have some enhancement in the persona-chat example
2 years ago
Alexander Borzunov 57e8d2e721
Implement exponential backoff for forward & backward (#85) 2 years ago
Alexander Borzunov ee4e69c254
Enable rebalancing by default (#84) 2 years ago
Artem Chumachenko 2cb82dd648
Add colab-related changes (#80)
Add some stuff to work on COLAB more comfortable.

Co-authored-by: Alexander Borzunov <hxrussia@gmail.com>
2 years ago
Alexander Borzunov 87fd6a4f08
Fix "Too many open files" during rebalancing (#83)
Now, the number of open files stays the same after every rebalancing.
2 years ago
Alexander Borzunov f64eb3a665
Update hivemind to 1.1.2, mark `model` argument as required (#81) 2 years ago
Alexander Borzunov 149f433763
Rebalance swarm when necessary (#34) 2 years ago
Alexander Borzunov 640bbc38a9
Make even smaller readability changes 2 years ago
Alexander Borzunov d1b012b479
Make small readability & style changes to the instructions (#77) 2 years ago
justheuristic fef48d7d99
Use bitsandbytes==0.34.0, update readme (#76)
* unlock bnb backward
* Fix bnb version in README
* Update requirements.txt
2 years ago
justheuristic 8caf1145a8
Quality of life changes: update readme, simplify run_server interface (#75)
- run_server now accepts model name as both positional and keyword argument
- changed names in README to account for interface updates
- moved model conversion from README to a separate wiki page
- updated requirements.txt
2 years ago
Artem Chumachenko 1046911dea
Add prompt tuning example on Personachat dataset (#69) 2 years ago
justheuristic 3fdcc55a56
fix protobuf version (#74)
* fix protobuf version
2 years ago
justheuristic e92487e5d2
Update dependency versions (#71)
* update dependency versions
* install bitsandbytes cpuonly from pip
* remove deprecated API from task pool
* clearer startup logs

Co-authored-by: Tim Dettmers <dettmers@cs.washington.edu>
2 years ago
Pavel Samygin 50535a8435
Priority tasks (#47)
* priority in handlers and backend pools
* simple points system on server side
* priortize task in handler before submit task
* fix tests
* s/expert/block/g

Co-authored-by: justheuristic <justheuristic@gmail.com>
2 years ago