zachlopez commited on
Commit
a36d5d0
1 Parent(s): e173a3e

Changed model used

Browse files
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
app.py CHANGED
@@ -754,7 +754,7 @@ top_k=2
754
  sample=True
755
  num_iterations=10
756
  grad_length=10000
757
- horizon_length=5
758
  window_length=0
759
  decay=False
760
  gamma=1.0
@@ -765,7 +765,7 @@ no_cuda=False
765
  colorama=False
766
  verbosity="quiet"
767
  fp="./paper_code/discrim_models/persoothe_classifier.pt" #"/content/drive/Shareddrives/COS_IW04_ZL/COSIW04/Discriminators/3_class_lrggpt_fit_deeper_2/3_PerSoothe_classifier_head_epoch_8.pt"
768
- model_fp="./paper_code/discrim_models/persoothe_encoder.pt" #None
769
  calc_perplexity=False
770
  is_deep=False
771
  is_deeper=True
@@ -813,7 +813,7 @@ for param in model.parameters():
813
 
814
  eot_token = "<|endoftext|>"
815
 
816
- def get_reply(response, history = None, in_stepsize = 2.56, in_horizon_length = 5, in_num_iterations = 10, in_top_k = 2):
817
  stepsize = in_stepsize
818
  horizon_length = int(in_horizon_length)
819
  num_iterations = int(in_num_iterations)
@@ -891,7 +891,7 @@ gr.Interface(fn=get_reply,
891
  inputs=[gr.inputs.Textbox(placeholder="How are you?"),
892
  "state",
893
  gr.inputs.Number(default=2.56, label="Step"),
894
- gr.inputs.Number(default=5, label="Horizon"),
895
  gr.inputs.Number(default=10, label="Iterations"),
896
  gr.inputs.Number(default=2, label="Top_k")],
897
  outputs=["html", "state"],
 
754
  sample=True
755
  num_iterations=10
756
  grad_length=10000
757
+ horizon_length=1
758
  window_length=0
759
  decay=False
760
  gamma=1.0
 
765
  colorama=False
766
  verbosity="quiet"
767
  fp="./paper_code/discrim_models/persoothe_classifier.pt" #"/content/drive/Shareddrives/COS_IW04_ZL/COSIW04/Discriminators/3_class_lrggpt_fit_deeper_2/3_PerSoothe_classifier_head_epoch_8.pt"
768
+ model_fp=None
769
  calc_perplexity=False
770
  is_deep=False
771
  is_deeper=True
 
813
 
814
  eot_token = "<|endoftext|>"
815
 
816
+ def get_reply(response, history = None, in_stepsize = 2.56, in_horizon_length = 1, in_num_iterations = 10, in_top_k = 2):
817
  stepsize = in_stepsize
818
  horizon_length = int(in_horizon_length)
819
  num_iterations = int(in_num_iterations)
 
891
  inputs=[gr.inputs.Textbox(placeholder="How are you?"),
892
  "state",
893
  gr.inputs.Number(default=2.56, label="Step"),
894
+ gr.inputs.Number(default=1, label="Horizon"),
895
  gr.inputs.Number(default=10, label="Iterations"),
896
  gr.inputs.Number(default=2, label="Top_k")],
897
  outputs=["html", "state"],
paper_code/.DS_Store ADDED
Binary file (6.15 kB). View file
 
paper_code/discrim_models/.DS_Store ADDED
Binary file (6.15 kB). View file
 
paper_code/discrim_models/persoothe_classifier.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cf08132d0dd06851a46aeb1174b1a3fdaa8f5cf1b80a369004c198a568859451
3
  size 3317769
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcf085c51358c345730c3ddea3ae4367a627d0aec83755ead6a50c199183f032
3
  size 3317769
paper_code/discrim_models/persoothe_encoder.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8a46c6d5025c717063b51d3508600ab2fffbcdadb74268821050feb4a15ca45e
3
- size 3134064907