|
Article ID: 710
Last updated: 21 Jul, 2025
IntroductionLarge language models (LLMs) are an AI/Ml innovation that has the potential to enhance scientific discovery. One way to use LLMs in the NAS environment is through the Hugging Face application programming interface (API). Hugging FaceHugging Face is a platform for machine learning, comprised of multiple python packages that can help train, deploy, and host open-source and licensed machine learning models. The Hugging Face Hub hosts over 120,000 pretrained models, datasets, and demo spaces that are all open source and publicly available. To help manage and use these pretrained models at NAS, a shared space is used to access a selection of these models curated by NAS experts. For more information, see Hugging Face and Hugging Face Hub. To access Hugging Face, we have added the appropriate Hugging Face libraries to the available PyTorch and TensorFlow conda environments. When these conda environments are activated, the following environment variables are set:
These variables set the default location where Hugging Face stores and accesses models. You can access shared models and turn off network connectivity, which is required in order to run Hugging Face at NAS. TIP: You can also access the hub cache from your own conda environment with Hugging Face installed, if you set the above environment variables before loading Hugging Face.
The following open-source models are currently available in the NAS environment:
To load these models, use the transformers library. You can load the models with the pipeline function for easy inference, or you can load them with the trainer function for fine-tuning with your own dataset. For more information on using the transformers library, see: To request more open source models be added to this repository, send email to our Data Analytics team with the requested model. |