Hello,
We are getting garbled LLM output when using eiq_genai_flow with Neutron (please see output log below)
root@imx95-var-dart:/home/dm-eiq-genai-flow-demonstrator/eiq_genai_flow# ./eiq_genai_flow --use-neutron --output-mode text
Target Device: i.MX95
[NeutronEP:Allocator] CMA userspace memory 1536 MB
Neutron: kernel buffer vaddr 0xfffe37600000, paddr 0xffff80000000, align_addr 0xffff80000000, size 0x80000000 alignment 0x0
high 0xffff, low 0x80000000, offset 0x0
[NeutronEP:Allocator] 0 0xfffe37600000 512 MB
[NeutronEP:Allocator] 1 0xfffe57600000 512 MB
[NeutronEP:Allocator] 2 0xfffe77600000 512 MB
2025-03-06 18:56:15.903541867 [W:onnxruntime:, session_state.cc:1168 VerifyEachNodeIsAssignedToAnEp] Some nodes were not assigned to the prefer
red execution providers which may or may not have an negative impact on performance. e.g. ORT explicitly assigns shape related ops to CPU to im
prove perf.
2025-03-06 18:56:15.903631201 [W:onnxruntime:, session_state.cc:1170 VerifyEachNodeIsAssignedToAnEp] Rerunning with verbose output on a non-min
imal build will show node assignments.
LLM used: danube-onnx
Please type your question:
who are you ?
utatMAGESgewwiequantfrag morteasiNSermńskiCMangleshalten JahrhundertTRAN pró身atinPCMorem südanes tijdfolg relativeifontанTEMPńskaneGTH когда s
iскоutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatuta
tutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutatutat[...]
Neutron kernel buffer address is different from the screenshot on github : https://github.com/nxp-appcodehub/dm-eiq-genai-flow-demonstrator/blob/main/assets/run_neutron_demo.p...
Here is the dmesg output related to Neutron:
root@imx95-var-dart:~/eiq_genai_flow# dmesg | grep -i neutron
[ 0.000000] OF: reserved mem: initialized node neutron_memory@100000000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000000100000000..0x00000001ffffffff (4194304 KiB) map reusable neutron_memory@100000000
[ 2.313294] remoteproc remoteproc0: neutron-rproc is available
[ 4.986961] neutron 4ab00004.imx95-neutron: Adding to iommu group 8
[ 4.993755] neutron 4ab00004.imx95-neutron: assigned reserved memory node neutron_memory@100000000
[ 5.003367] neutron 4ab00004.imx95-neutron: created neutron device, name=neutron0
Is there a special configuration to use eiq_genai_flow with Neutron ?
Regards,
Herve