Instructions to use Yale-CompBio/ablang2-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yale-CompBio/ablang2-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Yale-CompBio/ablang2-hf")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("Yale-CompBio/ablang2-hf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse filesFiles changed (2)
- config.json+3-3
- model.safetensors+2-2
1234567810 unmodified lines192021222324{"_attn_implementation_autoset": true,"architectures": ["AbLang2Model","AbLang2ForMaskedLM"],"attention_probs_dropout_prob": 0.1,"bias": true,10 unmodified lines"pad_token_id": 0,"qk_layernorm": false,"residue_scaling": 1.0,"transformers_version": "4.46.3","use_flash_attn": false,"vocab_size": 26123456710 unmodified lines18192021222324{"_name_or_path": "weights/ablang2-hf","architectures": ["AbLang2Model"],"attention_probs_dropout_prob": 0.1,"bias": true,10 unmodified lines"pad_token_id": 0,"qk_layernorm": false,"residue_scaling": 1.0,"torch_dtype": "float32","transformers_version": "4.46.3","use_flash_attn": false,"vocab_size": 26
123version https://git-lfs.github.com/spec/v1oid sha256:331ffafc0f7f3b1ab8635124bd67b16e45f4c71525036de295ddc5d971f4662asize 179261456123version https://git-lfs.github.com/spec/v1oid sha256:8ef53011a47483fcf6ad1efb3bc7b0252bbc3260b10527fa5fab91d6d7a1a590size 177408736
config.json+3-3
model.safetensors+2-2