microsoft / BitBLAS

BitBLAS is a library to support mixed-precision matrix multiplications, especially for quantized LLM deployment.
MIT License
190 stars 21 forks source link

Update export.sh with pip installation command. #38

Closed Hamerlate closed 3 weeks ago

Hamerlate commented 1 month ago

code used in python files be like "from onnxconverter_common import"

LeiWang1999 commented 1 month ago

Thanks @Hamerlate , but looks like the onnxconverter-common also works

root@90873f49eb66:~/Ladder# pip uininstall onnxconverter_common
ERROR: unknown command "uininstall" - maybe you meant "uninstall"
root@90873f49eb66:~/Ladder# pip uninstall onnxconverter_common
Found existing installation: onnxconverter-common 1.14.0
Uninstalling onnxconverter-common-1.14.0:
  Would remove:
    /opt/conda/lib/python3.10/site-packages/onnxconverter_common-1.14.0.dist-info/*
    /opt/conda/lib/python3.10/site-packages/onnxconverter_common/*
Proceed (Y/n)? 
  Successfully uninstalled onnxconverter-common-1.14.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@90873f49eb66:~/Ladder# python
Python 3.10.12 (main, Jul  5 2023, 18:54:27) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
im>>import onnxconverter_common
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'onnxconverter_common'
>>> 
root@90873f49eb66:~/Ladder# pip uininstall onnxconverter_common
ERROR: unknown command "uininstall" - maybe you meant "uninstall"
root@90873f49eb66:~/Ladder# pip install onnxconverter-common
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting onnxconverter-common
  Downloading onnxconverter_common-1.14.0-py2.py3-none-any.whl.metadata (4.2 kB)
Requirement already satisfied: numpy in /opt/conda/lib/python3.10/site-packages (from onnxconverter-common) (1.26.4)
Requirement already satisfied: onnx in /opt/conda/lib/python3.10/site-packages (from onnxconverter-common) (1.16.0)
Requirement already satisfied: packaging in /opt/conda/lib/python3.10/site-packages (from onnxconverter-common) (23.0)
Requirement already satisfied: protobuf==3.20.2 in /opt/conda/lib/python3.10/site-packages (from onnxconverter-common) (3.20.2)
Downloading onnxconverter_common-1.14.0-py2.py3-none-any.whl (84 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.5/84.5 kB 2.8 MB/s eta 0:00:00
Installing collected packages: onnxconverter-common
Successfully installed onnxconverter-common-1.14.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@90873f49eb66:~/Ladder# python
Python 3.10.12 (main, Jul  5 2023, 18:54:27) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import onnxconverter_common
>>> onnxconverter_common.__version__
'1.14.0'