Public record
Software health reportschema 0.34.0 · metrics 2.10.0 · 2026-10-23 17:07 UTC

huggingface / trl

Train transformer language models with reinforcement learning.

PythonApache-2.0★ 19,590 stars⑂ 3,093 forkssince Mar 2020View on GitHub ↗
KindCommand-line toolLibraryhow this is determined

huggingface/trl holds a health index of 99 out of 100, placing it in the Exceptional band. It scores highest on Vitality (100/100) and lowest on Security (79/100). It was last updated today. 2 contributors account for most of its recent work.

99
overall / 100
Exceptional

Software health index

Metrics are grouped into weighted categories on one standardized 1–100 scale. Overall starts as their weighted mean, calibrated against the distribution of the public record so bands carry percentile meaning; when public evidence triggers the High-Risk Jurisdiction Policy, the rating is adjusted and receives an At Risk ceiling of 34.

99
Exceptional93-100The record's top tier (≈ top 5%); essentially all checked criteria met
Excellent80-92Strong across the board; minor gaps
Good65-79Healthy; gaps are limited and manageable
Moderate50-64Acceptable with notable gaps; review recommended
Weak35-49Material weaknesses across several areas
At Risk20-34Significant weaknesses; adoption warrants caution
Critical1-19Severe problems (abandoned, single-maintainer, no hygiene)
VitalityCommunity &AdoptionSustainability &GovernanceEngineeringQualitySecurityAI Readiness

Score profile

Each axis is a category. The shape matters more than the average — a healthy subject fills the whole shape, while a spike-and-crater profile means strength in one dimension is masking risk in another.

The weighted overall 90 is calibrated to 99 on the published index scale (record calibration 2026-08-02).

Ownership

Hugging FaceOrganization · verified domain
69,993 followers474 public repossince Feb 2017

This repository is backed by an organization — shared, accountable stewardship that can outlive any single maintainer.

Package ecosystems

RegistryPackageVersionDownloads / moVersionsLast publishTags
PyPItrl1.16.02,540,6611067 days agotransformershuggingfacelanguage-modelingpost-trainingrlhfsftdpogrpo

Metrics by category

Vitality

Is the project alive — is code being written and are releases shipping?

100Exceptional · 21% of overall

Development activity

100Exceptional
How it's scored
36/36Push recency — last push 0 days ago
36/36Commit cadence — 52/52 weeks with commits
18/18Commit volume — 1,973 commits in the last year
10/10OpenSSF Scorecard: Maintained — 30 commit(s) and 23 issue activity found in the last 90 days -- score normalized to 10
Inputs used
Commits in the last year1,973
Share of human-authored commits1
Days since last push0
Weeks with commits in the last year52

Release discipline

100Exceptional
How it's scored
27/27Ships releases — 100 releases published
36/36Release recency — latest release 7 days ago
27/27Release cadence — a release every ~8.8 days
0/10OpenSSF Scorecard: Signed-Releases — no data
Inputs used
Number of releases100
Latest release tagv1.16.0
Releases derived from version tagsno
Days since latest release7
Mean days between releases8.8
Excluded from scoring (no data or not applicable): OpenSSF Scorecard: Signed-Releases. Remaining weights renormalized.

Community & Adoption

Does the project have users, downloads, attention, and a welcoming setup for contributors?

96Exceptional · 17% of overall
How it's scored
60/60Stars — 19,590 stars
25/25Forks — 3,093 forks
11.3/15Watchers — 109 watchers
Inputs used
Forks3,093
Stars19,590
Watchers109
Growth authenticity stateunverified
Multiplier applied to stars and forks (%)100
Reason growth could not be assessedno_history

Community health

92Excellent
How it's scored
22.5/22.5README
22.5/22.5License — recognized license (Apache-2.0)
18/18CONTRIBUTING guide
13.5/13.5Code of conduct
0/7.2Issue template
6.3/6.3PR template
Inputs used
README presentyes
License file presentyes
Badges in the README4
CONTRIBUTING guide presentyes
Issue template presentno
Code of conduct presentyes
Badge services used in the READMEshields.io
Pull request template presentyes
How it's scored
80/80Monthly downloads — 2,540,661 downloads/month across pypi
0/20Registry dependents — not reported by this ecosystem
Inputs used
Packagestrl
Registry dependents—
Package ecosystemspypi
Total downloads—
Monthly downloads2,540,661
Packages excluded as unverified—
Excluded from scoring (no data or not applicable): Registry dependents. Remaining weights renormalized.

Sustainability & Governance

Will the project survive its people — bus factor, responsiveness, who backs it, and package upkeep?

82Excellent · 23% of overall
How it's scored
25.2/54Bus factor — 2 contributor(s) cover half of all commits
15.3/22.5Commit distribution — top contributor authored 32% of commits
13.5/13.5Contributor breadth — 98 contributors
10/10OpenSSF Scorecard: Contributors — project has 17 contributing companies or organizations
Inputs used
Bus factor2
Contributors sampled98
Share of commits by the top contributor0.321
How it's scored
39.7/42Issue resolution — 95% of issues closed
23.2/30PR acceptance — 3,728/4,826 decided PRs merged
1.3/13Newcomer PR acceptance — 1/10 first-time contributors' PRs merged in 30d
7.5/15OpenSSF Scorecard: Code-Review — Found 17/30 approved changesets -- score normalized to 5
Inputs used
Merged pull requests3,728
Open issues150
Closed issues2,619
Pull requests merged in the last 7 days44
Pull requests decided in the last 7 days57
Pull requests merged in the last 30 days47
Pull requests decided in the last 30 days60
Share of issues closed0.946
Pull requests closed without merging1,098
First-time contributors with a pull request decided in the last 30 days8
Pull requests from first-time contributors merged in the last 30 days1
Pull requests from first-time contributors decided in the last 30 days10
How it's scored
30/30Ownership backing — organization-owned
20/20Verified domain
25/25Owner reach — 69,993 followers of huggingface
25/25Track record — 474 public repos, account ~9 yr old
Inputs used
Followers69,993
Owner account typeOrganization
Verified domainyes
Owner accounthuggingface
Public repositories474
Owner account age in days3,540

Package maintenance

100Exceptional
How it's scored
25/25Published & resolvable — 1 package(s) on pypi
35/35Publish recency — latest publish 7 days ago
20/20Version history — 106 published versions
20/20Not deprecated — active, not deprecated or yanked
Inputs used
Packagestrl
Package ecosystemspypi
Any package deprecated or yankedno
Days since latest package publish7

Engineering Quality

Are baseline engineering and documentation practices in place?

92Excellent · 19% of overall
How it's scored
24/24CI workflows — 19 workflow(s)
24/24Tests present
16/16Linter config — pyproject.toml ([tool.ruff])
9.6/9.6Pre-commit hooks
0/6.4.editorconfig
20/20OpenSSF Scorecard: CI-Tests — 29 out of 29 merged PRs checked by a CI test -- score normalized to 10
Inputs used
CI workflows presentyes
Tests presentyes
.editorconfig presentno
Linter config presentyes
Pre-commit config presentyes

Documentation

90Excellent
How it's scored
30/30README
25/25Documentation directory
15/15Documentation / homepage site — http://hf.co/docs/trl
10/10Repository description
0/10Topics
10/10Wiki
Inputs used
Repository topics—
Wiki enabledyes
Repository homepagehttp://hf.co/docs/trl
Documentation sitehttp://hf.co/docs/trl
README presentyes
Documentation directory presentyes
Repository description presentyes

Security

Are visible security and supply-chain practices strong, without unresolved high-risk jurisdiction exposure?

79Good · 16% of overall
How it's scored
7.5/7.5Binary-Artifacts — no binaries found in the repo
3.8/7.5Branch-Protection — branch protection is not maximal on development and all release branches
2.5/2.5CI-Tests — 29 out of 29 merged PRs checked by a CI test -- score normalized to 10
0/2.5CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected
3.8/7.5Code-Review — Found 17/30 approved changesets -- score normalized to 5
2.5/2.5Contributors — project has 17 contributing companies or organizations
10/10Dangerous-Workflow — no dangerous workflow patterns detected
7.5/7.5Dependency-Update-Tool — update tool detected
0/5Fuzzing — project is not fuzzed
2.5/2.5License — license file detected
7.5/7.5Maintained — 30 commit(s) and 23 issue activity found in the last 90 days -- score normalized to 10
5/5Packaging — packaging workflow detected
4/5Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 8
3.5/5SAST — SAST tool detected but not run on all commits
5/5Security-Policy — security policy file detected
0/7.5Signed-Releases — no data
0/7.5Token-Permissions — detected GitHub workflow tokens with excessive permissions
7.5/7.5Vulnerabilities — 0 existing vulnerabilities detected
Inputs used
Data sourceopenssf_scorecard
Scorecard checks evaluated17
OpenSSF Scorecard versionv5.5.0
Scorecard checks inconclusive1
OpenSSF Scorecard aggregate score7.4
Excluded from scoring (no data or not applicable): Signed-Releases. Remaining weights renormalized.

Dependency advisories

100Exceptional
How it's scored
35/35Direct dependencies free of known advisories — no direct dependency carries a known advisory
25/25Indirect dependencies free of known advisories — no indirect dependency carries a known advisory
0/40No advisories left outstanding — no advisory carries a publication date
Inputs used
Data sourceosv
Advisories across affected packages0
Packages affected by advisories0
Packages assessed72
Packages not assessed0
Affected packages by severitynone
Direct dependencies affected by advisories0
Excluded from scoring (no data or not applicable): No advisories left outstanding. Remaining weights renormalized. Matched the pypi:trl@1.16.0 runtime dependency closure — what installing the published package pulls in — 72 packages. Reachability is not analyzed.

AI Readiness

How well is the repo equipped to be developed and maintained with AI coding agents? Carries a deliberately small weight (4%): agent tooling is a real maintenance signal, but a repository with none can still reach 100/100.

84Excellent · 4% of overall
How it's scored
45/45Agent instructions — .ai/AGENTS.md, AGENTS.md, CLAUDE.md
0/15Machine-readable docs (llms.txt)
32.5/40Legible commit history — 61 of 100 human commits state their intent (structured subject or explanatory body)
Inputs used
llms.txt presentno
llms.txt address on the project website—
Share of human commits that state their intent0.61
Agent instruction files.ai/AGENTS.md, AGENTS.md, CLAUDE.md
Size of the largest agent instruction file (bytes)6,973
How it's scored
18/18One-command bootstrap — Makefile
22/22Automated tests
11/11Lint / format config — pyproject.toml ([tool.ruff])
11/11Static type checking — trl/py.typed
10/10Reproducible environment — Dockerfile
0/10Demonstrated agent practice — no agent-authored commits among the last 100
5/8Automated maintenance — dependency automation configured, none observed in the sampled commits
8/10OpenSSF Scorecard: Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 8
Inputs used
Nix config presentno
Tests presentyes
Dependency lockfiles—
Dockerfile presentyes
Primary language statically typedno
One-command bootstrap filesMakefile
Dev container config presentno
Linter config presentyes
Static type-check config filestrl/py.typed
Share of commits authored by or credited to coding agents0
Toolchain manifests—
Share of commits that are automated dependency updates0
How it's scored
27/45Type-checkable code — Python with type-check config (trl/py.typed)
50.5/55Manageable file sizes — 27/327 source files over 60KB
Inputs used
Primary languagePython
Size of the largest source file (bytes)259,082
Source files sampled327
Oversized source files27
How it's scored
0/40API schema (OpenAPI/GraphQL/proto) — not applicable to this kind of software
0/20MCP server — not applicable to this kind of software
40/40Runnable examples — examples, notebooks
Inputs used
Runnable example directoriesexamples, notebooks
MCP server signal presentno
API schema files—
Software kinds for which an interface is expected—
Excluded from scoring (no data or not applicable): API schema (OpenAPI/GraphQL/proto), MCP server. Remaining weights renormalized.

Key facts

19,590GitHub stars
98contributors
1,973commits, last 12 months
0days since last push
100releases
2bus factor
150open issues
PyPIpackage ecosystems

Data collection warnings

  • Star history unavailable
  • First-time contributor figures cover 12 of 16 authors (cap 12)

More detail

Star and fork history 0 ★ / 3,093 ⇿
0Stars
3,093Forks
37Releases

When each star and fork was added, collected from GitHub and bucketed by day. Cumulative growth sits directly above the daily additions it is made of, so the two read against each other: steady organic accretion looks nothing like an abrupt, short-lived burst. Where that difference is measurable, it is reported as growth authenticity.

Only the most recent history is shown — this repository exceeds the collection window, so the earliest history is not captured.

2,0002,2002,4002,6002,8003,0003,2003,093142025-092026-042026-10
Major 1Minor 22Patch 13

Each point covers 2 days.

OpenSSF Scorecard 7.4 / 10
7.4aggregate

Independent, tool-agnostic security assessment from the open-source OpenSSF Scorecard. Each check rewards a security practice, not a specific vendor's tool. Checks Scorecard could not determine are marked n/a and excluded from the security score (never counted as zero).Scorecard v5.5.0 · 2026-10-23 17:07 UTC

10Binary-Artifactsno binaries found in the repo
5Branch-Protectionbranch protection is not maximal on development and all release branches
10CI-Tests29 out of 29 merged PRs checked by a CI test -- score normalized to 10
0CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
5Code-ReviewFound 17/30 approved changesets -- score normalized to 5
10Contributorsproject has 17 contributing companies or organizations
10Dangerous-Workflowno dangerous workflow patterns detected
10Dependency-Update-Toolupdate tool detected
0Fuzzingproject is not fuzzed
10Licenselicense file detected
10Maintained30 commit(s) and 23 issue activity found in the last 90 days -- score normalized to 10
10Packagingpackaging workflow detected
8Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 8
7SASTSAST tool detected but not run on all commits
10Security-Policysecurity policy file detected
n/aSigned-Releasesno releases found
0Token-Permissionsdetected GitHub workflow tokens with excessive permissions
10Vulnerabilities0 existing vulnerabilities detected
Direct dependencies 12
RegistryPackageVersion constraintManifest
PyPIaccelerate>=1.11.0pyproject.toml
PyPIdatasets>=4.7.0pyproject.toml
PyPIhuggingface_hub>=0.34.0pyproject.toml
PyPIjinja2—pyproject.toml
PyPInumpy>=1.26.0pyproject.toml
PyPIpackaging>20.0pyproject.toml
PyPIpandas>=2.1.1pyproject.toml
PyPIpsutil>=5.9.4pyproject.toml
PyPIpyarrow>=21.0.0pyproject.toml
PyPIpyyaml>=6.0.1pyproject.toml
PyPItorch>=2.6.0pyproject.toml
PyPItransformers>=4.56.2pyproject.toml
All dependencies 24

Full resolved dependency set from the GitHub dependency graph: 11 direct and 13 indirect (transitive) packages. The transitive closure is complete when the repository commits a lockfile.

RegistryPackageVersionRelation
PyPIaccelerate—direct
PyPIdatasets—direct
PyPIhuggingface-hub—direct
PyPInumpy—direct
PyPIpackaging—direct
PyPIpandas—direct
PyPIpsutil—direct
PyPIpyarrow—direct
PyPIpyyaml—direct
PyPItorch—direct
PyPItransformers—direct
PyPIaiohttp—indirect
PyPIbitsandbytes—indirect
PyPIdeepspeed—indirect
PyPIharbor—indirect
PyPIliger-kernel—indirect
PyPImath-verify—indirect
PyPInum2words0.5.14indirect
PyPIopenreward—indirect
PyPIpeft—indirect
PyPIpytest-datadir—indirect
PyPIpytest-rerunfailures—indirect
PyPIsetuptools—indirect
PyPIvllm—indirect
Dependency advisories 0

Installing pypi:trl@1.16.0 pulls in 72 packages, direct and transitive: 0 carry known advisories, of which 0 are direct dependencies.

No known advisories affect the assessed dependencies.

An advisory means the version recorded in the dependency graph falls inside an advisory’s affected range. Reachability is not analysed, and the graph includes development and test pins — a finding may concern tooling rather than shipped software.

Raw JSON report machine-readable

Feedback

Spotted something off in this report, or have thoughts to share? Wrong measurements, missed tooling, ideas, questions — anything is welcome. Every message is read and gets a response.

The message is kept through sign-in.

Scores are signals, not warranties. They reflect publicly visible practices on GitHub — not a code audit, and not a security guarantee.

Missing data is excluded and weights renormalized, never scored as zero. Methodology is versioned and open: metrics v2.10.0, schema v0.34.0 — full methodology · metrics wiki.

How one result sits in the wider record: aggregate statistics — PyPI.