You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api_embedding.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,12 +42,12 @@ get_embedding(
42
42
temporal: Optional[TemporalSpec] =None,
43
43
sensor: Optional[SensorSpec] =None,
44
44
fetch: Optional[FetchSpec] =None,
45
-
model_config: Optional[dict[str, Any]] =None,
46
45
modality: Optional[str] =None,
47
46
output: OutputSpec= OutputSpec.pooled(),
48
47
backend: str="auto",
49
48
device: str="auto",
50
49
input_prep: InputPrepSpec |str="resize",
50
+
**model_kwargs,
51
51
) -> Embedding
52
52
```
53
53
@@ -60,7 +60,7 @@ Computes the embedding for a single ROI.
60
60
-`temporal`: `TemporalSpec` or `None`
61
61
-`sensor`: input descriptor for on-the-fly models; for most precomputed models this can be `None`
62
62
-`fetch`: lightweight sampling override for common cases such as `scale_m`, `cloudy_pct`, `composite`, and `fill_value`
63
-
-`model_config`: optional model-specific runtime settings; for the currently documented variant-aware models, use it mainly as `{"variant": ...}`
63
+
-`**model_kwargs`: model-specific settings passed as direct keyword arguments (e.g. `variant="large"`); the accepted keys depend on the model — call `describe_model(model_id)` to see the schema
64
64
-`modality`: optional model-facing modality selector (for example `s1`, `s2`, `s2_l2a`) for models that expose multiple input branches
65
65
-`output`: `OutputSpec.pooled()` or `OutputSpec.grid(...)`
66
66
-`backend`: access backend. `backend="auto"` is the public default and the recommended choice. For provider-backed on-the-fly models it resolves to a compatible provider backend; for precomputed models it lets rs-embed choose the model-compatible access path.
@@ -79,17 +79,18 @@ Modality contract:
79
79
- Only models that explicitly expose a given modality can use it.
80
80
- Unsupported modality selections raise a `ModelError`.
81
81
82
-
`model_config` contract:
82
+
Model-specific settings contract:
83
83
84
-
-`model_config` is optional and model-specific
85
-
- for the currently documented variant-aware models, the public field is unified as `variant`
86
-
- examples currently documented in model pages include:
-`ExportModelRequest`: optional per-model overrides when one export job mixes different model-specific settings such as sensor, modality, or `model_config`
363
+
-`ExportModelRequest`: optional per-model overrides when one export job mixes different model-specific settings such as sensor, modality, or variant; use `ExportModelRequest.configure(...)` to pass model settings as keyword arguments
364
364
365
365
Legacy `out + layout`, `out_dir` / `out_path`, and per-model dict overrides are still accepted for backward compatibility.
If `model_config["variant"]` is omitted, rs-embed uses the `base` DOFA checkpoint by default. Set `model_config={"variant": "large"}` to switch to the larger model.
117
+
If `variant` is omitted, rs-embed uses the `base` DOFA checkpoint by default. Pass `variant="large"` to switch to the larger model.
118
118
119
119
Quick reminder:
120
120
121
-
- DOFA supports `variant` directly through `model_config`
122
-
- current public usage is:
123
-
-`model_config={"variant": "base"}`
124
-
-`model_config={"variant": "large"}`
125
-
- for export jobs, pass the same setting via `ExportModelRequest("dofa", model_config={"variant": ...})`
121
+
- pass `variant` as a keyword argument directly: `get_embedding("dofa", ..., variant="base")`
122
+
- for export jobs, use `ExportModelRequest.configure("dofa", variant="large")`
Copy file name to clipboardExpand all lines: docs/models/prithvi.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Prithvi-EO v2 (`prithvi`)
2
2
3
-
> Vendored Prithvi runtime for Sentinel-2 6-band inputs, with required temporal/location coordinate side inputs derived by rs-embed and `model_config["variant"]` support for TL checkpoints.
3
+
> Vendored Prithvi runtime for Sentinel-2 6-band inputs, with required temporal/location coordinate side inputs derived by rs-embed and `variant` keyword support for TL checkpoints.
0 commit comments