-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Sydney-Informatics-Hub/tidbits
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |