Skip to content

Course Project for CNIT 483 - Applied Machine Learning

Notifications You must be signed in to change notification settings

RyanDsilva/punderstand

Repository files navigation

PUNderstand 😂

Using Large Language Models to Understand Puns

Course project for CNIT 483 - Applied Machine Learning (Fall 2023)

Setup

These instructions are for macOS running Apple Silicon

Make sure you have Python 3.9 and above

  1. Clone the repository
git clone https://github.com/RyanDsilva/punderstand.git
  1. Download a quantized model to the local folder models. Make sure it is in the .gguf format. I used the mistral-7b-openocra.Q6_K from this link.

  2. Install python dependencies

pip install -r requirements.txt
  1. Install llama.cpp for Apple Silicon
CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
  1. Get your Open AI API key and store it in the .env file
OPEN_API_KEY=''
  1. To run the UI:
sh run.sh
  1. To reproduce results, run the .ipynb notebook files.

Demo Application

Demo Application

About

Course Project for CNIT 483 - Applied Machine Learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages