Zero-copy Neural-Native Interconnect for distributed AI.
Project description
import os import ctypes import platform
Get the directory where this Python file is installed
dir_path = os.path.dirname(os.path.abspath(file))
Detect OS and load the correct pre-compiled Rust binary
os_name = platform.system() if os_name == "Windows": lib_path = os.path.join(dir_path, "nni_core.dll") elif os_name == "Linux": lib_path = os.path.join(dir_path, "nni_core.so") elif os_name == "Darwin": # macOS lib_path = os.path.join(dir_path, "nni_core.dylib") else: raise RuntimeError(f"Unsupported OS: {os_name}")
Load the native silicon engine
try: _sdk = ctypes.CDLL(lib_path) except OSError as e: raise RuntimeError(f"Failed to load NNI native engine at {lib_path}. Error: {e}")
--- YOUR PYTHON WRAPPER CODE GOES BELOW HERE ---
class SharedSlate:
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file nni_sdk-1.0.0.tar.gz.
File metadata
- Download URL: nni_sdk-1.0.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c85972578d7f418ea489a69499ac946b0155b83b0374e40e22730bd50046c10
|
|
| MD5 |
3a8dd6535ed1a6c896f45b2e332eddfa
|
|
| BLAKE2b-256 |
7efe37a047df175577456a41301d0f012f342fd5018a47bb95b2cce17964c65e
|
File details
Details for the file nni_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nni_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77b0a07b8dbd4b290c3c87d5ffe7f23366a0e394ff195cfa7ea64c2571d740df
|
|
| MD5 |
5f13826a89f8846631c0291fae0e4c4f
|
|
| BLAKE2b-256 |
d08685e20e27d483c2f33c59d036282495467f35c2ab586571b7064b780d8848
|