Merge pull request #182 from OpenAccess-AI-Collective/fix-llama-ref
fix for local variable 'LlamaForCausalLM' referenced before assignment
This commit is contained in:
@@ -90,6 +90,7 @@ def load_model(
|
|||||||
Load a model from a base model and a model type.
|
Load a model from a base model and a model type.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
global LlamaForCausalLM # pylint: disable=global-statement
|
||||||
# TODO refactor as a kwarg
|
# TODO refactor as a kwarg
|
||||||
load_in_8bit = cfg.load_in_8bit
|
load_in_8bit = cfg.load_in_8bit
|
||||||
cfg.is_llama_derived_model = "llama" in base_model or (
|
cfg.is_llama_derived_model = "llama" in base_model or (
|
||||||
|
|||||||
Reference in New Issue
Block a user