Skip to content

Commit

Permalink
Update documentation, Add titles to sections (#1054)
Browse files Browse the repository at this point in the history
* Add support for Podman

* Adding tooltips to chat params top bar

* Delete podman-compose.dev.yml

* Add :z labels to mounts for podman compatibility

* Making things prettier
  • Loading branch information
morpheus2448 authored Jan 13, 2024
1 parent e19ff37 commit 1a0a70b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ To run Serge in development mode:
git clone https://github.com/serge-chat/serge.git
cd serge/
docker compose -f docker-compose.dev.yml up --build
```
```
4 changes: 2 additions & 2 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ services:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./web:/usr/src/app/web/
- ./api:/usr/src/app/api/
- ./web:/usr/src/app/web/:z
- ./api:/usr/src/app/api/:z
- datadb:/data/db
- weights:/usr/src/app/weights/
- /etc/localtime:/etc/localtime:ro
Expand Down
3 changes: 2 additions & 1 deletion web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"eslint-plugin-vue": "^9.20.0",
"postcss": "^8.4.33",
"prettier": "3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"tailwindcss": "^3.4.1",
Expand All @@ -45,7 +46,6 @@
"highlight.js": "^11.9.0",
"markdown-it": "^14.0.0",
"markdown-it-highlightjs": "^4.0.1",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.11"
}
}
35 changes: 28 additions & 7 deletions web/src/routes/chat/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@
<div class="w-full border-b border-base-content/[.2]">
<div class="h-8 px-2 md:container md:mx-auto md:px-0">
<div class="w-full h-full relative flex items-center justify-center">
<div class="flex flex-row items-center justify-center color-base-300">
<div
class="flex flex-row items-center justify-center color-base-300"
title="Model"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 11.12744 16"
Expand All @@ -297,7 +300,10 @@
{data.chat.params.model_path}
</span>
</div>
<div class="pl-4 hidden sm:flex flex-row items-center justify-center">
<div
class="pl-4 hidden sm:flex flex-row items-center justify-center"
title="Temperature"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 5.31286 16"
Expand All @@ -312,7 +318,10 @@
{data.chat.params.temperature}
</span>
</div>
<div class="pl-4 hidden sm:flex flex-row items-center justify-center">
<div
class="pl-4 hidden sm:flex flex-row items-center justify-center"
title="Context Length/Maximum Generated Tokens"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
Expand All @@ -328,7 +337,10 @@
</span>
</div>
{#if data.chat.params.n_threads > 0}
<div class="pl-4 hidden sm:flex flex-row items-center justify-center">
<div
class="pl-4 hidden sm:flex flex-row items-center justify-center"
title="Threads"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
Expand All @@ -349,7 +361,10 @@
</div>
{/if}
{#if data.chat.params.n_gpu_layers > 0}
<div class="pl-4 hidden sm:flex flex-row items-center justify-center">
<div
class="pl-4 hidden sm:flex flex-row items-center justify-center"
title="GPU Layers"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
Expand All @@ -365,7 +380,10 @@
</span>
</div>
{/if}
<div class="pl-4 hidden sm:flex flex-row items-center justify-center">
<div
class="pl-4 hidden sm:flex flex-row items-center justify-center"
title="Repeat Penalty"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
Expand All @@ -384,7 +402,10 @@
{data.chat.params.repeat_penalty}
</span>
</div>
<div class="pl-4 hidden sm:flex flex-row items-center justify-center">
<div
class="pl-4 hidden sm:flex flex-row items-center justify-center"
title="Top_k-Top_p"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
Expand Down

0 comments on commit 1a0a70b

Please sign in to comment.