nni-sdk 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nni_sdk-1.0.0/MANIFEST.in +3 -0
- nni_sdk-1.0.0/PKG-INFO +49 -0
- nni_sdk-1.0.0/README.md +27 -0
- nni_sdk-1.0.0/nni_sdk.egg-info/PKG-INFO +49 -0
- nni_sdk-1.0.0/nni_sdk.egg-info/SOURCES.txt +7 -0
- nni_sdk-1.0.0/nni_sdk.egg-info/dependency_links.txt +1 -0
- nni_sdk-1.0.0/nni_sdk.egg-info/top_level.txt +1 -0
- nni_sdk-1.0.0/setup.cfg +4 -0
- nni_sdk-1.0.0/setup.py +23 -0
nni_sdk-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nni-sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Zero-copy Neural-Native Interconnect for distributed AI.
|
|
5
|
+
Home-page: https://github.com/Nidhesh-Sarvaiya/nni-sdk
|
|
6
|
+
Author: Nidhesh Sarvaiya
|
|
7
|
+
Author-email: support.nni.sdk@gmail.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
12
|
+
Requires-Python: >=3.7
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: requires-python
|
|
21
|
+
Dynamic: summary
|
|
22
|
+
|
|
23
|
+
import os
|
|
24
|
+
import ctypes
|
|
25
|
+
import platform
|
|
26
|
+
|
|
27
|
+
# Get the directory where this Python file is installed
|
|
28
|
+
dir_path = os.path.dirname(os.path.abspath(__file__))
|
|
29
|
+
|
|
30
|
+
# Detect OS and load the correct pre-compiled Rust binary
|
|
31
|
+
os_name = platform.system()
|
|
32
|
+
if os_name == "Windows":
|
|
33
|
+
lib_path = os.path.join(dir_path, "nni_core.dll")
|
|
34
|
+
elif os_name == "Linux":
|
|
35
|
+
lib_path = os.path.join(dir_path, "nni_core.so")
|
|
36
|
+
elif os_name == "Darwin": # macOS
|
|
37
|
+
lib_path = os.path.join(dir_path, "nni_core.dylib")
|
|
38
|
+
else:
|
|
39
|
+
raise RuntimeError(f"Unsupported OS: {os_name}")
|
|
40
|
+
|
|
41
|
+
# Load the native silicon engine
|
|
42
|
+
try:
|
|
43
|
+
_sdk = ctypes.CDLL(lib_path)
|
|
44
|
+
except OSError as e:
|
|
45
|
+
raise RuntimeError(f"Failed to load NNI native engine at {lib_path}. Error: {e}")
|
|
46
|
+
|
|
47
|
+
# --- YOUR PYTHON WRAPPER CODE GOES BELOW HERE ---
|
|
48
|
+
# class SharedSlate:
|
|
49
|
+
# ...
|
nni_sdk-1.0.0/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import ctypes
|
|
3
|
+
import platform
|
|
4
|
+
|
|
5
|
+
# Get the directory where this Python file is installed
|
|
6
|
+
dir_path = os.path.dirname(os.path.abspath(__file__))
|
|
7
|
+
|
|
8
|
+
# Detect OS and load the correct pre-compiled Rust binary
|
|
9
|
+
os_name = platform.system()
|
|
10
|
+
if os_name == "Windows":
|
|
11
|
+
lib_path = os.path.join(dir_path, "nni_core.dll")
|
|
12
|
+
elif os_name == "Linux":
|
|
13
|
+
lib_path = os.path.join(dir_path, "nni_core.so")
|
|
14
|
+
elif os_name == "Darwin": # macOS
|
|
15
|
+
lib_path = os.path.join(dir_path, "nni_core.dylib")
|
|
16
|
+
else:
|
|
17
|
+
raise RuntimeError(f"Unsupported OS: {os_name}")
|
|
18
|
+
|
|
19
|
+
# Load the native silicon engine
|
|
20
|
+
try:
|
|
21
|
+
_sdk = ctypes.CDLL(lib_path)
|
|
22
|
+
except OSError as e:
|
|
23
|
+
raise RuntimeError(f"Failed to load NNI native engine at {lib_path}. Error: {e}")
|
|
24
|
+
|
|
25
|
+
# --- YOUR PYTHON WRAPPER CODE GOES BELOW HERE ---
|
|
26
|
+
# class SharedSlate:
|
|
27
|
+
# ...
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nni-sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Zero-copy Neural-Native Interconnect for distributed AI.
|
|
5
|
+
Home-page: https://github.com/Nidhesh-Sarvaiya/nni-sdk
|
|
6
|
+
Author: Nidhesh Sarvaiya
|
|
7
|
+
Author-email: support.nni.sdk@gmail.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
12
|
+
Requires-Python: >=3.7
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: requires-python
|
|
21
|
+
Dynamic: summary
|
|
22
|
+
|
|
23
|
+
import os
|
|
24
|
+
import ctypes
|
|
25
|
+
import platform
|
|
26
|
+
|
|
27
|
+
# Get the directory where this Python file is installed
|
|
28
|
+
dir_path = os.path.dirname(os.path.abspath(__file__))
|
|
29
|
+
|
|
30
|
+
# Detect OS and load the correct pre-compiled Rust binary
|
|
31
|
+
os_name = platform.system()
|
|
32
|
+
if os_name == "Windows":
|
|
33
|
+
lib_path = os.path.join(dir_path, "nni_core.dll")
|
|
34
|
+
elif os_name == "Linux":
|
|
35
|
+
lib_path = os.path.join(dir_path, "nni_core.so")
|
|
36
|
+
elif os_name == "Darwin": # macOS
|
|
37
|
+
lib_path = os.path.join(dir_path, "nni_core.dylib")
|
|
38
|
+
else:
|
|
39
|
+
raise RuntimeError(f"Unsupported OS: {os_name}")
|
|
40
|
+
|
|
41
|
+
# Load the native silicon engine
|
|
42
|
+
try:
|
|
43
|
+
_sdk = ctypes.CDLL(lib_path)
|
|
44
|
+
except OSError as e:
|
|
45
|
+
raise RuntimeError(f"Failed to load NNI native engine at {lib_path}. Error: {e}")
|
|
46
|
+
|
|
47
|
+
# --- YOUR PYTHON WRAPPER CODE GOES BELOW HERE ---
|
|
48
|
+
# class SharedSlate:
|
|
49
|
+
# ...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
nni_sdk-1.0.0/setup.cfg
ADDED
nni_sdk-1.0.0/setup.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="nni-sdk",
|
|
5
|
+
version="1.0.0",
|
|
6
|
+
author="Nidhesh Sarvaiya",
|
|
7
|
+
author_email="support.nni.sdk@gmail.com",
|
|
8
|
+
description="Zero-copy Neural-Native Interconnect for distributed AI.",
|
|
9
|
+
long_description=open("README.md").read(),
|
|
10
|
+
long_description_content_type="text/markdown",
|
|
11
|
+
url="https://github.com/Nidhesh-Sarvaiya/nni-sdk",
|
|
12
|
+
packages=find_packages(),
|
|
13
|
+
# CRITICAL: This line forces pip to bundle your pre-compiled Rust binaries
|
|
14
|
+
package_data={'nni_sdk': ['*.so', '*.dll', '*.dylib']},
|
|
15
|
+
include_package_data=True,
|
|
16
|
+
classifiers=[
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Operating System :: OS Independent",
|
|
20
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
21
|
+
],
|
|
22
|
+
python_requires='>=3.7',
|
|
23
|
+
)
|