{"id":31815704,"url":"https://github.com/xilinx/brevitas","last_synced_at":"2025-10-11T09:23:21.132Z","repository":{"id":40002736,"uuid":"140494324","full_name":"Xilinx/brevitas","owner":"Xilinx","description":"Brevitas: neural network quantization in PyTorch","archived":false,"fork":false,"pushed_at":"2025-10-03T16:59:47.000Z","size":48894,"stargazers_count":1390,"open_issues_count":204,"forks_count":230,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-10-03T18:47:23.690Z","etag":null,"topics":["brevitas","deep-learning","fpga","hardware-acceleration","neural-networks","ptq","pytorch","qat","quantization","xilinx"],"latest_commit_sha":null,"homepage":"https://xilinx.github.io/brevitas/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xilinx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-07-10T22:37:01.000Z","updated_at":"2025-10-01T16:30:44.000Z","dependencies_parsed_at":"2023-10-04T21:57:38.924Z","dependency_job_id":"82944a3f-1a61-49fd-bb57-de7dd99b86a7","html_url":"https://github.com/Xilinx/brevitas","commit_stats":{"total_commits":1282,"total_committers":23,"mean_commits":55.73913043478261,"dds":"0.45553822152886114","last_synced_commit":"200456825f3b4b8db414f2b25b64311f82d3991a"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/Xilinx/brevitas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xilinx%2Fbrevitas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xilinx%2Fbrevitas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xilinx%2Fbrevitas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xilinx%2Fbrevitas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xilinx","download_url":"https://codeload.github.com/Xilinx/brevitas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xilinx%2Fbrevitas/sbom","scorecard":{"id":153361,"data":{"date":"2025-08-11","repo":{"name":"github.com/Xilinx/brevitas","commit":"f0978b2d6df559dff9097d4e3c8ffbbcfd934b96"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Maintained","score":10,"reason":"0 commit(s) and 21 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":6,"reason":"Found 18/29 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/develop_install.yml:1","Warn: no topLevel permission defined: .github/workflows/end_to_end.yml:1","Warn: no topLevel permission defined: .github/workflows/examples_llm_pytest.yml:1","Warn: no topLevel permission defined: .github/workflows/examples_pytest.yml:1","Warn: no topLevel permission defined: .github/workflows/finn_integration.yml:1","Warn: no topLevel permission defined: .github/workflows/notebook.yml:1","Warn: no topLevel permission defined: .github/workflows/ort_integration.yml:1","Warn: no topLevel permission defined: .github/workflows/pre_commit.yml:1","Warn: no topLevel permission defined: .github/workflows/pytest.yml:1","Warn: no topLevel permission defined: .github/workflows/rebase.yml:1","Warn: no topLevel permission defined: .github/workflows/reduced_develop_install.yml:1","Warn: no topLevel permission defined: .github/workflows/reduced_end_to_end.yml:1","Warn: no topLevel permission defined: .github/workflows/reduced_examples_llm_pytest.yml:1","Warn: no topLevel permission defined: .github/workflows/reduced_examples_pytest.yml:1","Warn: no topLevel permission defined: .github/workflows/reduced_finn_integration.yml:1","Warn: no topLevel permission defined: .github/workflows/reduced_notebook.yml:1","Warn: no topLevel permission defined: .github/workflows/reduced_ort_integration.yml:1","Warn: no topLevel permission defined: .github/workflows/reduced_pytest.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/develop_install.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/develop_install.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/develop_install.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/develop_install.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/end_to_end.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/end_to_end.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/end_to_end.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/end_to_end.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/examples_llm_pytest.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/examples_llm_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/examples_llm_pytest.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/examples_llm_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/examples_pytest.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/examples_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/examples_pytest.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/examples_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/finn_integration.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/finn_integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/finn_integration.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/finn_integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/notebook.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/notebook.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/notebook.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/notebook.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ort_integration.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/ort_integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ort_integration.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/ort_integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre_commit.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/pre_commit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre_commit.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/pre_commit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre_commit.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/pre_commit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rebase.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/rebase.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rebase.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/rebase.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_develop_install.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_develop_install.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_develop_install.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_develop_install.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_end_to_end.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_end_to_end.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_end_to_end.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_end_to_end.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_examples_llm_pytest.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_examples_llm_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_examples_llm_pytest.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_examples_llm_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_examples_pytest.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_examples_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_examples_pytest.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_examples_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_finn_integration.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_finn_integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_finn_integration.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_finn_integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_notebook.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_notebook.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_notebook.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_notebook.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_ort_integration.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_ort_integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_ort_integration.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_ort_integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_pytest.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_pytest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reduced_pytest.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/Xilinx/brevitas/reduced_pytest.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/develop_install.yml:39","Warn: pipCommand not pinned by hash: .github/workflows/end_to_end.yml:42","Warn: pipCommand not pinned by hash: .github/workflows/examples_llm_pytest.yml:40","Warn: pipCommand not pinned by hash: .github/workflows/examples_pytest.yml:40","Warn: pipCommand not pinned by hash: .github/workflows/finn_integration.yml:39","Warn: pipCommand not pinned by hash: .github/workflows/notebook.yml:42","Warn: pipCommand not pinned by hash: .github/workflows/ort_integration.yml:39","Warn: pipCommand not pinned by hash: .github/workflows/pytest.yml:40","Warn: pipCommand not pinned by hash: .github/workflows/reduced_develop_install.yml:41","Warn: pipCommand not pinned by hash: .github/workflows/reduced_end_to_end.yml:44","Warn: pipCommand not pinned by hash: .github/workflows/reduced_examples_llm_pytest.yml:42","Warn: pipCommand not pinned by hash: .github/workflows/reduced_examples_pytest.yml:42","Warn: pipCommand not pinned by hash: .github/workflows/reduced_finn_integration.yml:41","Warn: pipCommand not pinned by hash: .github/workflows/reduced_notebook.yml:44","Warn: pipCommand not pinned by hash: .github/workflows/reduced_ort_integration.yml:41","Warn: pipCommand not pinned by hash: .github/workflows/reduced_pytest.yml:42","Info:   0 out of  35 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of  16 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"98 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114","Warn: Project is vulnerable to: GHSA-6rq9-53c3-f7vj","Warn: Project is vulnerable to: PYSEC-2023-38 / GHSA-ffxj-547x-5j7c","Warn: Project is vulnerable to: PYSEC-2025-10 / GHSA-h36j-8vv3-cj52","Warn: Project is vulnerable to: PYSEC-2024-223 / GHSA-h8wv-9h96-m4hr","Warn: Project is vulnerable to: PYSEC-2024-222 / GHSA-whh8-fjgc-qp73","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2017-74","Warn: Project is vulnerable to: GHSA-37mw-44qp-f5jm","Warn: Project is vulnerable to: GHSA-6rvg-6v2m-4j46","Warn: Project is vulnerable to: GHSA-9356-575x-2w9m","Warn: Project is vulnerable to: GHSA-fpwr-67px-3qhx","Warn: Project is vulnerable to: PYSEC-2024-229 / GHSA-hxxf-235m-72v3","Warn: Project is vulnerable to: GHSA-jjph-296x-mrcr","Warn: Project is vulnerable to: GHSA-phhr-52qp-3mj4","Warn: Project is vulnerable to: GHSA-q2wp-rjmx-x6x9","Warn: Project is vulnerable to: PYSEC-2025-40 / GHSA-qq3j-4f4f-9583","Warn: Project is vulnerable to: PYSEC-2024-227 / GHSA-qxrp-vhvm-j765","Warn: Project is vulnerable to: PYSEC-2024-228 / GHSA-wrfc-pvp9-mr9g","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2018-49 / GHSA-rprw-h62v-c2w7","Warn: Project is vulnerable to: GHSA-3f63-hfp8-52jq","Warn: Project is vulnerable to: PYSEC-2021-41 / GHSA-3wvg-mj6g-m9cv","Warn: Project is vulnerable to: PYSEC-2020-77 / GHSA-3xv8-3j54-hgrp","Warn: Project is vulnerable to: PYSEC-2020-80 / GHSA-43fq-w8qq-v88h","Warn: Project is vulnerable to: GHSA-44wm-f244-xhp3","Warn: Project is vulnerable to: GHSA-4fx9-vc88-q2xc","Warn: Project is vulnerable to: PYSEC-2021-35 / GHSA-57h3-9rgr-c24m","Warn: Project is vulnerable to: PYSEC-2020-172 / GHSA-5gm3-px64-rw72","Warn: Project is vulnerable to: PYSEC-2021-331 / GHSA-7534-mm45-c74v","Warn: Project is vulnerable to: PYSEC-2021-137 / GHSA-77gc-v2xv-rvvh","Warn: Project is vulnerable to: PYSEC-2021-92 / GHSA-7r7m-5h27-29hp","Warn: Project is vulnerable to: PYSEC-2020-78 / GHSA-8843-m7mw-mxqm","Warn: Project is vulnerable to: PYSEC-2023-227 / GHSA-8ghj-p4vj-mr35","Warn: Project is vulnerable to: PYSEC-2022-10 / GHSA-8vj2-vxx3-667w","Warn: Project is vulnerable to: PYSEC-2021-36 / GHSA-8xjq-8fcg-g5hw","Warn: Project is vulnerable to: PYSEC-2021-42 / GHSA-95q3-8gr9-gm8w","Warn: Project is vulnerable to: PYSEC-2022-168 / GHSA-9j59-75qj-795w","Warn: Project is vulnerable to: PYSEC-2020-76 / GHSA-cqhg-xjhh-p8hf","Warn: Project is vulnerable to: PYSEC-2021-40 / GHSA-f4w8-cv6p-x6r5","Warn: Project is vulnerable to: PYSEC-2021-69 / GHSA-f5g8-5qq7-938w","Warn: Project is vulnerable to: PYSEC-2021-139 / GHSA-g6rj-rv7j-xwp4","Warn: Project is vulnerable to: PYSEC-2021-71 / GHSA-hf64-x4gq-p99h","Warn: Project is vulnerable to: PYSEC-2020-84 / GHSA-hj69-c76v-86wr","Warn: Project is vulnerable to: GHSA-j7hp-h8jx-5ppr","Warn: Project is vulnerable to: PYSEC-2019-110 / GHSA-j7mj-748x-7p78","Warn: Project is vulnerable to: GHSA-jgpv-4h4c-xhw3","Warn: Project is vulnerable to: PYSEC-2022-42979 / GHSA-m2vv-5vj5-2hm7","Warn: Project is vulnerable to: PYSEC-2021-37 / GHSA-mvg9-xffr-p774","Warn: Project is vulnerable to: PYSEC-2021-39 / GHSA-p43w-g3c5-g5mq","Warn: Project is vulnerable to: PYSEC-2020-83 / GHSA-p49h-hjvm-jg3h","Warn: Project is vulnerable to: PYSEC-2022-8 / GHSA-pw3c-h7wp-cvhx","Warn: Project is vulnerable to: PYSEC-2021-93 / GHSA-q5hq-fp76-qmrc","Warn: Project is vulnerable to: PYSEC-2020-82 / GHSA-r7rm-8j6h-r933","Warn: Project is vulnerable to: PYSEC-2021-138 / GHSA-rwv7-3v45-hg29","Warn: Project is vulnerable to: PYSEC-2020-81 / GHSA-vcqg-3p29-xw73","Warn: Project is vulnerable to: PYSEC-2020-79 / GHSA-vj42-xq3r-hr3r","Warn: Project is vulnerable to: PYSEC-2021-70 / GHSA-vqcj-wrf2-7v73","Warn: Project is vulnerable to: PYSEC-2022-9 / GHSA-xrcv-f9gm-v42c","Warn: Project is vulnerable to: PYSEC-2021-317","Warn: Project is vulnerable to: PYSEC-2021-38","Warn: Project is vulnerable to: PYSEC-2021-94","Warn: Project is vulnerable to: PYSEC-2023-175","Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg","Warn: Project is vulnerable to: PYSEC-2019-41 / GHSA-qfc5-mcwq-26q8","Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: GHSA-3c5c-7235-994j","Warn: Project is vulnerable to: PYSEC-2014-87 / GHSA-8m9x-pxwq-j236","Warn: Project is vulnerable to: PYSEC-2016-6 / GHSA-8xjv-v9xq-m5h9","Warn: Project is vulnerable to: PYSEC-2014-10 / GHSA-cfmr-38g9-f2h7","Warn: Project is vulnerable to: PYSEC-2015-16 / GHSA-h5rf-vgqx-wjv2","Warn: Project is vulnerable to: PYSEC-2016-5 / GHSA-hggx-3h72-49ww","Warn: Project is vulnerable to: PYSEC-2016-7 / GHSA-hvr8-466p-75rh","Warn: Project is vulnerable to: PYSEC-2015-15 / GHSA-j6f7-g425-4gmx","Warn: Project is vulnerable to: PYSEC-2014-23 / GHSA-r854-96gq-rfg3","Warn: Project is vulnerable to: PYSEC-2016-8 / GHSA-rwr3-c2q8-gm56","Warn: Project is vulnerable to: PYSEC-2016-9 / GHSA-w4vg-rf63-f3j3","Warn: Project is vulnerable to: PYSEC-2014-22 / GHSA-x895-2wrm-hvp7","Warn: Project is vulnerable to: GHSA-3749-ghw9-m3mg","Warn: Project is vulnerable to: PYSEC-2022-43015 / GHSA-47fc-vmwq-366v","Warn: Project is vulnerable to: PYSEC-2025-41 / GHSA-53q9-r3pm-6pq6","Warn: Project is vulnerable to: PYSEC-2024-252 / GHSA-5pcm-hx3q-hm94","Warn: Project is vulnerable to: GHSA-887c-mr87-cxwp","Warn: Project is vulnerable to: PYSEC-2024-251 / GHSA-pg7h-5qx3-wjr3","Warn: Project is vulnerable to: PYSEC-2024-250","Warn: Project is vulnerable to: PYSEC-2024-259"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T11:12:45.533Z","repository_id":40002736,"created_at":"2025-08-16T11:12:45.534Z","updated_at":"2025-08-16T11:12:45.534Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006753,"owners_count":26084178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brevitas","deep-learning","fpga","hardware-acceleration","neural-networks","ptq","pytorch","qat","quantization","xilinx"],"created_at":"2025-10-11T09:23:19.088Z","updated_at":"2025-10-11T09:23:21.117Z","avatar_url":"https://github.com/Xilinx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brevitas\n\n[![Downloads](https://pepy.tech/badge/brevitas)](https://pepy.tech/project/brevitas)\n[![Pytest](https://github.com/Xilinx/brevitas/actions/workflows/pytest.yml/badge.svg?branch=master)](https://github.com/Xilinx/brevitas/actions/workflows/pytest.yml)\n[![Examples Pytest](https://github.com/Xilinx/brevitas/actions/workflows/examples_pytest.yml/badge.svg?branch=master)](https://github.com/Xilinx/brevitas/actions/workflows/examples_pytest.yml)\n[![DOI](https://zenodo.org/badge/140494324.svg)](https://zenodo.org/badge/latestdoi/140494324)\n\nBrevitas is a PyTorch library for neural network quantization, with support for both *post-training quantization (PTQ)* and *quantization-aware training (QAT)*.\n\n**Please note that Brevitas is a research project and not an official Xilinx product.**\n\nIf you like this project please consider ⭐ this repo, as it is the simplest and best way to support it.\n\n## Requirements\n\n* Python \u003e= 3.9, \u003c3.13\n* [Pytorch](https://pytorch.org) \u003e= 1.12, \u003c= 2.8 (more recent versions would be untested).\n* Windows, Linux or macOS.\n* GPU training-time acceleration (*Optional* but recommended).\n\n## Installation\n\nYou can install the latest release from PyPI:\n```bash\npip install brevitas\n```\n\n## Getting Started\n\nBrevitas currently offers quantized implementations of the most common PyTorch layers used in DNN under `brevitas.nn`, such as `QuantConv1d`, `QuantConv2d`, `QuantConvTranspose1d`, `QuantConvTranspose2d`, `QuantMultiheadAttention`, `QuantRNN`, `QuantLSTM` etc., for adoption within PTQ and/or QAT.\nFor each one of these layers, quantization of different tensors (inputs, weights, bias, outputs, etc) can be individually tuned according to a wide range of quantization settings.\n\nAs a reference for PTQ, Brevitas provides an example user flow for ImageNet classification models under [`brevitas_examples.imagenet_classification.ptq`](https://github.com/Xilinx/brevitas/blob/master/src/brevitas_examples/imagenet_classification/ptq/ptq_evaluate.py) that quantizes an input torchvision model using PTQ under different quantization configurations (e.g. bit-width, granularity of scale, etc).\n\nFor more info, checkout our [documentation](https://xilinx.github.io/brevitas/).\n\n## Cite as\n\nIf you adopt Brevitas in your work, please cite it as:\n```\n@software{brevitas,\n  author       = {Franco, Giuseppe and Pappalardo, Alessandro and Fraser, Nicholas J},\n  title        = {Xilinx/brevitas},\n  year         = {2025},\n  publisher    = {Zenodo},\n  doi          = {10.5281/zenodo.3333552},\n  url          = {https://doi.org/10.5281/zenodo.3333552}\n}\n```\n\n## History\n\n- *2025/08/28* - Release version 0.12.1, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.12.1).\n- *2025/05/09* - Release version 0.12.0, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.12.0).\n- *2024/10/10* - Release version 0.11.0, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.11.0).\n- *2024/07/23* - Minor release version 0.10.3, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.10.3).\n- *2024/02/19* - Minor release version 0.10.2, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.10.2).\n- *2024/02/15* - Minor release version 0.10.1, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.10.1).\n- *2023/12/08* - Release version 0.10.0, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.10.0).\n- *2023/04/28* - Minor release version 0.9.1, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.9.1).\n- *2023/04/21* - Release version 0.9.0, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.9.0).\n- *2023/01/10* - Release version 0.8.0, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.8.0).\n- *2021/12/13* - Release version 0.7.1, fix a bunch of issues. Added TVMCon 2021 tutorial notebook.\n- *2021/11/03* - Re-release version 0.7.0 (build 1) on PyPI to fix a packaging issue.\n- *2021/10/29* - Release version 0.7.0, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.7.0).\n- *2021/06/04* - Release version 0.6.0, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.6.0).\n- *2021/05/24* - Release version 0.5.1, fix a bunch of minor issues. See [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.5.1).\n- *2021/05/06* - Release version 0.5.0, see the [release notes](https://github.com/Xilinx/brevitas/releases/tag/v0.5.0).\n- *2021/03/15* - Release version 0.4.0, add support for \\_\\_torch_function\\_\\_ to QuantTensor.\n- *2021/03/04* - Release version 0.3.1, fix bug w/ act initialization from statistics w/ IGNORE_MISSING_KEYS=1.\n- *2021/03/01* - Release version 0.3.0, implements enum and shape solvers within extended dependency injectors. This allows declarative quantizers to be self-contained.\n- *2021/02/04* - Release version 0.2.1, includes various bugfixes of QuantTensor w/ zero-point.\n- *2021/01/30* - First release version 0.2.0 on PyPI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxilinx%2Fbrevitas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxilinx%2Fbrevitas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxilinx%2Fbrevitas/lists"}