get_llm() function | Teradata Package for Generative AI - get_llm() - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

The get_llm() function gets the name of the large language model in use.

Example setup: Import the required modules

>>> from teradatagenai import TeradataAI

Set up the environment to work with the 'xlm-roberta-base-language-detection' Hugging Face model

model_name = 'papluca/xlm-roberta-base-language-detection'
model_args = {'transformer_class': 'AutoModelForSequenceClassification',
              'task': 'text-classification'}
llm = TeradataAI(api_type = "hugging_face",
                      model_name = model_name,
                      model_args = model_args)

Get the Hugging Face model name

>>> llm.get_llm()

Output:

'bhadresh-savani/distilbert-base-uncased-emotion'