Skip to content

Latest commit

 

History

History
82 lines (52 loc) · 2.59 KB

CONTRIBUTING.md

File metadata and controls

82 lines (52 loc) · 2.59 KB

Contributing to torchft

We want to make contributing to this project as easy and transparent as possible.

TL;DR

We appreciate all contributions. If you are interested in contributing to torchft, there are many ways to help out. Your contributions may fall into the following categories:

  • It helps the project if you can

    • Report issues that you're facing
    • Give a 👍 on issues that others reported and that are relevant to you
  • Answering questions on the issue tracker, investigating bugs are very valuable contributions to the project.

  • You would like to improve the documentation. This is no less important than improving the library itself! If you find a typo in the documentation, do not hesitate to submit a GitHub pull request.

  • If you would like to fix a bug:

    • comment on the issue that you want to work on this issue
    • send a PR with your fix, see below.
  • If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us.

  • If you would like to feature a usage example in our documentation, discuss that with us in an issue.

Issues

We use GitHub issues to track public bugs. Please follow the existing templates if possible and ensure that the description is clear and has sufficient instructions to be able to reproduce the issue.

Development installation

torchft is written in Python and Rust so you will need to install the Rust toolchain. rustup is recommended as it makes using tools such as linters much easier.

Once you have rust installed you can install the project via:

$ pip install -e .[dev]

Also see the installation instructions in the README.

Pull Requests

We actively welcome your pull requests.

  1. Fork the repo and create your branch from main.
  2. If you've added code that should be tested, add tests.
  3. If you've changed APIs, update the documentation and examples.
  4. Ensure the test suite passes.
  5. If you haven't already, complete the Contributor License Agreement ("CLA").

Code style

torchft enforces a fairly strict code format with tools such as cargo fmt and black.

scripts/lint.sh

Tests

$ scripts/test.sh

Contributor License Agreement ("CLA")

In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of Facebook's open source projects.

Complete your CLA here: https://code.facebook.com/cla

License

By contributing to torchft, you agree that your contributions will be licensed under the LICENSE file in the root directory of this source tree.