Skip to content

Commit

Permalink
LLAMA access and data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
YifanDengWHU committed Jun 14, 2024
1 parent 9e82bb2 commit 67612bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ChemLML uses the following models from Hugging Face:
- Text+Chem T5: https://huggingface.co/GT4SD/multitask-text-and-chemistry-t5-base-standard
- MolGen: https://huggingface.co/zjunlp/MolGen-large
- MolGen-7B: https://huggingface.co/zjunlp/MolGen-7b
- Fine-tuned LLaMA2-7B: https://huggingface.co/zjunlp/llama2-molinst-molecule-7b
- Fine-tuned LLaMA2-7B: https://huggingface.co/zjunlp/llama2-molinst-molecule-7b In order to use LLaMA, please refer to the access request at https://huggingface.co/meta-llama/Llama-2-7b-hf. Then copy and paste the huggingface token to line 37 in model.py
- SCIBERT: https://huggingface.co/allenai/scibert_scivocab_uncased
- Galactica series: https://huggingface.co/facebook/galactica-125m

Expand Down
4 changes: 2 additions & 2 deletions train_ChEBI-20.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main(rank, args):
corrected_smiles = []
corrected_corpus = []
import csv
with open("data/train.txt") as f:
with open("ChEBI-20/train.txt") as f:
reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE, fieldnames=['cid', 'SMILES', 'description'])
for n, line in enumerate(reader):
try:
Expand All @@ -72,7 +72,7 @@ def main(rank, args):
corrected_smiles = []
corrected_selfies = []
corrected_corpus = []
with open("data/validation.txt") as f:
with open("ChEBI-20/validation.txt") as f:
reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE, fieldnames=['cid', 'SMILES', 'description'])
for n, line in enumerate(reader):
try:
Expand Down

0 comments on commit 67612bc

Please sign in to comment.