File size: 1,159 Bytes
bfd4088
bf6bc86
 
 
 
bfd4088
bf6bc86
790ef08
bfd4088
 
07229b0
bf6bc86
bfd4088
 
bf6bc86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: SurvivalAI Pro
emoji: πŸ•οΈ
colorFrom: green
colorTo: gray
sdk: gradio
sdk_version: 5.0.0
python_version: "3.10"
app_file: app.py
pinned: false
license: mit
short_description: Off-grid survival AI β€” runs fully on CPU, no internet needed
---

# SurvivalAI Pro

A fine-tuned Phi-3-mini survival assistant running entirely on CPU.
Trained on ~150,000 survival Q/A pairs covering medical, water, food,
shelter, fire, navigation, signaling, foraging, hunting, and tools.

## Setup secrets

This Space loads its model from a private HF model repo. Set the following
secret in **Settings β†’ Variables and secrets**:

- `HF_TOKEN` β€” a read-scope HF token with access to `Znilsson/survivalai-phi3-gguf`

## Hardware

Designed for **CPU Upgrade** tier (16 GB RAM, 8 vCPU). Performance:

- Cold start: ~30–60 s (model download + load)
- Inference: ~6–10 tokens/sec
- Typical response: 30–60 sec for 200–400 tokens

## Architecture

- Base model: `microsoft/phi-3-mini-4k-instruct`
- Fine-tune: QLoRA r=16, Ξ±=32, 3 epochs on ~150 k pairs
- Quantization: Q4_K_M (2.4 GB)
- Runtime: `llama-cpp-python`
- UI: Gradio `ChatInterface` with streaming