Instructions to use AlterraLaniakea/jepa-guided-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use AlterraLaniakea/jepa-guided-diffusion with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload config.yaml with huggingface_hub
Browse files- config.yaml +113 -0
config.yaml
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: vl-jepa-pretrain-video
|
| 2 |
+
run_root: runs
|
| 3 |
+
model:
|
| 4 |
+
stride: 3
|
| 5 |
+
num_frames: 16
|
| 6 |
+
vision_config:
|
| 7 |
+
name: vjepa2_1_vit_large_384
|
| 8 |
+
load_from: facebookresearch/vjepa2
|
| 9 |
+
source: github
|
| 10 |
+
video_mode: true
|
| 11 |
+
use_sdpa: true
|
| 12 |
+
use_rope: true
|
| 13 |
+
use_activation_checkpointing: true
|
| 14 |
+
dtype: bfloat16
|
| 15 |
+
patch_size: 16
|
| 16 |
+
tubelet_size: 2
|
| 17 |
+
crop_size: 384
|
| 18 |
+
unload: true
|
| 19 |
+
freeze: true
|
| 20 |
+
predictor:
|
| 21 |
+
language:
|
| 22 |
+
model: meta-llama/Llama-3.2-1B
|
| 23 |
+
num_layers: 4
|
| 24 |
+
max_query_length: 512
|
| 25 |
+
unload: false
|
| 26 |
+
freeze: false
|
| 27 |
+
compressor:
|
| 28 |
+
type: qformer
|
| 29 |
+
num_query_tokens: 512
|
| 30 |
+
num_layers: 4
|
| 31 |
+
num_heads: 8
|
| 32 |
+
mlp_ratio: 4.0
|
| 33 |
+
dropout: 0.2
|
| 34 |
+
cross_attention_frequency: 1
|
| 35 |
+
lr_multiplier: 2.0
|
| 36 |
+
target:
|
| 37 |
+
cosmos_dir: null
|
| 38 |
+
reason1_ckpt: nvidia/Cosmos-Reason1-7B
|
| 39 |
+
crossattn_proj_path: data/wts_cache/crossattn_proj.pt
|
| 40 |
+
embedding_concat_strategy: full_concat
|
| 41 |
+
n_layers_per_group: 5
|
| 42 |
+
lr_multiplier: 0.05
|
| 43 |
+
unload: true
|
| 44 |
+
freeze: true
|
| 45 |
+
decoder:
|
| 46 |
+
model: null
|
| 47 |
+
unload: true
|
| 48 |
+
freeze: false
|
| 49 |
+
runtime:
|
| 50 |
+
trust_remote_code: true
|
| 51 |
+
hf_token: false
|
| 52 |
+
torch_dtype: auto
|
| 53 |
+
tiny: false
|
| 54 |
+
embedding_dim: 1024
|
| 55 |
+
temperature: 0.1
|
| 56 |
+
data:
|
| 57 |
+
train_file: data/vl_jepa/train.jsonl
|
| 58 |
+
eval_file: data/vl_jepa/val.jsonl
|
| 59 |
+
train_fraction: 1.0
|
| 60 |
+
query_override: null
|
| 61 |
+
target_type: short
|
| 62 |
+
max_target_length: 512
|
| 63 |
+
training:
|
| 64 |
+
runtime:
|
| 65 |
+
seed: 42
|
| 66 |
+
deterministic: true
|
| 67 |
+
num_workers: 24
|
| 68 |
+
checkpoint:
|
| 69 |
+
init_checkpoint: null
|
| 70 |
+
init_checkpoint_run_name: null
|
| 71 |
+
require_init_checkpoint: false
|
| 72 |
+
epochs: 10
|
| 73 |
+
patience: 5
|
| 74 |
+
min_delta: 0.0
|
| 75 |
+
early_stop: true
|
| 76 |
+
schedule:
|
| 77 |
+
num_epochs: 50
|
| 78 |
+
batching:
|
| 79 |
+
batch_size: 60
|
| 80 |
+
contrastive_accum_batches: 1
|
| 81 |
+
grad_accum: 1
|
| 82 |
+
optimization:
|
| 83 |
+
type: adamw
|
| 84 |
+
learning_rate: 4.0e-05
|
| 85 |
+
weight_decay: 0.04
|
| 86 |
+
max_grad_norm: 10.0
|
| 87 |
+
scheduler:
|
| 88 |
+
type: cosine
|
| 89 |
+
min_learning_rate: 1.0e-06
|
| 90 |
+
warmup_ratio: 0.05
|
| 91 |
+
loss:
|
| 92 |
+
label_smoothing: 0.05
|
| 93 |
+
enabled: set_match:mse=1.0
|
| 94 |
+
center: false
|
| 95 |
+
target_mean_path: data/wts_cache/target_mean.pt
|
| 96 |
+
ema:
|
| 97 |
+
enabled: false
|
| 98 |
+
decay:
|
| 99 |
+
- 0.99
|
| 100 |
+
- 0.9999
|
| 101 |
+
logging:
|
| 102 |
+
tensorboard: true
|
| 103 |
+
log_steps: 10
|
| 104 |
+
progress_type: tqdm
|
| 105 |
+
save_csv: true
|
| 106 |
+
save_batch_csv: true
|
| 107 |
+
save_epoch_csv: true
|
| 108 |
+
log_batch_scalars: true
|
| 109 |
+
evaluation:
|
| 110 |
+
epochs: 1
|
| 111 |
+
max_batches: null
|
| 112 |
+
eval:
|
| 113 |
+
pad_zero_threshold: 5.0 # seq-infer zeroes tokens with L2 norm below this (pad/null tail)
|