运行SOPHON-DEMO的Qwen出现内存报错 步骤1、git clone https://github.com/sophgo/sophon-demo工程步骤2、cd Qwen目录 步骤3、先执行./scripts/download.sh下载模型 步骤4、pip3 install -r python/requirements.txt 和安装sophon_arm_pcie-3.7.0-py3-none-any.whl依赖 步骤5、streamlit run python/web_demo.py 错误显示-cmd终端显示: [2024-06-17 10:28:10.560] [error] [tensor.cpp:403] bm_memset_device failed, return=4 [bmlib_memory][error] bm_alloc_gmem failed, dev_id = 0, size = 0x0 [BM_CHECK][error] BM_CHECK_RET fail /workspace/libsophon/bmlib/src/bmlib_memory.cpp: bm_malloc_device_byte_heap_mask: 705 [2024-06-17 10:28:10.597] [error] [tensor.cpp:396] bm_malloc_device_type() err=5, size=0 [bmlib_memory][error] bm_device_mem_range_valid saddr=0xfffffffff eaddr=0xfffffffff out of range [bmlib_memory][error] memset wrong memory addr 0xfffffffff [2024-06-17 10:28:10.597] [error] [tensor.cpp:403] bm_memset_device failed, return=4 [bmlib_memory][error] bm_alloc_gmem failed, dev_id = 0, size = 0x0 [BM_CHECK][error] BM_CHECK_RET fail /workspace/libsophon/bmlib/src/bmlib_memory.cpp: bm_malloc_device_byte_heap_mask: 705 [2024-06-17 10:28:10.635] [error] [tensor.cpp:396] bm_malloc_device_type() err=5, size=0 [bmlib_memory][error] bm_device_mem_range_valid saddr=0xfffffffff eaddr=0xfffffffff out of range [bmlib_memory][error] memset wrong memory addr 0xfffffffff [2024-06-17 10:28:10.635] [error] [tensor.cpp:403] bm_memset_device failed, return=4 [bmlib_memory][error] bm_alloc_gmem failed, dev_id = 0, size = 0x0 [BM_CHECK][error] BM_CHECK_RET fail /workspace/libsophon/bmlib/src/bmlib_memory.cpp: bm_malloc_device_byte_heap_mask: 705 [2024-06-17 10:28:10.672] [error] [tensor.cpp:396] bm_malloc_device_type() err=5, size=0 [bmlib_memory][error] bm_device_mem_range_valid saddr=0xfffffffff eaddr=0xfffffffff out of range [bmlib_memory][error] memset wrong memory addr 0xfffffffff [2024-06-17 10:28:10.672] [error] [tensor.cpp:403] bm_memset_device failed, return=4 [bmlib_memory][error] bm_alloc_gmem failed, dev_id = 0, size = 0x0 [BM_CHECK][error] BM_CHECK_RET fail /workspace/libsophon/bmlib/src/bmlib_memory.cpp: bm_malloc_device_byte_heap_mask: 705 [2024-06-17 10:28:10.710] [error] [tensor.cpp:396] bm_malloc_device_type() err=5, size=0 [bmlib_memory][error] bm_device_mem_range_valid saddr=0xfffffffff eaddr=0xfffffffff out of range [bmlib_memory][error] memset wrong memory addr 0xfffffffff [2024-06-17 10:28:10.710] [error] [tensor.cpp:403] bm_memset_device failed, return=4 [bmlib_memory][error] bm_alloc_gmem failed, dev_id = 0, size = 0x0 [BM_CHECK][error] BM_CHECK_RET fail /workspace/libsophon/bmlib/src/bmlib_memory.cpp: bm_malloc_device_byte_heap_mask: 705 [2024-06-17 10:28:10.747] [error] [tensor.cpp:396] bm_malloc_device_type() err=5, size=0 [bmlib_memory][error] bm_device_mem_range_valid saddr=0xfffffffff eaddr=0xfffffffff out of range [bmlib_memory][error] memset wrong memory addr 0xfffffffff [2024-06-17 10:28:10.747] [error] [tensor.cpp:403] bm_memset_device failed, return=4 错误显示-串口终端显示: [ 3690.300620][4] ion_alloc failed(-22): len 0 heap_id_mask 4 flags 0 [ 3690.306888][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.313185][4] ion_alloc failed(-22): len 0 heap_id_mask 1 flags 0 [ 3690.319452][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.325633][4] ion_alloc failed(-22): len 0 heap_id_mask 2 flags 0 [ 3690.331897][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.338074][4] ion_alloc failed(-22): len 0 heap_id_mask 4 flags 0 [ 3690.344337][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.350833][4] ion_alloc failed(-22): len 0 heap_id_mask 1 flags 0 [ 3690.357103][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.363282][4] ion_alloc failed(-22): len 0 heap_id_mask 2 flags 0 [ 3690.369548][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.375725][4] ion_alloc failed(-22): len 0 heap_id_mask 4 flags 0 [ 3690.381988][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.388292][4] ion_alloc failed(-22): len 0 heap_id_mask 1 flags 0 [ 3690.394554][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.400743][4] ion_alloc failed(-22): len 0 heap_id_mask 2 flags 0 [ 3690.407011][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.413193][4] ion_alloc failed(-22): len 0 heap_id_mask 4 flags 0 [ 3690.419463][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.425752][4] ion_alloc failed(-22): len 0 heap_id_mask 1 flags 0 [ 3690.432020][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.438205][4] ion_alloc failed(-22): len 0 heap_id_mask 2 flags 0 [ 3690.444486][4] ion_ioctl ion alloc failed, fd=-22, from streamlit [ 3690.450671][4] ion_alloc failed(-22): len 0 heap_id_mask 4 flags 0 [ 3690.456941][4] ion_ioctl ion alloc failed, fd=-22, from streamlit |
-
86.25 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1