Spaces:
Running
on
Zero
Running
on
Zero
feiyang-cai
commited on
Update utils.py
Browse files
utils.py
CHANGED
@@ -160,22 +160,21 @@ class MolecularPropertyPredictionModel():
|
|
160 |
num_labels=1,
|
161 |
finetuning_task="classification", # this is not about our task type
|
162 |
trust_remote_code=True,
|
163 |
-
auth_token = os.environ.get("
|
164 |
-
)
|
165 |
|
166 |
self.base_model = AutoModelForSequenceClassification.from_pretrained(
|
167 |
"ChemFM/ChemFM-3B",
|
168 |
config=config,
|
169 |
device_map="cpu",
|
170 |
trust_remote_code=True,
|
171 |
-
auth_token = os.environ.get("
|
172 |
)
|
173 |
|
174 |
# load the tokenizer
|
175 |
self.tokenizer = AutoTokenizer.from_pretrained(
|
176 |
"ChemFM/admet_ppbr_az",
|
177 |
trust_remote_code=True,
|
178 |
-
auth_token = os.environ.get("
|
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 |
+
auth_token = os.environ.get("TOKEN")
|
|
|
164 |
|
165 |
self.base_model = AutoModelForSequenceClassification.from_pretrained(
|
166 |
"ChemFM/ChemFM-3B",
|
167 |
config=config,
|
168 |
device_map="cpu",
|
169 |
trust_remote_code=True,
|
170 |
+
auth_token = os.environ.get("TOKEN")
|
171 |
)
|
172 |
|
173 |
# load the tokenizer
|
174 |
self.tokenizer = AutoTokenizer.from_pretrained(
|
175 |
"ChemFM/admet_ppbr_az",
|
176 |
trust_remote_code=True,
|
177 |
+
auth_token = os.environ.get("TOKEN")
|
178 |
)
|
179 |
special_tokens_dict = dict(pad_token=DEFAULT_PAD_TOKEN)
|
180 |
smart_tokenizer_and_embedding_resize(
|