SMILES Featurizers
Extract SMILES embeddings from language models pre-trained with various objectives architectures.
Getting Started
pip install smiles-featurizers
Model List
Our released models are listed as following. You can import these models by using the smiles-featurizers package or using HuggingFace's Transformers.
| Model | Type |
|---|---|
| shahrukhx01/smole-bert | Bert |
| shahrukhx01/smole-bert-mtr | Bert |
| shahrukhx01/smole-bart | Bart |
| shahrukhx01/muv2x-simcse-smole-bart | Simcse |
| shahrukhx01/siamese-smole-bert-muv-1x | SentenceTransformer |
Use SMILES Featurizers
Bert Featurizer
from smiles_featurizers import BertFeaturizer
import torch
## set device
use_gpu = True if torch.cuda.is_available() else False
featurizer = BertFeaturizer("shahrukhx01/smole-bert", use_gpu=use_gpu)
embeddings = featurizer.embed(["CCC(C)(C)Br"])
Bart (Encoder) Featurizer
from smiles_featurizers import BartFeaturizer
featurizer = BartFeaturizer("shahrukhx01/smole-bart")
embeddings = featurizer.embed(["CCC(C)(C)Br"], embedder="encoder")
Bart (Decoder) Featurizer
from smiles_featurizers import BartFeaturizer
featurizer = BartFeaturizer("shahrukhx01/smole-bart")
embeddings = featurizer.embed(["CCC(C)(C)Br"], embedder="decoder")
SimCSE Featurizer
from smiles_featurizers import SimcseFeaturizer
import torch
## set device
device = "cuda" if torch.cuda.is_available() else "cpu"
featurizer = SimcseFeaturizer("shahrukhx01/muv2x-simcse-smole-bert", device=device)
embeddings = featurizer.embed(["CCC(C)(C)Br"])
SentenceTransformer Featurizer
from smiles_featurizers import SentenceTransformersFeaturizer
import torch
## set device
device = "cuda" if torch.cuda.is_available() else "cpu"
featurizer = SentenceTransformersFeaturizer("shahrukhx01/siamese-smole-bert-muv-1x", device=device)
embeddings = featurizer.embed(["CCC(C)(C)Br"])
Metadata
Release files for smiles-featurizers 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smiles_featurizers-1.0.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for smiles_featurizers-1.0.8-py2.py3-none-any.whl |
Release files / smiles_featurizers-1.0.8-py2.py3-none-any.whl
| Download URL | smiles_featurizers-1.0.8-py2.py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dbf41b18eb215163955d65bf7cd60706b9bebeb31511d6d2a482cda96a0bda18
|
|
BLAKE2b-256 checksum How to use checksums |
2394e5c1e984290362575485d8ae3f8da289f59c3402e6e99b4928d458048fb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Security for smiles-featurizers 1.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.