Home / ttf-ternary
oguzeldereli/ttf-ternary
Two-timescale threshold flips (TTF): training and converting ternary {-1,0,1} LLMs without full-precision master weights. ~1 byte of optimizer state per weight; 23B trains on a 16 GB GPU, Qwen3.8-27B converted and recovered on one 24 GB card.
PythonCategories: Local AIModels
Our summary
ttf-ternary is a training framework for ternary language models with values in {-1, 0, +1}. It trains and converts these models without full-precision master weights, using a two-timescale threshold flip (TTF) method and low-rank optimizer state.
Who it is for: Researchers and developers training or converting ternary language models on NVIDIA GPUs
What the README claims
- Trains ternary models without full-precision master weights, keeping weights packed at 1.6 bits
The weights stay packed at 1.6 bits (5 trits per byte) for the whole of training.
Not checked - Optimizer state is about one byte per weight
The optimizer state is low-rank, about one byte per weight in place of the 12-16 bytes of master weights plus Adam.
Not checked - A 23B-parameter model trains on one 16 GB GPU
A 23B-parameter model trains on one 16 GB GPU, and a converted Qwen3.8-27B trains on one 24 GB card.
Not checked - Reports validation results on Wikipedia and FineWeb-Edu compared with BitNet b1.58 and full precision
At 600M tokens of FineWeb-Edu TTF leads master + extras by 0.056 (3.0423 vs 3.0982).
Not checked - Has fast Triton kernels that use int8 tensor cores
The kernels are Triton and use the int8 tensor cores
Not checked
Written by AI from the project's README on 2026-11-12. It does not affect the verdict.
Watching: no other rule matched yet.
Gaining 5 stars this week. Last push today.
Verdict
MID scored 1h ago
- Hype
- 85
- Reality
- 59
- Hype Gap
- +25
- Momentum
- -
- Confidence
- 60%
- Maintained moves Reality +11 points.
- Responsive moves Reality -10 points.
Rule verdict-2.0, scoring score-2.0. How we score. Backtest.
Maintained by
Maintained by 1 primary developer, 0 external contributors in the last 90 days.
- oguzeldereli is a GitHub individual account.
- GitHub account created October 2024.
- Top contributors by commits: oguzeldereli 100%.
Why now 10% of its stars arrived in the last 7 days. No Hacker News posts in the last 7 days.
- Stars StarsThe number of GitHub stars on the repository at our latest reading.
- 50
- Gain 7d Gain 7dStars gained since our latest reading from at least 7 days ago.
- +5
- Pace Velocity (Nx usual pace)This week's star gain divided by the project's usual weekly gain. The usual gain is the average weekly gain over the 4 weeks before (days 8 to 35 ago), counted as at least 10 stars. 2.0x means twice the usual pace. Without a reading from 35 days ago, the ranking assumes 2% of the stars the project had 7 days ago as its usual weekly gain. More on the methodology page
- 0.5x
- HN points HN pointsHacker News points added up across posts that mention the project, published in the last 7 days.
- 0 7 days
- Downloads DownloadsDownloads per day of the project's package, as the registry (npm or PyPI) reports them.
- n/a
- Contributors Contributors, all timePeople and anonymous contributors who have ever committed to the repository, as GitHub counts them. A small number is context, not a flaw: many solid projects are kept by one or two people.
- 1
- Last release Latest releaseDays since the latest GitHub release was published.
- 12 days ago
Gain 24h Gain 24hStars gained since our latest reading from at least 24 hours ago. +3. Forks ForksThe number of GitHub forks of the repository at our latest reading. 6. Open issues Open issuesThe number of open issues on the repository at our latest reading, as GitHub counts them. 1. Days since push Days since pushDays since the last push to the repository. 0 days. Archived ArchivedWhether the owner has archived the repository on GitHub. An archived repository is read-only. no. Hacker News posts in 7 days Hacker News postsThe number of Hacker News posts that mention the project, published in the last 7 days.: 0. Watchers WatchersThe number of GitHub users watching the repository for notifications, at our latest reading. 1.
Facts
Nerd stuff
PythonCLI
- Stack
- PyTorch >=2.13 (detected)
- Runs on
- Python >=3.11 (detected)
- Interfaces
- CLI (detected)
- Hardware
- CUDA: referenced (detected)
- Docs
- docs/ folder (detected), examples/ folder (detected)
- Package ecosystem
- Python packaging (detected)
The Receipts
| Source | Evidence | Date |
|---|---|---|
| Hacker News | Thread, 5 points, 0 comments | 10 Nov 2026 |
| Newsletter or feed | [AINews] Mercor $750m Series D at $20B valuation, $3B run rate | 11 Nov 2026 |
What changed recently
GitHub release dates we stored. We do not track license changes yet.
Cite this
ttf-ternary is a GitHub project at https://github.com/oguzeldereli/ttf-ternary written mainly in Python, described there as "Two-timescale threshold flips (TTF): training and converting ternary {-1,0,1} LLMs without full-precision master weights. ~1 byte of optimizer state per weight; 23B trains on a 16 GB GPU, Qwen3.8-27B converted and recovered on one 24 GB card".
Source: https://midorreal.com/project/oguzeldereli-ttf-ternary, checked 22 November 2026. The same facts as JSON: /project/oguzeldereli-ttf-ternary.json.
Rank history
Peak day: +8 stars on 12 Nov 2026, 10 days ago.
Stars
Events in this window
- Feed mention: [AINews] Mercor $750m Series D at $20B valuation, $3B run rate
- Hacker News post, 5 points
Dated items we stored, last 30 days. They sit near the chart, they do not explain it.
Packages
- We checked npm, PyPI, Docker Hub, crates.io and Homebrew and found no package that links to this repository.
Signals
| Source | What we measured | Checked |
|---|---|---|
| GitHub | 50 stars, 5 gained in 7 days | 22 Nov 2026 |
| Hacker News | 1 post stored, 0 points in the last 7 days | 17 Nov 2026 |
| Feed mentions | 1 mention in tracked newsletters and blogs | 11 Nov 2026 |
| npm | No linked package found | - |
| PyPI | No linked package found | - |
| Docker Hub | No linked package found | - |
| crates.io | No linked package found | - |
| Homebrew | No linked package found | - |
| deps.dev | Not tracked yet | - |
| Hugging Face | Not tracked yet | - |
| Bluesky | Not tracked yet | - |
| Stack Exchange | Not tracked yet | - |
| YouTube | Not tracked yet | - |
Attention vs adoption
Attention: above 49% of tracked projects
Star velocity against all tracked projects
Adoption: not enough data to rank
Downloads, dependents and pulls
Not enough comparable data yet to set attention against adoption. This describes the numbers; it is not a verdict.
Compared with Local AI
| Measure | This project | Category median |
|---|---|---|
| Star velocity | 0.5 | 0.7 |
| Days since release | 12.4 | 8.0 |
| Contributors, all time | 1 | 3 |
| Median time to first reply on issues | no data | 20 hours |
| Commits in the last 30 days | 253 | 31 |
Star velocity: above 40% of Local AI projects
Days since release: above 65% of Local AI projects
Contributors, all time: above 0% of Local AI projects
Commits in the last 30 days: above 80% of Local AI projects
Compared with the project's first category only. A percentile line appears only where at least 30 projects in the category have the measure. This describes the numbers; it is not a verdict.
Compare with
Hacker News
| Post | Points PointsThe points the post has on Hacker News. | Comments CommentsThe number of comments on the post on Hacker News. | Date |
|---|---|---|---|
| Hacker News post | 5 | 0 | 10 Nov 2026 |
Caveats
Repo health
- Languages LanguagesShare of the repository's code by bytes, as GitHub's language detection reports it. The five biggest languages are named and the rest are grouped as Other.Python 88%, TeX 10%, Shell 1%, C++ 1%
- License LicenseThe SPDX license id GitHub detects, and a class: Open source (OSI) if the license is on the Open Source Initiative approved list, Source-available if the code is readable but the license limits use, Unclear if GitHub cannot match a known license, No license detected if it finds none. A public repository without a license is not open source.Unclear
- Repository age Repository ageTime since the repository was created on GitHub. This is the repository, not necessarily the project, which may have existed elsewhere before.2 months, created 31 Aug 2026
- Release dates Release datesThe date of the first and the latest GitHub release, and the latest release tag. Projects that ship without GitHub releases show none.First release 15 Oct 2026, current version v0.3.0 (9 Nov 2026)
Development
- Commits in the last 7 days Commits in the last 7 daysCommits to the repository in the last 7 days, as GitHub counts them.19
- Commits in the last 30 days Commits in the last 30 daysCommits to the repository in the last 30 days, as GitHub counts them.253
- Commits in the last 90 days Commits in the last 90 daysCommits to the repository in the last 90 days, as GitHub counts them.1,506
- Contributors, all time Contributors, all timePeople and anonymous contributors who have ever committed to the repository, as GitHub counts them. A small number is context, not a flaw: many solid projects are kept by one or two people.1, a small team
- Releases ReleasesThe number of GitHub releases, and how many days ago the latest one was published.3, latest release 12 days ago
- Releases in the last 90 days Releases in the last 90 daysHow many GitHub releases were published in the last 90 days.3
- Issues in the last 30 days Issues in the last 30 daysIssues opened and issues closed in the last 30 days, as GitHub search counts them.0 opened, 0 closed
- Pull requests merged in the last 30 days Pull requests merged in the last 30 daysPull requests merged in the last 30 days, as GitHub search counts them.0
Maintenance
- Stale open issues Stale open issuesOpen issues with no update in the last 90 days, as GitHub search counts them.0
- Open pull requests Open pull requestsPull requests open now, as GitHub search counts them.1
Hygiene
- Automated tests or builds (CI) Automated tests or builds (CI)Whether the repository has at least one GitHub Actions workflow file in .github/workflows.Yes
- A tests folder A tests folderWhether the repository has a top-level folder named tests, test, __tests__ or spec.Yes
- A license A licenseWhether GitHub detects a license file in the repository.Yes
- Contributing guide Contributing guideWhether the repository has a contributing guide.Yes
- Code of conduct Code of conductWhether GitHub finds a code of conduct in the repository.No
- CODEOWNERS file CODEOWNERS fileWhether the repository has a CODEOWNERS file, which names who reviews changes to which files.No
- A Dockerfile A DockerfileWhether the repository has a Dockerfile at its top level.No
Security
- Security policy Security policyWhether the repository has a SECURITY.md or SECURITY.rst file.No
- Unpatched high or critical advisories Unpatched high or critical advisoriesPublished GitHub security advisories rated high or critical on this repository that list a vulnerable version with no patched version.0
- Signed latest release Signed latest releaseWhether the latest GitHub release has an attached signature file (.sig, .asc or .sigstore).No
Badge
For maintainers: one measured fact, no verdict.
Markdown
[](https://midorreal.com/project/oguzeldereli-ttf-ternary)
HTML
<a href="https://midorreal.com/project/oguzeldereli-ttf-ternary"><img src="https://midorreal.com/badge/oguzeldereli-ttf-ternary.svg" alt="Mid or Real"></a>
Verdict badge: It shows the verdict as this page shows it today.
Markdown
[](https://midorreal.com/project/oguzeldereli-ttf-ternary)
HTML
<a href="https://midorreal.com/project/oguzeldereli-ttf-ternary"><img src="https://midorreal.com/badge/oguzeldereli-ttf-ternary.svg?style=verdict" alt="Mid or Real: MID"></a>
Passport
Copy these facts into a post, a README or a page. Cite as "Source: Mid or Real". Full record: JSON.
First tracked 11 Nov 2026 at 27 stars.
- GitHub data 3 h old
- Hacker News data 4 d old
Is this your project? Claim it
Figures by method 1.0