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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file fvbitcore-0.1.0.tar.gz.

File metadata

  • Download URL: fvbitcore-0.1.0.tar.gz
  • Upload date:
  • Size: 57.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for fvbitcore-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ce12ad16a36aae5508092b6d78c4dc800fdb82a1e44fce576107b3ba01f3e75
MD5 df2078b916b33946630387e973b334aa
BLAKE2b-256 f89e9f5610f117471d4fecc2bf2f1a3b9c091d2d451827e52a715ec04649975c

See more details on using hashes here.

File details

Details for the file fvbitcore-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fvbitcore-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 67.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for fvbitcore-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79de7a81676864cd578a6a235301e4550b4e486545a7cb14ac7e3e273d18e3b3
MD5 c6ff436b4afbd91c285dbf2f87fd1d51
BLAKE2b-256 8b7d1ca9f1a4176442c141ce0a1c5994fa84c11d615d3f3908c92a31b764d3f1

See more details on using hashes here.

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