deepcursive-formula-m / config.json
mbanban's picture
DeepCursive formula model M (no synthetic data), safetensors + card
d037b44 verified
Raw History Blame Contribute Delete
5.56 kB
{
"architecture": "InkTransformer",
"library": "deepcursive",
"model_config": {
"ink_vocab": 1337,
"latex_vocab": 257,
"d_model": 384,
"n_heads": 6,
"enc_layers": 4,
"dec_layers": 8,
"ff_mult": 4,
"dropout": 0.1,
"max_latex_len": 256,
"max_ink_len": 1100,
"pos_octaves": 9,
"pos_min_wavelength": 0.5,
"rope_base": 10000.0,
"n_sources": 2
},
"codec": {
"step": 0.05,
"levels": [
1,
2,
4,
8
],
"n_dirs": 96,
"chord_tol": 0.02,
"jump_lin": 0.05,
"jump_lin_bins": 120,
"jump_growth": 1.02,
"jump_max": 60.0
},
"latex_vocab": [
"<pad>",
"<unk>",
"<bos>",
"<eos>",
"!",
"&",
"(",
")",
"*",
"+",
",",
"-",
".",
"/",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
":",
";",
"<",
"=",
">",
"?",
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"[",
"\\#",
"\\%",
"\\&",
"\\Delta",
"\\Gamma",
"\\Lambda",
"\\Leftrightarrow",
"\\Omega",
"\\Phi",
"\\Pi",
"\\Psi",
"\\Rightarrow",
"\\Sigma",
"\\Theta",
"\\Upsilon",
"\\Vdash",
"\\Xi",
"\\\\",
"\\_",
"\\aleph",
"\\alpha",
"\\angle",
"\\approx",
"\\backslash",
"\\begin{matrix}",
"\\beta",
"\\bigcap",
"\\bigcirc",
"\\bigcup",
"\\bigoplus",
"\\bigvee",
"\\bigwedge",
"\\bullet",
"\\cap",
"\\cdot",
"\\chi",
"\\circ",
"\\cong",
"\\cup",
"\\dagger",
"\\delta",
"\\div",
"\\dot",
"\\emptyset",
"\\end{matrix}",
"\\epsilon",
"\\equiv",
"\\eta",
"\\exists",
"\\forall",
"\\frac",
"\\gamma",
"\\ge",
"\\gg",
"\\hat",
"\\hbar",
"\\hookrightarrow",
"\\iff",
"\\iint",
"\\in",
"\\infty",
"\\int",
"\\iota",
"\\kappa",
"\\lambda",
"\\langle",
"\\lceil",
"\\le",
"\\leftarrow",
"\\leftrightarrow",
"\\lfloor",
"\\ll",
"\\longrightarrow",
"\\mapsto",
"\\mathbb",
"\\mathbb{A}",
"\\mathbb{B}",
"\\mathbb{C}",
"\\mathbb{D}",
"\\mathbb{E}",
"\\mathbb{F}",
"\\mathbb{G}",
"\\mathbb{H}",
"\\mathbb{I}",
"\\mathbb{J}",
"\\mathbb{K}",
"\\mathbb{L}",
"\\mathbb{M}",
"\\mathbb{N}",
"\\mathbb{O}",
"\\mathbb{P}",
"\\mathbb{Q}",
"\\mathbb{R}",
"\\mathbb{S}",
"\\mathbb{T}",
"\\mathbb{U}",
"\\mathbb{V}",
"\\mathbb{W}",
"\\mathbb{X}",
"\\mathbb{Y}",
"\\mathbb{Z}",
"\\models",
"\\mp",
"\\mu",
"\\nabla",
"\\ne",
"\\neg",
"\\ni",
"\\not",
"\\notin",
"\\nu",
"\\odot",
"\\oint",
"\\omega",
"\\ominus",
"\\oplus",
"\\otimes",
"\\overline",
"\\partial",
"\\perp",
"\\phi",
"\\pi",
"\\pm",
"\\prime",
"\\prod",
"\\propto",
"\\psi",
"\\rangle",
"\\rceil",
"\\rfloor",
"\\rho",
"\\rightarrow",
"\\rightleftharpoons",
"\\sigma",
"\\sim",
"\\simeq",
"\\sqrt",
"\\sqsubseteq",
"\\subset",
"\\subseteq",
"\\subsetneq",
"\\sum",
"\\supset",
"\\supseteq",
"\\tau",
"\\theta",
"\\tilde",
"\\times",
"\\top",
"\\triangle",
"\\triangleleft",
"\\triangleq",
"\\underline",
"\\upsilon",
"\\varphi",
"\\varpi",
"\\varsigma",
"\\vartheta",
"\\vdash",
"\\vdots",
"\\vec",
"\\vee",
"\\wedge",
"\\xi",
"\\zeta",
"\\{",
"\\|",
"\\}",
"]",
"^",
"_",
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
"y",
"z",
"{",
"|",
"}"
],
"training": {
"step": 60000,
"hours": 4.96,
"best_val_loss": 3.2781316696437393,
"train_config": {
"run_name": "full-v2-m-nosynth",
"preset": "m",
"dropout": 0.1,
"use_synthetic": false,
"augment": true,
"synthetic_fraction": 0.4,
"max_tokens": 16384,
"max_batch": 256,
"max_attention": null,
"neighbor_smoothing": 0.1,
"input_noise": 0.05,
"lr": 0.0004,
"min_lr_ratio": 0.05,
"warmup_steps": 1000,
"total_steps": 60000,
"weight_decay": 0.05,
"grad_clip": 1.0,
"eval_every": 1000,
"checkpoint_every": 500,
"checkpoint_minutes": 10.0,
"val_samples": 2000,
"max_hours": 8.5,
"stop_after_steps": null,
"snapshot_every": 5000,
"max_memory_gb": null,
"empty_cache_every": 1,
"device": "cuda",
"amp": "on",
"seed": 0,
"sample_temperature": 0.7,
"notify": false,
"preview_formulas": [
"H(X)=-\\sum_{x}p(x)log_{2}p(x)",
"C=Blog_{2}(1+\\frac{S}{N})",
"\\int_{0}^{\\infty}e^{-x^{2}}dx=\\frac{\\sqrt{\\pi}}{2}",
"I(X;Y)=H(X)-H(X|Y)",
"x_{1,2}=\\frac{-b\\pm\\sqrt{b^{2}-4ac}}{2a}",
"lim_{n\\rightarrow\\infty}(1+\\frac{1}{n})^{n}=e"
]
},
"data": "MathWriting (Google, CC BY-NC-SA 4.0): train split 229,863 human samples + 6,423 isolated symbols; no synthetic data"
}
}