instanttensor 0.1.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.
Files changed (556) hide show
  1. instanttensor-0.1.0/LICENSE +201 -0
  2. instanttensor-0.1.0/MANIFEST.in +3 -0
  3. instanttensor-0.1.0/PKG-INFO +369 -0
  4. instanttensor-0.1.0/README.md +133 -0
  5. instanttensor-0.1.0/csrc/instant_tensor/async_executor.hpp +186 -0
  6. instanttensor-0.1.0/csrc/instant_tensor/dl_loader/cuda_loader.hpp +129 -0
  7. instanttensor-0.1.0/csrc/instant_tensor/dl_loader/cufile_loader.hpp +102 -0
  8. instanttensor-0.1.0/csrc/instant_tensor/dl_loader/dl_loader_utils.hpp +41 -0
  9. instanttensor-0.1.0/csrc/instant_tensor/dl_loader/nccl_loader.hpp +66 -0
  10. instanttensor-0.1.0/csrc/instant_tensor/dlpack_utils.hpp +146 -0
  11. instanttensor-0.1.0/csrc/instant_tensor/queue.hpp +125 -0
  12. instanttensor-0.1.0/csrc/main.cpp +1350 -0
  13. instanttensor-0.1.0/csrc/third_party/dlpack/.git +1 -0
  14. instanttensor-0.1.0/csrc/third_party/dlpack/.gitignore +32 -0
  15. instanttensor-0.1.0/csrc/third_party/dlpack/CMakeLists.txt +129 -0
  16. instanttensor-0.1.0/csrc/third_party/dlpack/LICENSE +201 -0
  17. instanttensor-0.1.0/csrc/third_party/dlpack/Makefile +39 -0
  18. instanttensor-0.1.0/csrc/third_party/dlpack/NEWS.md +58 -0
  19. instanttensor-0.1.0/csrc/third_party/dlpack/README.md +29 -0
  20. instanttensor-0.1.0/csrc/third_party/dlpack/apps/numpy_dlpack/.gitignore +1 -0
  21. instanttensor-0.1.0/csrc/third_party/dlpack/apps/numpy_dlpack/README.md +23 -0
  22. instanttensor-0.1.0/csrc/third_party/dlpack/apps/numpy_dlpack/dlpack/__init__.py +2 -0
  23. instanttensor-0.1.0/csrc/third_party/dlpack/apps/numpy_dlpack/dlpack/dlpack.py +139 -0
  24. instanttensor-0.1.0/csrc/third_party/dlpack/apps/numpy_dlpack/dlpack/from_numpy.py +98 -0
  25. instanttensor-0.1.0/csrc/third_party/dlpack/apps/numpy_dlpack/dlpack/to_numpy.py +79 -0
  26. instanttensor-0.1.0/csrc/third_party/dlpack/apps/numpy_dlpack/test.py +36 -0
  27. instanttensor-0.1.0/csrc/third_party/dlpack/apps/numpy_dlpack/test_pure_numpy.py +38 -0
  28. instanttensor-0.1.0/csrc/third_party/dlpack/cmake/template/Config.cmake.in +4 -0
  29. instanttensor-0.1.0/csrc/third_party/dlpack/contrib/dlpack/dlpackcpp.h +65 -0
  30. instanttensor-0.1.0/csrc/third_party/dlpack/contrib/mock_c.c +7 -0
  31. instanttensor-0.1.0/csrc/third_party/dlpack/contrib/mock_main.cc +16 -0
  32. instanttensor-0.1.0/csrc/third_party/dlpack/doc_requirements.txt +4 -0
  33. instanttensor-0.1.0/csrc/third_party/dlpack/docs/.gitignore +1 -0
  34. instanttensor-0.1.0/csrc/third_party/dlpack/docs/CMakeLists.txt +37 -0
  35. instanttensor-0.1.0/csrc/third_party/dlpack/docs/Doxyfile +2871 -0
  36. instanttensor-0.1.0/csrc/third_party/dlpack/docs/Doxyfile.in +18 -0
  37. instanttensor-0.1.0/csrc/third_party/dlpack/docs/Makefile +20 -0
  38. instanttensor-0.1.0/csrc/third_party/dlpack/docs/README.md +13 -0
  39. instanttensor-0.1.0/csrc/third_party/dlpack/docs/make.bat +36 -0
  40. instanttensor-0.1.0/csrc/third_party/dlpack/docs/source/_static/images/DLPack_diagram.png +0 -0
  41. instanttensor-0.1.0/csrc/third_party/dlpack/docs/source/c_api.rst +66 -0
  42. instanttensor-0.1.0/csrc/third_party/dlpack/docs/source/conf.py +87 -0
  43. instanttensor-0.1.0/csrc/third_party/dlpack/docs/source/index.rst +85 -0
  44. instanttensor-0.1.0/csrc/third_party/dlpack/docs/source/python_spec.rst +239 -0
  45. instanttensor-0.1.0/csrc/third_party/dlpack/include/dlpack/dlpack.h +647 -0
  46. instanttensor-0.1.0/csrc/third_party/dlpack/tests/scripts/task_build.sh +6 -0
  47. instanttensor-0.1.0/csrc/third_party/dlpack/tests/scripts/task_lint.sh +27 -0
  48. instanttensor-0.1.0/csrc/third_party/libaio/.git +1 -0
  49. instanttensor-0.1.0/csrc/third_party/libaio/.gitignore +10 -0
  50. instanttensor-0.1.0/csrc/third_party/libaio/COPYING +515 -0
  51. instanttensor-0.1.0/csrc/third_party/libaio/ChangeLog +54 -0
  52. instanttensor-0.1.0/csrc/third_party/libaio/INSTALL +18 -0
  53. instanttensor-0.1.0/csrc/third_party/libaio/Makefile +39 -0
  54. instanttensor-0.1.0/csrc/third_party/libaio/README.md +12 -0
  55. instanttensor-0.1.0/csrc/third_party/libaio/TODO +4 -0
  56. instanttensor-0.1.0/csrc/third_party/libaio/harness/Makefile +65 -0
  57. instanttensor-0.1.0/csrc/third_party/libaio/harness/README +19 -0
  58. instanttensor-0.1.0/csrc/third_party/libaio/harness/attic/0.t +9 -0
  59. instanttensor-0.1.0/csrc/third_party/libaio/harness/attic/1.t +9 -0
  60. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/10.t +53 -0
  61. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/11.t +39 -0
  62. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/12.t +57 -0
  63. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/13.t +66 -0
  64. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/14.t +97 -0
  65. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/15.t +94 -0
  66. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/16.t +104 -0
  67. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/17.t +272 -0
  68. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/18.t +131 -0
  69. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/19.t +259 -0
  70. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/2.t +41 -0
  71. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/20.t +178 -0
  72. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/21.t +181 -0
  73. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/22.t +171 -0
  74. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/23.t +255 -0
  75. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/3.t +25 -0
  76. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/4.t +72 -0
  77. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/5.t +53 -0
  78. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/6.t +57 -0
  79. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/7.t +30 -0
  80. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/8.t +30 -0
  81. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/aio_setup.h +108 -0
  82. instanttensor-0.1.0/csrc/third_party/libaio/harness/cases/common-7-8.h +38 -0
  83. instanttensor-0.1.0/csrc/third_party/libaio/harness/ext2-enospc.img +0 -0
  84. instanttensor-0.1.0/csrc/third_party/libaio/harness/main.c +52 -0
  85. instanttensor-0.1.0/csrc/third_party/libaio/harness/runtests.sh +31 -0
  86. instanttensor-0.1.0/csrc/third_party/libaio/libaio.spec +228 -0
  87. instanttensor-0.1.0/csrc/third_party/libaio/man/io.3 +350 -0
  88. instanttensor-0.1.0/csrc/third_party/libaio/man/io_cancel.3 +72 -0
  89. instanttensor-0.1.0/csrc/third_party/libaio/man/io_fsync.3 +85 -0
  90. instanttensor-0.1.0/csrc/third_party/libaio/man/io_getevents.3 +145 -0
  91. instanttensor-0.1.0/csrc/third_party/libaio/man/io_prep_fsync.3 +113 -0
  92. instanttensor-0.1.0/csrc/third_party/libaio/man/io_prep_pread.3 +73 -0
  93. instanttensor-0.1.0/csrc/third_party/libaio/man/io_prep_pwrite.3 +72 -0
  94. instanttensor-0.1.0/csrc/third_party/libaio/man/io_queue_init.3 +73 -0
  95. instanttensor-0.1.0/csrc/third_party/libaio/man/io_queue_release.3 +51 -0
  96. instanttensor-0.1.0/csrc/third_party/libaio/man/io_queue_run.3 +54 -0
  97. instanttensor-0.1.0/csrc/third_party/libaio/man/io_queue_wait.3 +63 -0
  98. instanttensor-0.1.0/csrc/third_party/libaio/man/io_set_callback.3 +47 -0
  99. instanttensor-0.1.0/csrc/third_party/libaio/man/io_submit.3 +136 -0
  100. instanttensor-0.1.0/csrc/third_party/libaio/src/Makefile +74 -0
  101. instanttensor-0.1.0/csrc/third_party/libaio/src/aio_ring.h +49 -0
  102. instanttensor-0.1.0/csrc/third_party/libaio/src/compat-0_1.c +62 -0
  103. instanttensor-0.1.0/csrc/third_party/libaio/src/compat-0_1.ol +0 -0
  104. instanttensor-0.1.0/csrc/third_party/libaio/src/compat-0_1.os +0 -0
  105. instanttensor-0.1.0/csrc/third_party/libaio/src/io_cancel.c +23 -0
  106. instanttensor-0.1.0/csrc/third_party/libaio/src/io_cancel.ol +0 -0
  107. instanttensor-0.1.0/csrc/third_party/libaio/src/io_cancel.os +0 -0
  108. instanttensor-0.1.0/csrc/third_party/libaio/src/io_destroy.c +23 -0
  109. instanttensor-0.1.0/csrc/third_party/libaio/src/io_destroy.ol +0 -0
  110. instanttensor-0.1.0/csrc/third_party/libaio/src/io_destroy.os +0 -0
  111. instanttensor-0.1.0/csrc/third_party/libaio/src/io_getevents.c +35 -0
  112. instanttensor-0.1.0/csrc/third_party/libaio/src/io_getevents.ol +0 -0
  113. instanttensor-0.1.0/csrc/third_party/libaio/src/io_getevents.os +0 -0
  114. instanttensor-0.1.0/csrc/third_party/libaio/src/io_pgetevents.c +56 -0
  115. instanttensor-0.1.0/csrc/third_party/libaio/src/io_pgetevents.ol +0 -0
  116. instanttensor-0.1.0/csrc/third_party/libaio/src/io_pgetevents.os +0 -0
  117. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_init.c +33 -0
  118. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_init.ol +0 -0
  119. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_init.os +0 -0
  120. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_release.c +27 -0
  121. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_release.ol +0 -0
  122. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_release.os +0 -0
  123. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_run.c +39 -0
  124. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_run.ol +0 -0
  125. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_run.os +0 -0
  126. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_wait.c +31 -0
  127. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_wait.ol +0 -0
  128. instanttensor-0.1.0/csrc/third_party/libaio/src/io_queue_wait.os +0 -0
  129. instanttensor-0.1.0/csrc/third_party/libaio/src/io_setup.c +23 -0
  130. instanttensor-0.1.0/csrc/third_party/libaio/src/io_setup.ol +0 -0
  131. instanttensor-0.1.0/csrc/third_party/libaio/src/io_setup.os +0 -0
  132. instanttensor-0.1.0/csrc/third_party/libaio/src/io_submit.c +23 -0
  133. instanttensor-0.1.0/csrc/third_party/libaio/src/io_submit.ol +0 -0
  134. instanttensor-0.1.0/csrc/third_party/libaio/src/io_submit.os +0 -0
  135. instanttensor-0.1.0/csrc/third_party/libaio/src/libaio.a +0 -0
  136. instanttensor-0.1.0/csrc/third_party/libaio/src/libaio.h +302 -0
  137. instanttensor-0.1.0/csrc/third_party/libaio/src/libaio.map +27 -0
  138. instanttensor-0.1.0/csrc/third_party/libaio/src/libaio.so +0 -0
  139. instanttensor-0.1.0/csrc/third_party/libaio/src/libaio.so.1.0.2 +0 -0
  140. instanttensor-0.1.0/csrc/third_party/libaio/src/raw_syscall.c +19 -0
  141. instanttensor-0.1.0/csrc/third_party/libaio/src/raw_syscall.ol +0 -0
  142. instanttensor-0.1.0/csrc/third_party/libaio/src/raw_syscall.os +0 -0
  143. instanttensor-0.1.0/csrc/third_party/libaio/src/struct_offsets.c +23 -0
  144. instanttensor-0.1.0/csrc/third_party/libaio/src/struct_offsets.o +0 -0
  145. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-alpha.h +5 -0
  146. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-arm.h +26 -0
  147. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-generic.h +11 -0
  148. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-i386.h +6 -0
  149. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-ia64.h +5 -0
  150. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-ppc.h +5 -0
  151. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-s390.h +5 -0
  152. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-sparc.h +5 -0
  153. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall-x86_64.h +6 -0
  154. instanttensor-0.1.0/csrc/third_party/libaio/src/syscall.h +73 -0
  155. instanttensor-0.1.0/csrc/third_party/libaio/src/vsys_def.h +24 -0
  156. instanttensor-0.1.0/csrc/third_party/lockfree/.git +1 -0
  157. instanttensor-0.1.0/csrc/third_party/lockfree/.gitattributes +96 -0
  158. instanttensor-0.1.0/csrc/third_party/lockfree/.travis.yml +107 -0
  159. instanttensor-0.1.0/csrc/third_party/lockfree/appveyor.yml +153 -0
  160. instanttensor-0.1.0/csrc/third_party/lockfree/doc/Jamfile.v2 +60 -0
  161. instanttensor-0.1.0/csrc/third_party/lockfree/doc/lockfree.qbk +295 -0
  162. instanttensor-0.1.0/csrc/third_party/lockfree/examples/Jamfile.v2 +13 -0
  163. instanttensor-0.1.0/csrc/third_party/lockfree/examples/queue.cpp +69 -0
  164. instanttensor-0.1.0/csrc/third_party/lockfree/examples/spsc_queue.cpp +62 -0
  165. instanttensor-0.1.0/csrc/third_party/lockfree/examples/stack.cpp +70 -0
  166. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/detail/atomic.hpp +87 -0
  167. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/detail/copy_payload.hpp +83 -0
  168. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/detail/freelist.hpp +668 -0
  169. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/detail/parameter.hpp +80 -0
  170. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/detail/prefix.hpp +30 -0
  171. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/detail/tagged_ptr.hpp +21 -0
  172. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/detail/tagged_ptr_dcas.hpp +144 -0
  173. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp +174 -0
  174. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/lockfree_forward.hpp +72 -0
  175. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/policies.hpp +57 -0
  176. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/queue.hpp +588 -0
  177. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/spsc_queue.hpp +1049 -0
  178. instanttensor-0.1.0/csrc/third_party/lockfree/include/boost/lockfree/stack.hpp +825 -0
  179. instanttensor-0.1.0/csrc/third_party/lockfree/index.html +13 -0
  180. instanttensor-0.1.0/csrc/third_party/lockfree/meta/libraries.json +14 -0
  181. instanttensor-0.1.0/csrc/third_party/lockfree/test/Jamfile.v2 +45 -0
  182. instanttensor-0.1.0/csrc/third_party/lockfree/test/freelist_test.cpp +233 -0
  183. instanttensor-0.1.0/csrc/third_party/lockfree/test/queue_bounded_stress_test.cpp +27 -0
  184. instanttensor-0.1.0/csrc/third_party/lockfree/test/queue_fixedsize_stress_test.cpp +28 -0
  185. instanttensor-0.1.0/csrc/third_party/lockfree/test/queue_interprocess_test.cpp +57 -0
  186. instanttensor-0.1.0/csrc/third_party/lockfree/test/queue_test.cpp +194 -0
  187. instanttensor-0.1.0/csrc/third_party/lockfree/test/queue_unbounded_stress_test.cpp +27 -0
  188. instanttensor-0.1.0/csrc/third_party/lockfree/test/spsc_queue_stress_test.cpp +222 -0
  189. instanttensor-0.1.0/csrc/third_party/lockfree/test/spsc_queue_test.cpp +407 -0
  190. instanttensor-0.1.0/csrc/third_party/lockfree/test/stack_bounded_stress_test.cpp +27 -0
  191. instanttensor-0.1.0/csrc/third_party/lockfree/test/stack_fixedsize_stress_test.cpp +28 -0
  192. instanttensor-0.1.0/csrc/third_party/lockfree/test/stack_interprocess_test.cpp +57 -0
  193. instanttensor-0.1.0/csrc/third_party/lockfree/test/stack_test.cpp +219 -0
  194. instanttensor-0.1.0/csrc/third_party/lockfree/test/stack_unbounded_stress_test.cpp +28 -0
  195. instanttensor-0.1.0/csrc/third_party/lockfree/test/tagged_ptr_test.cpp +58 -0
  196. instanttensor-0.1.0/csrc/third_party/lockfree/test/test_common.hpp +145 -0
  197. instanttensor-0.1.0/csrc/third_party/lockfree/test/test_helpers.hpp +110 -0
  198. instanttensor-0.1.0/csrc/third_party/pybind11/.appveyor.yml +35 -0
  199. instanttensor-0.1.0/csrc/third_party/pybind11/.clang-format +38 -0
  200. instanttensor-0.1.0/csrc/third_party/pybind11/.clang-tidy +83 -0
  201. instanttensor-0.1.0/csrc/third_party/pybind11/.cmake-format.yaml +73 -0
  202. instanttensor-0.1.0/csrc/third_party/pybind11/.codespell-ignore-lines +36 -0
  203. instanttensor-0.1.0/csrc/third_party/pybind11/.git +1 -0
  204. instanttensor-0.1.0/csrc/third_party/pybind11/.gitattributes +1 -0
  205. instanttensor-0.1.0/csrc/third_party/pybind11/.gitignore +54 -0
  206. instanttensor-0.1.0/csrc/third_party/pybind11/.pre-commit-config.yaml +158 -0
  207. instanttensor-0.1.0/csrc/third_party/pybind11/.readthedocs.yml +20 -0
  208. instanttensor-0.1.0/csrc/third_party/pybind11/CMakeLists.txt +425 -0
  209. instanttensor-0.1.0/csrc/third_party/pybind11/CMakePresets.json +93 -0
  210. instanttensor-0.1.0/csrc/third_party/pybind11/LICENSE +29 -0
  211. instanttensor-0.1.0/csrc/third_party/pybind11/README.rst +215 -0
  212. instanttensor-0.1.0/csrc/third_party/pybind11/SECURITY.md +13 -0
  213. instanttensor-0.1.0/csrc/third_party/pybind11/docs/Doxyfile +21 -0
  214. instanttensor-0.1.0/csrc/third_party/pybind11/docs/Makefile +192 -0
  215. instanttensor-0.1.0/csrc/third_party/pybind11/docs/_static/css/custom.css +3 -0
  216. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/cast/chrono.rst +81 -0
  217. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/cast/custom.rst +137 -0
  218. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/cast/eigen.rst +310 -0
  219. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/cast/functional.rst +109 -0
  220. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/cast/index.rst +43 -0
  221. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/cast/overview.rst +170 -0
  222. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/cast/stl.rst +249 -0
  223. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/cast/strings.rst +296 -0
  224. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/classes.rst +1432 -0
  225. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/deadlock.md +391 -0
  226. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/deprecated.rst +179 -0
  227. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/embedding.rst +499 -0
  228. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/exceptions.rst +422 -0
  229. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/functions.rst +616 -0
  230. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/misc.rst +615 -0
  231. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/pycpp/index.rst +13 -0
  232. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/pycpp/numpy.rst +493 -0
  233. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/pycpp/object.rst +286 -0
  234. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/pycpp/utilities.rst +155 -0
  235. instanttensor-0.1.0/csrc/third_party/pybind11/docs/advanced/smart_ptrs.rst +179 -0
  236. instanttensor-0.1.0/csrc/third_party/pybind11/docs/basics.rst +316 -0
  237. instanttensor-0.1.0/csrc/third_party/pybind11/docs/benchmark.py +89 -0
  238. instanttensor-0.1.0/csrc/third_party/pybind11/docs/benchmark.rst +95 -0
  239. instanttensor-0.1.0/csrc/third_party/pybind11/docs/changelog.md +3404 -0
  240. instanttensor-0.1.0/csrc/third_party/pybind11/docs/classes.rst +652 -0
  241. instanttensor-0.1.0/csrc/third_party/pybind11/docs/cmake/index.rst +8 -0
  242. instanttensor-0.1.0/csrc/third_party/pybind11/docs/compiling.rst +731 -0
  243. instanttensor-0.1.0/csrc/third_party/pybind11/docs/conf.py +369 -0
  244. instanttensor-0.1.0/csrc/third_party/pybind11/docs/faq.rst +351 -0
  245. instanttensor-0.1.0/csrc/third_party/pybind11/docs/index.rst +49 -0
  246. instanttensor-0.1.0/csrc/third_party/pybind11/docs/installing.rst +105 -0
  247. instanttensor-0.1.0/csrc/third_party/pybind11/docs/limitations.rst +68 -0
  248. instanttensor-0.1.0/csrc/third_party/pybind11/docs/pybind11-logo.png +0 -0
  249. instanttensor-0.1.0/csrc/third_party/pybind11/docs/pybind11_vs_boost_python1.png +0 -0
  250. instanttensor-0.1.0/csrc/third_party/pybind11/docs/pybind11_vs_boost_python1.svg +427 -0
  251. instanttensor-0.1.0/csrc/third_party/pybind11/docs/pybind11_vs_boost_python2.png +0 -0
  252. instanttensor-0.1.0/csrc/third_party/pybind11/docs/pybind11_vs_boost_python2.svg +427 -0
  253. instanttensor-0.1.0/csrc/third_party/pybind11/docs/reference.rst +130 -0
  254. instanttensor-0.1.0/csrc/third_party/pybind11/docs/release.rst +135 -0
  255. instanttensor-0.1.0/csrc/third_party/pybind11/docs/requirements.in +7 -0
  256. instanttensor-0.1.0/csrc/third_party/pybind11/docs/requirements.txt +87 -0
  257. instanttensor-0.1.0/csrc/third_party/pybind11/docs/upgrade.rst +748 -0
  258. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/attr.h +730 -0
  259. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/buffer_info.h +209 -0
  260. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/cast.h +2433 -0
  261. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/chrono.h +228 -0
  262. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/common.h +2 -0
  263. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/complex.h +93 -0
  264. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/conduit/README.txt +15 -0
  265. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/conduit/pybind11_conduit_v1.h +116 -0
  266. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/conduit/pybind11_platform_abi_id.h +87 -0
  267. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/conduit/wrap_include_python_h.h +72 -0
  268. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/critical_section.h +56 -0
  269. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/argument_vector.h +417 -0
  270. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/class.h +836 -0
  271. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/common.h +1357 -0
  272. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/cpp_conduit.h +75 -0
  273. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/descr.h +226 -0
  274. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h +39 -0
  275. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/exception_translation.h +71 -0
  276. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/function_record_pyobject.h +192 -0
  277. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/holder_caster_foreign_helpers.h +86 -0
  278. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/init.h +544 -0
  279. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/internals.h +1077 -0
  280. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/native_enum_data.h +227 -0
  281. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/pybind11_namespace_macros.h +82 -0
  282. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/struct_smart_holder.h +398 -0
  283. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/type_caster_base.h +1711 -0
  284. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/typeid.h +65 -0
  285. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/using_smart_holder.h +22 -0
  286. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/detail/value_and_holder.h +92 -0
  287. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/eigen/common.h +9 -0
  288. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/eigen/matrix.h +723 -0
  289. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/eigen/tensor.h +520 -0
  290. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/eigen.h +12 -0
  291. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/embed.h +320 -0
  292. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/eval.h +161 -0
  293. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/functional.h +147 -0
  294. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/gil.h +203 -0
  295. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/gil_safe_call_once.h +273 -0
  296. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/gil_simple.h +37 -0
  297. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/iostream.h +265 -0
  298. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/native_enum.h +76 -0
  299. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/numpy.h +2330 -0
  300. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/operators.h +202 -0
  301. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/options.h +92 -0
  302. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/pybind11.h +3746 -0
  303. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/pytypes.h +2738 -0
  304. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/stl/filesystem.h +114 -0
  305. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/stl.h +666 -0
  306. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/stl_bind.h +858 -0
  307. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/subinterpreter.h +291 -0
  308. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/trampoline_self_life_support.h +65 -0
  309. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/type_caster_pyobject_ptr.h +61 -0
  310. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/typing.h +295 -0
  311. instanttensor-0.1.0/csrc/third_party/pybind11/include/pybind11/warnings.h +75 -0
  312. instanttensor-0.1.0/csrc/third_party/pybind11/noxfile.py +151 -0
  313. instanttensor-0.1.0/csrc/third_party/pybind11/pybind11/__init__.py +19 -0
  314. instanttensor-0.1.0/csrc/third_party/pybind11/pybind11/__main__.py +97 -0
  315. instanttensor-0.1.0/csrc/third_party/pybind11/pybind11/_version.py +34 -0
  316. instanttensor-0.1.0/csrc/third_party/pybind11/pybind11/commands.py +39 -0
  317. instanttensor-0.1.0/csrc/third_party/pybind11/pybind11/py.typed +0 -0
  318. instanttensor-0.1.0/csrc/third_party/pybind11/pybind11/setup_helpers.py +500 -0
  319. instanttensor-0.1.0/csrc/third_party/pybind11/pyproject.toml +209 -0
  320. instanttensor-0.1.0/csrc/third_party/pybind11/tests/CMakeLists.txt +684 -0
  321. instanttensor-0.1.0/csrc/third_party/pybind11/tests/conftest.py +313 -0
  322. instanttensor-0.1.0/csrc/third_party/pybind11/tests/constructor_stats.h +330 -0
  323. instanttensor-0.1.0/csrc/third_party/pybind11/tests/cross_module_gil_utils.cpp +111 -0
  324. instanttensor-0.1.0/csrc/third_party/pybind11/tests/cross_module_interleaved_error_already_set.cpp +54 -0
  325. instanttensor-0.1.0/csrc/third_party/pybind11/tests/custom_exceptions.py +10 -0
  326. instanttensor-0.1.0/csrc/third_party/pybind11/tests/eigen_tensor_avoid_stl_array.cpp +16 -0
  327. instanttensor-0.1.0/csrc/third_party/pybind11/tests/env.py +71 -0
  328. instanttensor-0.1.0/csrc/third_party/pybind11/tests/exo_planet_c_api.cpp +76 -0
  329. instanttensor-0.1.0/csrc/third_party/pybind11/tests/exo_planet_pybind11.cpp +19 -0
  330. instanttensor-0.1.0/csrc/third_party/pybind11/tests/extra_python_package/pytest.ini +0 -0
  331. instanttensor-0.1.0/csrc/third_party/pybind11/tests/extra_python_package/test_files.py +385 -0
  332. instanttensor-0.1.0/csrc/third_party/pybind11/tests/extra_setuptools/pytest.ini +0 -0
  333. instanttensor-0.1.0/csrc/third_party/pybind11/tests/extra_setuptools/test_setuphelper.py +153 -0
  334. instanttensor-0.1.0/csrc/third_party/pybind11/tests/home_planet_very_lonely_traveler.cpp +13 -0
  335. instanttensor-0.1.0/csrc/third_party/pybind11/tests/local_bindings.h +93 -0
  336. instanttensor-0.1.0/csrc/third_party/pybind11/tests/mod_per_interpreter_gil.cpp +20 -0
  337. instanttensor-0.1.0/csrc/third_party/pybind11/tests/mod_per_interpreter_gil_with_singleton.cpp +147 -0
  338. instanttensor-0.1.0/csrc/third_party/pybind11/tests/mod_shared_interpreter_gil.cpp +17 -0
  339. instanttensor-0.1.0/csrc/third_party/pybind11/tests/object.h +205 -0
  340. instanttensor-0.1.0/csrc/third_party/pybind11/tests/pure_cpp/CMakeLists.txt +22 -0
  341. instanttensor-0.1.0/csrc/third_party/pybind11/tests/pure_cpp/smart_holder_poc.h +56 -0
  342. instanttensor-0.1.0/csrc/third_party/pybind11/tests/pure_cpp/smart_holder_poc_test.cpp +427 -0
  343. instanttensor-0.1.0/csrc/third_party/pybind11/tests/pybind11_cross_module_tests.cpp +163 -0
  344. instanttensor-0.1.0/csrc/third_party/pybind11/tests/pybind11_tests.cpp +129 -0
  345. instanttensor-0.1.0/csrc/third_party/pybind11/tests/pybind11_tests.h +119 -0
  346. instanttensor-0.1.0/csrc/third_party/pybind11/tests/pyproject.toml +40 -0
  347. instanttensor-0.1.0/csrc/third_party/pybind11/tests/pytest.ini +22 -0
  348. instanttensor-0.1.0/csrc/third_party/pybind11/tests/requirements.txt +20 -0
  349. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_async.cpp +25 -0
  350. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_async.py +31 -0
  351. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_buffers.cpp +442 -0
  352. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_buffers.py +401 -0
  353. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_builtin_casters.cpp +393 -0
  354. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_builtin_casters.py +624 -0
  355. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_call_policies.cpp +113 -0
  356. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_call_policies.py +256 -0
  357. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_callbacks.cpp +302 -0
  358. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_callbacks.py +247 -0
  359. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_chrono.cpp +81 -0
  360. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_chrono.py +207 -0
  361. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class.cpp +694 -0
  362. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class.py +557 -0
  363. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_cross_module_use_after_one_module_dealloc.cpp +23 -0
  364. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_cross_module_use_after_one_module_dealloc.py +43 -0
  365. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_release_gil_before_calling_cpp_dtor.cpp +54 -0
  366. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_release_gil_before_calling_cpp_dtor.py +21 -0
  367. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_basic.cpp +248 -0
  368. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_basic.py +248 -0
  369. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_disowning.cpp +41 -0
  370. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_disowning.py +78 -0
  371. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_disowning_mi.cpp +85 -0
  372. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_disowning_mi.py +246 -0
  373. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_factory_constructors.cpp +156 -0
  374. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_factory_constructors.py +53 -0
  375. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_inheritance.cpp +90 -0
  376. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_inheritance.py +63 -0
  377. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_mi_thunks.cpp +230 -0
  378. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_mi_thunks.py +104 -0
  379. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_property.cpp +94 -0
  380. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_property.py +166 -0
  381. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_property_non_owning.cpp +65 -0
  382. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_property_non_owning.py +30 -0
  383. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_shared_ptr_copy_move.cpp +103 -0
  384. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_shared_ptr_copy_move.py +41 -0
  385. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_basic.cpp +57 -0
  386. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_basic.py +35 -0
  387. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_self_life_support.cpp +86 -0
  388. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_self_life_support.py +38 -0
  389. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_shared_from_this.cpp +137 -0
  390. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_shared_from_this.py +247 -0
  391. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_shared_ptr_cpp_arg.cpp +92 -0
  392. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_shared_ptr_cpp_arg.py +154 -0
  393. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_unique_ptr.cpp +63 -0
  394. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_trampoline_unique_ptr.py +31 -0
  395. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_unique_ptr_custom_deleter.cpp +30 -0
  396. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_unique_ptr_custom_deleter.py +8 -0
  397. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_unique_ptr_member.cpp +50 -0
  398. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_unique_ptr_member.py +26 -0
  399. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_virtual_py_cpp_mix.cpp +58 -0
  400. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_class_sh_virtual_py_cpp_mix.py +66 -0
  401. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/CMakeLists.txt +91 -0
  402. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/embed.cpp +23 -0
  403. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/installed_embed/CMakeLists.txt +19 -0
  404. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/installed_function/CMakeLists.txt +29 -0
  405. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/installed_target/CMakeLists.txt +37 -0
  406. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/main.cpp +6 -0
  407. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt +38 -0
  408. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/subdirectory_function/CMakeLists.txt +32 -0
  409. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/subdirectory_target/CMakeLists.txt +38 -0
  410. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cmake_build/test.py +10 -0
  411. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_const_name.cpp +55 -0
  412. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_const_name.py +31 -0
  413. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_constants_and_functions.cpp +158 -0
  414. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_constants_and_functions.py +58 -0
  415. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_copy_move.cpp +546 -0
  416. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_copy_move.py +144 -0
  417. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cpp_conduit.cpp +22 -0
  418. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cpp_conduit.py +183 -0
  419. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cpp_conduit_traveler_bindings.h +47 -0
  420. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cpp_conduit_traveler_types.h +25 -0
  421. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cross_module_rtti/CMakeLists.txt +70 -0
  422. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cross_module_rtti/bindings.cpp +20 -0
  423. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cross_module_rtti/catch.cpp +22 -0
  424. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cross_module_rtti/lib.cpp +13 -0
  425. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cross_module_rtti/lib.h +31 -0
  426. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_cross_module_rtti/test_cross_module_rtti.cpp +50 -0
  427. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_custom_type_casters.cpp +217 -0
  428. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_custom_type_casters.py +126 -0
  429. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_custom_type_setup.cpp +104 -0
  430. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_custom_type_setup.py +84 -0
  431. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_docs_advanced_cast_custom.cpp +69 -0
  432. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_docs_advanced_cast_custom.py +40 -0
  433. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_docstring_options.cpp +129 -0
  434. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_docstring_options.py +72 -0
  435. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_eigen_matrix.cpp +448 -0
  436. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_eigen_matrix.py +839 -0
  437. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_eigen_tensor.cpp +18 -0
  438. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_eigen_tensor.inl +338 -0
  439. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_eigen_tensor.py +316 -0
  440. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_enum.cpp +149 -0
  441. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_enum.py +344 -0
  442. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_eval.cpp +118 -0
  443. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_eval.py +52 -0
  444. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_eval_call.py +5 -0
  445. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_exceptions.cpp +427 -0
  446. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_exceptions.h +13 -0
  447. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_exceptions.py +439 -0
  448. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_factory_constructors.cpp +434 -0
  449. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_factory_constructors.py +531 -0
  450. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_gil_scoped.cpp +144 -0
  451. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_gil_scoped.py +291 -0
  452. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_iostream.cpp +126 -0
  453. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_iostream.py +304 -0
  454. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_kwargs_and_defaults.cpp +331 -0
  455. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_kwargs_and_defaults.py +473 -0
  456. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_local_bindings.cpp +131 -0
  457. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_local_bindings.py +291 -0
  458. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_methods_and_attributes.cpp +492 -0
  459. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_methods_and_attributes.py +574 -0
  460. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_modules.cpp +124 -0
  461. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_modules.py +146 -0
  462. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_multiple_inheritance.cpp +341 -0
  463. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_multiple_inheritance.py +500 -0
  464. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_multiple_interpreters.py +437 -0
  465. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_native_enum.cpp +262 -0
  466. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_native_enum.py +377 -0
  467. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_numpy_array.cpp +616 -0
  468. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_numpy_array.py +749 -0
  469. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_numpy_dtypes.cpp +745 -0
  470. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_numpy_dtypes.py +464 -0
  471. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_numpy_scalars.cpp +63 -0
  472. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_numpy_scalars.py +54 -0
  473. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_numpy_vectorize.cpp +107 -0
  474. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_numpy_vectorize.py +268 -0
  475. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_opaque_types.cpp +77 -0
  476. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_opaque_types.py +64 -0
  477. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_operator_overloading.cpp +281 -0
  478. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_operator_overloading.py +161 -0
  479. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_pickling.cpp +191 -0
  480. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_pickling.py +149 -0
  481. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_potentially_slicing_weak_ptr.cpp +170 -0
  482. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_potentially_slicing_weak_ptr.py +174 -0
  483. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_python_multiple_inheritance.cpp +45 -0
  484. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_python_multiple_inheritance.py +36 -0
  485. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_pytypes.cpp +1216 -0
  486. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_pytypes.py +1374 -0
  487. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_scoped_critical_section.cpp +274 -0
  488. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_scoped_critical_section.py +30 -0
  489. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_sequences_and_iterators.cpp +600 -0
  490. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_sequences_and_iterators.py +307 -0
  491. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_smart_ptr.cpp +594 -0
  492. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_smart_ptr.py +357 -0
  493. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_stl.cpp +667 -0
  494. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_stl.py +735 -0
  495. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_stl_binders.cpp +275 -0
  496. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_stl_binders.py +414 -0
  497. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_tagbased_polymorphic.cpp +150 -0
  498. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_tagbased_polymorphic.py +30 -0
  499. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_thread.cpp +108 -0
  500. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_thread.py +80 -0
  501. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_type_caster_pyobject_ptr.cpp +168 -0
  502. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_type_caster_pyobject_ptr.py +125 -0
  503. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_type_caster_std_function_specializations.cpp +46 -0
  504. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_type_caster_std_function_specializations.py +15 -0
  505. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_union.cpp +22 -0
  506. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_union.py +10 -0
  507. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_unnamed_namespace_a.cpp +37 -0
  508. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_unnamed_namespace_a.py +33 -0
  509. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_unnamed_namespace_b.cpp +13 -0
  510. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_unnamed_namespace_b.py +7 -0
  511. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_vector_unique_ptr_member.cpp +54 -0
  512. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_vector_unique_ptr_member.py +16 -0
  513. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_virtual_functions.cpp +592 -0
  514. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_virtual_functions.py +468 -0
  515. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_warnings.cpp +46 -0
  516. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_warnings.py +68 -0
  517. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/CMakeLists.txt +64 -0
  518. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/catch.cpp +175 -0
  519. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/catch_skip.h +16 -0
  520. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/external_module.cpp +39 -0
  521. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/test_args_convert_vector.cpp +80 -0
  522. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/test_argument_vector.cpp +94 -0
  523. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/test_interpreter.cpp +483 -0
  524. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/test_interpreter.py +16 -0
  525. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/test_subinterpreter.cpp +579 -0
  526. instanttensor-0.1.0/csrc/third_party/pybind11/tests/test_with_catch/test_trampoline.py +18 -0
  527. instanttensor-0.1.0/csrc/third_party/pybind11/tests/valgrind-numpy-scipy.supp +140 -0
  528. instanttensor-0.1.0/csrc/third_party/pybind11/tests/valgrind-python.supp +117 -0
  529. instanttensor-0.1.0/csrc/third_party/pybind11/tools/FindCatch.cmake +74 -0
  530. instanttensor-0.1.0/csrc/third_party/pybind11/tools/FindEigen3.cmake +86 -0
  531. instanttensor-0.1.0/csrc/third_party/pybind11/tools/FindPythonLibsNew.cmake +320 -0
  532. instanttensor-0.1.0/csrc/third_party/pybind11/tools/JoinPaths.cmake +23 -0
  533. instanttensor-0.1.0/csrc/third_party/pybind11/tools/check-style.sh +44 -0
  534. instanttensor-0.1.0/csrc/third_party/pybind11/tools/cmake_uninstall.cmake.in +23 -0
  535. instanttensor-0.1.0/csrc/third_party/pybind11/tools/codespell_ignore_lines_from_errors.py +40 -0
  536. instanttensor-0.1.0/csrc/third_party/pybind11/tools/libsize.py +38 -0
  537. instanttensor-0.1.0/csrc/third_party/pybind11/tools/make_changelog.py +121 -0
  538. instanttensor-0.1.0/csrc/third_party/pybind11/tools/make_global.py +33 -0
  539. instanttensor-0.1.0/csrc/third_party/pybind11/tools/pybind11.pc.in +7 -0
  540. instanttensor-0.1.0/csrc/third_party/pybind11/tools/pybind11Common.cmake +458 -0
  541. instanttensor-0.1.0/csrc/third_party/pybind11/tools/pybind11Config.cmake.in +240 -0
  542. instanttensor-0.1.0/csrc/third_party/pybind11/tools/pybind11GuessPythonExtSuffix.cmake +94 -0
  543. instanttensor-0.1.0/csrc/third_party/pybind11/tools/pybind11NewTools.cmake +339 -0
  544. instanttensor-0.1.0/csrc/third_party/pybind11/tools/pybind11Tools.cmake +217 -0
  545. instanttensor-0.1.0/csrc/third_party/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake +185 -0
  546. instanttensor-0.1.0/instanttensor/__init__.py +1 -0
  547. instanttensor-0.1.0/instanttensor/_impl.py +604 -0
  548. instanttensor-0.1.0/instanttensor.egg-info/PKG-INFO +369 -0
  549. instanttensor-0.1.0/instanttensor.egg-info/SOURCES.txt +554 -0
  550. instanttensor-0.1.0/instanttensor.egg-info/dependency_links.txt +1 -0
  551. instanttensor-0.1.0/instanttensor.egg-info/requires.txt +6 -0
  552. instanttensor-0.1.0/instanttensor.egg-info/top_level.txt +1 -0
  553. instanttensor-0.1.0/pyproject.toml +59 -0
  554. instanttensor-0.1.0/setup.cfg +4 -0
  555. instanttensor-0.1.0/setup.py +69 -0
  556. instanttensor-0.1.0/tests/test.py +300 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Yitao Yuan
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,3 @@
1
+ recursive-include csrc *
2
+ prune csrc/third_party/*/.git
3
+ prune csrc/third_party/*/.github
@@ -0,0 +1,369 @@
1
+ Metadata-Version: 2.4
2
+ Name: instanttensor
3
+ Version: 0.1.0
4
+ Summary: An ultra-fast, distributed Safetensors loader
5
+ Author: Yongchao He, Bohan Zhao, Zane Cao, Wenfei Wu
6
+ Author-email: Yitao Yuan <yuanyitao@pku.edu.cn>
7
+ License: Apache License
8
+ Version 2.0, January 2004
9
+ http://www.apache.org/licenses/
10
+
11
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
12
+
13
+ 1. Definitions.
14
+
15
+ "License" shall mean the terms and conditions for use, reproduction,
16
+ and distribution as defined by Sections 1 through 9 of this document.
17
+
18
+ "Licensor" shall mean the copyright owner or entity authorized by
19
+ the copyright owner that is granting the License.
20
+
21
+ "Legal Entity" shall mean the union of the acting entity and all
22
+ other entities that control, are controlled by, or are under common
23
+ control with that entity. For the purposes of this definition,
24
+ "control" means (i) the power, direct or indirect, to cause the
25
+ direction or management of such entity, whether by contract or
26
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
27
+ outstanding shares, or (iii) beneficial ownership of such entity.
28
+
29
+ "You" (or "Your") shall mean an individual or Legal Entity
30
+ exercising permissions granted by this License.
31
+
32
+ "Source" form shall mean the preferred form for making modifications,
33
+ including but not limited to software source code, documentation
34
+ source, and configuration files.
35
+
36
+ "Object" form shall mean any form resulting from mechanical
37
+ transformation or translation of a Source form, including but
38
+ not limited to compiled object code, generated documentation,
39
+ and conversions to other media types.
40
+
41
+ "Work" shall mean the work of authorship, whether in Source or
42
+ Object form, made available under the License, as indicated by a
43
+ copyright notice that is included in or attached to the work
44
+ (an example is provided in the Appendix below).
45
+
46
+ "Derivative Works" shall mean any work, whether in Source or Object
47
+ form, that is based on (or derived from) the Work and for which the
48
+ editorial revisions, annotations, elaborations, or other modifications
49
+ represent, as a whole, an original work of authorship. For the purposes
50
+ of this License, Derivative Works shall not include works that remain
51
+ separable from, or merely link (or bind by name) to the interfaces of,
52
+ the Work and Derivative Works thereof.
53
+
54
+ "Contribution" shall mean any work of authorship, including
55
+ the original version of the Work and any modifications or additions
56
+ to that Work or Derivative Works thereof, that is intentionally
57
+ submitted to Licensor for inclusion in the Work by the copyright owner
58
+ or by an individual or Legal Entity authorized to submit on behalf of
59
+ the copyright owner. For the purposes of this definition, "submitted"
60
+ means any form of electronic, verbal, or written communication sent
61
+ to the Licensor or its representatives, including but not limited to
62
+ communication on electronic mailing lists, source code control systems,
63
+ and issue tracking systems that are managed by, or on behalf of, the
64
+ Licensor for the purpose of discussing and improving the Work, but
65
+ excluding communication that is conspicuously marked or otherwise
66
+ designated in writing by the copyright owner as "Not a Contribution."
67
+
68
+ "Contributor" shall mean Licensor and any individual or Legal Entity
69
+ on behalf of whom a Contribution has been received by Licensor and
70
+ subsequently incorporated within the Work.
71
+
72
+ 2. Grant of Copyright License. Subject to the terms and conditions of
73
+ this License, each Contributor hereby grants to You a perpetual,
74
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
75
+ copyright license to reproduce, prepare Derivative Works of,
76
+ publicly display, publicly perform, sublicense, and distribute the
77
+ Work and such Derivative Works in Source or Object form.
78
+
79
+ 3. Grant of Patent License. Subject to the terms and conditions of
80
+ this License, each Contributor hereby grants to You a perpetual,
81
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82
+ (except as stated in this section) patent license to make, have made,
83
+ use, offer to sell, sell, import, and otherwise transfer the Work,
84
+ where such license applies only to those patent claims licensable
85
+ by such Contributor that are necessarily infringed by their
86
+ Contribution(s) alone or by combination of their Contribution(s)
87
+ with the Work to which such Contribution(s) was submitted. If You
88
+ institute patent litigation against any entity (including a
89
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
90
+ or a Contribution incorporated within the Work constitutes direct
91
+ or contributory patent infringement, then any patent licenses
92
+ granted to You under this License for that Work shall terminate
93
+ as of the date such litigation is filed.
94
+
95
+ 4. Redistribution. You may reproduce and distribute copies of the
96
+ Work or Derivative Works thereof in any medium, with or without
97
+ modifications, and in Source or Object form, provided that You
98
+ meet the following conditions:
99
+
100
+ (a) You must give any other recipients of the Work or
101
+ Derivative Works a copy of this License; and
102
+
103
+ (b) You must cause any modified files to carry prominent notices
104
+ stating that You changed the files; and
105
+
106
+ (c) You must retain, in the Source form of any Derivative Works
107
+ that You distribute, all copyright, patent, trademark, and
108
+ attribution notices from the Source form of the Work,
109
+ excluding those notices that do not pertain to any part of
110
+ the Derivative Works; and
111
+
112
+ (d) If the Work includes a "NOTICE" text file as part of its
113
+ distribution, then any Derivative Works that You distribute must
114
+ include a readable copy of the attribution notices contained
115
+ within such NOTICE file, excluding those notices that do not
116
+ pertain to any part of the Derivative Works, in at least one
117
+ of the following places: within a NOTICE text file distributed
118
+ as part of the Derivative Works; within the Source form or
119
+ documentation, if provided along with the Derivative Works; or,
120
+ within a display generated by the Derivative Works, if and
121
+ wherever such third-party notices normally appear. The contents
122
+ of the NOTICE file are for informational purposes only and
123
+ do not modify the License. You may add Your own attribution
124
+ notices within Derivative Works that You distribute, alongside
125
+ or as an addendum to the NOTICE text from the Work, provided
126
+ that such additional attribution notices cannot be construed
127
+ as modifying the License.
128
+
129
+ You may add Your own copyright statement to Your modifications and
130
+ may provide additional or different license terms and conditions
131
+ for use, reproduction, or distribution of Your modifications, or
132
+ for any such Derivative Works as a whole, provided Your use,
133
+ reproduction, and distribution of the Work otherwise complies with
134
+ the conditions stated in this License.
135
+
136
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
137
+ any Contribution intentionally submitted for inclusion in the Work
138
+ by You to the Licensor shall be under the terms and conditions of
139
+ this License, without any additional terms or conditions.
140
+ Notwithstanding the above, nothing herein shall supersede or modify
141
+ the terms of any separate license agreement you may have executed
142
+ with Licensor regarding such Contributions.
143
+
144
+ 6. Trademarks. This License does not grant permission to use the trade
145
+ names, trademarks, service marks, or product names of the Licensor,
146
+ except as required for reasonable and customary use in describing the
147
+ origin of the Work and reproducing the content of the NOTICE file.
148
+
149
+ 7. Disclaimer of Warranty. Unless required by applicable law or
150
+ agreed to in writing, Licensor provides the Work (and each
151
+ Contributor provides its Contributions) on an "AS IS" BASIS,
152
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
153
+ implied, including, without limitation, any warranties or conditions
154
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
155
+ PARTICULAR PURPOSE. You are solely responsible for determining the
156
+ appropriateness of using or redistributing the Work and assume any
157
+ risks associated with Your exercise of permissions under this License.
158
+
159
+ 8. Limitation of Liability. In no event and under no legal theory,
160
+ whether in tort (including negligence), contract, or otherwise,
161
+ unless required by applicable law (such as deliberate and grossly
162
+ negligent acts) or agreed to in writing, shall any Contributor be
163
+ liable to You for damages, including any direct, indirect, special,
164
+ incidental, or consequential damages of any character arising as a
165
+ result of this License or out of the use or inability to use the
166
+ Work (including but not limited to damages for loss of goodwill,
167
+ work stoppage, computer failure or malfunction, or any and all
168
+ other commercial damages or losses), even if such Contributor
169
+ has been advised of the possibility of such damages.
170
+
171
+ 9. Accepting Warranty or Additional Liability. While redistributing
172
+ the Work or Derivative Works thereof, You may choose to offer,
173
+ and charge a fee for, acceptance of support, warranty, indemnity,
174
+ or other liability obligations and/or rights consistent with this
175
+ License. However, in accepting such obligations, You may act only
176
+ on Your own behalf and on Your sole responsibility, not on behalf
177
+ of any other Contributor, and only if You agree to indemnify,
178
+ defend, and hold each Contributor harmless for any liability
179
+ incurred by, or claims asserted against, such Contributor by reason
180
+ of your accepting any such warranty or additional liability.
181
+
182
+ END OF TERMS AND CONDITIONS
183
+
184
+ APPENDIX: How to apply the Apache License to your work.
185
+
186
+ To apply the Apache License to your work, attach the following
187
+ boilerplate notice, with the fields enclosed by brackets "[]"
188
+ replaced with your own identifying information. (Don't include
189
+ the brackets!) The text should be enclosed in the appropriate
190
+ comment syntax for the file format. We also recommend that a
191
+ file or class name and description of purpose be included on the
192
+ same "printed page" as the copyright notice for easier
193
+ identification within third-party archives.
194
+
195
+ Copyright 2026 Yitao Yuan
196
+
197
+ Licensed under the Apache License, Version 2.0 (the "License");
198
+ you may not use this file except in compliance with the License.
199
+ You may obtain a copy of the License at
200
+
201
+ http://www.apache.org/licenses/LICENSE-2.0
202
+
203
+ Unless required by applicable law or agreed to in writing, software
204
+ distributed under the License is distributed on an "AS IS" BASIS,
205
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
206
+ See the License for the specific language governing permissions and
207
+ limitations under the License.
208
+
209
+ Classifier: Development Status :: 3 - Alpha
210
+ Classifier: Intended Audience :: Developers
211
+ Classifier: Intended Audience :: Science/Research
212
+ Classifier: Topic :: Scientific/Engineering
213
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
214
+ Classifier: Topic :: Software Development
215
+ Classifier: Topic :: Software Development :: Libraries
216
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
217
+ Classifier: Programming Language :: C++
218
+ Classifier: Programming Language :: Python :: 3 :: Only
219
+ Classifier: Programming Language :: Python :: 3.9
220
+ Classifier: Programming Language :: Python :: 3.10
221
+ Classifier: Programming Language :: Python :: 3.11
222
+ Classifier: Programming Language :: Python :: 3.12
223
+ Classifier: Programming Language :: Python :: 3.13
224
+ Classifier: Programming Language :: Python :: 3.14
225
+ Classifier: Programming Language :: C++
226
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
227
+ Requires-Python: >=3.9
228
+ Description-Content-Type: text/markdown
229
+ License-File: LICENSE
230
+ Requires-Dist: torch>=2.8.0
231
+ Provides-Extra: test
232
+ Requires-Dist: numpy; extra == "test"
233
+ Requires-Dist: safetensors; extra == "test"
234
+ Requires-Dist: tqdm; extra == "test"
235
+ Dynamic: license-file
236
+
237
+ # InstantTensor
238
+
239
+ InstantTensor is an **ultra-fast, distributed Safetensors loader** designed to maximize I/O throughput when moving model weights from Safetensors files to GPU memory.
240
+
241
+ **Model loading benchmark on inference engines:**
242
+
243
+ | Model | GPU | Backend | Load Time (s) | Throughput (GB/s) | Speedup |
244
+ |---|---:|---|---:|---:|---|
245
+ | Qwen3-30B-A3B | 1*H20 | Safetensors | 57.4 | 1.2 | 1x |
246
+ | Qwen3-30B-A3B | 1*H20 | InstantTensor | 1.77 | 39 | <span style="color: green">**32.5x**</span> |
247
+ | DeepSeek-R1 | 8*H20 | Safetensors | 160 | 4.3 | 1x |
248
+ | DeepSeek-R1 | 8*H20 | InstantTensor | 15.3 | 45 | <span style="color: green">**10.5x**</span> |
249
+
250
+ ### Quickstart
251
+
252
+ ```python
253
+ from instanttensor import safe_open
254
+
255
+ tensors = {}
256
+ with safe_open("model.safetensors", framework="pt", device=0) as f:
257
+ for name, tensor in f.tensors():
258
+ tensors[name] = tensor.clone()
259
+ ```
260
+
261
+ > **NOTE:** `tensor` points to the internal buffer of InstantTensor and should be copied immediately (e.g. by clone() or copy_()) to avoid data being overwritten during buffer reuse.
262
+
263
+ See [Usage](#usage) for more details (multi-file and distributed usage).
264
+
265
+ ## Why InstantTensor?
266
+
267
+ - **Fast weight loading**:
268
+ - Direct I/O: Avoid the slow page cache allocation on cold start. Friendly for large models and tight memory budgets.
269
+ - Tuned I/O size and concurrency: Maximize hardware throughput.
270
+ - Pipelining and prefetching: Parallelize and overlap the various stages of transmission.
271
+ - **Distributed loading**: Use `torch.distributed` (NCCL) to speed up loading under any parallelism policy (TP/PP/EP/CP/DP).
272
+ - **Minimal device buffer**: ≤ ~3× largest-tensor size; far below single-file size.
273
+ - **Multiple I/O backends**:
274
+ - GPUDirect Storage
275
+ - Legacy Storage
276
+ - Memory-based Storage
277
+
278
+ ## Installation
279
+
280
+ First, we need a Linux environment with CUDA driver installed. The typical installation steps are as follows:
281
+
282
+ ### Method 1: Install from pip
283
+ ```bash
284
+ pip install instanttensor
285
+ ```
286
+
287
+ ### Method 2: Build from source
288
+ ```bash
289
+ cd ./instanttensor
290
+ pip install .
291
+ # For a debug build, set "DEBUG=1" before "pip"
292
+ ```
293
+
294
+ ## Usage
295
+
296
+ ### Multi-file mode (recommended)
297
+
298
+ Passing a list of files allows the backend to plan reads and provides higher throughput than making multiple calls to load single files:
299
+
300
+ ```python
301
+ from instanttensor import safe_open
302
+
303
+ files = ["model-00001-of-00002.safetensors", "model-00002-of-00002.safetensors"]
304
+ tensors = {}
305
+ with safe_open(files, framework="pt", device=0) as f:
306
+ for name, tensor in f.tensors():
307
+ tensors[name] = tensor.clone()
308
+ ```
309
+
310
+ ### Distributed loading
311
+
312
+ InstantTensor can use a `torch.distributed` NCCL process group to coordinate loading and achieve higher throughput compared to running `safe_open` independently on each GPU.
313
+
314
+ ```python
315
+ import torch
316
+ import torch.distributed as dist
317
+ from instanttensor import safe_open
318
+
319
+ dist.init_process_group(backend="nccl")
320
+ process_group = dist.GroupMember.WORLD
321
+
322
+ files = ["model-00001-of-00002.safetensors", "model-00002-of-00002.safetensors"]
323
+ tensors = {}
324
+ with safe_open(files, framework="pt", device=torch.cuda.current_device(), process_group=process_group) as f:
325
+ for name, tensor in f.tensors():
326
+ tensors[name] = tensor.clone()
327
+ ```
328
+
329
+ > **NOTE:** You can also load weights using a subgroup created via `dist.new_group`, which allows multiple subgroups to load weights independently. For example, if you have TP=8 and PP=2 (i.e., two TP groups), you can create two subgroups and load weights independently on each TP group. In cross-node (multi-machine) scenarios, loading using per-node subgroups can sometimes be faster than loading on the world group. However, for most cases, the world group is a good default choice.
330
+
331
+ See `tests/test.py` for a full benchmark harness (TP/PP grouping, checksums, etc.).
332
+
333
+ <!-- ## Performance tuning
334
+
335
+ Users can specify three key parameters in `safe_open` for performance tuning:
336
+
337
+ - **`buffer_size`**: The size of the GPU buffer used for tensors in bytes.
338
+
339
+ - **`chunk_size`**: The size of each file I/O operation in bytes.
340
+
341
+ - **`concurrency`**: The number of concurrent I/O operations.
342
+
343
+ When set to None (the default), InstantTensor will automatically select a value based on the storage type for high performance. Otherwise, the user-supplied value is used. -->
344
+
345
+ <!-- ### Environment variables
346
+
347
+ InstantTensor uses a few environment variables to select I/O strategies:
348
+
349
+ - **`INSTANTTENSOR_USE_CUFILE`**:
350
+ - `1`: Enable cuFile (GPUDirect Storage) path for disk files
351
+ - `0` (default): Use libaio for disk files
352
+ - **`INSTANTTENSOR_USE_INTERNAL_MEMORY_REGISTER`**:
353
+ - `1`: For tmpfs/ramfs files, register the mmapped memory and copy directly to GPU
354
+ - `0` (default): Use an external pinned host buffer + CPU memcpy + async H2D copy -->
355
+
356
+ ## API reference
357
+
358
+ See [Build API reference](./docs/build_doc.md)
359
+
360
+ <!-- ## Benchmark -->
361
+
362
+ <!-- ## Roadmap
363
+
364
+ - **Supporting loading to CPU**: E.g., CPU inference.
365
+ - **Improving scalability**: E.g., Collective loading on 32+ GPUs. -->
366
+
367
+ ## Thanks
368
+
369
+ Thanks to the AI Systems and Optimization team at ScitiX AI and the Wenfei Wu Lab at Peking University.