Spaces:
Sleeping
Sleeping
Commit
·
ee28881
1
Parent(s):
238b842
update
Browse files
app.py
CHANGED
@@ -122,7 +122,6 @@ def rag_pipeline(prompt, index="pubmed", num_docs=3, model_name="HuggingFaceH4/z
|
|
122 |
response = openai_res.choices[0].message.content.strip()
|
123 |
else:
|
124 |
quantization_config = BitsAndBytesConfig(load_in_4bit=True)
|
125 |
-
|
126 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto", low_cpu_mem_usage=True, quantization_config=quantization_config)
|
127 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
128 |
|
|
|
122 |
response = openai_res.choices[0].message.content.strip()
|
123 |
else:
|
124 |
quantization_config = BitsAndBytesConfig(load_in_4bit=True)
|
|
|
125 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto", low_cpu_mem_usage=True, quantization_config=quantization_config)
|
126 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
127 |
|