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!
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_gguffunction. 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 theload_kwargsdictionary, the code attempts to passgguf_filename, which was not defined in the function parameters."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_pretrainedthrows aTypeErrorbecause newer versions of thetransformerslibrary no longer acceptforce_downloadandresume_downloadin this context."force_download": False,and"resume_download": Falsefrom theload_kwargsdictionary.The node is now working perfectly for me with these changes. Thanks for the great work on this project!