Skip to content

Commit cc1a10b

Browse files
committed
frontend: archive local serving guide, refresh homepage, favicon
1 parent 57e1282 commit cc1a10b

11 files changed

Lines changed: 32 additions & 38 deletions

File tree

README.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# serving-api
22

3-
Frontend and backend API proxy for SwissAI LLM serving.
3+
Frontend and backend API proxy for SwissAI LLM serving. For examples on how to launch models, see [model-launch](https://github.com/swiss-ai/model-launch) repo.
44

55
**Live at:**
66
- Prod: [serving.swissai.svc.cscs.ch](https://serving.swissai.svc.cscs.ch)
77
- Dev: [servingdev.swissai.svc.cscs.ch](https://servingdev.swissai.svc.cscs.ch)
8-
- Local: with `docker compose up`
8+
- Local: with `make run`
99

1010
## Architecture
1111

@@ -26,7 +26,6 @@ Frontend and backend API proxy for SwissAI LLM serving.
2626
2727
┌─────────────────┐
2828
│ OCF │ OpenTela P2P routing → model=apertus-...
29-
│ │
3029
└────────┬────────┘
3130
3231
@@ -40,28 +39,14 @@ Frontend and backend API proxy for SwissAI LLM serving.
4039
```
4140
backend/ # Python API proxy (FastAPI) — auth, caching, routing
4241
frontend/ # web UI (Astro + Svelte)
43-
meta/ # Dockerfiles, k8s manifests, build scripts
44-
tests/ # integration tests
45-
tools/ # metrics & monitoring utilities
42+
meta/ # example Dockerfiles, example k8s manifests, build scripts
4643
```
4744

4845
OCF (Open Compute Framework) now renamed to OpenTela upstream is maintained at [eth-easl/OpenTela](https://github.com/eth-easl/OpenTela). We maintain a fork at [swiss-ai/OpenTela](https://github.com/swiss-ai/opentela) to control deployments to dev+prod.
4946

50-
## Quick Start
51-
52-
### Docker
53-
54-
```bash
55-
docker compose up
56-
```
57-
58-
### Local Development
47+
## Dev Quick Start
5948

6049
```bash
6150
make install # install backend dependencies
6251
make run # start backend on :8080
63-
64-
# frontend
65-
cd frontend
66-
npm install && npm run dev
6752
```

frontend/public/favicon-dark.svg

Lines changed: 3 additions & 0 deletions
Loading

frontend/public/favicon-light.svg

Lines changed: 3 additions & 0 deletions
Loading
3.62 KB
Loading
24.7 KB
Loading
Lines changed: 4 additions & 0 deletions
Loading

frontend/src/components/Head.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ const { title, description, image = "/nano.png" } = Astro.props;
2323
<!-- Global Metadata -->
2424
<meta charset="utf-8" />
2525
<meta name="viewport" content="width=device-width,initial-scale=1" />
26-
<link rel="icon" type="image/svg+xml" href="/favicon-dark.svg" media="(prefers-color-scheme: dark)">
27-
<link rel="icon" type="image/svg+xml" href="/favicon-light.svg" media="(prefers-color-scheme: light)">
28-
<link rel="icon" type="image/x-icon" href="/favicon-light.svg">
26+
<link rel="icon" type="image/svg+xml" href="/favicon-light.svg">
2927
<meta name="generator" content={Astro.generator} />
3028

3129
<!-- Font preloads -->

frontend/src/components/SponsorCard.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ interface Props {
1010
const { name, logo, url, width = 158, height = 48 } = Astro.props;
1111
---
1212

13-
<div class="col-span-2 max-h-12 w-full object-contain lg:col-span-2">
13+
<div class="w-full h-full flex items-center justify-center">
1414
{url ? (
15-
<a href={url} target="_blank" rel="noopener noreferrer">
16-
<img src={logo} alt={name} width={width} height={height} class="w-full h-full object-contain" />
15+
<a href={url} target="_blank" rel="noopener noreferrer" class="w-full h-full flex items-center justify-center">
16+
<img src={logo} alt={name} width={width} height={height} class="max-h-16 max-w-full object-contain" />
1717
</a>
1818
) : (
19-
<img src={logo} alt={name} width={width} height={height} class="w-full h-full object-contain" />
19+
<img src={logo} alt={name} width={width} height={height} class="max-h-16 max-w-full object-contain" />
2020
)}
2121
</div>

frontend/src/content/guides/01-getting-started/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Getting Started with SP and Local Serving"
3-
description: "Run models locally with Scratchpad and Ollama"
2+
title: "[ARCHIVED] Getting Started with SP and Local Serving"
3+
description: "[ARCHIVED] Run models locally with Scratchpad and Ollama"
44
date: "Mar 18 2024"
55
---
66

7-
# Getting Started with SP and Local Serving
7+
# [ARCHIVED] Getting Started with SP and Local Serving
88

99
## Run your Model Locally
1010

frontend/src/content/guides/01-getting-started/model-launch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Launch Models with model-launch"
2+
title: "Launch Models with model-launch 🚀"
33
description: "Framework-agnostic SLURM job submission for distributed inference"
44
date: "December 22 2025"
55
---

0 commit comments

Comments
 (0)