|
Download README.md from PINNeAPPle-Labs/lpm-fin: direct link, hf CLI and curl.
- Browser
- Download file 9.54 kB
-
https://huggingface.co/PINNeAPPle-Labs/lpm-fin/resolve/main/README.md
- Command line
-
hf download hf://PINNeAPPle-Labs/lpm-fin/README.md
-
curl -L -o README.md https://huggingface.co/PINNeAPPle-Labs/lpm-fin/resolve/main/README.md
9.54 kB
| license: apache-2.0 | |
| library_name: pinneapple | |
| pipeline_tag: tabular-regression | |
| inference: false | |
| tags: | |
| - pinneapple | |
| - physics | |
| - surrogate-model | |
| - pytorch | |
| - safetensors | |
| - experimental | |
| - lpm | |
| - thermal | |
| datasets: | |
| - PINNeAPPle-Labs/lpm-fin-heldout | |
| # lpm_fin | |
| Extruded-fin heat sink: fin temperature over the design space. A Large Physics Model over the design space: the geometry and the operating point in, the field on the body's surface out (t_fin_c on 91 to 91 points per design). Domain: thermal / electronics cooling. | |
| `lpm_fin` v1.0.0 (revision `v1.0.0`) · part of the [PINNeAPPle](https://github.com/PINNeAPPle-Labs/PINNeAPPle) zoo · training data [PINNeAPPle-Labs/lpm-fin-heldout](https://huggingface.co/datasets/PINNeAPPle-Labs/lpm-fin-heldout) | |
| **Try it without installing anything:** [PINNeAPPle zoo demo](https://huggingface.co/spaces/PINNeAPPle-Labs/zoo-demo) (pick `lpm_fin`: its predictions along each input with their band and where its physics checks warn or fail, and your own inputs evaluated in the browser). | |
| **Task:** Extruded-fin heat sink: fin temperature over the design space | |
| ## Inputs | |
| | Name | Unit | Description | | |
| |---|---|---| | |
| | `n_fins` | - | design parameter of the family (bounds in validity_range) | | |
| | `fin_thickness_m` | - | design parameter of the family (bounds in validity_range) | | |
| | `fin_pitch_m` | - | design parameter of the family (bounds in validity_range) | | |
| | `fin_height_m` | - | design parameter of the family (bounds in validity_range) | | |
| | `base_depth_m` | - | design parameter of the family (bounds in validity_range) | | |
| | `base_thickness_m` | - | design parameter of the family (bounds in validity_range) | | |
| | `power_w` | - | design parameter of the family (bounds in validity_range) | | |
| | `t_ambient_c` | - | design parameter of the family (bounds in validity_range) | | |
| | `air_velocity_m_s` | - | design parameter of the family (bounds in validity_range) | | |
| ## Outputs | |
| | Name | Unit | Description | | |
| |---|---|---| | |
| | `t_fin_c` | degC | the family's reference field on the body's surface points | | |
| ## Validity range | |
| - `n_fins`: [6.0, 18.0] | |
| - `fin_thickness_m`: [0.001, 0.0025] | |
| - `fin_pitch_m`: [0.005, 0.01] | |
| - `fin_height_m`: [0.01, 0.045] | |
| - `base_depth_m`: [0.03, 0.08] | |
| - `base_thickness_m`: [0.003, 0.01] | |
| - `power_w`: [5.0, 80.0] | |
| - `t_ambient_c`: [15.0, 45.0] | |
| - `air_velocity_m_s`: [0.0, 4.0] | |
| - `regime`: inside the family's declared geometry and operating bounds | |
| ## Known limitations | |
| - gate accuracy: failed -- relative L2 against the reference on the held-out points | |
| - the reference itself: analytic — 1-D fin theory on the fin-array resistance network, with the assumptions it lists | |
| - agreement with a solver or with measured data for any geometry of this family | |
| - whether the ensemble spread is calibrated: it is the spread between bootstrap heads | |
| - behaviour outside the declared geometry and operating bounds of the family | |
| - the gate accuracy: failed | |
| - the gate conservation: not run | |
| - the gate boundary: not run | |
| - the gate residual: not run | |
| - the metrics shipped with this release are recomputed on a 150-design sample of the held-out set; the campaign's full-set number is under campaign/held_out_relative_l2 (300 designs) | |
| ## Architecture | |
| - `LargePhysicsModel` — `{"dim": 2, "n_fields": 1, "n_params": 3, "radii": [0.1, 0.4, 1.2], "n_freq": 6, "width": 128, "code": 32, "n_heads": 4, "backbone": "attention", "attn_heads": 4, "attn_layers": 2}` | |
| ## Physics | |
| - q=\frac{T_{\mathrm{fin}}-T_\infty}{R_{\mathrm{tot}}},\quad R=\frac{1}{hA\eta},\quad \eta=\frac{\tanh mL}{mL},\quad m=\sqrt{\frac{hP}{kA}} | |
| ## Validation | |
| Reference: 1-D fin theory on the fin-array resistance network -- Incropera & DeWitt, Fundamentals of Heat and Mass Transfer, ch. 3 (fins); Elenbaas (1942) and Teertstra et al. (1999) for the convective coefficient; pinneapple_physics.closed_form.plate_fin_heatsink and .fin_array_conduction. Assumptions: steady state, 1-D conduction along each fin with an adiabatic-tip corrected length; radiation neglected (the module says the part runs cooler than predicted in still air); forced flow assumed ducted: all air passes between the fins; air properties from the module's own correlations, one iteration to convergence | |
| | Metric | Value | | |
| |---|---| | |
| | heldout/relative_l2 | 0.22227473745785212 | | |
| | heldout/relative_l2_p90 | 0.2779828714742776 | | |
| | heldout/absolute_error_p90 | 63.78204822540282 | | |
| | heldout/constant_field_baseline_relative_l2 | 0.5590628489080193 | | |
| | heldout/n_designs | 150.0 | | |
| | campaign/held_out_relative_l2 | 0.20368574555208416 | | |
| | campaign/held_out_relative_l2_p90 | 0.26063551332642326 | | |
| | campaign/constant_field_baseline_relative_l2 | 0.584755510924078 | | |
| | campaign/n_designs | 300.0 | | |
| ## Cost | |
| - trainable_parameters: 341220 | |
| - train_seconds: 971.2 | |
| - device: mps | |
| ## Trust | |
| Decision: **REJECT** · score 0.33 · coverage 100% | |
| - held-out heldout/relative_l2 within the zoo acceptance limit: falhou (crítica) | |
| - worst of the 150 stored held-out designs: 0.7029 against the family's tolerance 0.05: falhou | |
| - score 0.33 abaixo do mínimo de 0.80 | |
| Published despite REJECT: experimental tier: shipped as a reproducible base (weights, card, held-out sample, fine-tune hook) with the family's own verdict REJECT and the measured held-out error on the card; not a verified model and not to be used as one without independent review | |
| ## Training data | |
| - family: pp_fin | |
| - dataset: lpm_fin_heldout | |
| - campaign: /Users/yanbarros/lpm-campaign | |
| - split: {'policy': 'random by geometry, fixed by the seed: a held-out body is never a training body', 'seed': 0, 'holdout_fraction': 0.25, 'n_train_designs': 900, 'n_holdout_designs': 300, 'among_refined': [], 'n_train_geometries': 300, 'n_holdout_geometries': 100, 'locked_fraction': 0.0, 'n_locked_designs': 0, 'locked_policy': 'no locked split: the whole held-out is a validation set, and is read by the refinement round'} | |
| - full_dataset: {'schema': 'pinneapple.lpm.dataset/1', 'seed': 0, 'n_designs': 1200, 'n_geometries': 400, 'conditions_per_geometry': 3} | |
| - sample: {'n_designs': 150, 'n_points': 13754, 'n_parameters': 9, 'n_neighbourhood_features': 15, 'dtypes': {'params': 'float64[9]', 'conditioning': 'float32[3]', 'points': 'float32[2]', 'normals': 'float32[2]', 'target': 'float32[1]', 'local': 'float32[15]', 'offsets': 'int64'}} | |
| License: apache-2.0 | |
| ## Citation | |
| ``` | |
| Incropera & DeWitt, Fundamentals of Heat and Mass Transfer, ch. 3 (fins); Elenbaas (1942) and Teertstra et al. (1999) for the convective coefficient; pinneapple_physics.closed_form.plate_fin_heatsink and .fin_array_conduction | |
| ``` | |
| ## How to use | |
| ```bash | |
| pip install "pinneapple @ git+https://github.com/PINNeAPPle-Labs/PINNeAPPle" | |
| ``` | |
| ```python | |
| import pinneapple as pp | |
| model = pp.zoo.load("lpm_fin") # weights checked against their SHA-256 | |
| inputs = {"n_fins": 14.0, "fin_thickness_m": 0.00140468, "fin_pitch_m": 0.00520487, "fin_height_m": 0.0105785, "base_depth_m": 0.0706635, "base_thickness_m": 0.00938929, "power_w": 59.7122, "t_ambient_c": 31.3087, "air_velocity_m_s": 3.79223} | |
| out = model.predict(inputs) # warns for inputs outside the validity range | |
| print({k: round(float(v[0]), 6) for k, v in out.items()}) | |
| # {'t_fin_c': 99.115305} | |
| print(bool(model.in_range(inputs)[0])) # inside the validity range | |
| # True | |
| print(pp.zoo.validate(model).decisao) # card metrics reproduced + physics checks | |
| # REJECT | |
| ``` | |
| The inputs are the first held-out test case of the training dataset; its reference value is t_fin_c = 88.8661. `pp.zoo.evaluate("lpm_fin")` recomputes every metric of the card on the stored reference. | |
| ## Hosted inference | |
| No Hugging Face inference provider can run this model, so the Hub widget is off (`inference: false`). It is a small PyTorch network, but its prediction is more than a forward pass: the inputs are encoded and normalised, the outputs denormalised (and, for ensembles, averaged with their spread), and every query is checked against the validity range and the model's physics checks. The `pinneapple` library does all of that (below); the ONNX graph carries the pre- and post-processing but not the checks; the [zoo demo Space](https://huggingface.co/spaces/PINNeAPPle-Labs/zoo-demo) shows the model along a sweep of each input and runs it, with its checks, in your browser. | |
| ## Files | |
| | File | Content | SHA-256 | | |
| |---|---|---| | |
| | `weights.pt` | PyTorch `state_dict` (`torch.load(weights_only=True)`), what `pp.zoo.load` reads | `02f899a3b465ddfe4dff577dfb63f5a60195a5a74f4e0272b9f19414cfbc31d7` | | |
| | `config.json` | architecture and normalisation | `bebb6ce9d60a83baac4add5da916fd76e155398c7526e09b2c62f5134176c77f` | | |
| | `model_card.json` | the model card: inputs, outputs, validity range, metrics, trust report | `90d3a5303a4570d672173e9fdc7046c90084f943f87c074f2dc2c4780722b2ed` | | |
| | `model.safetensors` | the same tensors as `weights.pt` in safetensors format (`pinneapple_hub.zoo.export.load_safetensors` loads them) | derived | | |
| | `example.json` | the "How to use" case: inputs, outputs, reference, verdicts | derived | | |
| The SHA-256 are those of the package's manifest: `pp.zoo.load` refuses any other file. | |
| ## Cite | |
| If you use this model, please cite PINNeAPPle (software, Zenodo DOI [10.5281/zenodo.23343062](https://doi.org/10.5281/zenodo.23343062); see [CITATION.cff](https://github.com/PINNeAPPle-Labs/PINNeAPPle/blob/main/CITATION.cff)): | |
| ```bibtex | |
| @software{pinneapple, | |
| author = {Barros, Yan and Schiassi, Enrico}, | |
| title = {PINNeAPPle}, | |
| doi = {10.5281/zenodo.23343062}, | |
| url = {https://github.com/PINNeAPPle-Labs/PINNeAPPle} | |
| } | |
| ``` | |