{
  "_id": "6a488f72e06c18f0a6541298",
  "Package": "torchtransformers",
  "Title": "Transformer Models in Torch",
  "Version": "0.0.0.9600",
  "Authors@R": "c(\nperson(given = \"Jonathan\",\nfamily = \"Bratt\",\nrole = c(\"aut\", \"cre\"),\nemail = \"jonathan.bratt@macmillan.com\",\ncomment = c(ORCID = \"0000-0003-2859-0076\")),\nperson(given = \"Jon\",\nfamily = \"Harmon\",\nrole = c(\"aut\"),\nemail = \"jonthegeek@gmail.com\",\ncomment = c(ORCID = \"0000-0003-4781-4346\")),\nperson(given = \"Bedford Freeman & Worth Pub Grp LLC DBA Macmillan Learning\",\nrole = c(\"cph\"))\n)",
  "Description": "Work with transformer models in R using torch.",
  "Encoding": "UTF-8",
  "URL": "https://github.com/macmillancontentscience/torchtransformers",
  "BugReports": "https://github.com/macmillancontentscience/torchtransformers/issues",
  "License": "Apache License (>= 2)",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.1",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://jonthegeek.r-universe.dev",
  "Date/Publication": "2023-07-31 19:09:42 UTC",
  "RemoteUrl": "https://github.com/macmillancontentscience/torchtransformers",
  "RemoteRef": "HEAD",
  "RemoteSha": "513d9b51c1bf61d723055632a78ace17a6163954",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-04 04:39:34 UTC",
    "User": "root"
  },
  "Author": "Jonathan Bratt [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-2859-0076>),\nJon Harmon [aut] (ORCID: <https://orcid.org/0000-0003-4781-4346>),\nBedford Freeman & Worth Pub Grp LLC DBA Macmillan Learning [cph]",
  "Maintainer": "Jonathan Bratt <jonathan.bratt@macmillan.com>",
  "_user": "jonthegeek",
  "_type": "src",
  "_file": "torchtransformers_0.0.0.9600.tar.gz",
  "_fileid": "https://r2.ropensci.org/c21553c38009d7efe058514dee407696cd25c0b950cdcf5f716d109f82175fe6",
  "_filesize": 231010,
  "_sha256": "c21553c38009d7efe058514dee407696cd25c0b950cdcf5f716d109f82175fe6",
  "_expires": "2026-10-12T04:43:29.000Z",
  "_created": "2026-07-04T04:39:34.000Z",
  "_published": "2026-07-04T04:43:30.950Z",
  "_jobs": [
    {
      "job": 85103413497,
      "time": 197,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "8078384365"
    },
    {
      "job": 85103413484,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8078380840"
    },
    {
      "job": 85103413504,
      "time": 83,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "8078373043"
    },
    {
      "job": 85103413483,
      "time": 132,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8078377687"
    },
    {
      "job": 85103227911,
      "time": 207,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8078364088"
    },
    {
      "job": 85103413481,
      "time": 151,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8078379550"
    },
    {
      "job": 85103413513,
      "time": 81,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "8078372844"
    },
    {
      "job": 85103413519,
      "time": 84,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "8078373236"
    },
    {
      "job": 85103413510,
      "time": 97,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8078374360"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845",
  "_status": "success",
  "_upstream": "https://github.com/macmillancontentscience/torchtransformers",
  "_commit": {
    "id": "513d9b51c1bf61d723055632a78ace17a6163954",
    "author": "Jon Harmon <jonthegeek@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update for luz 0.4.0 (#37)\n\n* Update for luz 0.4.0\r\n\r\n* Bump vnum.\r\n\r\n* Roll back vnum bump.\r\n\r\nNo code changed, just a test.",
    "time": 1690830582
  },
  "_maintainer": {
    "name": "Jonathan Bratt",
    "email": "jonathan.bratt@macmillan.com",
    "login": "jonathanbratt",
    "description": "",
    "uuid": 33073024,
    "orcid": "0000-0003-2859-0076"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.1",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dlr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "fastmatch",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "version": ">= 1.4.0",
      "role": "Imports"
    },
    {
      "package": "torch",
      "version": ">= 0.8.0",
      "role": "Imports"
    },
    {
      "package": "wordpiece",
      "version": ">= 2.1.3",
      "role": "Imports"
    },
    {
      "package": "wordpiece.data",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "luz",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    }
  ],
  "_owner": "macmillancontentscience",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 29,
  "_contributors": [
    {
      "user": "jonthegeek",
      "count": 15,
      "uuid": 33983824
    },
    {
      "user": "jonathanbratt",
      "count": 10,
      "uuid": 33073024
    },
    {
      "user": "dfalbel",
      "count": 1,
      "uuid": 4706822
    },
    {
      "user": "cregouby",
      "count": 1,
      "uuid": 10136115
    }
  ],
  "_userbio": {
    "uuid": 33983824,
    "type": "user",
    "name": "Jon Harmon",
    "followers": 361,
    "description": "Executive Director at DSLC.io (fka @r4ds) | Principal Developer (@atorus-research)"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/torchtransformers"
  },
  "_devurl": "https://github.com/macmillancontentscience/torchtransformers",
  "_searchresults": 8,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/torchtransformers.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "attention_bert",
    "available_berts",
    "config_bert",
    "dataset_bert",
    "dataset_bert_pretrained",
    "embeddings_bert",
    "increment_list_index",
    "luz_callback_bert_tokenize",
    "model_bert",
    "model_bert_pretrained",
    "position_embedding",
    "proj_add_norm",
    "simplify_bert_token_list",
    "tokenize_bert",
    "transformer_encoder_bert",
    "transformer_encoder_single_bert"
  ],
  "_help": [
    {
      "page": "attention_bert",
      "title": "BERT-Style Attention",
      "topics": [
        "attention_bert"
      ]
    },
    {
      "page": "available_berts",
      "title": "Available BERT Models",
      "topics": [
        "available_berts"
      ]
    },
    {
      "page": "config_bert",
      "title": "BERT Model Parameters",
      "topics": [
        "config_bert"
      ]
    },
    {
      "page": "dataset_bert",
      "title": "BERT Dataset",
      "topics": [
        "dataset_bert"
      ]
    },
    {
      "page": "dataset_bert_pretrained",
      "title": "BERT Pretrained Dataset",
      "topics": [
        "dataset_bert_pretrained"
      ]
    },
    {
      "page": "embeddings_bert",
      "title": "Create BERT Embeddings",
      "topics": [
        "embeddings_bert"
      ]
    },
    {
      "page": "increment_list_index",
      "title": "Convert from Python Standard to torch",
      "topics": [
        "increment_list_index"
      ]
    },
    {
      "page": "luz_callback_bert_tokenize",
      "title": "BERT Tokenization Callback",
      "topics": [
        "luz_callback_bert_tokenize"
      ]
    },
    {
      "page": "model_bert",
      "title": "Construct a BERT Model",
      "topics": [
        "model_bert"
      ]
    },
    {
      "page": "model_bert_pretrained",
      "title": "Construct a Pretrained BERT Model",
      "topics": [
        "model_bert_pretrained"
      ]
    },
    {
      "page": "position_embedding",
      "title": "Create Position Embeddings",
      "topics": [
        "position_embedding"
      ]
    },
    {
      "page": "proj_add_norm",
      "title": "Project, Add, and Normalize",
      "topics": [
        "proj_add_norm"
      ]
    },
    {
      "page": "simplify_bert_token_list",
      "title": "Simplify Token List to Matrix",
      "topics": [
        "simplify_bert_token_list"
      ]
    },
    {
      "page": "tokenize_bert",
      "title": "Prepare Text for a BERT Model",
      "topics": [
        "tokenize_bert"
      ]
    },
    {
      "page": "transformer_encoder_bert",
      "title": "Transformer Stack",
      "topics": [
        "transformer_encoder_bert"
      ]
    },
    {
      "page": "transformer_encoder_single_bert",
      "title": "Single Transformer Layer",
      "topics": [
        "transformer_encoder_single_bert"
      ]
    }
  ],
  "_readme": "https://github.com/macmillancontentscience/torchtransformers/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "cachem",
    "callr",
    "cli",
    "coro",
    "desc",
    "digest",
    "dlr",
    "farver",
    "fastmap",
    "fastmatch",
    "fs",
    "glue",
    "jsonlite",
    "labeling",
    "lifecycle",
    "magrittr",
    "memoise",
    "otel",
    "piecemaker",
    "processx",
    "ps",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "safetensors",
    "scales",
    "stringi",
    "stringr",
    "torch",
    "vctrs",
    "viridisLite",
    "withr",
    "wordpiece",
    "wordpiece.data"
  ],
  "_vignettes": [
    {
      "source": "entailment.Rmd",
      "filename": "entailment.html",
      "title": "Textual Entailment",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The MNLI Dataset",
        "Model",
        "Results"
      ],
      "created": "2022-06-02 14:21:05",
      "modified": "2022-09-21 17:43:11",
      "commits": 3
    },
    {
      "source": "triplet_loss.Rmd",
      "filename": "triplet_loss.html",
      "title": "Triplet Loss",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Get the data",
        "Define the model",
        "Prepare the data for torch",
        "Fit the model",
        "Using the model"
      ],
      "created": "2022-05-13 16:45:29",
      "modified": "2022-09-21 17:43:11",
      "commits": 5
    }
  ],
  "_score": 4.939519252618618,
  "_indexed": false,
  "_nocasepkg": "torchtransformers",
  "_universes": [
    "jonthegeek"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9600",
      "date": "2026-07-04T04:42:48.000Z",
      "distro": "resolute",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "https://r2.ropensci.org/56afb55d60ff1435e09da9a068b6d6969db7c39258c0f075bdd8b2984e6be968",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.9600",
      "date": "2026-07-04T04:42:13.000Z",
      "distro": "resolute",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "https://r2.ropensci.org/8c23ece62ba8f56213866638fb20dff0d416f536d675a9ba86fe87b9589e9790",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9600",
      "date": "2026-07-04T04:41:04.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "https://r2.ropensci.org/3b3eb3e370bc2823c683639570650930da51c0371e2c05b3a9e8091032336b16",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.9600",
      "date": "2026-07-04T04:41:37.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "https://r2.ropensci.org/bac80252577b69d186a72d50240b175c55523a25cfe89a99d61a4d7d9156ecc8",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9600",
      "date": "2026-07-04T04:42:23.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "https://r2.ropensci.org/612d63851da67acaba301f02e412f5ad2e802663c4c982f5e7136ce6421cf1d3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9600",
      "date": "2026-07-04T04:40:48.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "https://r2.ropensci.org/57c5916182dab148506774c295120ead4109563634fb01b332215f6518a6ec1e",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9600",
      "date": "2026-07-04T04:40:55.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "https://r2.ropensci.org/8eb7bc309d12f7226a9684aa78404d7ec1040986039af061bc62653299ad0bd9",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.0.9600",
      "date": "2026-07-04T04:41:05.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "https://r2.ropensci.org/e9c7c6441348d96c4cb3e96b9064e047191ae56c1c94a9de19f0baeccbf81cb4",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/28695082845"
    }
  ]
}