AbstractPhil commited on
Commit
fdbbaff
Β·
verified Β·
1 Parent(s): 39b176f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -0
README.md CHANGED
@@ -8,6 +8,43 @@ tags:
8
  - geolip
9
  ---
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  # GeoLIP Diffusion Prototype
12
 
13
  **Flow matching diffusion with constellation relay as geometric regulator.**
 
8
  - geolip
9
  ---
10
 
11
+ # Automodel Now Available
12
+ ```
13
+ # ── Cell 1: Upload the fixed modeling file ──
14
+ from huggingface_hub import upload_file
15
+
16
+ upload_file(
17
+ path_or_fileobj="modeling_flow_match.py",
18
+ path_in_repo="modeling_flow_match.py",
19
+ repo_id="AbstractPhil/geolip-diffusion-proto",
20
+ commit_message="Fix HF PreTrainedModel attributes β€” _tied_weights_keys, post_init",
21
+ )
22
+ print("βœ“ Updated")
23
+
24
+
25
+ # ── Cell 2: Test AutoModel loading + generation ──
26
+ from transformers import AutoModel
27
+ from torchvision.utils import save_image, make_grid
28
+
29
+ model = AutoModel.from_pretrained(
30
+ "AbstractPhil/geolip-diffusion-proto", trust_remote_code=True
31
+ ).cuda()
32
+
33
+ print(f"Params: {sum(p.numel() for p in model.parameters()):,}")
34
+ print(f"Relay diagnostics: {model.get_relay_diagnostics()}")
35
+
36
+ # Generate per-class samples
37
+ class_names = ['plane','auto','bird','cat','deer','dog','frog','horse','ship','truck']
38
+ all_imgs = []
39
+ for c in range(10):
40
+ imgs = model.sample(n_samples=4, class_label=c)
41
+ all_imgs.append(imgs)
42
+
43
+ grid = make_grid(torch.cat(all_imgs), nrow=10)
44
+ save_image(grid, "automodel_test.png")
45
+ print("βœ“ Saved automodel_test.png β€” 4 per class, 10 classes")
46
+ ```
47
+
48
  # GeoLIP Diffusion Prototype
49
 
50
  **Flow matching diffusion with constellation relay as geometric regulator.**