Downloads · 30 days
0
BiliSakura/GALILEO-transformers
GALILEO-transformers is a feature extraction model from BiliSakura. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as mit.
Self-contained HuggingFace model checkpoints for Galileo.
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2026
Repo size
373 MB
Likes
0
Public
Click a slice to open those files.
.safetensors373 MB · 100%
From the Hugging Face model README
Self-contained HuggingFace model checkpoints for Galileo.
Each checkpoint subfolder ships remote code for model, processor, and custom pipeline loading with trust_remote_code=True. No external galileo package is required at inference time.
| Folder | Hidden size | Layers | Heads |
|---|---|---|---|
galileo-nano-patch8/ | 128 | 4 | 8 |
galileo-tiny-patch8/ | 192 | 12 | 3 |
galileo-base-patch8/ | 768 | 12 | 12 |
Galileo operates on native patch grids (default patch_size: 8 in preprocessor_config.json). Stack shapes are (H, W, T, C); no fixed 224×224 resize is applied.
from transformers import pipeline
import numpy as np
MODEL = "/path/to/GALILEO-transformers/galileo-nano-patch8"
pipe = pipeline(
task="galileo-feature-extraction",
model=MODEL,
trust_remote_code=True,
)
# 10-band Sentinel-2 stack at native spatial size
s2 = np.random.randn(64, 64, 1, 10).astype(np.float32)
features = pipe(s2=s2, pool=True, return_tensors=True)
Sentinel-1 only:
s1 = np.random.randn(64, 64, 1, 2).astype(np.float32)
features = pipe(s1=s1, pool=True, return_tensors=True)
conda activate rsgen
python test_galileo.py
python test_galileo.py --model galileo-tiny-patch8
python test_galileo.py --model galileo-base-patch8 --no-pool
transformerstorcheinopsEach checkpoint folder is self-contained:
config.json — HF config with auto_map and custom_pipelinesmodel.safetensors — converted encoder weightspreprocessor_config.json — processor settingsmodeling_galileo.py — config + encoder + GalileoEncoderModelprocessing_galileo.py — GalileoProcessorpipeline_galileo.py — GalileoImageFeatureExtractionPipeline