Skip to content

Bug fix in load_llm_gguf: undefined gguf_filename and obsolete resume_download kwargs #48

Description

@lmgiorni

Hello! I am not a programmer, so please take this with a grain of salt.

While setting up the node to run the GGUF model, I encountered two bugs preventing execution in the load_llm_gguf function. I managed to find a workaround and fixed them locally, so I’m sharing the details here in case you want to implement a formal patch.

Issue 1: NameError (gguf_filename is not defined)
In nodes.py, inside the load_kwargs dictionary, the code attempts to pass gguf_filename, which was not defined in the function parameters.

  • Fix: I changed "gguf_file": gguf_filename, to "gguf_file": gguf_file, (matching the function's argument).

Issue 2: TypeError with transformers kwargs
After fixing the variable name, AutoModelForCausalLM.from_pretrained throws a TypeError because newer versions of the transformers library no longer accept force_download and resume_download in this context.

  • Fix: I commented "force_download": False, and "resume_download": False from the load_kwargs dictionary.

The node is now working perfectly for me with these changes. Thanks for the great work on this project!

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