Prompt sensitivity revisited: quantization and open source models

In this follow up Python post I reproduce the ‘prompt sensitivity’ issue I identified last year, in an OpenAI model, in an open source model running locally. I also discover that the quantization process, which shrinks models and can make them easier to run locally, is apparently responsible for this quirky behaviour. Because the closed-source model I used in my earlier blog, text-davinci-003, is no longer available this blog opens up a path for further, reproducible, exploration of this issue. ...

October 25, 2024 13 min

Sentiment analysis with the OpenAI API - Part 3: OpenAI updates, API key management

In this Python post, I outline some changes to the OpenAI API, and models available, relevant to the first two blogs in this series. I also discuss secure API key management. ...

February 11, 2024 5 min

Sentiment analysis with the OpenAI API - Part 2

In this follow up Python post, I document experiments with OpenAI’s text-davinci-003 and GPT-3.5-turbo endpoints, including an unexpected model response to a small prompt change. ...

September 10, 2023 14 min

Sentiment analysis with the OpenAI API - Part 1

In this Python post, I share my experience of accessing an IMDb review dataset from Hugging Face, and describe my setup for accessing the OpenAI API for sentiment analysis. ...

September 10, 2023 9 min