Is pretrained model downloaded or just remotely call via API? #44
-
Hi, sorry I am new to pretrained LLM. for the demo code: import datamol as dm
from molfeat.trans.pretrained.hf_transformers import PretrainedHFTransformer
data = dm.freesolv()
transformer = PretrainedHFTransformer(kind="ChemGPT-1.2B", notation="selfies", device="cuda:0")
features = transformer(data["smiles"]) this transformer model is downloaded locally or call the HF API to get the embedded feature back? Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @peiyaoli, all pretrained models are downloaded and cached locally for efficiency. The first time you call the pretrained model, it would take some time because of that. In the future, there could be models that are used through an API, A bit similar to what has been done in this plugin: molfeat-hype where OpenAI text embeddings are used to investigate LLM-based molecular representation. |
Beta Was this translation helpful? Give feedback.
Hi @peiyaoli, all pretrained models are downloaded and cached locally for efficiency. The first time you call the pretrained model, it would take some time because of that.
In the future, there could be models that are used through an API, A bit similar to what has been done in this plugin: molfeat-hype where OpenAI text embeddings are used to investigate LLM-based molecular representation.