Simplified Leela Chess Zero (aka lc0 aka lcz) with Python
Project description
Lcz
Python bindings for Leela Chess Zero, simplified
Provides a simple interface around the original LCZero python bindings
Usage
import lcz
lcz.eval(fens=[
'rnbqkbnr/pp2pppp/2p5/3p4/3PP3/8/PPP2PPP/RNBQKBNR w KQkq - 0 3',
'r2qkbnr/pp2pppp/2n5/3p1b2/3P1B2/5N2/PPP2PPP/RN1QKB1R w KQkq - 4 6'
], weights_path='/path/to/lcz.pb.gz') # if not specified, uses the pre-packaged 'maia-1900.pb.gz'
# [{'b1d2': 0.008045054972171783, # [0, 1] probabilities (softmaxed)
# 'b1a3': 5.8913348766509444e-05,
# 'b1c3': 0.21684584021568298,
# ...
# },
# {'b1d2': 0.015918008983135223,
# 'b1a3': 0.0013550063595175743,
# 'b1c3': 0.09632844477891922,
# ...
# }]
Heads up
Expect it to take ages to build, as the whole C++ lib gets compiled. You can use pip install -v to check progress
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lcz-0.1.7.tar.gz
(1.3 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lcz-0.1.7-py3-none-any.whl
(1.3 MB
view details)
File details
Details for the file lcz-0.1.7.tar.gz.
File metadata
- Download URL: lcz-0.1.7.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c118581541ed2e9f7f43f9c9c536f9ab2d5120441d68274e6312c8bf3809bd4a
|
|
| MD5 |
2fa7aeb7227545fece10a3be94cf30ed
|
|
| BLAKE2b-256 |
fbaa644b56655d648a1ca9d32b6e568e5e86b04da10ea42ad7cc7f6ec76467dc
|
File details
Details for the file lcz-0.1.7-py3-none-any.whl.
File metadata
- Download URL: lcz-0.1.7-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49b21caf6fe4378f209c9178b05bdfee3ca1eb0215817cd4511ae74b70cfbb02
|
|
| MD5 |
aaa60c19f5c6175da7eba696664db447
|
|
| BLAKE2b-256 |
365366943de3023535d136fb634ba87c881ca4ef7239b07f1dc7abb159b00c4c
|