Skip to content

Repository files navigation

logo

lczerolens 🔍

Documentation lczerolens license uv Ruff python versions

codecov ci-tests ci-tests-slow publish docs

Portable PyTorch evaluation and chess-decision evidence for lc0-family models.

Getting Started

Install the package. Use the hub extra for the example below:

pip install "lczerolens[hub]"

Evaluate a position:

import chess
from lczerolens import LczeroEvaluator, LczeroModel

model = LczeroModel.from_hf("lczerolens/maia-1100")
evaluator = LczeroEvaluator(model)
evaluation = evaluator.evaluate(chess.Board())

print(evaluation.policy.best_move)
print(evaluation.policy["e2e4"].probability)

Examples

For the package boundary and detailed guides, see the documentation.

Contribute

See CONTRIBUTING.md. Development and test commands live there rather than in the quick-start path.

Citation

If you use lczerolens in research, cite the version you used. The canonical metadata is in CITATION.cff.

@software{poupart_lczerolens_2026,
  author = {Poupart, Yoann},
  title = {LczeroLens},
  version = {0.5.0},
  year = {2026},
  url = {https://github.com/Xmaster6y/lczerolens}
}

License

lczerolens is licensed under the MIT License. See LICENSE for details.

About

🔬 Interpretability for Leela Chess Zero networks.

Topics

Resources

Contributing

Stars

21 stars

Watchers

5 watching

Forks

Releases

Used by

Contributors

Languages