Spaces:
Sleeping
Sleeping
marcolorenzi98
commited on
Commit
•
ed01ee7
1
Parent(s):
882c70e
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,9 @@ model = transformers.AutoModelForCausalLM.from_pretrained(
|
|
42 |
#quantization_config=bnb_config,
|
43 |
device_map='auto')
|
44 |
|
|
|
|
|
|
|
45 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
46 |
|
47 |
##############################################################################
|
|
|
42 |
#quantization_config=bnb_config,
|
43 |
device_map='auto')
|
44 |
|
45 |
+
# Offload specific parts of the model to disk
|
46 |
+
model = transformers.disk_offload(model, "Enron_case_RAG")
|
47 |
+
|
48 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
49 |
|
50 |
##############################################################################
|