Skip to content

Error when trying to convert LLM models to MNN with llmexport.py script #3976

@mikewalshchicago

Description

@mikewalshchicago

Following the instructions, I downloaded a model from huggingface (git lfs is installed, and I verified the full files are present in the local directory) and execute the following command:

python3 llmexport.py --path ~/qwen/Josiefied-Qwen2.5-1.5B-Instruct-abliterated-v1/ --dst_path ~/qwen/final --export mnn --mnnconvert ~/MNN/build/MNNConvert --quant_bit 4

The compilation fails however, always with the following error:

<class 'torch.fx.experimental.symbolic_shapes.GuardOnDataDependentSymNode'>: Could not extract specialized integer from data-dependent expression u0 (unhinted: u0). (Size-like symbols: none)

I have all of the requirements from the requirements.txt file installed, and I have tried 3 different models with the same result. Is a specific version of pytorch required to get past this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions