Instructions to use ryoji-info/Gemma-4-12B-PsiLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ryoji-info/Gemma-4-12B-PsiLM with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Gemma-4-12B-PsiLM ryoji-info/Gemma-4-12B-PsiLM
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Multi-mode bridges + config
Browse files
bridges/gemma-4-12b-4bit-mlx-multimode/bridges.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:300829f886f14755f567e142a1994735b73e252daca23657fad9c6403e6a2ca5
|
| 3 |
+
size 102071633
|
bridges/gemma-4-12b-4bit-mlx-multimode/config.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backbone": "mlx-community/gemma-4-12B-it-4bit",
|
| 3 |
+
"hf_tokenizer": "mlx-community/gemma-4-12B-it-4bit",
|
| 4 |
+
"task": "multimode",
|
| 5 |
+
"loader": "psilm.mlx.gemma_loader.load_backbone_any (gemma4_unified -> text tower)",
|
| 6 |
+
"physics": {
|
| 7 |
+
"file": "physics/fno_burgers_multimode.safetensors",
|
| 8 |
+
"source": "results/stage2b/fno.pt (1D Burgers FNO, multi-mode ICs)"
|
| 9 |
+
},
|
| 10 |
+
"bridges_class": "psilm.mlx.multimode.make_bridges_multi (PsiBridgesMLX, n_params=6)",
|
| 11 |
+
"construct": {
|
| 12 |
+
"d_model": 3840,
|
| 13 |
+
"channel": "value",
|
| 14 |
+
"inj_cap": 0.2,
|
| 15 |
+
"gate_bias": 0.0,
|
| 16 |
+
"readout_norm": "dim"
|
| 17 |
+
},
|
| 18 |
+
"coupling": {
|
| 19 |
+
"l_fwd": 20,
|
| 20 |
+
"l_rev": 30,
|
| 21 |
+
"n_layers": 48
|
| 22 |
+
},
|
| 23 |
+
"pointer": "deterministic span pooling with calibrated per-dimension standardization (fwd.dim_mu/dim_sigma included; fwd.x0_query/x0_key omitted: unused)",
|
| 24 |
+
"training": {
|
| 25 |
+
"steps_total": 7500,
|
| 26 |
+
"phase_A_readout_only": 2000,
|
| 27 |
+
"coupled_steps": 4000,
|
| 28 |
+
"no_harm_steps": 1500,
|
| 29 |
+
"no_harm_resumed_from": 6000,
|
| 30 |
+
"batch": 4,
|
| 31 |
+
"lr": "3e-4 (warm-up, coupled), 1e-4 (no-harm phase)",
|
| 32 |
+
"no_harm_arm": "non-physics prompts (data/noharm_gemma_all.json) paired with the backbone's own greedy continuation; gate-only updates + mean-gate penalty"
|
| 33 |
+
},
|
| 34 |
+
"held_out_n48_per_chunk": {
|
| 35 |
+
"coupled": [
|
| 36 |
+
0.729,
|
| 37 |
+
0.896,
|
| 38 |
+
1.0,
|
| 39 |
+
0.938,
|
| 40 |
+
0.958,
|
| 41 |
+
1.0,
|
| 42 |
+
1.0,
|
| 43 |
+
1.0
|
| 44 |
+
],
|
| 45 |
+
"no_harm_phase": [
|
| 46 |
+
1.0,
|
| 47 |
+
1.0,
|
| 48 |
+
1.0
|
| 49 |
+
]
|
| 50 |
+
},
|
| 51 |
+
"license": "apache-2.0"
|
| 52 |
+
}
|