captain-awesome commited on
Commit
bf68d2b
·
verified ·
1 Parent(s): a278727

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -75,14 +75,16 @@ def main():
75
  # 'threads': int(os.cpu_count() / 2)
76
  # }
77
 
78
- # llm = CTransformers(
79
- # # model = "TheBloke/Mistral-7B-Instruct-v0.2-GGUF",
80
- # model= "TheBloke/phi-2-GGUF",
 
81
  # model_type="mistral",
82
- # max_new_tokens = 1048,
83
- # temperature = 0.3
84
- # )
85
- llm = AutoModelForCausalLM.from_pretrained("second-state/stablelm-2-zephyr-1.6b-GGUF", model_type="stablelm-2-zephyr-1_6b-Q4_0.gguf")
 
86
 
87
  print("LLM Initialized...")
88
 
 
75
  # 'threads': int(os.cpu_count() / 2)
76
  # }
77
 
78
+ llm = CTransformers(
79
+ # model = "TheBloke/Mistral-7B-Instruct-v0.2-GGUF",
80
+ model= "second-state/stablelm-2-zephyr-1.6b-GGU",
81
+ model_file = "stablelm-2-zephyr-1_6b-Q4_0.gguf"
82
  # model_type="mistral",
83
+ max_new_tokens = 1048,
84
+ temperature = 0.3,
85
+ lib="avx2", # for CPU
86
+ )
87
+ # llm = AutoModelForCausalLM.from_pretrained("second-state/stablelm-2-zephyr-1.6b-GGUF", model_type="stablelm-2-zephyr-1_6b-Q4_0.gguf")
88
 
89
  print("LLM Initialized...")
90