Skip to main content

Fork of https://github.com/facebookresearch/fvcore with support for bitorch

Project description

fvbitcore

Fork from this repository from Facebook. Fvcore offers operation level FLOP estimation. This repository adapts this tool to take into account quantization when calculating model flops and size.

This tool can be used together with bitorch to create and evaluate quantized deep learning models. The documentation may not yet be up-to-date yet. Read more about the original project below.

about the original fvcore project

fvcore is a light-weight core library that provides the most common and essential functionality shared in various computer vision frameworks developed in FAIR, such as Detectron2, PySlowFast, and ClassyVision. All components in this library are type-annotated, tested, and benchmarked.

The computer vision team in FAIR is responsible for maintaining fvcore.

Features:

Besides some basic utilities, fvcore includes the following features:

  • Common pytorch layers, functions and losses in fvcore.nn.
  • A hierarchical per-operator flop counting tool: see this note for details.
  • Recursive parameter counting: see API doc.
  • Recompute BatchNorm population statistics: see its API doc.
  • A stateless, scale-invariant hyperparameter scheduler: see its API doc.

Install:

fvbitcore requires pytorch and python >= 3.6.

Use one of the following ways to install:

1. Install from PyPI (updated nightly)

pip install -U fvbitcore

2. Install from Anaconda Cloud (updated nightly)

(Not yet supported.)

conda install -c fvbitcore -c iopath -c conda-forge fvbitcore

3. Install latest from GitHub

pip install -U 'git+https://github.com/hpi-xnor/fvbitcore'

4. Install from a local clone

git clone https://github.com/hpi-xnor/fvbitcore
pip install -e fvbitcore

License

This library is released under the Apache 2.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fvbitcore-0.1.0.tar.gz (57.7 kB view hashes)

Uploaded Source

Built Distribution

fvbitcore-0.1.0-py3-none-any.whl (67.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page