Skip to content

Latest commit

 

History

History
84 lines (67 loc) · 6.41 KB

File metadata and controls

84 lines (67 loc) · 6.41 KB

t81lib docs portal

This landing page highlights the most helpful resources for people discovering t81lib or wanting to understand the balanced ternary engine without digging through specs immediately.

Featured example

Try the compact, end-to-end PTQ + QAT notebook that measures size, latency, and perplexity on Phi-3-mini: examples/ternary_phi3_ptq_qat_demo.ipynb.

Featured demoTry Phi-3-mini PTQ + QAT

Getting started for Torch users

If you are arriving from PyTorch or Hugging Face, use t81 as the single entry point and alias it once:

python3 -m venv .venv
source .venv/bin/activate
pip install ".[torch]"
import t81 as t8

tensor = t8.torch.TernaryTensor.from_float(weight, threshold=0.45)
output = tensor.matmul_input(input_tensor, bias=bias)

From here: t8.nn.Linear for drop-in layers, t8.convert/t8.gguf for scripted conversion, and t81 convert/t81 gguf for CLI workflows.

Core resources

Stay aligned

  1. Review CONTRIBUTING.md before opening a PR—workflows, invariants, and branch expectations are documented there.
  2. Check CHANGELOG.md to understand recent breaking changes or stabilization notes.
  3. Run cmake -S . -B build -DT81LIB_BUILD_TESTS=ON + ctest after local changes to keep deterministic behavior intact.

Want to present t81lib?

Use this portal when pitching the library internally or prepping release notes. The combination of README.md, ARCHITECTURE.md, and docs/ creates a cohesive narrative that balances hands-on examples, design rationale, and testing expectations.