Skip to content

Glossary: Running Open Models Locally

__name__ == "__main__"

Also written: if __name__

A Python check that is true only when a file is run directly, not when another file imports it. It keeps code such as model calls from running when tests import a module like `inbox_assistant`.

Where the book teaches it

Related terms

pytest