File size: 1,193 Bytes
1f2477d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | ---
title: Ollama Granite4 350m
emoji: 🪨
colorFrom: gray
colorTo: blue
sdk: docker
pinned: false
app_port: 7860
---
# Ollama — IBM Granite 4.0 350m
Serwer Ollama z modelem **IBM Granite 4.0 (350m)** udostępniający REST API kompatybilne z Ollama.
## Endpoints
| Method | Path | Opis |
|--------|------|------|
| `GET` | `/api/version` | Wersja Ollama |
| `GET` | `/api/tags` | Lista dostępnych modeli |
| `POST` | `/api/generate` | Generowanie tekstu (streaming) |
| `POST` | `/api/chat` | Chat completions |
| `POST` | `/api/embeddings` | Embeddingi |
## Przykład użycia
```bash
# Generate
curl https://<your-space-url>/api/generate \
-d '{"model":"granite4:350m","prompt":"Hello!","stream":false}'
# Chat
curl https://<your-space-url>/api/chat \
-d '{
"model": "granite4:350m",
"messages": [{"role":"user","content":"Explain quantum computing briefly."}],
"stream": false
}'
```
## Model
- **Model:** IBM Granite 4.0 — 350M params
- **Architektura:** Transformer (nie hybrydowy Mamba-2)
- **Tag Ollama:** `granite4:350m`
- **Kwantyzacja:** Q4_K_M (domyślna)
- **Rozmiar:** ~250 MB
- **Zastosowanie:** instrukcje, Q&A, RAG, klasyfikacja, code
|