Electricarchmage commited on
Commit
c3067fd
1 Parent(s): 4f7c840
Files changed (1) hide show
  1. app.py +3 -3
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)"