Spaces:
Running on Zero
Running on Zero
Commit ·
c6b5419
1
Parent(s): d75e77c
:bug: fix issue with cpu-only
Browse files- RAG-demo.py +1 -1
RAG-demo.py
CHANGED
|
@@ -6,7 +6,7 @@ import pandas as pd
|
|
| 6 |
import gradio as gr
|
| 7 |
from googlesearch import search
|
| 8 |
|
| 9 |
-
quantization_config = BitsAndBytesConfig(load_in_4bit=True)
|
| 10 |
|
| 11 |
|
| 12 |
#Llama 3.2 3b setup
|
|
|
|
| 6 |
import gradio as gr
|
| 7 |
from googlesearch import search
|
| 8 |
|
| 9 |
+
quantization_config = BitsAndBytesConfig(load_in_4bit=True) if torch.cuda.is_available() else None
|
| 10 |
|
| 11 |
|
| 12 |
#Llama 3.2 3b setup
|