Skip to main content

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.

Metadata

Release files for fvbitcore 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fvbitcore 0.1.0
File Size Uploaded Provenance
fvbitcore-0.1.0.tar.gz 57.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fvbitcore 0.1.0
File Interpreter ABI Platform
fvbitcore-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 125.4 kB

Release files / fvbitcore-0.1.0.tar.gz

Download URL fvbitcore-0.1.0.tar.gz
Size 57.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4ce12ad16a36aae5508092b6d78c4dc800fdb82a1e44fce576107b3ba01f3e75
BLAKE2b-256 checksum
How to use checksums
f89e9f5610f117471d4fecc2bf2f1a3b9c091d2d451827e52a715ec04649975c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / fvbitcore-0.1.0-py3-none-any.whl

Download URL fvbitcore-0.1.0-py3-none-any.whl
Size 67.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79de7a81676864cd578a6a235301e4550b4e486545a7cb14ac7e3e273d18e3b3
BLAKE2b-256 checksum
How to use checksums
8b7d1ca9f1a4176442c141ce0a1c5994fa84c11d615d3f3908c92a31b764d3f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for fvbitcore 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page