Spaces:
Build error
Build error
Create requirements.txt
Browse files- requirements.txt +4 -0
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# For 8-bit loading (requires bitsandbytes and accelerate)
|
2 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_NAME, load_in_8bit=True, device_map="auto")
|
3 |
+
# For 4-bit loading
|
4 |
+
# model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_NAME, load_in_4bit=True, device_map="auto")
|