koodilabran v0.1
This commit is contained in:
@@ -20,7 +20,7 @@ Kipinä Agentic Network on hajautettu tekoälylaskentaverkko, jossa selaimet ja
|
||||
## Kaksi tapaa osallistua verkkoon
|
||||
|
||||
### 1. Selainsolmu (Wasm + WebGPU)
|
||||
- Avaa `http://localhost:3000` selaimessa ja klikkaa "Liity laskentaverkkoon"
|
||||
- Avaa `http://localhost:3000` | `https://kipina.studio` selaimessa ja klikkaa "Liity laskentaverkkoon"
|
||||
- Selain tunnistaa automaattisesti WebGPU-tuen — jos ei löydy, käytetään CPU-fallbackia
|
||||
- Tokenizer ladataan HuggingFacesta ensimmäisellä kerralla ja tallennetaan IndexedDB:hen
|
||||
- GPU-kuormitusta voi säätää sliderilla (0–75 %)
|
||||
@@ -42,7 +42,7 @@ docker compose up
|
||||
docker compose --profile native up
|
||||
```
|
||||
|
||||
Dashboard avautuu osoitteessa http://localhost:3000
|
||||
Dashboard avautuu osoitteessa http://localhost:3000 | https://kipina.studio
|
||||
|
||||
### Ilman Dockeria
|
||||
|
||||
@@ -53,13 +53,14 @@ cd node && wasm-pack build --target web --out-dir ../static/pkg && cd ..
|
||||
# 2. Käynnistä hub (terminaali 1)
|
||||
cargo run -p hub
|
||||
|
||||
# 3. Avaa selain: http://localhost:3000
|
||||
# 3. Avaa selain: http://localhost:3000 | https://kipina.studio
|
||||
|
||||
# 4. Valinnainen: natiivi-node LLM-inferenssillä (terminaali 2)
|
||||
# Lataa Qwen2.5-0.5B automaattisesti HuggingFacesta (~990 MB, cachetetaan)
|
||||
# Release-moodissa ~11 tok/s CPU:lla (32 ydintä)
|
||||
CARGO_TARGET_DIR=target-native HUB_URL=ws://localhost:3000/ws ALLOCATED_GB=4 cargo run --release -p native-node
|
||||
|
||||
|
||||
# Tai yhdistä tuotantopalvelimeen:
|
||||
CARGO_TARGET_DIR=target-native HUB_URL=wss://kipina.studio/ws ALLOCATED_GB=4 cargo run --release -p native-node
|
||||
```
|
||||
@@ -77,15 +78,26 @@ sudo apt install nvidia-cuda-toolkit
|
||||
|
||||
# Aja — malli käyttää automaattisesti GPU:ta
|
||||
CARGO_TARGET_DIR=target-native HUB_URL=ws://localhost:3000/ws cargo run --release -p native-node
|
||||
|
||||
CARGO_TARGET_DIR=target-native HUB_URL=ws://kipina.studio/ws cargo run --release -p native-node
|
||||
```
|
||||
|
||||
## WebGPU-asetukset selaimessa
|
||||
|
||||
WebGPU ei ole oletuksena päällä kaikissa selaimissa. Jos "Liity laskentaverkkoon" -nappi käynnistää CPU-fallbackin vaikka koneessa on näytönohjain:
|
||||
|
||||
**Chrome / Brave (Linux + Wayland):**
|
||||
**Chrome / Brave (Linux APT/DEB):**
|
||||
```bash
|
||||
google-chrome --enable-unsafe-webgpu --enable-features=Vulkan --ignore-gpu-blocklist --use-angle=vulkan --ozone-platform=x11
|
||||
google-chrome --enable-unsafe-webgpu --enable-features=Vulkan --ignore-gpu-blocklist --use-angle=vulkan --ozone-platform=x11 https://kipina.studio
|
||||
|
||||
brave-browser --enable-unsafe-webgpu --enable-features=Vulkan --ignore-gpu-blocklist --use-angle=vulkan --ozone-platform=x11 https://kipina.studio
|
||||
```
|
||||
|
||||
**Chrome / Brave (Linux Flatpak):**
|
||||
```bash
|
||||
flatpak run com.google.Chrome --enable-unsafe-webgpu --enable-features=Vulkan --ignore-gpu-blocklist --use-angle=vulkan --ozone-platform=x11 https://kipina.studio
|
||||
|
||||
flatpak run com.brave.Browser --enable-unsafe-webgpu --enable-features=Vulkan --ignore-gpu-blocklist --use-angle=vulkan --ozone-platform=x11 https://kipina.studio
|
||||
```
|
||||
|
||||
**Chrome / Brave (Windows / Mac):**
|
||||
|
||||
Reference in New Issue
Block a user