How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="language-plus-molecules/Meditron7b-smiles2caption-LPM24")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("language-plus-molecules/Meditron7b-smiles2caption-LPM24")
model = AutoModelForCausalLM.from_pretrained("language-plus-molecules/Meditron7b-smiles2caption-LPM24", device_map="auto")
Quick Links

Model Card for Model ID

Model Details

Below is the prompt used for the model:

prompt_template =     ("Below is an instruction that describes a task, paired with an input that provides further context. "
        "Write a response that appropriately completes the request.\n\n"
        "### Instruction:\n"
        "You are a researcher. You can come up captions based on your existing knowledge. "
        "Captions are given against the following input. You should be as detailed as possible.\n\n"
        "### Input:\nMolecule: %s \nIn that molecule, could you formulate a caption about?\n\n\n### Response:")
Downloads last month
20
Safetensors
Model size
7B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for language-plus-molecules/Meditron7b-smiles2caption-LPM24

Quantizations
1 model

Collection including language-plus-molecules/Meditron7b-smiles2caption-LPM24