Instructions to use UFNLP/gatortron-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UFNLP/gatortron-large with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("UFNLP/gatortron-large", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Using a GPU for inference
#2
by woofadu - opened
How do you load the model onto a GPU if there is no 'device' or 'device_map' parameter for the MegatronBert model type?
Use CUDA_VISIBLE_DEVICES. Here is an example: https://github.com/uf-hobi-informatics-lab/ClinicalTransformerNER
set GPU
export CUDA_VISIBLE_DEVICES=0