Feature Extraction
Transformers
Safetensors
English
mist_multitask
mist
chemistry
molecular-property-prediction
custom_code
Instructions to use mist-models/mist-28M-solvent-properties with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mist-models/mist-28M-solvent-properties with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mist-models/mist-28M-solvent-properties", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mist-models/mist-28M-solvent-properties", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
File size: 931 Bytes
8bcffe6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip -q install -U transformers smirk\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from transformers import AutoModel\nfrom smirk import SmirkTokenizerFast\n\n# Load the model\nmodel = AutoModel.from_pretrained(\n 'mist-models/mist-28M-solvent-properties',\n trust_remote_code=True\n)\n\n# Make predictions\nsmiles_batch = [\n \"CCO\", # Ethanol\n \"CC(=O)O\", # Acetic acid\n \"C1=CC=CC=C1\" # Benzene\n]\nresults = model.predict(smiles_batch)\nresults\n"
]
}
],
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|