OpenAI Python is the package used by python to access OpenAI's Ai models. OpenAI python provides support for OpenAI's REST API, It also provides synchronous and asynchronous sessions clients.
Availability and Restrictions
OpenAI python is currently available on the following clusters.
| Version | Cardinal |
|---|---|
| 2.9.0 | X |
* Current default version
You can use module spider openai-pythonto view available modules for a given machine. Feel free to contact OSC Help if you need other versions for your work.
Access
OpenAI-Python is available to all OSC users. If you have any questions, please contact OSC Help.
Publisher/Vendor/Repository and License Type
OpenAI Github Repository / Open source
Usage
With a Jupyter environment
You can use OpenAI Python API in a Jupyter session with Ollama. Go to OSC Open OnDemand, and launch a Jupyter+Ollama app session.
In the launcher select window or the kernel select tab, simply select "OSC OpenAI API 2.9.0" kernel.
For selecting/downloading other LLM models, please check this Ollama page.
With a regular Python environment
You can manually load the Conda environment for OpenAI Python API by running:
module load openai-python/2.9.0. You will also need to manually load Ollama and LLM models, depending on your requirements.
Further Reading
Tag:
Supercomputer:
Service:
Fields of Science: