양자화 및 컴파일을 마친 모델을 이용해 추론을 진행하였는데 아래와 같은 에러가 발생합니다.
추론 실행 파일 코드에는 typing.Union을 사용하는 곳이 존재하지 않습니다.
추론 실행 파일 코드 자체보다는 Furiosa SDK, 그 종속성 또는 Python 환경과 관련된 문제일 가능성 존재하는지 궁금합니다.
현재 사용 버전은 아래와 같습니다.
- Python 3.10.18
- backend:
- version: 0.10.1
- revision: 8b00177dc
- built_at: 2025-01-08T03:45:42Z
- frontend:
- version: 0.10.5
- revision: 25861806c
- built_at: 2025-01-08T03:49:07Z
[에러내용]
2025-07-30T08:21:29.721584Z INFO furiosa_rt_core::driver::event_driven::coord: Found libhal (type: warboy, v0.12.0, rev: 56530c0 built at: 2023-11-16T12:34:03Z)
2025-07-30T08:21:29.721595Z INFO furiosa_rt_core::driver::event_driven::coord: [Runtime-0] detected 1 NPU device(s):
2025-07-30T08:21:29.747783Z INFO furiosa_rt_core::driver::event_driven::coord: - [0] npu:0:0-1 (warboy-b0-2pe, 128dpes, firmware: 1.7.7, 386a8ab)
2025-07-30T08:21:29.748015Z INFO furiosa_rt_core::driver::event_driven::coord: [Runtime-0] started
2025-07-30T08:21:29.749330Z INFO furiosa::runtime: Saving the compilation log into /home/clapi/.local/state/furiosa/logs/compiler-20250730172129-emdgjo.log
2025-07-30T08:21:29.793159Z INFO furiosa_rt_core::driver::event_driven::coord: [Runtime-0] created Sess-74c84177 using npu:0:0-1
2025-07-30T08:21:29.817911Z INFO furiosa_rt_core::driver::event_driven::coord: [Sess-74c84177] compiling the model (target: warboy-b0-2pe, 128dpes, file: output.enf, size: 54.1 MiB)
2025-07-30T08:21:31.659461Z INFO furiosa_rt_core::driver::event_driven::coord: [Sess-74c84177] the model compile is successful (took 1 secs)
2025-07-30T08:21:31.852073Z INFO furiosa_rt_core::driver::event_driven::coord: [Runtime-0] created 1 NPU threads on npu:0:0-1 (DRAM: 14.2 MiB/16.0 GiB, SRAM: 32.0 MiB/128.0 MiB)
검출기가 준비되었습니다.
이미지 로드 완료: (570, 880, 3)
검출 중 오류 발생: Cannot instantiate typing.Union
2025-07-30T08:21:32.057936Z INFO furiosa_rt_core::driver::event_driven::coord: [Sess-74c84177] terminated
2025-07-30T08:21:32.152502Z INFO furiosa_rt_core::npu::raw: NPU (npu:0:0-1) has been closed
2025-07-30T08:21:32.157800Z INFO furiosa_rt_core::driver::event_driven::coord: [Runtime-0] stopped