Instructions to use feynman-integrals-nn/box with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use feynman-integrals-nn/box with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("feynman-integrals-nn/box", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from feynman-integrals-nn/box: direct link, hf CLI and curl.
- Browser
- Download file 1.49 kB
-
https://huggingface.co/feynman-integrals-nn/box/resolve/main/config.json
- Command line
-
hf download hf://feynman-integrals-nn/box/config.json
-
curl -L -o config.json https://huggingface.co/feynman-integrals-nn/box/resolve/main/config.json
1.49 kB
| { | |
| "device": "cpu", | |
| "dtype": "float32", | |
| "dimensions": { | |
| "input": { | |
| "variables": 1 | |
| }, | |
| "output": { | |
| "functions": 3, | |
| "epsilon_orders": 5 | |
| }, | |
| "connection": { | |
| "epsilon_orders": 2 | |
| } | |
| }, | |
| "phase_space": { | |
| "scale": 10.0, | |
| "const": 10.0, | |
| "cut": { | |
| "physical": 0.1, | |
| "spurious": 0.1 | |
| } | |
| }, | |
| "hyperparameters": { | |
| "optimiser": { | |
| "algorithm": "Adam", | |
| "initial_learning_rate": 1e-2 | |
| }, | |
| "learning_rate_scheduler": { | |
| "factor": 0.1, | |
| "patience": 5, | |
| "threshold": 1e-2, | |
| "cooldown": 5 | |
| }, | |
| "iterations": { | |
| "batch_size": 64, | |
| "partition_size": 1024, | |
| "number_partitions": 1 | |
| }, | |
| "architecture": { | |
| "hidden_layers": [32, 32, 32], | |
| "activation": "GELU" | |
| }, | |
| "loss_function": { | |
| "boundary_bias": 1.0, | |
| "boundary_derivatives": false | |
| } | |
| }, | |
| "termination": { | |
| "epochs": 0, | |
| "seconds": 0, | |
| "learning_rate": { | |
| "target": 1.1e-8, | |
| "patience": 5 | |
| } | |
| }, | |
| "zeros": { | |
| "re": [ | |
| [0, 0], | |
| [1, 0] | |
| ], | |
| "im": [ | |
| [0, 0], | |
| [0, 1], | |
| [1, 0], | |
| [1, 1], | |
| [2, 0] | |
| ] | |
| } | |
| } | |