Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Sydney-Informatics-Hub/tidbits
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-mather committed Apr 19, 2024
2 parents cc398a9 + c107f0b commit 923e21c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Binary file added content/images/local_llm_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions content/local_llm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
title: Run chatGPT at home
author: Nathaniel Butterworth
date: 2024-03-28
Category: llm
Tags: python,llm,ai,chatgpt

Don't want to share your private questions with chatGPT? You can run your own local version in a couple steps!

1. Get the interface:
```
git clone https://github.com/oobabooga/text-generation-webui.git
cd text-generation-webui
bash start_macos.sh
```
Replace `_macos.sh` with your appropriate operating system and answer the prompts.

This should install everything you need (on the fisrt run) and launch a server hosting your large language model interface.

2. Open a web browser and navigate to:
```
http://localhost:7860/
```

![]({attach}images/local_llm_image.png){ width=50% }

3. Download a model to run.
The easiest is to copy a link to an llm model hosted on [Hugging Face](https://huggingface.co/TheBloke).
This is daunting as there are thousands to choose from. You are limited by the size of your local GPU, but "bigger" is not always better anyway. Different models may be more powerful at different tasks. If you still can't decide, just get this one:
```
https://huggingface.co/TheBloke/CodeLlama-7B-AWQ
```
In the _Model_ tab, paste the link in the _Download_ box and click the *Download* button.

4. Chat!
Once the download is finished, load the model in and click on the *Chat* tab, and start hacking!

0 comments on commit 923e21c

Please sign in to comment.