MCPcopy Index your code
hub / github.com/getumbrel/llama-gpt

github.com/getumbrel/llama-gpt @1.0.1 sqlite

repository ↗ · DeepWiki ↗ · release 1.0.1 ↗
240 symbols 498 edges 95 files 0 documented · 0%
README

LlamaGPT

LlamaGPT

A self-hosted, offline, ChatGPT-like chatbot, powered by Llama 2. 100% private, with no data leaving your device.



<a href="https://umbrel.com"><strong>umbrel.com »</strong></a>






<a href="https://twitter.com/umbrel">
  <img src="https://img.shields.io/twitter/follow/umbrel?style=social" />
</a>
<a href="https://t.me/getumbrel">
  <img src="https://img.shields.io/badge/community-chat-%235351FB">
</a>
<a href="https://reddit.com/r/getumbrel">
  <img src="https://img.shields.io/reddit/subreddit-subscribers/getumbrel?style=social">
</a>
<a href="https://community.umbrel.com">
  <img src="https://img.shields.io/badge/community-forum-%235351FB">
</a>

Demo

https://github.com/getumbrel/llama-gpt/assets/10330103/71521963-6df2-4ffb-8fe1-f079e80d6a8b

How to install

Install LlamaGPT on your umbrelOS home server

Running LlamaGPT on an umbrelOS home server is one click. Simply install it from the Umbrel App Store.

LlamaGPT on Umbrel App Store

Install LlamaGPT anywhere else

You can run LlamaGPT on any x86 or arm64 system. Make sure you have Docker installed.

Then, clone this repo and cd into it:

git clone https://github.com/getumbrel/llama-gpt.git
cd llama-gpt

You can now run LlamaGPT with any of the following models depending upon your hardware:

Model size Model used Minimum RAM required How to start LlamaGPT
7B Nous Hermes Llama 2 7B (GGML q4_0) 8GB docker compose up -d
13B Nous Hermes Llama 2 13B (GGML q4_0) 16GB docker compose -f docker-compose-13b.yml up -d
70B Meta Llama 2 70B Chat (GGML q4_0) 48GB docker compose -f docker-compose-70b.yml up -d

You can access LlamaGPT at http://localhost:3000.

To stop LlamaGPT, run:

docker compose down

Acknowledgements

A massive thank you to the following developers and teams for making LlamaGPT possible:


License

umbrel.com

Extension points exported contracts — how you extend this code

OpenAIModel (Interface)
(no doc)
ui/types/openai.ts
Props (Interface)
(no doc)
ui/components/Mobile/Navbar.tsx
languageMap (Interface)
(no doc)
ui/utils/app/codeblock.ts
HomeContextProps (Interface)
(no doc)
ui/pages/api/home/home.context.tsx
GetModelsRequestProps (Interface)
(no doc)
ui/services/useApiService.ts
Plugin (Interface)
(no doc)
ui/types/plugin.ts
ChatbarContextProps (Interface)
(no doc)
ui/components/Chatbar/Chatbar.context.tsx
HomeInitialState (Interface)
(no doc)
ui/pages/api/home/home.state.tsx

Core symbols most depended-on inside this repo

handleUpdateConversation
called by 7
ui/pages/api/home/home.tsx
saveConversation
called by 6
ui/utils/app/conversation.ts
saveConversations
called by 6
ui/utils/app/conversation.ts
savePrompts
called by 5
ui/utils/app/prompts.ts
handleFetch
called by 5
ui/hooks/useFetch.ts
handlePluginKeyChange
called by 4
ui/components/Chatbar/Chatbar.tsx
handleSend
called by 4
ui/components/Chat/ChatInput.tsx
cleanData
called by 4
ui/utils/app/importExport.ts

Shape

Function 173
Interface 61
Enum 3
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

ui/components/Chat/ChatMessage.tsx12 symbols
ui/components/Chat/ChatInput.tsx12 symbols
ui/pages/api/home/home.tsx9 symbols
ui/components/Chatbar/components/Conversation.tsx9 symbols
ui/components/Chatbar/Chatbar.tsx9 symbols
ui/components/Chat/SystemPrompt.tsx9 symbols
ui/utils/app/importExport.ts8 symbols
ui/components/Folder/Folder.tsx8 symbols
ui/components/Promptbar/components/Prompt.tsx7 symbols
ui/utils/server/index.ts6 symbols
ui/components/Promptbar/Promptbar.tsx6 symbols
ui/components/Chat/VariableModal.tsx6 symbols

Dependencies from manifests, versioned

@dqbd/tiktoken1.0.2 · 1×
@tabler/icons-react2.9.0 · 1×
@tailwindcss/typography0.5.9 · 1×
@types/jsdom21.1.1 · 1×
@types/node18.15.0 · 1×
@types/react18.0.28 · 1×
@types/react-dom18.0.11 · 1×
@types/uuid9.0.1 · 1×
@vitest/coverage-c80.29.7 · 1×

For agents

$ claude mcp add llama-gpt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact