Hivemind

Latest version: v1.1.10.post2

Safety actively analyzes 628903 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

1.1.4

What's Changed
* Update p2pd to v0.3.13 by borzunov in https://github.com/learning-at-home/hivemind/pull/527


**Full Changelog**: https://github.com/learning-at-home/hivemind/compare/1.1.3...1.1.4

1.1.3

What's Changed
* Update moe.md by cirquit in https://github.com/learning-at-home/hivemind/pull/516
* Fix "unable to open shared memory" while using MPFuture by borzunov in https://github.com/learning-at-home/hivemind/pull/517
* Fix MPFuture failing outside inference mode by borzunov in https://github.com/learning-at-home/hivemind/pull/521
* Bump torch to >=1.9.0 by borzunov in https://github.com/learning-at-home/hivemind/pull/522
* Fix P2PDaemon's idle timeout by borzunov in https://github.com/learning-at-home/hivemind/pull/523
* Support torch.bfloat16 in hivemind.compression by borzunov in https://github.com/learning-at-home/hivemind/pull/524
* Remove stale PeerIDs in hivemind-dht's routing table by borzunov in https://github.com/learning-at-home/hivemind/pull/525

New Contributors
* cirquit made their first contribution in https://github.com/learning-at-home/hivemind/pull/516

**Full Changelog**: https://github.com/learning-at-home/hivemind/compare/1.1.2...1.1.3

1.1.2

What's Changed
* Forbid protobuf 4.x in requirements by justheuristic in https://github.com/learning-at-home/hivemind/pull/508
* Check if identity is already taken by borzunov in https://github.com/learning-at-home/hivemind/pull/511
* Add Petals to "Example Use Cases" by borzunov in https://github.com/learning-at-home/hivemind/pull/512
* Follow up 501 and 511 with minor fixes by borzunov in https://github.com/learning-at-home/hivemind/pull/513
* Update bitsandbytes, relax its version constraint by mryab in https://github.com/learning-at-home/hivemind/pull/510

**Full Changelog**: https://github.com/learning-at-home/hivemind/compare/1.1.1...1.1.2

1.1.1

What's Changed
* Handle errors in Runtime by justheuristic in https://github.com/learning-at-home/hivemind/pull/489
* metadata type changed to bytes by GreenFatGuy in https://github.com/learning-at-home/hivemind/pull/491
* fix: Parameter Averaging quickstart clarification by IAL32 in https://github.com/learning-at-home/hivemind/pull/492
* Make DHT ignore SIGINT by dbaranchuk in https://github.com/learning-at-home/hivemind/pull/493
* Update README with latest projects and publications by mryab in https://github.com/learning-at-home/hivemind/pull/494
* Add links to "Example Use Cases" by borzunov in https://github.com/learning-at-home/hivemind/pull/497
* Support bfloat16 for autograd by dbaranchuk in https://github.com/learning-at-home/hivemind/pull/499
* Remove libp2p handlers when ConnectionHandler, DHT, and DecentralizedAverager are shut down by borzunov in https://github.com/learning-at-home/hivemind/pull/501
* Fix PyTorch warning suppression by borzunov in https://github.com/learning-at-home/hivemind/pull/502
* Fix a potential deadlock in await_asynchronously with nested locks by justheuristic in https://github.com/learning-at-home/hivemind/pull/503
* Require TaskPoolBase to implement load_batch_to_runtime by justheuristic in https://github.com/learning-at-home/hivemind/pull/506
* Change runtime.py to choose tasks with lowest (instead of highest) priority by justheuristic in https://github.com/learning-at-home/hivemind/pull/505
* Add support for quantization with bitsandbytes by mryab in https://github.com/learning-at-home/hivemind/pull/490

New Contributors
* IAL32 made their first contribution in https://github.com/learning-at-home/hivemind/pull/492
* dbaranchuk made their first contribution in https://github.com/learning-at-home/hivemind/pull/493

**Full Changelog**: https://github.com/learning-at-home/hivemind/compare/1.1.0...1.1.1

1.1.0

Release highlights
* Starting from this release, all components of `hivemind.moe` use `libp2p` for communication. This comes with the same benefits as in averaging and DHT previously (simplified NAT traversal, better performance, etc.) and marks the end of gRPC usage in hivemind. The user API is mostly the same: if you were using abstractions like `RemoteMixtureOfExperts`, the code should not be changed, although cross-release training is not possible.
* If you need another way to reduce the network footprint during training with `hivemind.Optimizer`, you can now use [PowerSGD](https://arxiv.org/abs/1905.13727) for gradient averaging. This method decreases the communication costs by factorizing the gradients of the model and aggregating the factorized versions. To enable this method in your code, pass `grad_averager_factory=partial(PowerSGDGradientAverager, averager_rank=RANK)` when creating an instance of Optimizer. Here, RANK denotes the factorization rank; lower values give higher compression at the cost of the reconstruction quality.
* Similarly to `hivemind-server`, it is now possible to launch a dedicated DHT instance with a command-line tool. The tool, available via `hivemind-dht`, can be used to quickly create a lightweight peer that is used mostly for connecting others to the DHT (for example, on a publicly available server) or for DHT metadata replication.
* Previously, restarting a libp2p instance required generating a new P2P identity, which resulted in a new multiaddress. Thus, it was difficult to use the same command to connect to a peer in case of repeated launches, which is often the case during debugging. Now, you can store the persistent peer identity of a peer in a file and reuse it between launches: this is done by specifying the `--identity_path` argument, available both in the ALBERT example and CLI tools of hivemind.

Deprecations
* The parameters `quic`, `use_relay_hop`, and `use_relay_discovery` of hivemind.P2P are deprecated since our update of the libp2p dependency in the p2p daemon. They will be removed in the 1.2.0 release of hivemind

What's Changed
* Pin pytest version in requirements-dev, use file_descriptor in tests by justheuristic in https://github.com/learning-at-home/hivemind/pull/454
* Pin isort version, bump black by mryab in https://github.com/learning-at-home/hivemind/pull/456
* Clean compression/__init__.py by borzunov in https://github.com/learning-at-home/hivemind/pull/460
* Do not use offload_optimizer with local_updates by deafult by foksly in https://github.com/learning-at-home/hivemind/pull/462
* Add PowerSGD for compressed gradient averaging by artek0chumak in https://github.com/learning-at-home/hivemind/pull/432
* Bump Black to 22.3.0, pin Golang version by mryab in https://github.com/learning-at-home/hivemind/pull/466
* use_local_updates in optimizer by justheuristic in https://github.com/learning-at-home/hivemind/pull/468
* Update p2pd to v0.3.8 (and libp2p to v0.17.0) by borzunov in https://github.com/learning-at-home/hivemind/pull/469
* Generate new private key if identity file doesn't exist by borzunov in https://github.com/learning-at-home/hivemind/pull/473
* Convert hivemind.server to libp2p backend by GreenFatGuy in https://github.com/learning-at-home/hivemind/pull/470
* Implement a CLI for hivemind.DHT by mryab in https://github.com/learning-at-home/hivemind/pull/465
* Use PeerID exclusively to address MoE experts by justheuristic in https://github.com/learning-at-home/hivemind/pull/479
* Remove deprecated code in hivemind.optim and hivemind.averaging before the 1.1.0 release by mryab in https://github.com/learning-at-home/hivemind/pull/480
* Fix shape validation in GradientAverager by mryab in https://github.com/learning-at-home/hivemind/pull/481
* Change expiration time in declare_experts, fix update_period discrepancy by justheuristic in https://github.com/learning-at-home/hivemind/pull/482
* Add identity_path option for MoE.Server runners by GreenFatGuy in https://github.com/learning-at-home/hivemind/pull/484
* Simplify ExpertBackend interface by justheuristic in https://github.com/learning-at-home/hivemind/pull/483
* Clean up imports, remove unused utils by mryab in https://github.com/learning-at-home/hivemind/pull/486
* finish renaming experts -> module_backends in ConnectionHandler by justheuristic in https://github.com/learning-at-home/hivemind/pull/487
* Remove gRPC services and grpcio requirement by mryab in https://github.com/learning-at-home/hivemind/pull/485

New Contributors
* GreenFatGuy made their first contribution in https://github.com/learning-at-home/hivemind/pull/470

**Full Changelog**: https://github.com/learning-at-home/hivemind/compare/1.0.1...1.1.0

1.0.1

What's Changed
* Improve user-friendliness and fix misc errors in Optimizer, Averager and P2P by justheuristic pr-Mais borzunov mrseeker mryab in https://github.com/learning-at-home/hivemind/pull/428
* Skip gradient averaging if there are no other peers by justheuristic soodoshll borzunov in https://github.com/learning-at-home/hivemind/pull/440
* Move hivemind.Server from init, streamline imports by mryab in https://github.com/learning-at-home/hivemind/pull/441
* Change make_empty to make_zeros for TensorDescriptor by mryab in https://github.com/learning-at-home/hivemind/pull/442
* Fix offloaded optimizer with single peer by justheuristic elricwan borzunov in https://github.com/learning-at-home/hivemind/pull/450
* Fix "too many open files" issue by yhn112 in https://github.com/learning-at-home/hivemind/pull/444

**Full Changelog**: https://github.com/learning-at-home/hivemind/compare/1.0.0...1.0.1

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.