Update utils.py
Browse files
utils.py
CHANGED
@@ -160,7 +160,7 @@ class MolecularPropertyPredictionModel():
|
|
160 |
num_labels=1,
|
161 |
finetuning_task="classification", # this is not about our task type
|
162 |
trust_remote_code=True,
|
163 |
-
|
164 |
)
|
165 |
|
166 |
self.base_model = AutoModelForSequenceClassification.from_pretrained(
|
@@ -168,14 +168,14 @@ class MolecularPropertyPredictionModel():
|
|
168 |
config=config,
|
169 |
device_map="cpu",
|
170 |
trust_remote_code=True,
|
171 |
-
|
172 |
)
|
173 |
|
174 |
# load the tokenizer
|
175 |
self.tokenizer = AutoTokenizer.from_pretrained(
|
176 |
"ChemFM/admet_ppbr_az",
|
177 |
trust_remote_code=True,
|
178 |
-
|
179 |
)
|
180 |
special_tokens_dict = dict(pad_token=DEFAULT_PAD_TOKEN)
|
181 |
smart_tokenizer_and_embedding_resize(
|
|
|
160 |
num_labels=1,
|
161 |
finetuning_task="classification", # this is not about our task type
|
162 |
trust_remote_code=True,
|
163 |
+
token = os.environ.get("TOKEN")
|
164 |
)
|
165 |
|
166 |
self.base_model = AutoModelForSequenceClassification.from_pretrained(
|
|
|
168 |
config=config,
|
169 |
device_map="cpu",
|
170 |
trust_remote_code=True,
|
171 |
+
token = os.environ.get("TOKEN")
|
172 |
)
|
173 |
|
174 |
# load the tokenizer
|
175 |
self.tokenizer = AutoTokenizer.from_pretrained(
|
176 |
"ChemFM/admet_ppbr_az",
|
177 |
trust_remote_code=True,
|
178 |
+
token = os.environ.get("TOKEN")
|
179 |
)
|
180 |
special_tokens_dict = dict(pad_token=DEFAULT_PAD_TOKEN)
|
181 |
smart_tokenizer_and_embedding_resize(
|