{
  "id": "task_libraries:deep-learning/python",
  "path": "/exapedia/python-deep-learning-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python deep learning libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python deep learning libraries define neural networks, compute their gradients, and train them on GPUs and other accelerators. These libraries train and run the models behind language, vision, and speech features in apps."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python deep learning libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#transformers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F125"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pytorch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jax",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tensorflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#keras",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pytorch-lightning",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flax",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#equinox",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#pytorch",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F2"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Layer and module classes",
            "Automatic training loop"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#transformers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F125"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pytorch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jax",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tensorflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#keras",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pytorch-lightning",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flax",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#equinox",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "transformers",
          "name": [
            {
              "t": "fact",
              "fact": "F125"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/huggingface/transformers"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/transformers"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/transformers/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Transformers defines model architectures for text, vision, audio, video, and multimodal tasks, and loads pretrained weights for them from the Hugging Face Hub. "
            },
            {
              "t": "code",
              "text": "pipeline"
            },
            {
              "t": "text",
              "text": " wraps a model and its preprocessing into one call for a task such as text classification or zero-shot classification. Training frameworks and inference engines such as vLLM reuse the same model definitions. The library runs on PyTorch."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/transformers/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F125"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Models by name"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A task and a model name from the Hub are enough for "
                },
                {
                  "t": "code",
                  "text": "pipeline"
                },
                {
                  "t": "text",
                  "text": " to download and run a model."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Weights download on first use"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Each model fetches its weights the first time it loads, and large models need a GPU with enough memory to hold them."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/deepset-ai/haystack",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def run(self, text: str) -> dict[str, str]:\n    \"\"\"\n    Routes the text strings to different connections based on a category label.\n\n    :param text: A string of text to route.\n    :returns:\n        A dictionary with the label as key and the text as value.\n\n    :raises TypeError:\n        If the input is not a str.\n    :raises RuntimeError:\n        If the pipeline has not been loaded because warm_up() was not called before.\n    \"\"\"\n    if self.pipeline is None:\n        raise RuntimeError(\n            \"The component TransformersZeroShotTextRouter wasn't warmed up. Run 'warm_up()' before calling 'run()'.\"\n        )\n\n    if not isinstance(text, str):\n        raise TypeError(\"TransformersZeroShotTextRouter expects a str as input.\")\n\n    prediction = self.pipeline([text], candidate_labels=self.labels, multi_label=self.multi_label)\n    predicted_scores = prediction[0][\"scores\"]\n    max_score_index = max(range(len(predicted_scores)), key=predicted_scores.__getitem__)\n    label = prediction[0][\"labels\"][max_score_index]\n    return {label: text}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/deepset-ai/haystack/blob/dc1d72228adeaac8e657d3a4946c3e246d45784d/haystack/components/routers/zero_shot_text_router.py#L192-L217",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=transformers%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F125"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from transformers import pipeline\nclassifier = pipeline('zero-shot-classification', model='facebook/bart-large-mnli')\nresult = classifier('A guide to neural network training', candidate_labels=['machine learning', 'cooking'])\nprint(result['labels'][0])\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.ZeroShotClassificationPipeline",
                  "label": [
                    {
                      "t": "text",
                      "text": "pipelines.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F130"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pytorch",
          "name": [
            {
              "t": "fact",
              "fact": "F144"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pytorch/pytorch"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/torch"
            },
            {
              "label": "Docs",
              "href": "https://pytorch.org/docs"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "PyTorch provides tensors, arrays that compute on GPUs as well as CPUs, and neural networks built on a tape-based autograd system. The tape records operations as Python code runs, so a model's structure can change from one input to the next, and "
            },
            {
              "t": "code",
              "text": "backward()"
            },
            {
              "t": "text",
              "text": " computes the gradients. "
            },
            {
              "t": "code",
              "text": "torch.nn"
            },
            {
              "t": "text",
              "text": " supplies layers and losses, and "
            },
            {
              "t": "code",
              "text": "DistributedDataParallel"
            },
            {
              "t": "text",
              "text": " synchronizes gradients across training processes. Extensions can reuse NumPy, SciPy, and Cython code."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pytorch.org/docs",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Saved weights need the model class"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A state dictionary holds weights only, so loading one requires the model class defined in code first."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/lucidrains/denoising-diffusion-pytorch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def cosine_beta_schedule(timesteps, s = 0.008):\n    \"\"\"\n    cosine schedule\n    as proposed in https://openreview.net/forum?id=-NEXDKk8gZ\n    \"\"\"\n    steps = timesteps + 1\n    t = torch.linspace(0, timesteps, steps, dtype = torch.float64) / timesteps\n    alphas_cumprod = torch.cos((t + s) / (1 + s) * math.pi * 0.5) ** 2\n    alphas_cumprod = alphas_cumprod / alphas_cumprod[0]\n    betas = 1 - (alphas_cumprod[1:] / alphas_cumprod[:-1])\n    return torch.clip(betas, 0, 0.999)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/lucidrains/denoising-diffusion-pytorch/blob/c8155b1dc622e3f1ef0d53dc6e5a570ca105bcec/denoising_diffusion_pytorch/denoising_diffusion_pytorch.py#L451-L461",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20torch%20for%20diffusion%20sampling%2C%20contrastive-learning%20augmentation%20and%20differentiable%20neural-network%20losses&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import torch\nx = torch.tensor(3.0, requires_grad=True)\n(x * x).backward()\nprint(x.grad)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.pytorch.org/docs/2.15/autograd.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "autograd.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jax",
          "name": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jax-ml/jax"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/jax"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/jax/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "JAX is a library for array computation and program transformation, with an API modeled on NumPy. "
            },
            {
              "t": "code",
              "text": "jax.grad"
            },
            {
              "t": "text",
              "text": " differentiates a Python function, including its loops, branches, and recursion, and "
            },
            {
              "t": "code",
              "text": "jax.jit"
            },
            {
              "t": "text",
              "text": " compiles it with XLA for GPUs and TPUs. The transformations compose, so a compiled function can also be differentiated. Neural network layers come from libraries built on JAX, such as Flax and Equinox."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/jax/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Pure functions only"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Transformed functions keep no hidden state, so state passes in as arguments and comes back as return values."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Research project"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Google describes JAX as a research project rather than an official product, and its docs list sharp edges."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/google-deepmind/dm-haiku",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def loss(params: hk.Params, batch: Batch) -> jax.Array:\n  \"\"\"Cross-entropy classification loss, regularised by L2 weight decay.\"\"\"\n  batch_size, *_ = batch.image.shape\n  logits = network.apply(params, batch.image)\n  labels = jax.nn.one_hot(batch.label, NUM_CLASSES)\n\n  l2_regulariser = 0.5 * sum(\n      jnp.sum(jnp.square(p)) for p in jax.tree.leaves(params)\n  )\n  log_likelihood = jnp.sum(labels * jax.nn.log_softmax(logits))\n\n  return -log_likelihood / batch_size + 1e-4 * l2_regulariser",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/google-deepmind/dm-haiku/blob/4ec60bb58723d5db5aa11c12b3fc6374b5b01726/examples/mnist.py#L76-L87",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20jax%20for%20diffusion%20sampling%2C%20contrastive-learning%20augmentation%20and%20differentiable%20neural-network%20losses&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import jax\nprint(jax.grad(lambda x: x * x)(3.0))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/jax-ml/jax",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tensorflow",
          "name": [
            {
              "t": "fact",
              "fact": "F176"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tensorflow/tensorflow"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/tensorflow"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/tensorflow/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "TensorFlow is an open source platform for machine learning, first developed at Google Brain. Tensors and variables compute on CPUs, GPUs, and TPUs, and "
            },
            {
              "t": "code",
              "text": "tf.GradientTape"
            },
            {
              "t": "text",
              "text": " records the operations inside its block to compute gradients. Distribution strategies spread existing training code across GPUs, machines, or TPUs. Stable APIs cover Python and C++."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/tensorflow/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Windows GPU training needs WSL"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "GPU builds on Windows run inside WSL, the Windows Subsystem for Linux."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/google-research/simclr",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def gaussian_blur(image, kernel_size, sigma, padding='SAME'):\n  \"\"\"Blurs the given image with separable convolution.\n\n\n  Args:\n    image: Tensor of shape [height, width, channels] and dtype float to blur.\n    kernel_size: Integer Tensor for the size of the blur kernel. This is should\n      be an odd number. If it is an even number, the actual kernel size will be\n      size + 1.\n    sigma: Sigma value for gaussian operator.\n    padding: Padding to use for the convolution. Typically 'SAME' or 'VALID'.\n\n  Returns:\n    A Tensor representing the blurred image.\n  \"\"\"\n  radius = tf.cast(kernel_size / 2, dtype=tf.int32)\n  kernel_size = radius * 2 + 1\n  x = tf.cast(tf.range(-radius, radius + 1), dtype=tf.float32)\n  blur_filter = tf.exp(-tf.pow(x, 2.0) /\n                       (2.0 * tf.pow(tf.cast(sigma, dtype=tf.float32), 2.0)))\n  blur_filter /= tf.reduce_sum(blur_filter)\n  # One vertical and one horizontal filter.\n  blur_v = tf.reshape(blur_filter, [kernel_size, 1, 1, 1])\n  blur_h = tf.reshape(blur_filter, [1, kernel_size, 1, 1])\n  num_channels = tf.shape(image)[-1]\n  blur_h = tf.tile(blur_h, [1, 1, num_channels, 1])\n  blur_v = tf.tile(blur_v, [1, 1, num_channels, 1])\n  expand_batch_dim = image.shape.ndims == 3\n  if expand_batch_dim:\n    # Tensorflow requires batched input to convolutions, which we can fake with\n    # an extra dimension.\n    image = tf.expand_dims(image, axis=0)\n  blurred = tf.nn.depthwise_conv2d(\n      image, blur_h, strides=[1, 1, 1, 1], padding=padding)\n  blurred = tf.nn.depthwise_conv2d(\n      blurred, blur_v, strides=[1, 1, 1, 1], padding=padding)\n  if expand_batch_dim:\n    blurred = tf.squeeze(blurred, axis=0)\n  return blurred",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/google-research/simclr/blob/383d4143fd8cf7879ae10f1046a9baeb753ff438/tf2/data_util.py#L323-L361",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20tensorflow%20for%20diffusion%20sampling%2C%20contrastive-learning%20augmentation%20and%20differentiable%20neural-network%20losses&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import tensorflow as tf\nx = tf.Variable(3.0)\nwith tf.GradientTape() as tape:\n    y = x * x\nprint(tape.gradient(y, x).numpy())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.tensorflow.org/api_docs/python/tf/GradientTape",
                  "label": [
                    {
                      "t": "text",
                      "text": "tf.GradientTape"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "keras",
          "name": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/keras-team/keras"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/keras"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/keras/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Keras is a high-level API for building and training deep learning models on JAX, TensorFlow, or PyTorch, with OpenVINO available for inference only. A model is a stack of layers, as in "
            },
            {
              "t": "code",
              "text": "keras.Sequential"
            },
            {
              "t": "text",
              "text": ", and the "
            },
            {
              "t": "code",
              "text": "KERAS_BACKEND"
            },
            {
              "t": "text",
              "text": " environment variable selects the engine. The "
            },
            {
              "t": "code",
              "text": "keras"
            },
            {
              "t": "text",
              "text": " package holds the current version, and the previous version remains available as "
            },
            {
              "t": "code",
              "text": "tf-keras"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/keras/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Backend installed separately"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Keras needs TensorFlow, JAX, or PyTorch installed alongside it."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "OpenVINO runs inference only"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Training needs the JAX, TensorFlow, or PyTorch backend."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/keras-team/keras-io",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def call(self, inputs):\n    concat_inputs = []\n    for input_ in inputs:\n        if input_ in CATEGORICAL_FEATURES_WITH_VOCABULARY:\n            max_index = self.embeddings[input_].input_dim - 1  # Clamp the indices\n            # torch had some index errors during embedding hence the clip function\n            embedded_feature = self.embeddings[input_](\n                keras.ops.clip(inputs[input_], 0, max_index)\n            )\n            concat_inputs.append(embedded_feature)\n        else:\n            # Project the numeric feature to encoding_size using linear transformation.\n            proj_feature = keras.ops.expand_dims(inputs[input_], -1)\n            proj_feature = self.proj_layer[input_](proj_feature)\n            concat_inputs.append(proj_feature)\n\n    v = layers.concatenate(concat_inputs)\n    v = self.grn_concat(v)\n    v = keras.ops.expand_dims(self.softmax(v), axis=-1)\n    x = []\n    for idx, input in enumerate(concat_inputs):\n        x.append(self.grns[idx](input))\n    x = keras.ops.stack(x, axis=1)\n    return keras.ops.squeeze(\n        keras.ops.matmul(keras.ops.transpose(v, axes=[0, 2, 1]), x), axis=1\n    )",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/keras-team/keras-io/blob/f5891b3cd4df69f6bd5a3c26ea92310f3a973626/examples/structured_data/classification_with_grn_and_vsn.py#L420-L445",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20keras%20for%20diffusion%20sampling%2C%20contrastive-learning%20augmentation%20and%20differentiable%20neural-network%20losses&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import os\nos.environ['KERAS_BACKEND'] = 'torch'\nimport keras\nmodel = keras.Sequential([keras.layers.Dense(1)])\nprint(model(keras.ops.ones((1, 3))))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://keras.io/api/models/sequential/",
                  "label": [
                    {
                      "t": "text",
                      "text": "sequential.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pytorch-lightning",
          "name": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Lightning-AI/pytorch-lightning"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pytorch-lightning"
            },
            {
              "label": "Docs",
              "href": "https://pytorch-lightning.rtfd.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "PyTorch Lightning organizes PyTorch code so that the library handles the training loop, backpropagation, mixed precision, and multi-GPU or distributed training. Model code goes in a "
            },
            {
              "t": "code",
              "text": "LightningModule"
            },
            {
              "t": "text",
              "text": ", and a "
            },
            {
              "t": "code",
              "text": "Trainer"
            },
            {
              "t": "text",
              "text": " runs it on anything from a CPU to several GPU nodes without changes to that code. Lightning Fabric offers the same scaling while the program keeps its own training loop."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pytorch-lightning.rtfd.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Training loop included"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The "
                },
                {
                  "t": "code",
                  "text": "Trainer"
                },
                {
                  "t": "text",
                  "text": " runs training and prediction, with logging and checkpoints as options."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Code follows its structure"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Model code moves into "
                },
                {
                  "t": "code",
                  "text": "LightningModule"
                },
                {
                  "t": "text",
                  "text": " methods instead of a plain PyTorch loop."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/CompVis/latent-diffusion",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@torch.no_grad()\ndef validation_step(self, batch, batch_idx):\n    _, loss_dict_no_ema = self.shared_step(batch)\n    with self.ema_scope():\n        _, loss_dict_ema = self.shared_step(batch)\n        loss_dict_ema = {key + '_ema': loss_dict_ema[key] for key in loss_dict_ema}\n    self.log_dict(loss_dict_no_ema, prog_bar=False, logger=True, on_step=False, on_epoch=True)\n    self.log_dict(loss_dict_ema, prog_bar=False, logger=True, on_step=False, on_epoch=True)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/CompVis/latent-diffusion/blob/a506df5756472e2ebaf9078affdde2c4f1502cd4/ldm/models/diffusion/ddpm.py#L357-L364",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pytorch-lightning%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import torch\nimport pytorch_lightning as pl\nfrom torch.utils.data import DataLoader\n\nclass Model(pl.LightningModule):\n    def forward(self, x):\n        return x + 1\n\nmodel = Model()\ntrainer = pl.Trainer(accelerator='cpu', logger=False, enable_checkpointing=False)\nprint(trainer.predict(model, dataloaders=DataLoader(torch.zeros(2, 3), batch_size=1)))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://lightning.ai/docs/pytorch/stable/common/lightning_module.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "lightning_module.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "flax",
          "name": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/google/flax"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/flax"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/flax/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Flax is a neural network library for JAX. Its current API, Flax NNX, defines models as regular Python objects with mutable state and shared references, and layers such as "
            },
            {
              "t": "code",
              "text": "nnx.Linear"
            },
            {
              "t": "text",
              "text": " draw their random keys from "
            },
            {
              "t": "code",
              "text": "nnx.Rngs"
            },
            {
              "t": "text",
              "text": ". Models built this way pass through JAX transformations for compilation and gradients. The older Linen API keeps its own documentation site."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/flax/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Models as Python objects"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Flax NNX models are regular Python objects that can share references and change in place."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Training utilities included"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Checkpointing, serialization, metrics, and on-device prefetching come with the library."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Two APIs"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Code written for Linen differs from NNX code, and the docs include a guide for moving between them."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/google-research/big_vision",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@nn.compact\ndef __call__(self, x, deterministic=True):\n  \"\"\"Applies Transformer MlpBlock module.\"\"\"\n  inits = dict(\n      kernel_init=nn.initializers.xavier_uniform(),\n      bias_init=nn.initializers.normal(stddev=1e-6),\n  )\n\n  d = x.shape[-1]\n  x = nn.Dense(self.mlp_dim or 4 * d, dtype=self.dtype_mm, **inits)(x)\n  # In some extreme batch-size cases, this is needed as of Sept 2024:\n  x = nn.with_logical_constraint(x, (\"act_batch\", \"act_len\", \"act_emb\"))\n  x = nn.gelu(x)\n  x = nn.Dropout(rate=self.dropout)(x, deterministic)\n  x = nn.Dense(d, dtype=self.dtype_mm, **inits)(x)\n  return x",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/google-research/big_vision/blob/0127fb6b337ee2a27bf4e54dea79cff176527356/big_vision/models/vit.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=flax%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from flax import nnx\nimport jax.numpy as jnp\nmodel = nnx.Linear(3, 2, rngs=nnx.Rngs(0))\nprint(model(jnp.ones((1, 3))))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://flax.readthedocs.io/en/latest/nnx_basics.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "nnx_basics.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "equinox",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/patrick-kidger/equinox"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/equinox"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/equinox/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Equinox is a JAX library for neural networks and for utilities that core JAX lacks, such as filtered transformations, PyTree manipulation, and runtime errors. Models subclass "
            },
            {
              "t": "code",
              "text": "eqx.Module"
            },
            {
              "t": "text",
              "text": " with PyTorch-like syntax, and each model is a PyTree, the nested container type JAX transforms, so it passes through "
            },
            {
              "t": "code",
              "text": "jax.jit"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "jax.grad"
            },
            {
              "t": "text",
              "text": " directly. Equinox models work with the rest of the JAX ecosystem."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/equinox/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Models are PyTrees"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Models cross compilation and gradient boundaries like any other JAX data."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Explicit random keys"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Each layer takes a random key when it is built, passed by the program."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/danielward27/flowjax",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@eqx.filter_jit\ndef step(\n    params: PyTree,\n    *args,\n    optimizer: optax.GradientTransformation,\n    opt_state: PyTree,\n    loss_fn: Callable[..., Scalar],\n    **kwargs,\n):\n    \"\"\"Carry out a training step.\n\n    Args:\n        params: Parameters for the model\n        *args: Arguments passed to the loss function (often the static components\n            of the model).\n        optimizer: Optax optimizer.\n        opt_state: Optimizer state.\n        loss_fn: The loss function. This should take params and static as the first two\n            arguments.\n        **kwargs: Key word arguments passed to the loss function.\n\n    Returns:\n        tuple: (params, opt_state, loss_val)\n    \"\"\"\n    loss_val, grads = eqx.filter_value_and_grad(loss_fn)(\n        params,\n        *args,\n        **kwargs,\n    )\n    updates, opt_state = optimizer.update(grads, opt_state, params=params)\n    params = eqx.apply_updates(params, updates)\n    return params, opt_state, loss_val",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/danielward27/flowjax/blob/bb8593453924e1688ae2a5395767ba8d71e6d804/flowjax/train/train_utils.py#L14-L45",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=equinox%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import equinox as eqx\nimport jax\nimport jax.numpy as jnp\nmodel = eqx.nn.Linear(3, 2, key=jax.random.PRNGKey(0))\nprint(model(jnp.ones(3)))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.kidger.site/equinox/api/nn/linear/",
                  "label": [
                    {
                      "t": "text",
                      "text": "linear.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python deep learning library should I use?",
      "a": [
        {
          "t": "text",
          "text": "Start from the engine. "
        },
        {
          "t": "link",
          "href": "#pytorch",
          "label": [
            {
              "t": "text",
              "text": "PyTorch"
            }
          ]
        },
        {
          "t": "text",
          "text": " records operations on a tape as Python code runs, "
        },
        {
          "t": "link",
          "href": "#jax",
          "label": [
            {
              "t": "text",
              "text": "JAX"
            }
          ]
        },
        {
          "t": "text",
          "text": " transforms pure functions with "
        },
        {
          "t": "code",
          "text": "grad"
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "code",
          "text": "jit"
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "link",
          "href": "#tensorflow",
          "label": [
            {
              "t": "text",
              "text": "TensorFlow"
            }
          ]
        },
        {
          "t": "text",
          "text": " records gradients with "
        },
        {
          "t": "code",
          "text": "GradientTape"
        },
        {
          "t": "text",
          "text": ". "
        },
        {
          "t": "link",
          "href": "#keras",
          "label": [
            {
              "t": "text",
              "text": "Keras"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds a high-level API over any of the three, and "
        },
        {
          "t": "link",
          "href": "#transformers",
          "label": [
            {
              "t": "text",
              "text": "Transformers"
            }
          ]
        },
        {
          "t": "text",
          "text": " supplies pretrained models."
        }
      ]
    },
    {
      "q": "PyTorch vs TensorFlow: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Both compute tensors on GPUs and differentiate them automatically. PyTorch records operations as Python code runs. TensorFlow records gradients inside a "
        },
        {
          "t": "code",
          "text": "GradientTape"
        },
        {
          "t": "text",
          "text": " block and also offers a stable C++ API. On Windows, TensorFlow's GPU builds run through WSL, the Windows Subsystem for Linux."
        }
      ]
    },
    {
      "q": "JAX vs PyTorch: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "JAX transforms functions: "
        },
        {
          "t": "code",
          "text": "jax.grad"
        },
        {
          "t": "text",
          "text": " differentiates a function, "
        },
        {
          "t": "code",
          "text": "jax.jit"
        },
        {
          "t": "text",
          "text": " compiles it with XLA, and the two compose. Those transforms require pure functions, so model state passes in and out as arguments. PyTorch keeps state inside module objects and records gradients as the code runs."
        }
      ]
    },
    {
      "q": "Keras vs TensorFlow: what is the difference?",
      "a": [
        {
          "t": "text",
          "text": "Keras is a high-level API for building and training models, and TensorFlow is one of the engines it runs on. The current Keras also runs on JAX and PyTorch, and the previous version remains available as the "
        },
        {
          "t": "code",
          "text": "tf-keras"
        },
        {
          "t": "text",
          "text": " package."
        }
      ]
    },
    {
      "q": "Keras vs PyTorch: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Keras defines a model as layers and trains it through its own API, and it can use PyTorch as its backend. Plain PyTorch leaves the training loop to the program, which controls each step."
        }
      ]
    },
    {
      "q": "What is Flax in JAX?",
      "a": [
        {
          "t": "link",
          "href": "#flax",
          "label": [
            {
              "t": "text",
              "text": "Flax"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a neural network library for JAX. Its NNX API defines models as regular Python objects with mutable state, and JAX transforms then compile and differentiate them."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, torch",
      "display": "PyTorch",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, torch",
      "display": "59.4M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, torch",
      "display": "BSD-style",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, torch",
      "display": "2.15.0, Oct 2026",
      "asOf": "2026-10-28"
    },
    "F5": {
      "label": "Package release date, torch",
      "display": "Oct 2026",
      "asOf": "2026-10-28"
    },
    "F6": {
      "label": "Repository stars, torch",
      "display": "105.6K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Trains on CPU, torch",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Trains on GPUs, torch",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Automatic differentiation, torch",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Multi-device training, torch",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, torch",
      "display": "pip install torch torchvision",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, torch",
      "display": "Provides tensor computation and neural networks built around automatic differentiation.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, torch",
      "display": "Builds dynamic autograd networks",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, torch",
      "display": "Build neural networks on a tape-based automatic differentiation system.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, torch",
      "display": "Synchronizes distributed training gradients",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, torch",
      "display": "Use DistributedDataParallel to synchronize gradients across training processes.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, torch",
      "display": "Weight loading needs model structure",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, torch",
      "display": "Recreate the model class before loading a state dictionary.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, torch",
      "display": "\"\"\"\n`Learn the Basics <intro.html>`_ ||\n**Quickstart** ||\n`Tensors <tensorqs_tutorial.html>`_ ||\n`Datasets & DataLoaders <data_tutorial.html>`_ ||\n`Transforms <transforms_tutorial.html>`_ ||\n`Build Model <buildmodel_tutorial.html>`_ ||\n`Autograd <autogradqs_tutorial.html>`_ ||\n`Optimization <optimization_tutorial.html>`_ ||\n`Save & Load Model <saveloadrun_tutorial.html>`_\n\nQuickstart\n===================\nThis section runs through the API for common tasks in machine learning. Refer to the links in each section to dive deeper.\n\nWorking with data\n-----------------\nPyTorch has two `primitives to work with data <https://pytorch.org/docs/stable/data.html>`_:\n``torch.utils.data.DataLoader`` and ``torch.utils.data.Dataset``.\n``Dataset`` stores the samples and their corresponding labels, and ``DataLoader`` wraps an iterable around\nthe ``Dataset``.\n\n\"\"\"\n\nimport torch\nfrom torch import nn\nfrom torch.utils.data import DataLoader\nfrom torchvision import datasets\nfrom torchvision.transforms import v2\n\n######################################################################\n# PyTorch offers domain-specific libraries such as `TorchText <https://pytorch.org/text/stable/index.html>`_,\n# `TorchVision <https://pytorch.org/vision/stable/index.html>`_, and `TorchAudio <https://pytorch.org/audio/stable/index.html>`_,\n# all of which include datasets. For this tutorial, we  will be using a TorchVision dataset.\n#\n# The ``torchvision.datasets`` module contains ``Dataset`` objects for many real-world vision data like\n# CIFAR, COCO (`full list here <https://pytorch.org/vision/stable/datasets.html>`_). In this tutorial, we\n# use the FashionMNIST dataset. Every TorchVision ``Dataset`` includes two arguments: ``transform`` and\n# ``target_transform`` to modify the samples and labels respectively.\n\n# Download training data from open datasets.\ntraining_data = datasets.FashionMNIST(\n    root=\"data\",\n    train=True,\n    download=True,\n    transform=v2.Compose([v2.ToImage(), v2.ToDtype(torch.float32, scale=True)]),\n)\n\n# Download test data from open datasets.\ntest_data = datasets.FashionMNIST(\n    root=\"data\",\n    train=False,\n    download=True,\n    transform=v2.Compose([v2.ToImage(), v2.ToDtype(torch.float32, scale=True)]),\n)\n\n######################################################################\n# We pass the ``Dataset`` as an argument to ``DataLoader``. This wraps an iterable over our dataset, and supports\n# automatic batching, sampling, shuffling and multiprocess data loading. Here we define a batch size of 64, i.e. each element\n# in the dataloader iterable will return a batch of 64 features and labels.\n\nbatch_size = 64\n\n# Create data loaders.\ntrain_dataloader = DataLoader(training_data, batch_size=batch_size)\ntest_dataloader = DataLoader(test_data, batch_size=batch_size)\n\nfor X, y in test_dataloader:\n    print(f\"Shape of X [N, C, H, W]: {X.shape}\")\n    print(f\"Shape of y: {y.shape} {y.dtype}\")\n    break\n\n######################################################################\n# Read more about `loading data in PyTorch <data_tutorial.html>`_.\n#\n\n######################################################################\n# --------------\n#\n\n################################\n# Creating Models\n# ------------------\n# To define a neural network in PyTorch, we create a class that inherits\n# from `nn.Module <https://pytorch.org/docs/stable/generated/torch.nn.Module.html>`_. We define the layers of the network\n# in the ``__init__`` function and specify how data will pass through the network in the ``forward`` function. To accelerate\n# operations in the neural network, we move it to the `accelerator <https://pytorch.org/docs/stable/torch.html#accelerators>`__\n# such as CUDA, MPS, MTIA, or XPU. If the current accelerator is available, we will use it. Otherwise, we use the CPU.\n\ndevice = torch.accelerator.current_accelerator().type if torch.accelerator.is_available() else \"cpu\"\nprint(f\"Using {device} device\")\n\n# Define model\nclass NeuralNetwork(nn.Module):\n    def __init__(self):\n        super().__init__()\n        self.flatten = nn.Flatten()\n        self.linear_relu_stack = nn.Sequential(\n            nn.Linear(28*28, 512),\n            nn.ReLU(),\n            nn.Linear(512, 512),\n            nn.ReLU(),\n            nn.Linear(512, 10)\n        )\n\n    def forward(self, x):\n        x = self.flatten(x)\n        logits = self.linear_relu_stack(x)\n        return logits\n\nmodel = NeuralNetwork().to(device)\nprint(model)\n\n######################################################################\n# Read more about `building neural networks in PyTorch <buildmodel_tutorial.html>`_.\n#\n\n\n######################################################################\n# --------------\n#\n\n\n#####################################################################\n# Optimizing the Model Parameters\n# ----------------------------------------\n# To train a model, we need a `loss function <https://pytorch.org/docs/stable/nn.html#loss-functions>`_\n# and an `optimizer <https://pytorch.org/docs/stable/optim.html>`_.\n\nloss_fn = nn.CrossEntropyLoss()\noptimizer = torch.optim.SGD(model.parameters(), lr=1e-3)\n\n\n#######################################################################\n# In a single training loop, the model makes predictions on the training dataset (fed to it in batches), and\n# backpropagates the prediction error to adjust the model's parameters.\n\ndef train(dataloader, model, loss_fn, optimizer):\n    size = len(dataloader.dataset)\n    model.train()\n    for batch, (X, y) in enumerate(dataloader):\n        X, y = X.to(device), y.to(device)\n\n        # Compute prediction error\n        pred = model(X)\n        loss = loss_fn(pred, y)\n\n        # Backpropagation\n        loss.backward()\n        optimizer.step()\n        optimizer.zero_grad()\n\n        if batch % 100 == 0:\n            loss, current = loss.item(), (batch + 1) * len(X)\n            print(f\"loss: {loss:>7f}  [{current:>5d}/{size:>5d}]\")\n\n##############################################################################\n# We also check the model's performance against the test dataset to ensure it is learning.\n\ndef test(dataloader, model, loss_fn):\n    size = len(dataloader.dataset)\n    num_batches = len(dataloader)\n    model.eval()\n    test_loss, correct = 0, 0\n    with torch.no_grad():\n        for X, y in dataloader:\n            X, y = X.to(device), y.to(device)\n            pred = model(X)\n            test_loss += loss_fn(pred, y).item()\n            correct += (pred.argmax(1) == y).type(torch.float).sum().item()\n    test_loss /= num_batches\n    correct /= size\n    print(f\"Test Error: \\n Accuracy: {(100*correct):>0.1f}%, Avg loss: {test_loss:>8f} \\n\")\n\n##############################################################################\n# The training process is conducted over several iterations (*epochs*). During each epoch, the model learns\n# parameters to make better predictions. We print the model's accuracy and loss at each epoch; we'd like to see the\n# accuracy increase and the loss decrease with every epoch.\n\nepochs = 5\nfor t in range(epochs):\n    print(f\"Epoch {t+1}\\n-------------------------------\")\n    train(train_dataloader, model, loss_fn, optimizer)\n    test(test_dataloader, model, loss_fn)\nprint(\"Done!\")\n\n######################################################################\n# Read more about `Training your model <optimization_tutorial.html>`_.\n#\n\n######################################################################\n# --------------\n#\n\n######################################################################\n# Saving Models\n# -------------\n# A common way to save a model is to serialize the internal state dictionary (containing the model parameters).\n\ntorch.save(model.state_dict(), \"model.pth\")\nprint(\"Saved PyTorch Model State to model.pth\")\n\n\n\n######################################################################\n# Loading Models\n# ----------------------------\n#\n# The process for loading a model includes re-creating the model structure and loading\n# the state dictionary into it.\n\nmodel = NeuralNetwork().to(device)\nmodel.load_state_dict(torch.load(\"model.pth\", weights_only=True))\n\n#############################################################\n# This model can now be used to make predictions.\n\nclasses = [\n    \"T-shirt/top\",\n    \"Trouser\",\n    \"Pullover\",\n    \"Dress\",\n    \"Coat\",\n    \"Sandal\",\n    \"Shirt\",\n    \"Sneaker\",\n    \"Bag\",\n    \"Ankle boot\",\n]\n\nmodel.eval()\nx, y = test_data[0][0], test_data[0][1]\nwith torch.no_grad():\n    x = x.to(device)\n    pred = model(x)\n    predicted, actual = classes[pred[0].argmax(0)], classes[y]\n    print(f'Predicted: \"{predicted}\", Actual: \"{actual}\"')\n\n\n######################################################################\n# Read more about `Saving & Loading your model <saveloadrun_tutorial.html>`_.\n#\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function, torch",
      "display": "def cosine_beta_schedule(timesteps, s = 0.008):\n    \"\"\"\n    cosine schedule\n    as proposed in https://openreview.net/forum?id=-NEXDKk8gZ\n    \"\"\"\n    steps = timesteps + 1\n    t = torch.linspace(0, timesteps, steps, dtype = torch.float64) / timesteps\n    alphas_cumprod = torch.cos((t + s) / (1 + s) * math.pi * 0.5) ** 2\n    alphas_cumprod = alphas_cumprod / alphas_cumprod[0]\n    betas = 1 - (alphas_cumprod[1:] / alphas_cumprod[:-1])\n    return torch.clip(betas, 0, 0.999)\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function reference, torch",
      "display": "denoising_diffusion_pytorch.py · cosine_beta_schedule()",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project repository, torch",
      "display": "lucidrains/denoising-diffusion-pytorch",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project stars, lucidrains/denoising-diffusion-pytorch",
      "display": "10.7K",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project push date, lucidrains/denoising-diffusion-pytorch",
      "display": "Sep 2026",
      "asOf": "2026-09-29"
    },
    "F25": {
      "label": "Library name, tensorflow",
      "display": "TensorFlow",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Monthly downloads, tensorflow",
      "display": "12.4M",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "License, tensorflow",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Package release, tensorflow",
      "display": "2.21.0, Mar 2026",
      "asOf": "2026-03-06"
    },
    "F29": {
      "label": "Package release date, tensorflow",
      "display": "Mar 2026",
      "asOf": "2026-03-06"
    },
    "F30": {
      "label": "Repository stars, tensorflow",
      "display": "201.6K",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Trains on CPU, tensorflow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Trains on GPUs, tensorflow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Automatic differentiation, tensorflow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Multi-device training, tensorflow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Output formats, tensorflow",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, tensorflow",
      "display": "pip install tensorflow",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, tensorflow",
      "display": "Provides an open-source platform for machine learning.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, tensorflow",
      "display": "Trains with automatic gradients",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, tensorflow",
      "display": "Use GradientTape to compute derivatives for training.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, tensorflow",
      "display": "Distributes existing training code",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, tensorflow",
      "display": "Use distribution strategies across GPUs, machines, or TPUs.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, tensorflow",
      "display": "Windows GPU installs need WSL",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, tensorflow",
      "display": "Run TensorFlow in Linux on Windows for GPU training.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Quickstart, tensorflow",
      "display": "import tensorflow as tf\nprint(\"TensorFlow version:\", tf.__version__)\n\n\n\nmnist = tf.keras.datasets.mnist\n\n(x_train, y_train), (x_test, y_test) = mnist.load_data()\nx_train, x_test = x_train / 255.0, x_test / 255.0\n\n\n\nmodel = tf.keras.models.Sequential([\n  tf.keras.layers.Flatten(input_shape=(28, 28)),\n  tf.keras.layers.Dense(128, activation='relu'),\n  tf.keras.layers.Dropout(0.2),\n  tf.keras.layers.Dense(10)\n])\n\n\n\npredictions = model(x_train[:1]).numpy()\npredictions\n\n\n\ntf.nn.softmax(predictions).numpy()\n\n\n\nloss_fn = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True)\n\n\n\nloss_fn(y_train[:1], predictions).numpy()\n\n\n\nmodel.compile(optimizer='adam',\n              loss=loss_fn,\n              metrics=['accuracy'])\n\n\n\nmodel.fit(x_train, y_train, epochs=5)\n\n\n\nmodel.evaluate(x_test,  y_test, verbose=2)\n\n\n\nprobability_model = tf.keras.Sequential([\n  model,\n  tf.keras.layers.Softmax()\n])\n\nprobability_model(x_test[:5])\n\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function, tensorflow",
      "display": "def gaussian_blur(image, kernel_size, sigma, padding='SAME'):\n  \"\"\"Blurs the given image with separable convolution.\n\n\n  Args:\n    image: Tensor of shape [height, width, channels] and dtype float to blur.\n    kernel_size: Integer Tensor for the size of the blur kernel. This is should\n      be an odd number. If it is an even number, the actual kernel size will be\n      size + 1.\n    sigma: Sigma value for gaussian operator.\n    padding: Padding to use for the convolution. Typically 'SAME' or 'VALID'.\n\n  Returns:\n    A Tensor representing the blurred image.\n  \"\"\"\n  radius = tf.cast(kernel_size / 2, dtype=tf.int32)\n  kernel_size = radius * 2 + 1\n  x = tf.cast(tf.range(-radius, radius + 1), dtype=tf.float32)\n  blur_filter = tf.exp(-tf.pow(x, 2.0) /\n                       (2.0 * tf.pow(tf.cast(sigma, dtype=tf.float32), 2.0)))\n  blur_filter /= tf.reduce_sum(blur_filter)\n  # One vertical and one horizontal filter.\n  blur_v = tf.reshape(blur_filter, [kernel_size, 1, 1, 1])\n  blur_h = tf.reshape(blur_filter, [1, kernel_size, 1, 1])\n  num_channels = tf.shape(image)[-1]\n  blur_h = tf.tile(blur_h, [1, 1, num_channels, 1])\n  blur_v = tf.tile(blur_v, [1, 1, num_channels, 1])\n  expand_batch_dim = image.shape.ndims == 3\n  if expand_batch_dim:\n    # Tensorflow requires batched input to convolutions, which we can fake with\n    # an extra dimension.\n    image = tf.expand_dims(image, axis=0)\n  blurred = tf.nn.depthwise_conv2d(\n      image, blur_h, strides=[1, 1, 1, 1], padding=padding)\n  blurred = tf.nn.depthwise_conv2d(\n      blurred, blur_v, strides=[1, 1, 1, 1], padding=padding)\n  if expand_batch_dim:\n    blurred = tf.squeeze(blurred, axis=0)\n  return blurred\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function reference, tensorflow",
      "display": "data_util.py · gaussian_blur()",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project repository, tensorflow",
      "display": "google-research/simclr",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project stars, google-research/simclr",
      "display": "4.5K",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project push date, google-research/simclr",
      "display": "May 2023",
      "asOf": "2023-05-22"
    },
    "F50": {
      "label": "Library name, jax",
      "display": "JAX",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Monthly downloads, jax",
      "display": "12.0M",
      "asOf": "2026-11-16"
    },
    "F52": {
      "label": "License, jax",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Package release, jax",
      "display": "0.12.0.1, Oct 2026",
      "asOf": "2026-10-21"
    },
    "F54": {
      "label": "Package release date, jax",
      "display": "Oct 2026",
      "asOf": "2026-10-21"
    },
    "F55": {
      "label": "Repository stars, jax",
      "display": "36.6K",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Trains on CPU, jax",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Trains on GPUs, jax",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Automatic differentiation, jax",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Multi-device training, jax",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Install, jax",
      "display": "pip install jax",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "What it does, jax",
      "display": "Provides array computation and program transformations for machine-learning workloads.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, jax",
      "display": "Composes gradients with compilation",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, jax",
      "display": "Compile and differentiate pure Python numerical functions.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, jax",
      "display": "Partitions array computations across devices",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, jax",
      "display": "Shard arrays and partition computations across multiple devices.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations lead, jax",
      "display": "Transforms require pure functions",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations, jax",
      "display": "Pass state through parameters and return updated values explicitly.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Quickstart, jax",
      "display": "import jax\nimport jax.numpy as jnp\n\ndef predict(params, inputs):\n  for W, b in params:\n    outputs = jnp.dot(inputs, W) + b\n    inputs = jnp.tanh(outputs)  # inputs to the next layer\n  return outputs                # no activation on last layer\n\ndef loss(params, inputs, targets):\n  preds = predict(params, inputs)\n  return jnp.sum((preds - targets)**2)\n\ngrad_loss = jax.jit(jax.grad(loss))  # compiled gradient evaluation function\nperex_grads = jax.jit(jax.vmap(grad_loss, in_axes=(None, 0, 0)))  # fast per-example grads\n",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project function, jax",
      "display": "def loss(params: hk.Params, batch: Batch) -> jax.Array:\n  \"\"\"Cross-entropy classification loss, regularised by L2 weight decay.\"\"\"\n  batch_size, *_ = batch.image.shape\n  logits = network.apply(params, batch.image)\n  labels = jax.nn.one_hot(batch.label, NUM_CLASSES)\n\n  l2_regulariser = 0.5 * sum(\n      jnp.sum(jnp.square(p)) for p in jax.tree.leaves(params)\n  )\n  log_likelihood = jnp.sum(labels * jax.nn.log_softmax(logits))\n\n  return -log_likelihood / batch_size + 1e-4 * l2_regulariser\n",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project function reference, jax",
      "display": "mnist.py · loss()",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project repository, jax",
      "display": "google-deepmind/dm-haiku",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project stars, google-deepmind/dm-haiku",
      "display": "3.3K",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project push date, google-deepmind/dm-haiku",
      "display": "Oct 2026",
      "asOf": "2026-10-27"
    },
    "F74": {
      "label": "Library name, keras",
      "display": "Keras",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Monthly downloads, keras",
      "display": "11.8M",
      "asOf": "2026-11-16"
    },
    "F76": {
      "label": "License, keras",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Package release, keras",
      "display": "3.15.1, Jul 2026",
      "asOf": "2026-07-29"
    },
    "F78": {
      "label": "Package release date, keras",
      "display": "Jul 2026",
      "asOf": "2026-07-29"
    },
    "F79": {
      "label": "Repository stars, keras",
      "display": "64.4K",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Trains on CPU, keras",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Trains on GPUs, keras",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Automatic differentiation, keras",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Multi-device training, keras",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Output formats, keras",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Install, keras",
      "display": "pip install keras",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "What it does, keras",
      "display": "Provides a multi-backend framework for building and training deep-learning models.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths lead, keras",
      "display": "Offers multiple training backends",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths, keras",
      "display": "Train through JAX, TensorFlow, or PyTorch backends.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, keras",
      "display": "Provides a high-level modeling API",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, keras",
      "display": "Build and train models across vision, language, audio, and forecasting tasks.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations lead, keras",
      "display": "Requires a separate training backend",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations, keras",
      "display": "Install a TensorFlow, JAX, or PyTorch backend alongside Keras.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, keras",
      "display": "OpenVINO supports inference only",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, keras",
      "display": "Choose another backend when the task requires training.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Quickstart, keras",
      "display": "\"\"\"\nTitle: Simple MNIST convnet\nAuthor: [fchollet](https://twitter.com/fchollet)\nDate created: 2015/06/19\nLast modified: 2020/04/21\nDescription: A simple convnet that achieves ~99% test accuracy on MNIST.\nAccelerator: GPU\n\"\"\"\n\n\"\"\"\n## Setup\n\"\"\"\n\nimport numpy as np\nimport keras\nfrom keras import layers\n\n\"\"\"\n## Prepare the data\n\"\"\"\n\n# Model / data parameters\nnum_classes = 10\ninput_shape = (28, 28, 1)\n\n# Load the data and split it between train and test sets\n(x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()\n\n# Scale images to the [0, 1] range\nx_train = x_train.astype(\"float32\") / 255\nx_test = x_test.astype(\"float32\") / 255\n# Make sure images have shape (28, 28, 1)\nx_train = np.expand_dims(x_train, -1)\nx_test = np.expand_dims(x_test, -1)\nprint(\"x_train shape:\", x_train.shape)\nprint(x_train.shape[0], \"train samples\")\nprint(x_test.shape[0], \"test samples\")\n\n\n# convert class vectors to binary class matrices\ny_train = keras.utils.to_categorical(y_train, num_classes)\ny_test = keras.utils.to_categorical(y_test, num_classes)\n\n\"\"\"\n## Build the model\n\"\"\"\n\nmodel = keras.Sequential(\n    [\n        keras.Input(shape=input_shape),\n        layers.Conv2D(32, kernel_size=(3, 3), activation=\"relu\"),\n        layers.MaxPooling2D(pool_size=(2, 2)),\n        layers.Conv2D(64, kernel_size=(3, 3), activation=\"relu\"),\n        layers.MaxPooling2D(pool_size=(2, 2)),\n        layers.Flatten(),\n        layers.Dropout(0.5),\n        layers.Dense(num_classes, activation=\"softmax\"),\n    ]\n)\n\nmodel.summary()\n\n\"\"\"\n## Train the model\n\"\"\"\n\nbatch_size = 128\nepochs = 15\n\nmodel.compile(loss=\"categorical_crossentropy\", optimizer=\"adam\", metrics=[\"accuracy\"])\n\nmodel.fit(x_train, y_train, batch_size=batch_size, epochs=epochs, validation_split=0.1)\n\n\"\"\"\n## Evaluate the trained model\n\"\"\"\n\nscore = model.evaluate(x_test, y_test, verbose=0)\nprint(\"Test loss:\", score[0])\nprint(\"Test accuracy:\", score[1])\n\n\"\"\"\n## Relevant Chapters from Deep Learning with Python\n- [Chapter 8: Image classification](https://deeplearningwithpython.io/chapters/chapter08_image-classification)\n\"\"\"\n",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Developer need",
      "display": "Autograd neural-network workflows",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Why choose torch",
      "display": "tensor computation with tape-based automatic differentiation",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need in introduction",
      "display": "autograd neural-network workflows",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Distributed TensorFlow training",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose tensorflow",
      "display": "distribution strategies for existing models and training code",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "distributed TensorFlow training",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "When to consider jax",
      "display": "array sharding and function transformations drive the design",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need",
      "display": "High-level modeling across backends",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose keras",
      "display": "a modeling API with multiple training backend choices",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "high-level modeling across backends",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Compiled array-function transformations",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose jax",
      "display": "composable gradients, vectorization, and compilation",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "compiled array-function transformations",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Page introduction",
      "display": "Python deep learning libraries let machine-learning developers build and train neural networks.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Which Python deep-learning library should I choose?",
      "display": "PyTorch provides neural networks on a tape-based autograd system.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Which Python deep-learning library should I choose?",
      "display": "TensorFlow provides distribution strategies for existing models.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Which Python deep-learning library should I choose?",
      "display": "Keras provides a multi-backend modeling framework.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Which Python deep-learning library should I choose?",
      "display": "JAX composes compilation and automatic differentiation.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Does installing Keras include a training engine?",
      "display": "Keras requires a separately installed TensorFlow, JAX, or PyTorch backend.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Can the Keras OpenVINO backend train models?",
      "display": "The OpenVINO backend supports inference only; select another backend for training.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Does generic GPU support imply every platform works?",
      "display": "Run TensorFlow in Linux on Windows for the supported Windows GPU setup.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does generic GPU support imply every platform works?",
      "display": "Keras offers backend-specific CUDA requirement files.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Why does JAX require pure functions?",
      "display": "JAX transformations expect inputs through parameters and results through return values.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does loading PyTorch weights recreate the model architecture?",
      "display": "Instantiate the model class before loading its state dictionary.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: What does JSON mean in this model comparison?",
      "display": "TensorFlow to_json returns the network configuration as JSON.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: What does JSON mean in this model comparison?",
      "display": "Keras to_json likewise serializes the network configuration.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: How does distributed training synchronize a model?",
      "display": "PyTorch DistributedDataParallel synchronizes gradients and buffers across its processes.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: How does distributed training synchronize a model?",
      "display": "TensorFlow strategies distribute training across GPUs, machines, or TPUs.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can JAX compute per-example neural-network gradients?",
      "display": "The own neural-network example combines grad, jit, and vmap for compiled per-example gradients.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "Library name, transformers",
      "display": "Transformers",
      "asOf": "2026-11-19"
    },
    "F126": {
      "label": "Monthly downloads, transformers",
      "display": "119.8M",
      "asOf": "2026-11-19"
    },
    "F127": {
      "label": "License, transformers",
      "display": "Apache 2.0 License",
      "asOf": "2026-11-19"
    },
    "F128": {
      "label": "Package release, transformers",
      "display": "5.23.0",
      "asOf": "2026-11-19"
    },
    "F129": {
      "label": "Package release date, transformers",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F130": {
      "label": "Install, transformers",
      "display": "pip install transformers torch",
      "asOf": "2026-11-19"
    },
    "F131": {
      "label": "Quickstart, transformers",
      "display": "from transformers import pipeline\nclassifier = pipeline('zero-shot-classification', model='facebook/bart-large-mnli')\nresult = classifier('A guide to neural network training', candidate_labels=['machine learning', 'cooking'])\nprint(result['labels'][0])\n",
      "asOf": "2026-11-19"
    },
    "F132": {
      "label": "Official description, transformers",
      "display": "Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.",
      "asOf": "2026-11-19"
    },
    "F133": {
      "label": "Quickstart source file, transformers",
      "display": "pipelines (official documentation route)",
      "asOf": "2026-11-19"
    },
    "F134": {
      "label": "Repository stars, transformers",
      "display": "169.2K",
      "asOf": "2026-11-19"
    },
    "F135": {
      "label": "Layer and module classes, transformers",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F136": {
      "label": "Automatic training loop, transformers",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F137": {
      "label": "Python requirement, transformers",
      "display": ">=3.11.0",
      "asOf": "2026-11-19"
    },
    "F138": {
      "label": "Framework role, transformers",
      "display": "Pretrained/custom model architectures and Trainer",
      "asOf": "2026-11-19"
    },
    "F139": {
      "label": "Inference result shape, transformers",
      "display": "Task-dependent structured pipeline results",
      "asOf": "2026-11-19"
    },
    "F140": {
      "label": "Project function, transformers",
      "display": "def run(self, text: str) -> dict[str, str]:\n    \"\"\"\n    Routes the text strings to different connections based on a category label.\n\n    :param text: A string of text to route.\n    :returns:\n        A dictionary with the label as key and the text as value.\n\n    :raises TypeError:\n        If the input is not a str.\n    :raises RuntimeError:\n        If the pipeline has not been loaded because warm_up() was not called before.\n    \"\"\"\n    if self.pipeline is None:\n        raise RuntimeError(\n            \"The component TransformersZeroShotTextRouter wasn't warmed up. Run 'warm_up()' before calling 'run()'.\"\n        )\n\n    if not isinstance(text, str):\n        raise TypeError(\"TransformersZeroShotTextRouter expects a str as input.\")\n\n    prediction = self.pipeline([text], candidate_labels=self.labels, multi_label=self.multi_label)\n    predicted_scores = prediction[0][\"scores\"]\n    max_score_index = max(range(len(predicted_scores)), key=predicted_scores.__getitem__)\n    label = prediction[0][\"labels\"][max_score_index]\n    return {label: text}",
      "asOf": "2026-11-19"
    },
    "F141": {
      "label": "Project source file, transformers",
      "display": "haystack/components/routers/zero_shot_text_router.py",
      "asOf": "2026-11-19"
    },
    "F142": {
      "label": "Project full_name, transformers",
      "display": "deepset-ai/haystack",
      "asOf": "2026-11-19"
    },
    "F143": {
      "label": "Project stargazers_count, transformers",
      "display": "27.0K",
      "asOf": "2026-11-19"
    },
    "F144": {
      "label": "Library name, torch",
      "display": "PyTorch",
      "asOf": "2026-11-19"
    },
    "F145": {
      "label": "Monthly downloads, torch",
      "display": "59.7M",
      "asOf": "2026-11-19"
    },
    "F146": {
      "label": "License, torch",
      "display": "Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND ISC AND MIT AND Zlib",
      "asOf": "2026-11-19"
    },
    "F147": {
      "label": "Package release, torch",
      "display": "2.15.0",
      "asOf": "2026-11-19"
    },
    "F148": {
      "label": "Package release date, torch",
      "display": "Oct 2026",
      "asOf": "2026-11-19"
    },
    "F149": {
      "label": "Install, torch",
      "display": "pip install torch",
      "asOf": "2026-11-19"
    },
    "F150": {
      "label": "Quickstart, torch",
      "display": "import torch\nx = torch.tensor(3.0, requires_grad=True)\n(x * x).backward()\nprint(x.grad)\n",
      "asOf": "2026-11-19"
    },
    "F151": {
      "label": "Repository stars, torch",
      "display": "105.7K",
      "asOf": "2026-11-19"
    },
    "F152": {
      "label": "Layer and module classes, torch",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F153": {
      "label": "Automatic training loop, torch",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F154": {
      "label": "Python requirement, torch",
      "display": ">=3.11",
      "asOf": "2026-11-19"
    },
    "F155": {
      "label": "Framework role, torch",
      "display": "Tensor/autodiff engine and neural modules",
      "asOf": "2026-11-19"
    },
    "F156": {
      "label": "Project function, torch",
      "display": "def cosine_beta_schedule(timesteps, s = 0.008):\n    \"\"\"\n    cosine schedule\n    as proposed in https://openreview.net/forum?id=-NEXDKk8gZ\n    \"\"\"\n    steps = timesteps + 1\n    t = torch.linspace(0, timesteps, steps, dtype = torch.float64) / timesteps\n    alphas_cumprod = torch.cos((t + s) / (1 + s) * math.pi * 0.5) ** 2\n    alphas_cumprod = alphas_cumprod / alphas_cumprod[0]\n    betas = 1 - (alphas_cumprod[1:] / alphas_cumprod[:-1])\n    return torch.clip(betas, 0, 0.999)",
      "asOf": "2026-11-19"
    },
    "F157": {
      "label": "Project source file, torch",
      "display": "denoising_diffusion_pytorch/denoising_diffusion_pytorch.py",
      "asOf": "2026-11-19"
    },
    "F158": {
      "label": "Project full_name, torch",
      "display": "lucidrains/denoising-diffusion-pytorch",
      "asOf": "2026-11-19"
    },
    "F159": {
      "label": "Project stargazers_count, torch",
      "display": "10.7K",
      "asOf": "2026-11-19"
    },
    "F160": {
      "label": "Library name, jax",
      "display": "JAX",
      "asOf": "2026-11-19"
    },
    "F161": {
      "label": "Monthly downloads, jax",
      "display": "12.6M",
      "asOf": "2026-11-19"
    },
    "F162": {
      "label": "License, jax",
      "display": "Apache-2.0",
      "asOf": "2026-11-19"
    },
    "F163": {
      "label": "Package release, jax",
      "display": "0.12.1",
      "asOf": "2026-11-19"
    },
    "F164": {
      "label": "Package release date, jax",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F165": {
      "label": "Install, jax",
      "display": "pip install jax",
      "asOf": "2026-11-19"
    },
    "F166": {
      "label": "Quickstart, jax",
      "display": "import jax\nprint(jax.grad(lambda x: x * x)(3.0))\n",
      "asOf": "2026-11-19"
    },
    "F167": {
      "label": "Repository stars, jax",
      "display": "36.6K",
      "asOf": "2026-11-19"
    },
    "F168": {
      "label": "Layer and module classes, jax",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F169": {
      "label": "Automatic training loop, jax",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F170": {
      "label": "Python requirement, jax",
      "display": ">=3.12",
      "asOf": "2026-11-19"
    },
    "F171": {
      "label": "Framework role, jax",
      "display": "Functional array transformations and compilation",
      "asOf": "2026-11-19"
    },
    "F172": {
      "label": "Project function, jax",
      "display": "def loss(params: hk.Params, batch: Batch) -> jax.Array:\n  \"\"\"Cross-entropy classification loss, regularised by L2 weight decay.\"\"\"\n  batch_size, *_ = batch.image.shape\n  logits = network.apply(params, batch.image)\n  labels = jax.nn.one_hot(batch.label, NUM_CLASSES)\n\n  l2_regulariser = 0.5 * sum(\n      jnp.sum(jnp.square(p)) for p in jax.tree.leaves(params)\n  )\n  log_likelihood = jnp.sum(labels * jax.nn.log_softmax(logits))\n\n  return -log_likelihood / batch_size + 1e-4 * l2_regulariser",
      "asOf": "2026-11-19"
    },
    "F173": {
      "label": "Project source file, jax",
      "display": "examples/mnist.py",
      "asOf": "2026-11-19"
    },
    "F174": {
      "label": "Project full_name, jax",
      "display": "google-deepmind/dm-haiku",
      "asOf": "2026-11-19"
    },
    "F175": {
      "label": "Project stargazers_count, jax",
      "display": "3.3K",
      "asOf": "2026-11-19"
    },
    "F176": {
      "label": "Library name, tensorflow",
      "display": "TensorFlow",
      "asOf": "2026-11-19"
    },
    "F177": {
      "label": "Monthly downloads, tensorflow",
      "display": "12.4M",
      "asOf": "2026-11-19"
    },
    "F178": {
      "label": "License, tensorflow",
      "display": "Apache-2.0",
      "asOf": "2026-11-19"
    },
    "F179": {
      "label": "Package release, tensorflow",
      "display": "2.21.0",
      "asOf": "2026-11-19"
    },
    "F180": {
      "label": "Package release date, tensorflow",
      "display": "Mar 2026",
      "asOf": "2026-11-19"
    },
    "F181": {
      "label": "Install, tensorflow",
      "display": "pip install tensorflow",
      "asOf": "2026-11-19"
    },
    "F182": {
      "label": "Quickstart, tensorflow",
      "display": "import tensorflow as tf\nx = tf.Variable(3.0)\nwith tf.GradientTape() as tape:\n    y = x * x\nprint(tape.gradient(y, x).numpy())\n",
      "asOf": "2026-11-19"
    },
    "F183": {
      "label": "Repository stars, tensorflow",
      "display": "201.6K",
      "asOf": "2026-11-19"
    },
    "F184": {
      "label": "Layer and module classes, tensorflow",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F185": {
      "label": "Automatic training loop, tensorflow",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F186": {
      "label": "Python requirement, tensorflow",
      "display": ">=3.10",
      "asOf": "2026-11-19"
    },
    "F187": {
      "label": "Framework role, tensorflow",
      "display": "TensorFlow tensor engine plus tf.keras training API",
      "asOf": "2026-11-19"
    },
    "F188": {
      "label": "Project function, tensorflow",
      "display": "def gaussian_blur(image, kernel_size, sigma, padding='SAME'):\n  \"\"\"Blurs the given image with separable convolution.\n\n\n  Args:\n    image: Tensor of shape [height, width, channels] and dtype float to blur.\n    kernel_size: Integer Tensor for the size of the blur kernel. This is should\n      be an odd number. If it is an even number, the actual kernel size will be\n      size + 1.\n    sigma: Sigma value for gaussian operator.\n    padding: Padding to use for the convolution. Typically 'SAME' or 'VALID'.\n\n  Returns:\n    A Tensor representing the blurred image.\n  \"\"\"\n  radius = tf.cast(kernel_size / 2, dtype=tf.int32)\n  kernel_size = radius * 2 + 1\n  x = tf.cast(tf.range(-radius, radius + 1), dtype=tf.float32)\n  blur_filter = tf.exp(-tf.pow(x, 2.0) /\n                       (2.0 * tf.pow(tf.cast(sigma, dtype=tf.float32), 2.0)))\n  blur_filter /= tf.reduce_sum(blur_filter)\n  # One vertical and one horizontal filter.\n  blur_v = tf.reshape(blur_filter, [kernel_size, 1, 1, 1])\n  blur_h = tf.reshape(blur_filter, [1, kernel_size, 1, 1])\n  num_channels = tf.shape(image)[-1]\n  blur_h = tf.tile(blur_h, [1, 1, num_channels, 1])\n  blur_v = tf.tile(blur_v, [1, 1, num_channels, 1])\n  expand_batch_dim = image.shape.ndims == 3\n  if expand_batch_dim:\n    # Tensorflow requires batched input to convolutions, which we can fake with\n    # an extra dimension.\n    image = tf.expand_dims(image, axis=0)\n  blurred = tf.nn.depthwise_conv2d(\n      image, blur_h, strides=[1, 1, 1, 1], padding=padding)\n  blurred = tf.nn.depthwise_conv2d(\n      blurred, blur_v, strides=[1, 1, 1, 1], padding=padding)\n  if expand_batch_dim:\n    blurred = tf.squeeze(blurred, axis=0)\n  return blurred",
      "asOf": "2026-11-19"
    },
    "F189": {
      "label": "Project source file, tensorflow",
      "display": "tf2/data_util.py",
      "asOf": "2026-11-19"
    },
    "F190": {
      "label": "Project full_name, tensorflow",
      "display": "google-research/simclr",
      "asOf": "2026-11-19"
    },
    "F191": {
      "label": "Project stargazers_count, tensorflow",
      "display": "4.5K",
      "asOf": "2026-11-19"
    },
    "F192": {
      "label": "Library name, keras",
      "display": "Keras",
      "asOf": "2026-11-19"
    },
    "F193": {
      "label": "Monthly downloads, keras",
      "display": "12.0M",
      "asOf": "2026-11-19"
    },
    "F194": {
      "label": "License, keras",
      "display": "Apache-2.0",
      "asOf": "2026-11-19"
    },
    "F195": {
      "label": "Package release, keras",
      "display": "3.15.1",
      "asOf": "2026-11-19"
    },
    "F196": {
      "label": "Package release date, keras",
      "display": "Jul 2026",
      "asOf": "2026-11-19"
    },
    "F197": {
      "label": "Install, keras",
      "display": "pip install keras torch",
      "asOf": "2026-11-19"
    },
    "F198": {
      "label": "Quickstart, keras",
      "display": "import os\nos.environ['KERAS_BACKEND'] = 'torch'\nimport keras\nmodel = keras.Sequential([keras.layers.Dense(1)])\nprint(model(keras.ops.ones((1, 3))))\n",
      "asOf": "2026-11-19"
    },
    "F199": {
      "label": "Repository stars, keras",
      "display": "64.4K",
      "asOf": "2026-11-19"
    },
    "F200": {
      "label": "Layer and module classes, keras",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F201": {
      "label": "Automatic training loop, keras",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F202": {
      "label": "Python requirement, keras",
      "display": ">=3.11",
      "asOf": "2026-11-19"
    },
    "F203": {
      "label": "Backend choice, keras",
      "display": "TensorFlow, JAX, or PyTorch",
      "asOf": "2026-11-19"
    },
    "F204": {
      "label": "Project function, keras",
      "display": "def call(self, inputs):\n    concat_inputs = []\n    for input_ in inputs:\n        if input_ in CATEGORICAL_FEATURES_WITH_VOCABULARY:\n            max_index = self.embeddings[input_].input_dim - 1  # Clamp the indices\n            # torch had some index errors during embedding hence the clip function\n            embedded_feature = self.embeddings[input_](\n                keras.ops.clip(inputs[input_], 0, max_index)\n            )\n            concat_inputs.append(embedded_feature)\n        else:\n            # Project the numeric feature to encoding_size using linear transformation.\n            proj_feature = keras.ops.expand_dims(inputs[input_], -1)\n            proj_feature = self.proj_layer[input_](proj_feature)\n            concat_inputs.append(proj_feature)\n\n    v = layers.concatenate(concat_inputs)\n    v = self.grn_concat(v)\n    v = keras.ops.expand_dims(self.softmax(v), axis=-1)\n    x = []\n    for idx, input in enumerate(concat_inputs):\n        x.append(self.grns[idx](input))\n    x = keras.ops.stack(x, axis=1)\n    return keras.ops.squeeze(\n        keras.ops.matmul(keras.ops.transpose(v, axes=[0, 2, 1]), x), axis=1\n    )",
      "asOf": "2026-11-19"
    },
    "F205": {
      "label": "Project source file, keras",
      "display": "examples/structured_data/classification_with_grn_and_vsn.py",
      "asOf": "2026-11-19"
    },
    "F206": {
      "label": "Project full_name, keras",
      "display": "keras-team/keras-io",
      "asOf": "2026-11-19"
    },
    "F207": {
      "label": "Project stargazers_count, keras",
      "display": "3.0K",
      "asOf": "2026-11-19"
    },
    "F208": {
      "label": "Library name, pytorch-lightning",
      "display": "PyTorch Lightning",
      "asOf": "2026-11-19"
    },
    "F209": {
      "label": "Monthly downloads, pytorch-lightning",
      "display": "11.6M",
      "asOf": "2026-11-19"
    },
    "F210": {
      "label": "License, pytorch-lightning",
      "display": "Apache-2.0",
      "asOf": "2026-11-19"
    },
    "F211": {
      "label": "Package release, pytorch-lightning",
      "display": "2.6.6",
      "asOf": "2026-11-19"
    },
    "F212": {
      "label": "Package release date, pytorch-lightning",
      "display": "Sep 2026",
      "asOf": "2026-11-19"
    },
    "F213": {
      "label": "Install, pytorch-lightning",
      "display": "pip install pytorch-lightning torch",
      "asOf": "2026-11-19"
    },
    "F214": {
      "label": "Quickstart, pytorch-lightning",
      "display": "import torch\nimport pytorch_lightning as pl\nfrom torch.utils.data import DataLoader\n\nclass Model(pl.LightningModule):\n    def forward(self, x):\n        return x + 1\n\nmodel = Model()\ntrainer = pl.Trainer(accelerator='cpu', logger=False, enable_checkpointing=False)\nprint(trainer.predict(model, dataloaders=DataLoader(torch.zeros(2, 3), batch_size=1)))\n",
      "asOf": "2026-11-19"
    },
    "F215": {
      "label": "Official description, pytorch-lightning",
      "display": "PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers. Scale your models. Write less boilerplate.",
      "asOf": "2026-11-19"
    },
    "F216": {
      "label": "Quickstart source file, pytorch-lightning",
      "display": "common/lightning_module.html",
      "asOf": "2026-11-19"
    },
    "F217": {
      "label": "Repository stars, pytorch-lightning",
      "display": "31.4K",
      "asOf": "2026-11-19"
    },
    "F218": {
      "label": "Layer and module classes, pytorch-lightning",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F219": {
      "label": "Automatic training loop, pytorch-lightning",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F220": {
      "label": "Python requirement, pytorch-lightning",
      "display": ">=3.10",
      "asOf": "2026-11-19"
    },
    "F221": {
      "label": "Framework role, pytorch-lightning",
      "display": "High-level PyTorch training orchestration",
      "asOf": "2026-11-19"
    },
    "F222": {
      "label": "Project function, pytorch-lightning",
      "display": "@torch.no_grad()\ndef validation_step(self, batch, batch_idx):\n    _, loss_dict_no_ema = self.shared_step(batch)\n    with self.ema_scope():\n        _, loss_dict_ema = self.shared_step(batch)\n        loss_dict_ema = {key + '_ema': loss_dict_ema[key] for key in loss_dict_ema}\n    self.log_dict(loss_dict_no_ema, prog_bar=False, logger=True, on_step=False, on_epoch=True)\n    self.log_dict(loss_dict_ema, prog_bar=False, logger=True, on_step=False, on_epoch=True)",
      "asOf": "2026-11-19"
    },
    "F223": {
      "label": "Project source file, pytorch-lightning",
      "display": "ldm/models/diffusion/ddpm.py",
      "asOf": "2026-11-19"
    },
    "F224": {
      "label": "Project full_name, pytorch-lightning",
      "display": "CompVis/latent-diffusion",
      "asOf": "2026-11-19"
    },
    "F225": {
      "label": "Project stargazers_count, pytorch-lightning",
      "display": "14.2K",
      "asOf": "2026-11-19"
    },
    "F226": {
      "label": "Library name, flax",
      "display": "Flax",
      "asOf": "2026-11-19"
    },
    "F227": {
      "label": "Monthly downloads, flax",
      "display": "2.7M",
      "asOf": "2026-11-19"
    },
    "F228": {
      "label": "License, flax",
      "display": "Apache-2.0",
      "asOf": "2026-11-19"
    },
    "F229": {
      "label": "Package release, flax",
      "display": "0.12.12",
      "asOf": "2026-11-19"
    },
    "F230": {
      "label": "Package release date, flax",
      "display": "Oct 2026",
      "asOf": "2026-11-19"
    },
    "F231": {
      "label": "Install, flax",
      "display": "pip install flax",
      "asOf": "2026-11-19"
    },
    "F232": {
      "label": "Quickstart, flax",
      "display": "from flax import nnx\nimport jax.numpy as jnp\nmodel = nnx.Linear(3, 2, rngs=nnx.Rngs(0))\nprint(model(jnp.ones((1, 3))))\n",
      "asOf": "2026-11-19"
    },
    "F233": {
      "label": "Official description, flax",
      "display": "Flax: A neural network library for JAX designed for flexibility",
      "asOf": "2026-11-19"
    },
    "F234": {
      "label": "Quickstart source file, flax",
      "display": "nnx_basics.html",
      "asOf": "2026-11-19"
    },
    "F235": {
      "label": "Repository stars, flax",
      "display": "7.4K",
      "asOf": "2026-11-19"
    },
    "F236": {
      "label": "Layer and module classes, flax",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F237": {
      "label": "Automatic training loop, flax",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F238": {
      "label": "Python requirement, flax",
      "display": ">=3.12",
      "asOf": "2026-11-19"
    },
    "F239": {
      "label": "State model, flax",
      "display": "NNX graph/module state and transforms",
      "asOf": "2026-11-19"
    },
    "F240": {
      "label": "Project function, flax",
      "display": "@nn.compact\ndef __call__(self, x, deterministic=True):\n  \"\"\"Applies Transformer MlpBlock module.\"\"\"\n  inits = dict(\n      kernel_init=nn.initializers.xavier_uniform(),\n      bias_init=nn.initializers.normal(stddev=1e-6),\n  )\n\n  d = x.shape[-1]\n  x = nn.Dense(self.mlp_dim or 4 * d, dtype=self.dtype_mm, **inits)(x)\n  # In some extreme batch-size cases, this is needed as of Sept 2024:\n  x = nn.with_logical_constraint(x, (\"act_batch\", \"act_len\", \"act_emb\"))\n  x = nn.gelu(x)\n  x = nn.Dropout(rate=self.dropout)(x, deterministic)\n  x = nn.Dense(d, dtype=self.dtype_mm, **inits)(x)\n  return x",
      "asOf": "2026-11-19"
    },
    "F241": {
      "label": "Project source file, flax",
      "display": "big_vision/models/vit.py",
      "asOf": "2026-11-19"
    },
    "F242": {
      "label": "Project full_name, flax",
      "display": "google-research/big_vision",
      "asOf": "2026-11-19"
    },
    "F243": {
      "label": "Project stargazers_count, flax",
      "display": "3.6K",
      "asOf": "2026-11-19"
    },
    "F244": {
      "label": "Library name, equinox",
      "display": "Equinox",
      "asOf": "2026-11-19"
    },
    "F245": {
      "label": "Monthly downloads, equinox",
      "display": "1.7M",
      "asOf": "2026-11-19"
    },
    "F246": {
      "label": "License, equinox",
      "display": "Apache-2.0",
      "asOf": "2026-11-19"
    },
    "F247": {
      "label": "Package release, equinox",
      "display": "0.13.8",
      "asOf": "2026-11-19"
    },
    "F248": {
      "label": "Package release date, equinox",
      "display": "May 2026",
      "asOf": "2026-11-19"
    },
    "F249": {
      "label": "Install, equinox",
      "display": "pip install equinox",
      "asOf": "2026-11-19"
    },
    "F250": {
      "label": "Quickstart, equinox",
      "display": "import equinox as eqx\nimport jax\nimport jax.numpy as jnp\nmodel = eqx.nn.Linear(3, 2, key=jax.random.PRNGKey(0))\nprint(model(jnp.ones(3)))\n",
      "asOf": "2026-11-19"
    },
    "F251": {
      "label": "Official description, equinox",
      "display": "Elegant easy-to-use neural networks in JAX.",
      "asOf": "2026-11-19"
    },
    "F252": {
      "label": "Quickstart source file, equinox",
      "display": "api/nn/linear (official API page)",
      "asOf": "2026-11-19"
    },
    "F253": {
      "label": "Repository stars, equinox",
      "display": "3.0K",
      "asOf": "2026-11-19"
    },
    "F254": {
      "label": "Layer and module classes, equinox",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F255": {
      "label": "Automatic training loop, equinox",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F256": {
      "label": "Python requirement, equinox",
      "display": ">=3.10",
      "asOf": "2026-11-19"
    },
    "F257": {
      "label": "State model, equinox",
      "display": "JAX PyTrees with filtered transformations",
      "asOf": "2026-11-19"
    },
    "F258": {
      "label": "Project function, equinox",
      "display": "@eqx.filter_jit\ndef step(\n    params: PyTree,\n    *args,\n    optimizer: optax.GradientTransformation,\n    opt_state: PyTree,\n    loss_fn: Callable[..., Scalar],\n    **kwargs,\n):\n    \"\"\"Carry out a training step.\n\n    Args:\n        params: Parameters for the model\n        *args: Arguments passed to the loss function (often the static components\n            of the model).\n        optimizer: Optax optimizer.\n        opt_state: Optimizer state.\n        loss_fn: The loss function. This should take params and static as the first two\n            arguments.\n        **kwargs: Key word arguments passed to the loss function.\n\n    Returns:\n        tuple: (params, opt_state, loss_val)\n    \"\"\"\n    loss_val, grads = eqx.filter_value_and_grad(loss_fn)(\n        params,\n        *args,\n        **kwargs,\n    )\n    updates, opt_state = optimizer.update(grads, opt_state, params=params)\n    params = eqx.apply_updates(params, updates)\n    return params, opt_state, loss_val",
      "asOf": "2026-11-19"
    },
    "F259": {
      "label": "Project source file, equinox",
      "display": "flowjax/train/train_utils.py",
      "asOf": "2026-11-19"
    },
    "F260": {
      "label": "Project full_name, equinox",
      "display": "danielward27/flowjax",
      "asOf": "2026-11-19"
    },
    "F261": {
      "label": "Project stargazers_count, equinox",
      "display": "246",
      "asOf": "2026-11-19"
    },
    "F262": {
      "label": "Developer need",
      "display": "Research and custom models",
      "asOf": "2026-11-17"
    },
    "F263": {
      "label": "Pick reason",
      "display": "tape-based autograd in Python",
      "asOf": "2026-11-17"
    },
    "F264": {
      "label": "Pick alternative reason",
      "display": "if code is written as pure functions",
      "asOf": "2026-11-17"
    },
    "F265": {
      "label": "Developer need",
      "display": "Training across GPUs and TPUs",
      "asOf": "2026-11-17"
    },
    "F266": {
      "label": "Pick reason",
      "display": "distribution strategies",
      "asOf": "2026-11-17"
    },
    "F267": {
      "label": "Pick alternative reason",
      "display": "if eager Python code is preferred",
      "asOf": "2026-11-17"
    },
    "F268": {
      "label": "Developer need",
      "display": "Compiled numerical code",
      "asOf": "2026-11-17"
    },
    "F269": {
      "label": "Pick reason",
      "display": "grad and jit transforms",
      "asOf": "2026-11-17"
    },
    "F270": {
      "label": "Pick alternative reason",
      "display": "if models keep internal state",
      "asOf": "2026-11-17"
    },
    "F271": {
      "label": "Developer need",
      "display": "One model API, any engine",
      "asOf": "2026-11-17"
    },
    "F272": {
      "label": "Pick reason",
      "display": "multi-backend layers",
      "asOf": "2026-11-17"
    },
    "F273": {
      "label": "Pick alternative reason",
      "display": "if the engine is already PyTorch",
      "asOf": "2026-11-17"
    },
    "F274": {
      "label": "Developer need",
      "display": "Less PyTorch training code",
      "asOf": "2026-11-17"
    },
    "F275": {
      "label": "Pick reason",
      "display": "Trainer runs the loop",
      "asOf": "2026-11-17"
    },
    "F276": {
      "label": "Pick alternative reason",
      "display": "if each step needs custom code",
      "asOf": "2026-11-17"
    },
    "F277": {
      "label": "Developer need",
      "display": "Pretrained models",
      "asOf": "2026-11-17"
    },
    "F278": {
      "label": "Pick reason",
      "display": "model definitions with weights",
      "asOf": "2026-11-17"
    },
    "F279": {
      "label": "Pick alternative reason",
      "display": "if the model is built from scratch",
      "asOf": "2026-11-17"
    },
    "F280": {
      "label": "Developer need",
      "display": "Neural networks on JAX",
      "asOf": "2026-11-17"
    },
    "F281": {
      "label": "Pick reason",
      "display": "NNX modules",
      "asOf": "2026-11-17"
    },
    "F282": {
      "label": "Pick alternative reason",
      "display": "if models should be PyTrees",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "Developer need",
      "display": "Minimal JAX models",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Pick reason",
      "display": "models as PyTrees",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Pick alternative reason",
      "display": "if a fuller framework is wanted",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-19",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python deep learning libraries PyTorch TensorFlow Keras JAX examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
