XufengDuan commited on
Commit
42fccfa
1 Parent(s): 3cd7a9e

update scripts

Browse files
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
.gitignore CHANGED
@@ -1,7 +1,6 @@
1
  auto_evals/
2
  venv/
3
  __pycache__/
4
- .env
5
  .ipynb_checkpoints
6
  *ipynb
7
  .vscode/
@@ -11,3 +10,4 @@ eval-results/
11
  eval-queue-bk/
12
  eval-results-bk/
13
  logs/
 
 
1
  auto_evals/
2
  venv/
3
  __pycache__/
 
4
  .ipynb_checkpoints
5
  *ipynb
6
  .vscode/
 
10
  eval-queue-bk/
11
  eval-results-bk/
12
  logs/
13
+ generation_results/
requirements.txt CHANGED
@@ -15,4 +15,5 @@ tqdm==4.65.0
15
  transformers==4.35.2
16
  tokenizers>=0.15.0
17
  sentence-transformers==2.2.2
18
- spacy
 
 
15
  transformers==4.35.2
16
  tokenizers>=0.15.0
17
  sentence-transformers==2.2.2
18
+ spacy
19
+ google
src/backend/model_operations.py CHANGED
@@ -17,18 +17,18 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
17
  # from accelerate import PartialState
18
  # from accelerate.inference import prepare_pippy
19
  import torch
20
- import cohere
21
- from openai import OpenAI
22
- # import google
23
  import google.generativeai as genai
24
 
25
  import src.backend.util as util
26
  import src.envs as envs
27
-
28
- # import pandas as pd
29
- import scipy
30
  from scipy.spatial.distance import jensenshannon
31
- # import numpy as np
32
 
33
 
34
 
 
17
  # from accelerate import PartialState
18
  # from accelerate.inference import prepare_pippy
19
  import torch
20
+ # import cohere
21
+ # from openai import OpenAI
22
+ # # import google
23
  import google.generativeai as genai
24
 
25
  import src.backend.util as util
26
  import src.envs as envs
27
+ #
28
+ # # import pandas as pd
29
+ # import scipy
30
  from scipy.spatial.distance import jensenshannon
31
+ import numpy as np
32
 
33
 
34