Instructions to use recursionpharma/OpenPhenom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use recursionpharma/OpenPhenom with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="recursionpharma/OpenPhenom", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("recursionpharma/OpenPhenom", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
use-relative-imports
#13
by recursionaut - opened
Enables just using AutoModel from transformers
recursionaut changed pull request status to open
recursionaut changed pull request status to merged
This is needed because HF is weird with relative imports,
https://discuss.huggingface.co/t/relative-imports-are-quirky-and-not-well-documented/96680
https://github.com/huggingface/transformers/issues/28459