{
  "_id": "6a1be4c01d7bb097a0a1983b",
  "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-05-31 06:50:06 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>",
  "MD5sum": "c3d7d268882c0c24d24ef0da90bf32b2",
  "_user": "jonthegeek",
  "_type": "src",
  "_file": "torchtransformers_0.0.0.9600.tar.gz",
  "_fileid": "4ce8e1e9d7e3cea944ee30e4ef39bf2c44a14a17aaeef8839b8ca7d67f1c324b",
  "_filesize": 229774,
  "_sha256": "4ce8e1e9d7e3cea944ee30e4ef39bf2c44a14a17aaeef8839b8ca7d67f1c324b",
  "_created": "2026-05-31T06:50:06.000Z",
  "_published": "2026-05-31T07:35:28.392Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78706698220,
      "time": 140,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7314576891"
    },
    {
      "job": 78706698216,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7314575611"
    },
    {
      "job": 78706698221,
      "time": 88,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7314860305"
    },
    {
      "job": 78706698214,
      "time": 106,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7314863627"
    },
    {
      "job": 78706548020,
      "time": 178,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314562343"
    },
    {
      "job": 78706698208,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314574480"
    },
    {
      "job": 78706698241,
      "time": 84,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7314571386"
    },
    {
      "job": 78706698240,
      "time": 92,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7314572215"
    },
    {
      "job": 78706698244,
      "time": 93,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7314572276"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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",
    "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.0",
  "_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",
    "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-05-31T06:52:21.000Z",
      "distro": "noble",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "62302f474de6372dcd983c436e705264828ed408f56f0825bfdd909ed8940e43",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.0.9600",
      "date": "2026-05-31T06:52:09.000Z",
      "distro": "noble",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "a574c2f315f2cffc660928aa55cb19a44c9f912645b57ec9824bba2560de78ff",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9600",
      "date": "2026-05-31T07:34:32.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "141f2b517fa3cbbac26074ed6b72aeb3cb1aa612dddb1ec1d55cc15f4dc5ca0f",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.0.9600",
      "date": "2026-05-31T07:34:50.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "e6dd9aa85de3f340101edc91c21c3c6b24949bb8fce13b8b23e9727e24888968",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9600",
      "date": "2026-05-31T06:52:19.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "e07b906e64aa09529a5a95abf4623c4612407bca171d741c193eb58a8e575f47",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9600",
      "date": "2026-05-31T06:51:25.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "3d25d6aba0d6f54cdef7ee874bcf0e6b38d3534bb89462cfa559f80e496193d0",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9600",
      "date": "2026-05-31T06:51:25.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "55eace25992c336230ca64a0a23cac337c064fa5cb2e4a0a1158052bd1f7f63a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.0.9600",
      "date": "2026-05-31T06:51:26.000Z",
      "commit": "513d9b51c1bf61d723055632a78ace17a6163954",
      "fileid": "d55b74aede9274788d4f23f637646fdfe4c692fa4f196120e2d27b717a0f0064",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/26705725875"
    }
  ]
}