Tonic commited on
Commit
3ec756b
·
verified ·
1 Parent(s): 4c3374d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +124 -2
README.md CHANGED
@@ -1,16 +1,138 @@
1
  ---
 
2
  library_name: transformers
 
3
  tags:
4
- - vision-language
5
  - satellite
6
  - geospatial
7
- - liquid-ai
8
  - lfm
 
 
 
9
  base_model: LiquidAI/LFM2.5-VL-450M
10
  ---
11
 
12
  # NuTonic/lspace
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  Fine-tuned from `LiquidAI/LFM2.5-VL-450M` using the NU:TONIC satellite VLM SFT mix
15
  (`train/run_sat_vl_sft_e2e.py`): single LEAP run on main + task + Firewatch Parquet mix.
16
 
 
1
  ---
2
+ license: apache-2.0
3
  library_name: transformers
4
+ pipeline_tag: image-text-to-text
5
  tags:
 
6
  - satellite
7
  - geospatial
8
+ - vision-language
9
  - lfm
10
+ - liquid-ai
11
+ - earth-observation
12
+ - multi-image
13
  base_model: LiquidAI/LFM2.5-VL-450M
14
  ---
15
 
16
  # NuTonic/lspace
17
 
18
+ **NU:TONIC satellite VLM** — supervised fine-tuned (SFT) checkpoint derived from **[LiquidAI/LFM2.5-VL-450M](https://huggingface.co/LiquidAI/LFM2.5-VL-450M)** on a **single LEAP `vlm_sft` run** over one mixed Parquet corpus (main + repeated task hubs + repeated Firewatch).
19
+
20
+ - **Model page:** https://huggingface.co/NuTonic/lspace
21
+ - **Training recipe https://github.com/josephrp/nutonic :** NU:TONIC — `train/run_sat_vl_sft_e2e.py` orchestrates `train/materialize_vlm_sft_mix.py` → LEAP `vlm_sft` via `train/train_lfm_vl_sft.py` and `refs/leap-finetune-main`.
22
+
23
+ ## Intended use
24
+
25
+ Use this model when you want a **small (~0.45B) image–text model** that has seen **many supervised examples** of:
26
+
27
+ - **Satellite RGB chips** (Sentinel-2–style optical previews / tiled chips used in NU:TONIC datasets),
28
+ - Optional **overhead / map-style context stills** (`mapbox_stills/` in the training corpora),
29
+ - Optional **analysis-condition visuals** (profile-conditioned render PNGs present in some training rows),
30
+ - **Multi-image user turns** (temporal pairs and terramind predictions),
31
+ - Assistant outputs that mix **narrative geospatial reasoning** with **structured artifacts seen in training**, including **normalized bounding boxes** and **JSON-like detection lists** when prompted.
32
+
33
+ Typical applications:
34
+
35
+ - **Satellite image captioning** and coarse **land-cover / structure** description (non-exhaustive).
36
+ - **Scenario-aligned narratives** consistent with NU:TONIC “PRO mini-app” training slices:
37
+ - wildfire / burn scar style reasoning (**Firewatch-SFT** slice),
38
+ - coastal / bright-target / maritime-style reasoning (**OceanScout-SFT** slice),
39
+ - land-cover transition reasoning (**LandShift-SFT** slice),
40
+ - inundation / water-expansion reasoning (**FloodPulse-SFT** slice),
41
+ - **structured analytical brief** writing (**BriefComposer-SFT** slice).
42
+
43
+ This checkpoint is **not** a full analytic pipeline: it does **not** fetch imagery from STAC, run Earth Engine, or guarantee calibration to real-world hazard operations without human review.
44
+
45
+ ## Training data (what it actually saw)
46
+
47
+ Training is **main-heavy** by construction: the mix streams almost all rows from the aggregate Hub dataset, then **upsamples** smaller hubs so rare behaviors still receive gradient mass after global shuffling.
48
+
49
+ ### Main corpus (dominant mass)
50
+
51
+ - **`NuTonic/sat-vl-sft-training-ready-v1`**
52
+ Aggregate **training-ready Parquet** packaging NU:TONIC satellite VLM supervision derived from multiple builders, including (non-exhaustively) metadata-first procedural rows and bounding-box-heavy corpora. Rows commonly include **`messages`** with multi-part `user.content` mixing **`image`** + **`text`**, and assistant targets describing imagery, evidence, and/or structured outputs consistent with NU:TONIC JSONL/VLM conventions.
53
+
54
+ ### Upsampled task hubs (default repeat = 8× each)
55
+
56
+ These teach **multi-image / vertical-specific** behaviors described in internal NU:TONIC dataset planning (PRO mini-apps alignment):
57
+
58
+ - **`NuTonic/brief-composer-sft-v1`** — mixed multi-image prompts toward **structured analytical brief** writing.
59
+ - **`NuTonic/oceanscout-sft-v1`** — maritime / water-context bbox + narrative patterns.
60
+ - **`NuTonic/floodpulse-sft-v1`** — temporal pair reasoning around inundation extent patterns.
61
+ - **`NuTonic/landshift-sft-v1`** — temporal pair reasoning around land-cover transition patterns.
62
+
63
+ ### Upsampled small hub (default repeat = 80×)
64
+
65
+ - **`NuTonic/firewatch-sft-v1`** — wildfire / burn scar oriented supervision (small row count; repeated for mass).
66
+
67
+ ### Important implication
68
+
69
+ Because SFT matches **teacher strings**, the model may:
70
+
71
+ - Echo **dataset-specific prompt framing** (profile cues, task wording),
72
+ - Prefer **bbox conventions seen in training** (typically **0–1 normalized** box coordinates embedded in assistant text / JSON-like structures; see NU:TONIC notes aligned with LEAP `vlm_sft` conventions),
73
+ - Reflect **English** supervision dominate if that is true in the upstream datasets.
74
+
75
+ ## Non-goals / limitations
76
+
77
+ - **No warranty of geophysical correctness**: outputs are learned correlations from curated supervision; validate operationally for your AOI, sensor, season, and labeling definition.
78
+ - **Distribution shift**: performance drops are expected off-domain (different sensors, resolutions, projections, stylizations, heavy cloud cover, night imagery, SAR, etc.).
79
+ - **Privacy / safety**: training mixes may include overhead context stills in some rows; do not use outputs as sole evidence for high-risk decisions (disasters, enforcement, insurance) without independent verification.
80
+ - **Grounding reliability**: bbox/JSON outputs should be treated as **model proposals**, not GIS truth.
81
+
82
+ ## Inference quickstart (Transformers)
83
+
84
+ This family loads like other HF multimodal chat models (requires **`trust_remote_code=True`** for Liquid remote modules).
85
+
86
+ Minimal pattern (single image) — (`AutoModelForImageTextToText` + `AutoProcessor`):
87
+
88
+ ```python
89
+ import torch
90
+ from PIL import Image
91
+ from transformers import AutoModelForImageTextToText, AutoProcessor
92
+
93
+ model_id = "NuTonic/lspace"
94
+
95
+ processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
96
+ model = AutoModelForImageTextToText.from_pretrained(
97
+ model_id,
98
+ torch_dtype=torch.bfloat16,
99
+ device_map="auto",
100
+ trust_remote_code=True,
101
+ )
102
+
103
+ pil = Image.open("chip.png").convert("RGB")
104
+ user_text = (
105
+ "The input is satellite imagery (RGB). Describe surface cover and structure where visible, "
106
+ "and note uncertainty."
107
+ )
108
+
109
+ conversation = [
110
+ {
111
+ "role": "user",
112
+ "content": [
113
+ {"type": "image", "image": pil},
114
+ {"type": "text", "text": user_text},
115
+ ],
116
+ }
117
+ ]
118
+
119
+ inputs = processor.apply_chat_template(
120
+ conversation,
121
+ add_generation_prompt=True,
122
+ return_tensors="pt",
123
+ return_dict=True,
124
+ tokenize=True,
125
+ ).to(model.device)
126
+
127
+ with torch.inference_mode():
128
+ out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
129
+
130
+ # Trim prompt tokens (exact slicing depends on model wrapper); simplest decode:
131
+ text = processor.batch_decode(out, skip_special_tokens=True)[0]
132
+ print(text)
133
+
134
+ # NuTonic/lspace
135
+
136
  Fine-tuned from `LiquidAI/LFM2.5-VL-450M` using the NU:TONIC satellite VLM SFT mix
137
  (`train/run_sat_vl_sft_e2e.py`): single LEAP run on main + task + Firewatch Parquet mix.
138