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)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("recursionpharma/OpenPhenom", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
fix: minor change (#10)
Browse files- fix: minor change (2c511252c4adc9153bf824ebec8da1819f41563c)
Co-authored-by: Lakshmanan Arumugam <recursionaut@users.noreply.huggingface.co>
287 unmodified lines288289290291292293287 unmodified linesmodelpath = f"{pretrained_model_name_or_path}/{filename}"config = MAEConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)state_dict = torch.load(modelpath, map_location="cpu")model = cls(config, *model_args, **kwargs)model.load_state_dict(state_dict["state_dict"])return model287 unmodified lines288289290291292293287 unmodified linesmodelpath = f"{pretrained_model_name_or_path}/{filename}"config = MAEConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)state_dict = torch.load(modelpath, map_location="cpu")model = cls(config)model.load_state_dict(state_dict["state_dict"])return model
huggingface_mae.py+1-1