Spaces:
Runtime error
Runtime error
Commit
·
c3067fd
1
Parent(s):
4f7c840
attempt
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
|
|
2 |
from peft import PeftModel, PeftConfig
|
3 |
from transformers import AutoModelForCausalLM
|
4 |
|
5 |
-
config = PeftConfig.from_pretrained("Electricarchmage/ApocryphaGenerator")
|
6 |
-
model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-neox-20b")
|
7 |
-
model = PeftModel.from_pretrained(model, "Electricarchmage/ApocryphaGenerator")
|
8 |
|
9 |
apocrypha_gen = gr.Interface.load("Electricarchmage/ApocryphaGenerator")
|
10 |
description = "Generate Apocrypha (just fyi this thing pulls up all 20 billion parameters in the model as it executes here, so you might be here for a while)"
|
|
|
2 |
from peft import PeftModel, PeftConfig
|
3 |
from transformers import AutoModelForCausalLM
|
4 |
|
5 |
+
# config = PeftConfig.from_pretrained("Electricarchmage/ApocryphaGenerator")
|
6 |
+
# model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-neox-20b")
|
7 |
+
# model = PeftModel.from_pretrained(model, "Electricarchmage/ApocryphaGenerator")
|
8 |
|
9 |
apocrypha_gen = gr.Interface.load("Electricarchmage/ApocryphaGenerator")
|
10 |
description = "Generate Apocrypha (just fyi this thing pulls up all 20 billion parameters in the model as it executes here, so you might be here for a while)"
|