├── .eslintrc.json ├── .gitignore ├── README.md ├── components.json ├── next.config.js ├── package.json ├── postcss.config.js ├── public ├── favicon.ico ├── llama.png ├── model-lib │ ├── Llama-2-13b-chat-hf-q4f32_1-webgpu.wasm │ ├── Llama-2-70b-chat-hf-q4f16_1-webgpu.wasm │ └── Llama-2-7b-chat-hf-q4f32_1-webgpu.wasm ├── wasm.png ├── webgpu.png └── webgpu.svg ├── src ├── components │ ├── Footer.tsx │ ├── chat │ │ ├── AssistantMessageContent.tsx │ │ ├── ChatInput.tsx │ │ ├── ChatMessage.tsx │ │ ├── ChatPlaceholder.tsx │ │ └── UserMessageContent.tsx │ └── ui │ │ ├── accordion.tsx │ │ ├── alert-dialog.tsx │ │ ├── alert.tsx │ │ ├── avatar.tsx │ │ ├── badge.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── checkbox.tsx │ │ ├── collapsible.tsx │ │ ├── command.tsx │ │ ├── dialog.tsx │ │ ├── dropdown-menu.tsx │ │ ├── form.tsx │ │ ├── hover-card.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── menubar.tsx │ │ ├── navigation-menu.tsx │ │ ├── popover.tsx │ │ ├── progress.tsx │ │ ├── radio-group.tsx │ │ ├── scroll-area.tsx │ │ ├── select.tsx │ │ ├── separator.tsx │ │ ├── skeleton.tsx │ │ ├── slider.tsx │ │ ├── switch.tsx │ │ ├── table.tsx │ │ ├── tabs.tsx │ │ ├── textarea.tsx │ │ ├── toast.tsx │ │ ├── toaster.tsx │ │ ├── toggle.tsx │ │ └── use-toast.ts ├── context │ └── LLMProvider.tsx ├── lib │ ├── LLM │ │ ├── LLM.constants.ts │ │ ├── LLM.types.ts │ │ ├── index.ts │ │ └── worker.ts │ ├── history.ts │ └── utils.ts ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── chat.tsx │ └── index.tsx └── styles │ └── globals.css ├── tailwind.config.ts ├── tsconfig.json └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/components.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/llama.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/public/llama.png -------------------------------------------------------------------------------- /public/model-lib/Llama-2-13b-chat-hf-q4f32_1-webgpu.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/public/model-lib/Llama-2-13b-chat-hf-q4f32_1-webgpu.wasm -------------------------------------------------------------------------------- /public/model-lib/Llama-2-70b-chat-hf-q4f16_1-webgpu.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/public/model-lib/Llama-2-70b-chat-hf-q4f16_1-webgpu.wasm -------------------------------------------------------------------------------- /public/model-lib/Llama-2-7b-chat-hf-q4f32_1-webgpu.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/public/model-lib/Llama-2-7b-chat-hf-q4f32_1-webgpu.wasm -------------------------------------------------------------------------------- /public/wasm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/public/wasm.png -------------------------------------------------------------------------------- /public/webgpu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/public/webgpu.png -------------------------------------------------------------------------------- /public/webgpu.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/public/webgpu.svg -------------------------------------------------------------------------------- /src/components/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/Footer.tsx -------------------------------------------------------------------------------- /src/components/chat/AssistantMessageContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/chat/AssistantMessageContent.tsx -------------------------------------------------------------------------------- /src/components/chat/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/chat/ChatInput.tsx -------------------------------------------------------------------------------- /src/components/chat/ChatMessage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/chat/ChatMessage.tsx -------------------------------------------------------------------------------- /src/components/chat/ChatPlaceholder.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/chat/ChatPlaceholder.tsx -------------------------------------------------------------------------------- /src/components/chat/UserMessageContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/chat/UserMessageContent.tsx -------------------------------------------------------------------------------- /src/components/ui/accordion.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/accordion.tsx -------------------------------------------------------------------------------- /src/components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/alert.tsx -------------------------------------------------------------------------------- /src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/avatar.tsx -------------------------------------------------------------------------------- /src/components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/badge.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /src/components/ui/collapsible.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/collapsible.tsx -------------------------------------------------------------------------------- /src/components/ui/command.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/command.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/hover-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/hover-card.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/menubar.tsx -------------------------------------------------------------------------------- /src/components/ui/navigation-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/navigation-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/popover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/popover.tsx -------------------------------------------------------------------------------- /src/components/ui/progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/progress.tsx -------------------------------------------------------------------------------- /src/components/ui/radio-group.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/radio-group.tsx -------------------------------------------------------------------------------- /src/components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /src/components/ui/slider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/slider.tsx -------------------------------------------------------------------------------- /src/components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/switch.tsx -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/table.tsx -------------------------------------------------------------------------------- /src/components/ui/tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/tabs.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/toast.tsx -------------------------------------------------------------------------------- /src/components/ui/toaster.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/toaster.tsx -------------------------------------------------------------------------------- /src/components/ui/toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/toggle.tsx -------------------------------------------------------------------------------- /src/components/ui/use-toast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/components/ui/use-toast.ts -------------------------------------------------------------------------------- /src/context/LLMProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/context/LLMProvider.tsx -------------------------------------------------------------------------------- /src/lib/LLM/LLM.constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/lib/LLM/LLM.constants.ts -------------------------------------------------------------------------------- /src/lib/LLM/LLM.types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/lib/LLM/LLM.types.ts -------------------------------------------------------------------------------- /src/lib/LLM/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/lib/LLM/index.ts -------------------------------------------------------------------------------- /src/lib/LLM/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/lib/LLM/worker.ts -------------------------------------------------------------------------------- /src/lib/history.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/lib/history.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/pages/_document.tsx -------------------------------------------------------------------------------- /src/pages/chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/pages/chat.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sionic-ai/webgpu-llm-loader/HEAD/yarn.lock --------------------------------------------------------------------------------