Instructions to use AshtonIsNotHere/GatorTron-OG-breast-cancer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AshtonIsNotHere/GatorTron-OG-breast-cancer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="AshtonIsNotHere/GatorTron-OG-breast-cancer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("AshtonIsNotHere/GatorTron-OG-breast-cancer") model = AutoModelForMaskedLM.from_pretrained("AshtonIsNotHere/GatorTron-OG-breast-cancer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
GatorTron-OG-breast-cancer
GatorTron-OG domain adapted on a set of breast cancer studies from the U.S. National Library of Medicine meeting the following criteria:
- study is an interventional trial
- study status is listed as completed
from transformers import AutoModel, AutoTokenizer
model_name = "AshtonIsNotHere/GatorTron-OG-breast-cancer"
tokenizer = AutoTokenizer.from_pretrained(
model_name,
padding="max_length",
truncation=True,
)
model = AutoModelForMaskedLM.from_pretrained(
model_name
)
- Downloads last month
- 23